/* Shared stationery palette from Capsule Diary, adapted for handmade tickets. */
:root {
  --ink: #34415e;
  --muted: #69738a;
  --soft: #77819a;
  --teal: #536f9d;
  --teal-dark: #3d5a89;
  --blush: #7386a4;
  --mint: #e8eaf2;
  --paper: #fffaf0;
  --line: #ded9ce;
  --shadow: 0 16px 38px #263b5c24;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
}
body {
  background: #7d8ca7 url('/assets/starlight-sky.webp') center top / cover fixed;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .slide-track:focus-visible {
  outline: 3px solid #e2b15e;
  outline-offset: 3px;
}
.site-column { width: auto; margin: 0 0 0 248px; min-height: 100vh; overflow: visible; background: transparent; box-shadow: none; }
.shell { width: min(calc(100% - 64px), 1080px); }
.desktop-rail.rail-left {
  display: flex; left: 0; width: 248px; padding: 31px 18px 26px;
  background: linear-gradient(180deg,#455f86bb,#5b719174 54%,#465d7bb5), url('/assets/starlight-sky.webp') center / cover;
  border-right: 1px solid #f8ecd044; color: #fff9ed; z-index: 2;
}
.rail-left::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: min(42vh, 360px); background: url('/assets/moon-library.webp') center bottom / contain no-repeat; opacity: .9; pointer-events: none; }
.rail-brand { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .07em; text-align: center; white-space: normal; line-height: 1.5; text-shadow: 0 2px 8px #253b61; }
.rail-brand::before { content: "✧  ☾  ✦"; display: block; margin-bottom: 7px; color: #ffe7b5; font-size: 30px; font-weight: 400; letter-spacing: .12em; }
.rail-doodle { display: none; }
.rail-vertical { writing-mode: horizontal-tb; margin-top: 4px; font-family: var(--serif); text-align: center; font-size: 12px; font-weight: 500; line-height: 2; letter-spacing: .07em; }
.rail-caption { position: relative; z-index: 1; margin-top: auto; padding: 10px 0 0; color: #fff2de; font-size: 9px; text-shadow: 0 1px 4px #304367; }
.rail-right { display: none; }
.site-header { height: 86px; border-bottom: 1px solid #fff1d066; }
.brand { color: #fff9ed; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .08em; text-shadow: 0 1px 6px #2940627a; }
.brand-icon { width: 34px; height: 34px; background: #fff5db24; border: 1px solid #fff5dba3; color: #ffe6a7; font-family: var(--serif); font-size: 27px; }
.header-nav > a, .header-note { color: #fff9ed; font-size: 12px; text-shadow: 0 1px 4px #31486e; }
.header-nav > a:hover, .header-note:hover { color: #ffe6af; }
.header-nav .nav-cta { background: #fff8ec; color: #405776; border: 1px solid #fff4d9; text-shadow: none; box-shadow: 0 5px 14px #2c41673b; }
.header-nav .nav-cta:hover { background: #f8e7c5; color: #344d71; }
.hero { flex-direction: row; align-items: center; min-height: 430px; gap: 30px; padding: 42px 0 52px; text-align: left; }
.hero-copy { flex: 1 1 52%; min-width: 0; }
.eyebrow, .section-kicker { color: #ffebc6; font-size: 11px; letter-spacing: .15em; text-shadow: 0 1px 5px #304467; }
.hero h1 { margin: 15px 0 19px; color: #fff9ed; font-family: var(--serif); font-size: clamp(42px, 5.5vw, 68px); font-weight: 600; line-height: 1.5; text-shadow: 0 3px 14px #2b436965; }
.hero h1 em, .redeem-heading h1 em { color: #ffe5a9; }
.hero-copy > p { margin: 0; max-width: 460px; color: #fffaf0; font-size: 13px; line-height: 2; text-shadow: 0 1px 5px #2a4165; }
.hero-link, .primary-button { border-radius: 999px; background: linear-gradient(115deg,#6884ae,#818eae 55%,#a398b7); color: #fffaf0; border: 1px solid #b4b9d5; box-shadow: 0 7px 19px #263d693e,inset 0 1px #ffffff60; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; }
.hero-link:hover, .primary-button:hover { background: linear-gradient(115deg,#526f9b,#6d7ea2 55%,#8c82a5); color: #fff; }
.hero-art { flex: 1 1 48%; min-height: 335px; margin-top: 0; }
.hero-art::before { background: #e6d9c04a; border: 1px solid #fff6df5c; }
.spark-one { background: #ffe5a8; }.spark-two { background: #f5d6c2; }.spark-three { background: #d8e1f1; }
.sample-ticket { background: #fffaf0 url('/assets/paper-grain.webp') center / 450px 163px; border-color: #eadfca; box-shadow: 0 19px 36px #263a5d45; }
.sample-ticket::before, .sample-ticket::after { background: #8c9bb5; border-color: #e7d9c4; }
.sample-ticket-top, .sample-ticket-bottom { color: #71809c; }.sample-ticket-top span:first-child { font-family: var(--serif); color: #3e5377; }
.sample-star { color: #7184aa; background: #e8eaf2; }.sample-ticket-center strong { color: #3d4d6d; font-family: var(--serif); font-weight: 600; }
.steps-band { background: none; border-radius: 0; }.steps { min-height: 94px; padding: 0 30px; background: #fffaefef; border: 1px solid #fff1d8; border-radius: 16px; box-shadow: 0 10px 25px #2e426033; }
.steps div { color: #4e6080; font-weight: 600; }.steps b { color: #8f729b; }.steps i { color: #a2a9b9; }
.maker.shell { width: min(calc(100% - 64px), 1080px); padding: 60px 0 70px; background: none; }
.section-heading { text-align: left; margin-bottom: 28px; }.section-heading h2 { color: #fff9ed; font-family: var(--serif); font-weight: 600; font-size: 34px; text-shadow: 0 2px 8px #2a4167; }.section-heading p { color: #fffaf1; text-shadow: 0 1px 4px #30466d; }
.maker-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: start; gap: 25px; }
.form-panel, .redeem-panel, .finished-panel, .result-box { background: #fffaf0 url('/assets/paper-grain.webp') center / 450px 163px; border: 1px solid #f2e8d5; border-radius: 18px; box-shadow: 0 9px 27px #27385027; }
.form-panel { padding: 30px; }.form-panel label, .redeem-panel label, .pin-choice legend, .style-choice legend { color: #405373; font-weight: 700; }
.required { color: #5e7094; background: #e8eaf2; }.optional { color: #777b85; background: #ece9e4; }
.form-panel input, .form-panel textarea, .redeem-panel input { border-color: #d4d2c9; background: #fffdfa; color: #34415e; }
.form-panel input:focus, .form-panel textarea:focus, .redeem-panel input:focus { border-color: #8193b5; box-shadow: 0 0 0 3px #8299c333; }
.field-hint { color: #6e7890; }.form-panel .pin-option { border-color: #d8d5cb; background: #fffdf6; }.form-panel .pin-option:has(input:checked) { border-color: #8fa0ba; background: #e9ecf4; }.form-panel .pin-option input { accent-color: #6b82aa; }
.style-choice { margin: 27px 0 0; padding: 0; border: 0; }.style-choice legend { padding: 0; font-size: 13px; }.style-choice > p { margin: 3px 0 12px; color: #6e7890; font-size: 11px; }
.style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.form-panel .style-option { display: flex; flex-direction: column; gap: 7px; align-items: center; min-width: 0; margin: 0; padding: 8px 7px 7px; border: 1px solid #d8d5cb; border-radius: 10px; background: #fffdf7; cursor: pointer; text-align: center; }
.form-panel .style-option:has(input:checked) { border-color: #7589ab; box-shadow: 0 0 0 2px #8b9ec04d; background: #f0f1f6; }
.style-option input { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; clip-path: inset(50%); }
.style-option:focus-within { outline: 3px solid #e2b15e; outline-offset: 2px; }
.style-swatch { width: 100%; min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 4px; overflow: hidden; position: relative; font-family: var(--serif); }
.style-swatch::after { content: ""; position: absolute; right: 16%; top: 0; bottom: 0; border-left: 1px dashed currentColor; opacity: .4; }
.style-swatch i { font-size: 18px; font-style: normal; }.style-swatch b { font-size: 8px; letter-spacing: .1em; }
.style-name { color: #3e4f6e; font-size: 11px; line-height: 1.3; font-weight: 700; }
.swatch-starlight { background: linear-gradient(120deg,#455d88,#8297b8); color: #ffe8b5; }
.swatch-ceremony { background: linear-gradient(120deg,#e7d7c5,#fff9ed,#dbc2a5); color: #8b684e; }
.swatch-festival { background: linear-gradient(135deg,#f6c646 0 22%,#fff9ec 22% 75%,#f17870 75%); color: #167996; }
.swatch-retro { background: repeating-linear-gradient(90deg,#304d58 0 10px,#3f6269 10px 12px); color: #f8e4be; }
.swatch-mint { background: linear-gradient(110deg,#b5d6c9,#e7f1e3); color: #3e746f; }
.swatch-minimal { background: #f8f7f2; color: #30343c; border: 1px solid #bdbbb5; }
.primary-button { min-height: 53px; font-size: 15px; }.primary-button:disabled { opacity: .6; }
.preview-column { position: sticky; top: 25px; }.preview-label { margin: 1px 0 14px; color: #fff9ec; text-shadow: 0 1px 5px #30466b; }.preview-dot { background: #ffe4a9; }.preview-caption { color: #fff7e8; text-shadow: 0 1px 4px #30466b; }
.ticket-card { --ticket-bg: #fffaf0; --ticket-fg: #34415e; --ticket-accent: #6f85ad; --ticket-edge: #e4d8c6; --ticket-head: linear-gradient(125deg,#566d98,#8698ba); background: var(--ticket-bg); color: var(--ticket-fg); border-color: var(--ticket-edge); border-radius: 17px; box-shadow: 0 15px 31px #22375235; }
.ticket-card-top { background: var(--ticket-head); color: var(--ticket-head-fg,#fff9ea); height: 93px; font-family: var(--serif); font-weight: 600; }
.ticket-card-top::after { border-color: #fff8e787; box-shadow: 0 0 0 24px #fff9ed16; }
.ticket-flower { background: #fffaf1e8; color: var(--ticket-accent); font-family: var(--serif); font-size: 22px; }
.ticket-card-main { background: var(--ticket-main,transparent); min-height: 202px; }.ticket-mini { color: var(--ticket-accent); }.ticket-card-main h2, .ticket-card-main h3 { color: var(--ticket-fg); font-family: var(--serif); font-weight: 600; }.ticket-card-main p { color: var(--ticket-sub,#68738a); }
.ticket-divider { border-color: var(--ticket-edge); }.ticket-divider::before, .ticket-divider::after { background: #7d8ca7; border-color: var(--ticket-edge); }
.ticket-card-foot { background: var(--ticket-foot,transparent); }.ticket-card-foot small { color: var(--ticket-accent); }.ticket-card-foot strong { color: var(--ticket-fg); }
.ticket-card[data-style="ceremony"] { --ticket-bg: #fffbf4; --ticket-fg: #725c50; --ticket-accent: #a77a57; --ticket-edge: #dfcdbb; --ticket-head: linear-gradient(115deg,#d8bca4,#f7eee0 58%,#d8baa8); --ticket-head-fg: #735c4c; --ticket-sub: #86736b; }
.ticket-card[data-style="ceremony"] .ticket-card-top::after { width: 220px; border-color: #fff9ec; }
.ticket-card[data-style="festival"] { --ticket-bg: #fffdf5; --ticket-fg: #17607a; --ticket-accent: #ef715d; --ticket-edge: #f1cb5d; --ticket-head: linear-gradient(110deg,#f4c544 0 24%,#fff5de 24% 78%,#f1776d 78%); --ticket-head-fg: #17607a; --ticket-sub: #31768a; }
.ticket-card[data-style="festival"] .ticket-card-top { border-bottom: 7px solid #48a9b2; }.ticket-card[data-style="festival"] .ticket-flower { background: #f7c842; color: #e46f59; }.ticket-card[data-style="festival"] .ticket-card-main { background: radial-gradient(circle at 10% 26%,#f7c34a 0 5px,transparent 6px),radial-gradient(circle at 92% 66%,#79c6b7 0 7px,transparent 8px),radial-gradient(circle at 21% 85%,#ef837b 0 4px,transparent 5px); }
.ticket-card[data-style="retro"] { --ticket-bg: #f4ebd9; --ticket-fg: #263e47; --ticket-accent: #486770; --ticket-edge: #334d55; --ticket-head: repeating-linear-gradient(90deg,#2e4d55 0 16px,#395b62 16px 19px); --ticket-head-fg: #f9ead1; --ticket-sub: #4d6062; border-width: 2px; border-radius: 6px; }
.ticket-card[data-style="retro"] .ticket-flower { background: #f6e6c5; color: #34575a; }.ticket-card[data-style="retro"] .ticket-card-main { border: 7px double #6d8079; margin: 9px; min-height: 184px; }.ticket-card[data-style="retro"] .ticket-divider { border-top-style: dotted; }
.ticket-card[data-style="mint"] { --ticket-bg: #f5faf4; --ticket-fg: #3d6761; --ticket-accent: #5e9f91; --ticket-edge: #b3d2c9; --ticket-head: linear-gradient(120deg,#9ac9bd,#d5e7d9); --ticket-head-fg: #2b625c; --ticket-sub: #5e7970; }.ticket-card[data-style="mint"] .ticket-flower { background: #f1faed; }
.ticket-card[data-style="minimal"] { --ticket-bg: #fffdfa; --ticket-fg: #30343b; --ticket-accent: #606773; --ticket-edge: #aab0b5; --ticket-head: #f2f2ef; --ticket-head-fg: #30343b; --ticket-sub: #666a70; border-radius: 4px; box-shadow: 3px 5px 0 #2d3440; }.ticket-card[data-style="minimal"] .ticket-card-top { height: 72px; border-bottom: 1px solid #30343b; }.ticket-card[data-style="minimal"] .ticket-card-top::after { display: none; }.ticket-card[data-style="minimal"] .ticket-flower { background: transparent; border: 1px solid #30343b; color: #30343b; }.ticket-card[data-style="minimal"] .ticket-divider { border-color: #30343b; }
.result-section.shell { width: min(calc(100% - 64px), 1080px); padding: 0 0 80px; background: none; }.result-box { max-width: 720px; }.result-icon, .finish-icon, .panel-icon { background: #e9ecf4; color: #566f9b; }.url-row button { background: #405a86; }
.site-footer { border-top: 1px solid #fff3d68a; color: #fff6e8; }.site-footer .brand { color: #fff6e8; font-size: 15px; }.site-footer .brand-icon { width: 25px; height: 25px; font-size: 19px; }
.redeem-main { max-width: 560px; padding-top: 50px; }.redeem-heading h1 { color: #fffaf0; font-family: var(--serif); font-weight: 600; text-shadow: 0 2px 9px #30466a; }.redeem-heading p { color: #fff9ed; text-shadow: 0 1px 4px #2a4267; }
.full-ticket .ticket-divider::before, .full-ticket .ticket-divider::after { background: #7d8ca7; }.redeem-panel, .finished-panel { border-radius: 15px; }.panel-heading h2, .finished-panel h2 { font-family: var(--serif); color: #405273; }.slide-track { background: #e9ecf4; }.slide-track::before { background: #cbd8eb; }.slide-handle { background: #627da8; box-shadow: 0 3px 9px #435d8f50; }#slide-label { color: #435f8d; }.finished-panel a, .back-home { color: #fff6e7; }.finished-panel a { color: #4b6591; }.back-home { text-shadow: 0 1px 4px #2a4267; }
@media (max-width: 1100px) { .desktop-rail.rail-left { display: flex; } }
@media (max-width: 1000px) { .maker-grid { grid-template-columns: minmax(0, 1fr) minmax(285px, .8fr); } }
@media (min-width: 781px) and (max-width: 1050px) { .desktop-rail.rail-left { display: none; }.site-column { margin-left: 0; } }
@media (max-width: 780px) {
  body { background-attachment: scroll; background-size: auto 1100px; }
  .desktop-rail.rail-left { display: none; }.site-column { width: 100%; margin: 0; }
  .shell, .maker.shell, .result-section.shell { width: min(calc(100% - 30px), 560px); }
  .site-header { height: 78px; }.brand { font-size: 20px; }.brand-icon { width: 28px; height: 28px; font-size: 22px; }
  .hero { min-height: 0; flex-direction: column; gap: 0; padding: 38px 0 50px; text-align: center; }.hero-copy > p { margin: auto; }.hero h1 { font-size: clamp(39px, 10vw, 56px); }.hero-art { min-height: 275px; margin-top: 25px; width: 100%; }.sample-ticket { max-width: 370px; }
  .steps { padding: 0 9px; min-height: 101px; }.steps div { font-size: 10px; }.steps b { font-size: 10px; }
  .maker.shell { padding: 54px 0 65px; }.maker-grid { display: flex; flex-direction: column; gap: 28px; }.section-heading { text-align: center; }.section-heading h2 { font-size: 30px; }.form-panel { width: 100%; padding: 24px 20px; }.preview-column { position: static; }.style-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .result-section.shell { padding: 0 0 68px; }.site-footer { min-height: 72px; }.redeem-main { padding-top: 46px; }
}
@media (max-width: 410px) { .header-nav { gap: 7px; }.header-nav .nav-cta { padding: 8px 10px; font-size: 10px; }.brand { font-size: 17px; }.style-options { gap: 6px; }.style-name { font-size: 10px; }.style-swatch { min-height: 45px; }.form-panel { padding: 22px 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
