/* A warm desk and six handmade virtual card designs. */
@font-face { font-family: "Ticket Jun"; src: url('/assets/fonts/A-OTF-Jun201Pro-Regular.otf') format('opentype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Ticket Jun"; src: url('/assets/fonts/A-OTF-Jun34Pro-Medium.otf') format('opentype'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Ranobe POP"; src: url('/assets/fonts/RanobePOP.otf') format('opentype'); font-style: normal; font-weight: 400 900; font-display: swap; }
:root {
  --ink: #373737;
  --muted: #736e69;
  --teal: #d49a55;
  --teal-dark: #ad7740;
  --paper: #fffdfa;
  --mint: #f4eee5;
  --blush: #f4e9da;
  --line: #e2d8c9;
  --shadow: 0 13px 29px #725c4533;
  --site-font: "Ticket Jun", "Yu Gothic", Meiryo, sans-serif;
  --display-font: "Ranobe POP", "Ticket Jun", "Yu Gothic", sans-serif;
  --hand: "Ranobe POP", "Ticket Jun", "Yu Kyokasho", "UD Digi Kyokasho N-R", "Yu Gothic", sans-serif;
}
body {
  color: var(--ink);
  font-family: var(--site-font);
  font-synthesis: none;
  background: repeating-linear-gradient(0deg,#ffffff21 0 2px,#bcaa8f12 3px 5px,#ffffff18 6px 11px), linear-gradient(115deg,#f6f0e5,#e9ddcb 48%,#f4e9dc);
}
.desktop-rail.rail-left, .desktop-rail.rail-right { display: none !important; }
.site-column { width: min(100%, 1240px); margin: 0 auto; min-height: 100vh; background: transparent; }
.shell, .maker.shell, .result-section.shell { width: min(calc(100% - 64px), 1100px); }
.site-header { height: 84px; border-bottom: 1px solid #a88d6e55; }
.brand { color: #40504b; font-family: var(--hand); font-size: 24px; font-weight: 700; letter-spacing: .045em; text-shadow: none; }
.brand-icon { width: 34px; height: 34px; border: 1px solid #dfa789; border-radius: 9px; background: #fff7ef; color: #d98172; box-shadow: 2px 3px 0 #e8b797; font-size: 25px; }
.header-nav > a, .header-note { color: #5c5146; text-shadow: none; }
.header-nav > a:hover, .header-note:hover { color: #bd7657; }
.header-nav .nav-cta { color: #fffefa; border: 1px solid #c37f59; background: #cb8661; box-shadow: 0 3px 0 #a96b4b; }
.header-nav .nav-cta:hover { background: #b87451; color: #fffefa; }
.hero { min-height: 455px; padding: 38px 0 48px; gap: 40px; }
.eyebrow, .section-kicker { color: #aa7457; text-shadow: none; }
.hero h1, .redeem-heading h1 { color: #423c36; font-family: var(--hand); font-weight: 700; letter-spacing: .04em; text-shadow: none; }
.hero h1 em, .redeem-heading h1 em { color: #c7786d; }
.hero-copy > p { color: #62584f; text-shadow: none; font-size: 14px; }
.hero-link, .primary-button { background: #d38d6d; border: 1px solid #bd7858; color: #fffefa; box-shadow: 0 4px 0 #ae6d50, 0 11px 22px #805c4135; font-family: var(--hand); font-weight: 700; }
.hero-link:hover, .primary-button:hover { background: #be785b; }
.hero-art::before { background: #eed6b5a6; border: 1px solid #ddb996; border-radius: 48% 52% 54% 46%; }
.spark-one { background: #a9bfe1; }.spark-two { background: #ed9da0; }.spark-three { background: #eebf52; }
.sample-ticket { width: min(450px, 92%); height: 282px; padding: 21px 25px 20px; border: 9px solid #a8c6e7; border-radius: 12px; background: #fffcf7 url('/assets/paper-grain.webp') center / 450px 163px; box-shadow: 0 19px 34px #705d493e; transform: rotate(-5deg); }
.sample-ticket::before { display: none; }
.sample-ticket::after { content: ""; position: absolute; right: -9px; top: 41%; bottom: auto; width: 31px; height: 65px; display: grid; place-items: center; border: 0; border-radius: 18px 0 0 18px; background: #a8c6e7; color: #fff; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .16em; }
.sample-ticket-top, .sample-ticket-bottom { color: #6c86a3; }.sample-ticket-top span:first-child { color: #5c7898; font-family: var(--hand); }
.sample-ticket-center { gap: 3px; align-items: flex-start; text-align: left; padding-left: 12px; }.sample-ticket-center strong { color: #3c3c3c; font-family: var(--hand); font-size: 37px; font-weight: 700; transform: rotate(-3deg); }.sample-ticket-center small { color: #77736f; font-family: var(--hand); }
.sample-star { background: transparent; color: #e6939b; font-size: 29px; }.sample-ticket-bottom { border-color: #c7d2dd; }
.steps-band { background: none; }.steps { background: #fffaf2e8; border: 1px solid #e1d1bb; box-shadow: 0 5px 18px #745e4222; }.steps div { color: #62584f; }.steps b { color: #c87f69; }.steps i { color: #c5a879; }
.maker.shell { padding: 58px 0 72px; background: none; }.section-heading { text-align: left; }.section-heading h2 { color: #423c36; font-family: var(--hand); font-weight: 700; text-shadow: none; }.section-heading p { color: #73695d; text-shadow: none; }
.maker-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 38px; }
.form-panel, .redeem-panel, .finished-panel, .result-box { border: 1px solid #e0d1bd; border-radius: 18px; background: #fffdfa url('/assets/paper-grain.webp') center / 450px 163px; box-shadow: 0 8px 20px #745c4130; }
.form-panel { padding: 31px; }.form-panel label, .redeem-panel label, .pin-choice legend, .style-choice legend { color: #494642; }.required { color: #ab694e; background: #f9e9dd; }.optional { color: #81756c; background: #f1ede7; }
.form-panel input, .form-panel textarea, .form-panel select, .redeem-panel input { border-color: #ded5c9; border-radius: 10px; background: #fffdfa; color: #463f3b; }
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus, .redeem-panel input:focus { border-color: #d49b7d; box-shadow: 0 0 0 3px #e6ad8b45; }
.field-hint, .style-choice > p { color: #81766d; }.form-panel .pin-option { border-color: #ddd2c5; background: #fffaf5; }.form-panel .pin-option:has(input:checked) { border-color: #d39472; background: #f9ede3; }.form-panel .pin-option input { accent-color: #c78364; }
.style-choice { margin-top: 29px; }.style-options { gap: 10px; }.form-panel .style-option { padding: 9px 8px 7px; border-color: #ddd2c5; background: #fffaf4; }.form-panel .style-option:has(input:checked) { border-color: #c98264; background: #fff6ed; box-shadow: 0 0 0 2px #dea28769; }.style-option:focus-within { outline-color: #d38d6d; }
.style-swatch { min-height: 66px; border: 5px solid var(--swatch-frame,#a8c6e7); border-radius: 7px; background: #fffdfa; color: #555; box-shadow: 1px 2px 3px #7b6e5a2e; transform: rotate(-2deg); font-family: var(--hand); }
.style-swatch::before { display: none; }
.style-swatch::after { content: ""; right: -1px; top: 32%; bottom: auto; width: 10px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 5px 0 0 5px; background: var(--swatch-frame,#a8c6e7); color: #fff; opacity: 1; font: 6px sans-serif; writing-mode: vertical-rl; }
.style-swatch i { font-size: 22px; color: var(--swatch-frame,#a8c6e7); }.style-swatch b { font-size: 9px; color: #6d6660; }.style-name { color: #514b45; font-size: 11px; }
.swatch-starlight { --swatch-frame:#a8c6e7; }.swatch-ceremony { --swatch-frame:#d4afd8; transform: rotate(2deg); }.swatch-festival { --swatch-frame:#e8b746; }.swatch-retro { --swatch-frame:#eca796; transform: rotate(1deg); }.swatch-mint { --swatch-frame:#a9cfbd; }.swatch-minimal { --swatch-frame:#767775; border-width: 2px; transform: none; }
.customize-panel { margin-top: 26px; padding: 20px 17px; border: 1px dashed #d9be9f; border-radius: 13px; background: #fff9f0; }.customize-panel h3 { margin: 0; font-family: var(--hand); font-size: 17px; }.customize-panel > p { margin: 4px 0 16px; color: #807269; font-size: 11px; }.customize-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.form-panel .customize-panel label { display: block; margin: 0 0 7px; font-size: 12px; }.customize-panel select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #ded5c9; }.customize-panel input[type="color"] { width: 100%; height: 48px; padding: 5px; border: 1px solid #ded5c9; border-radius: 9px; cursor: pointer; }.sticker-row { margin-top: 18px; }.customize-panel input[type="file"] { width: 100%; min-height: 46px; padding: 9px; border: 1px dashed #cfb99e; border-radius: 9px; background: #fffdf8; font-size: 11px; }.customize-panel input[type="file"]::file-selector-button { margin-right: 10px; border: 0; border-radius: 6px; padding: 6px 9px; background: #ead1bb; color: #59493d; }.sticker-controls { display: flex; align-items: end; gap: 10px; margin-top: 11px; }.sticker-controls > div { flex: 1; }.sticker-controls button { min-height: 48px; padding: 0 12px; border: 1px solid #d8c5b2; border-radius: 8px; background: #fffdfa; color: #735c4d; font-size: 11px; }.sticker-status { margin: 6px 0 0; color: #8c7565; font-size: 10px; }
.preview-column { padding: 14px 13px 0; position: sticky; top: 20px; }.preview-label { color: #62574c; text-shadow: none; }.preview-dot { background: #dc9c77; }.preview-caption { color: #776b60; text-shadow: none; }
.ticket-card { --frame:#a8c6e7; --ticket-font:var(--hand); --ticket-bg:#fffdfa; --ticket-fg:#3d4146; --ticket-accent:#7da2c6; width: calc(100% - 20px); min-height: 277px; margin: 10px 10px 15px; display: flex; flex-direction: column; aspect-ratio: 1.48; padding: 14px 21px 12px; overflow: visible; border: 8px solid var(--frame); border-radius: 12px; background: var(--ticket-bg) url('/assets/paper-grain.webp') center / 450px 163px; color: var(--ticket-fg); box-shadow: 0 14px 21px #6b58453b, 2px 3px 0 #ad9e8999; transform: rotate(-2deg); }
.ticket-card::before { display: none; }
.ticket-card::after { content: ""; position: absolute; right: -8px; top: 40%; z-index: 2; width: 32px; height: 70px; display: grid; place-items: center; border-radius: 18px 0 0 18px; background: var(--frame); color: #fffdfa; font: 700 10px sans-serif; letter-spacing: .16em; writing-mode: vertical-rl; pointer-events: none; }
.ticket-card-top { height: 25px !important; min-height: 25px; padding: 0; overflow: visible; background: transparent !important; color: var(--ticket-accent) !important; font: 700 10px var(--ticket-font); letter-spacing: .08em; }
.ticket-card-top::after { display: none; }.ticket-card-top > span:first-child { position: relative; z-index: 1; }
.ticket-flower { position: absolute; top: 42px; right: 42px; width: auto; height: auto; border: 0; background: transparent !important; color: var(--ticket-accent) !important; font-family: var(--ticket-font); font-size: 34px; line-height: 1; }
.ticket-card-main { flex: 1; min-height: 0 !important; padding: 7px 16px; background: transparent !important; justify-content: center; }
.ticket-mini { color: var(--ticket-accent); font-family: var(--ticket-font); font-size: 10px; letter-spacing: .09em; font-weight: 700; }
.ticket-card-main h2, .ticket-card-main h3 { margin: 5px 0 8px; color: var(--ticket-fg); font: 700 clamp(26px,3.2vw,41px)/1.35 var(--ticket-font); letter-spacing: .035em; }
.ticket-card-main p { max-width: 78%; color: #6b665f; font: 400 11px/1.6 var(--ticket-font); }
.ticket-divider { display: none; }.ticket-card-foot { min-height: 43px; padding: 7px 3px 0; border-top: 1px dashed color-mix(in srgb,var(--frame),#777 25%); background: transparent !important; }.ticket-card-foot small { color: var(--ticket-accent); font-size: 8px; }.ticket-card-foot strong { color: var(--ticket-fg); font-size: 10px; }
.ticket-sticker { position: absolute; z-index: 4; left: var(--sticker-x,82%); top: var(--sticker-y,55%); width: 67px; height: 67px; object-fit: contain; padding: 3px; border: 5px solid #fffefa; border-radius: 12px; background: #fffefa; box-shadow: 2px 3px 6px #554c4144; transform: translate(-50%,-50%) rotate(8deg); }
.ticket-card[data-font="round"] { --ticket-font:"Hiragino Maru Gothic ProN","Yu Gothic",Meiryo,sans-serif; }.ticket-card[data-font="serif"] { --ticket-font:"Yu Mincho","Hiragino Mincho ProN",serif; }.ticket-card[data-font="sans"] { --ticket-font:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; }
.ticket-card[data-font="hand"] { --ticket-font:"Ticket Jun","Yu Gothic",sans-serif; }
.ticket-card[data-style="starlight"] { --frame:#a8c6e7; --ticket-accent:#6c97bc; --ticket-fg:#353b41; }.ticket-card[data-style="starlight"] .ticket-card-main { align-items:flex-start; text-align:left; }.ticket-card[data-style="starlight"] .ticket-card-main h2,.ticket-card[data-style="starlight"] .ticket-card-main h3 { transform:rotate(-3deg); font-size:clamp(30px,3.6vw,44px); }.ticket-card[data-style="starlight"] .ticket-flower { top: 47px; right: 50px; color:#e99da3!important; }
.ticket-card[data-style="ceremony"] { --frame:#d4afd8; --ticket-accent:#a678b2; --ticket-fg:#403b46; transform:rotate(2deg); }.ticket-card[data-style="ceremony"] .ticket-card-main { align-items:flex-start; text-align:left; padding-left:34px; }.ticket-card[data-style="ceremony"] .ticket-card-main h2,.ticket-card[data-style="ceremony"] .ticket-card-main h3 { font-size:clamp(30px,3.5vw,43px); }.ticket-card[data-style="ceremony"] .ticket-flower { top: 43px; right: 36px; font-size: 40px; }.ticket-card[data-style="ceremony"] .ticket-card-main p { max-width:88%; }
.ticket-card[data-style="festival"] { --frame:#e7b63f; --ticket-accent:#d89920; --ticket-fg:#4b4131; transform:rotate(-3deg); }.ticket-card[data-style="festival"] .ticket-card-main { align-items:flex-start; text-align:left; padding-left:25px; }.ticket-card[data-style="festival"] .ticket-card-main h2,.ticket-card[data-style="festival"] .ticket-card-main h3 { transform:rotate(-3deg); }.ticket-card[data-style="festival"] .ticket-flower { top: 50px; right: 35px; font-size: 38px; color:#e78877!important; }.ticket-card[data-style="festival"] .ticket-card-foot { border-top-style:dotted; }
.ticket-card[data-style="retro"] { --frame:#eca796; --ticket-accent:#d58470; --ticket-fg:#3f3a39; transform:rotate(2deg); }.ticket-card[data-style="retro"] .ticket-card-main h2,.ticket-card[data-style="retro"] .ticket-card-main h3 { border-bottom:2px solid #555; padding-bottom:7px; }.ticket-card[data-style="retro"] .ticket-flower { top: 39px; left:50%; right:auto; transform:translateX(-50%); color:#e3a626!important; font-size:42px; }.ticket-card[data-style="retro"] .ticket-card-main { padding-top:40px; }
.ticket-card[data-style="mint"] { --frame:#a9cfbd; --ticket-accent:#70a38f; --ticket-fg:#3a4b42; background-image:repeating-linear-gradient(0deg,transparent 0 26px,#a5bba51e 27px 28px),url('/assets/paper-grain.webp'); }.ticket-card[data-style="mint"] .ticket-card-main { align-items:flex-start; text-align:left; padding-left:25px; }.ticket-card[data-style="mint"] .ticket-card-main h2,.ticket-card[data-style="mint"] .ticket-card-main h3 { transform:rotate(-2deg); }.ticket-card[data-style="mint"] .ticket-flower { top:auto; bottom:54px; right:32px; }
.ticket-card[data-style="minimal"] { --frame:#707171; --ticket-accent:#646464; --ticket-fg:#262626; transform:none; border-width:2px; border-radius:4px; box-shadow:4px 5px 0 #4444; padding-left:25px; }.ticket-card[data-style="minimal"]::before { display:none; }.ticket-card[data-style="minimal"]::after { right:-2px; border-radius:0; }.ticket-card[data-style="minimal"] .ticket-card-main h2,.ticket-card[data-style="minimal"] .ticket-card-main h3 { font-size:clamp(26px,3vw,38px); letter-spacing:.08em; }.ticket-card[data-style="minimal"] .ticket-flower { font-size:27px; }
.full-ticket { min-height: 310px; margin: 12px 12px 18px; width: calc(100% - 24px); }.full-ticket .ticket-card-main { min-height: 0 !important; }.full-ticket .ticket-card-main h2 { font-size:clamp(28px,4vw,44px); }.full-ticket .ticket-card-foot { padding:7px 3px 0; }.full-ticket.is-finished { filter:saturate(.42); }.used-stamp { z-index:10; font-family:var(--hand); }
.result-section.shell { background:none; }.result-icon,.finish-icon,.panel-icon { background:#f8e5d6; color:#b87355; }.url-row button { background:#b87355; }.site-footer { color:#756b60; border-top:1px solid #b49a7d66; }.site-footer .brand { color:#40504b; }
.redeem-main { max-width:620px; }.redeem-heading h1 { color:#423c36; }.redeem-heading p { color:#776c61; text-shadow:none; }.redeem-panel,.finished-panel { margin-top:25px; }.panel-heading h2,.finished-panel h2 { color:#4b413a; }.slide-track { background:#f7e8dc; }.slide-track::before { background:#efc7a9; }.slide-handle { background:#c78662; box-shadow:0 3px 9px #8a674a50; }#slide-label { color:#976244; }.back-home { color:#8c6d5b; text-shadow:none; }.finished-panel a { color:#a9694d; }
@media(max-width:900px) { .maker-grid { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap:22px; }.form-panel { padding:24px; }.preview-column { padding:10px 0 0; } }
@media(max-width:780px) { .site-column { width:100%; }.shell,.maker.shell,.result-section.shell { width:min(calc(100% - 30px),560px); }.site-header { height:72px; }.brand { font-size:20px; }.hero { flex-direction:column; min-height:0; padding:37px 0 48px; gap:10px; text-align:center; }.hero-copy > p { margin:auto; }.hero h1 { font-size:clamp(40px,10vw,54px); }.hero-art { width:100%; min-height:300px; }.sample-ticket { max-width:375px; height:244px; }.sample-ticket-center strong { font-size:32px; }.steps { padding:0 9px; }.maker.shell { padding:55px 0 67px; }.section-heading { text-align:center; }.maker-grid { display:flex; flex-direction:column; gap:27px; }.form-panel { width:100%; padding:23px 19px; }.preview-column { width:100%; padding:0 10px; position:static; }.ticket-card { min-height:243px; }.ticket-card-main h2,.ticket-card-main h3 { font-size:30px; }.full-ticket { min-height:270px; }.redeem-main { padding-top:40px; } }
@media(max-width:420px) { .brand { font-size:17px; }.brand-icon { width:28px; height:28px; font-size:22px; }.header-nav .nav-cta { font-size:10px; padding:8px 9px; }.style-options { gap:6px; }.style-swatch { min-height:54px; }.style-swatch b { font-size:7px; }.style-name { font-size:10px; }.form-panel { padding:21px 16px; }.ticket-card { padding:10px 14px; border-width:6px; }.ticket-card-main { padding:5px 8px; }.ticket-card-main h2,.ticket-card-main h3 { font-size:27px!important; }.ticket-sticker { width:54px; height:54px; } }
.ticket-card-top { border: 0 !important; }
.ticket-card-main { border: 0; margin: 0; }
.ticket-card[data-style="retro"] .ticket-card-main { margin: 4px; border: 2px solid color-mix(in srgb,var(--frame),#8b6b62 20%); }

/* Optional decorations stay out of the main issuing flow. */
.customize-panel { padding: 0; overflow: hidden; }
.customize-panel summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 17px; list-style: none; cursor: pointer; }
.customize-panel summary::-webkit-details-marker { display: none; }
.customize-panel summary strong { display: block; color: #55463b; font: 700 14px var(--hand); }
.customize-panel summary small { display: block; margin-top: 3px; color: #887569; font-size: 10px; font-weight: 400; }
.customize-panel summary:focus-visible { outline: 3px solid #d38d6d; outline-offset: -3px; }
.customize-arrow { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 1px solid #dcbda3; border-radius: 50%; color: #a77559; font-size: 18px; line-height: 1; transition: transform .2s; }
.customize-panel[open] .customize-arrow { transform: rotate(45deg); }
.customize-panel[open] summary { border-bottom: 1px dashed #dec5ab; }
.customize-content { padding: 18px 17px 20px; }
.customize-content > p { margin: 0 0 16px; color: #807269; font-size: 11px; }
.sticker-controls { align-items: center; flex-wrap: wrap; }
.sticker-controls p { flex-basis: 100%; margin: 0; color: #806c5c; font-size: 11px; }
.sticker-controls button { min-height: 36px; }
.emoji-section, .extra-comment-row { margin-top: 21px; padding-top: 18px; border-top: 1px dashed #dcc4ab; }
.option-label { display: block; margin-bottom: 9px; color: #494642; font-size: 12px; font-weight: 700; }
.option-label small { margin-left: 5px; color: #958478; font-size: 10px; font-weight: 400; }
.emoji-picker { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
.emoji-picker button { min-height: 41px; padding: 4px; border: 1px solid #e3d5c7; border-radius: 8px; background: #fffdf9; font-size: 20px; }
.emoji-picker button:hover, .emoji-picker button:focus-visible { border-color: #cc9474; background: #fff2e8; }
.emoji-custom { display: flex; align-items: end; gap: 7px; margin-top: 11px; }
.emoji-custom label { width: 86px; flex: none; }
.emoji-custom input { width: 100%; min-width: 0; min-height: 40px; padding: 8px; font-size: 16px; }
.emoji-custom button { min-height: 40px; flex: none; padding: 0 12px; border: 1px solid #d0b8a2; border-radius: 8px; background: #fffdf9; color: #6f5443; font-size: 11px; }
.option-hint { margin: 7px 0 0; color: #8b7a6f; font-size: 10px; line-height: 1.6; }
.emoji-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.emoji-list button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 3px 8px; border: 1px solid #dbc6b4; border-radius: 999px; background: #fffdfa; color: #706057; font-size: 12px; }
.serial-option { display: flex !important; align-items: center; gap: 10px; margin-top: 20px !important; padding-top: 18px; border-top: 1px dashed #dcc4ab; cursor: pointer; }
.form-panel .serial-option input { width: 19px; min-width: 19px; height: 19px; min-height: 19px; margin: 0; padding: 0; border: 0; accent-color: #c78364; }
.serial-option strong, .serial-option small { display: block; }.serial-option strong { color: #494642; font-size: 12px; }.serial-option small { margin-top: 2px; color: #88786c; font-size: 10px; font-weight: 400; }
.extra-comment-row textarea { width: 100%; min-height: 70px; padding: 10px 12px; font-size: 13px; resize: vertical; }
.ticket-serial { position: absolute; top: 14px; right: 21px; z-index: 2; color: var(--ticket-accent); font: 700 9px/1.2 var(--ticket-font); letter-spacing: .07em; }
.ticket-card-main .ticket-extra-comment { max-width: 85%; margin-top: 7px; padding: 4px 8px; border-left: 2px solid var(--frame); border-radius: 2px 6px 6px 2px; background: #fff1dccc; color: #705f4e; font: 400 10px/1.5 var(--ticket-font); }
.ticket-card .ticket-sticker { right: auto; bottom: auto; left: var(--sticker-x,82%); top: var(--sticker-y,55%); transform: translate(-50%,-50%) rotate(8deg); }
.preview-ticket .ticket-sticker { cursor: grab; touch-action: none; user-select: none; }
.preview-ticket .ticket-sticker:active, .preview-ticket .ticket-emoji:active { cursor: grabbing; }
.preview-ticket .ticket-sticker:focus-visible, .preview-ticket .ticket-emoji:focus-visible { outline: 3px solid #a86c4d; outline-offset: 4px; }
.preview-jump { display: inline-flex; margin-top: 17px; color: #aa684b; font-size: 11px; font-weight: 700; }
.preview-jump:hover { text-decoration: underline; }
.ticket-emoji-layer { position: absolute; inset: 0; pointer-events: none; }
.ticket-emoji { position: absolute; left: var(--emoji-x,50%); top: var(--emoji-y,50%); z-index: 5; transform: translate(-50%,-50%) rotate(-8deg); font-size: 30px; line-height: 1; filter: drop-shadow(1px 2px 1px #52443955); pointer-events: none; }
.preview-ticket .ticket-emoji { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; }
@media(max-width:420px) { .ticket-card-main .ticket-extra-comment { font-size: 9px; }.ticket-emoji { font-size: 26px; }.ticket-serial { right: 13px; top: 10px; font-size: 8px; }.emoji-custom label { width: 70px; } }

/* The first screen tells the story through one illustration. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero.shell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 0; padding: 32px 0 54px; text-align: center; }
.hero-story { display: block; width: min(100%, 1000px); overflow: hidden; border: 6px solid #fffaf2; border-radius: 25px; background: #fff8ef; box-shadow: 0 18px 35px #80624833, 0 3px 0 #cdb69a; }
.hero-story img { display: block; width: 100%; height: auto; }
.hero .hero-link { position: relative; z-index: 1; min-width: 210px; min-height: 53px; margin-top: -25px; font-size: 14px; }
@media(max-width:620px) {
  .hero.shell { padding: 22px 0 42px; }
  .hero-story { border-width: 4px; border-radius: 19px; }
  .hero .hero-link { min-height: 48px; margin-top: -18px; font-size: 13px; }
}

/* A ticket silhouette is the site mark in the header and footer. */
.brand-icon { width: 38px; height: 38px; flex: none; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 0; }
.brand-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-footer .brand-icon { width: 27px; height: 27px; }
@media(max-width:420px) { .brand-icon { width: 31px; height: 31px; } }

/* The two Jun weights separate supporting text from headings and ticket lettering. */
.brand, .section-heading h2, .redeem-heading h1, .panel-heading h2, .finished-panel h2, .result-content h2 { font-family: var(--display-font); }
.eyebrow, .section-kicker, .steps b, .ticket-card-foot small, select { font-family: var(--site-font); }
.header-nav, .header-note, .steps span, .form-panel label, .redeem-panel label, .pin-choice legend, .style-choice legend, .style-name, .hero-link, .primary-button { font-family: var(--site-font); }

/* Alternating paper corners keep a few key surfaces from feeling uniformly round. */
.hero-story { border-radius: 5px 30px 5px 30px; }
.steps { border-radius: 20px 4px 20px 4px; }
.form-panel, .redeem-panel, .finished-panel, .result-box { border-radius: 5px 25px 5px 25px; }
.customize-panel { border-radius: 4px 17px 4px 17px; }
.hero-link, .primary-button, .header-nav .nav-cta { border-radius: 6px 19px 6px 19px; }
@media(max-width:620px) { .hero-story { border-radius: 4px 22px 4px 22px; } }

/* A calmer canvas lets the illustrated story and the ticket carry the emotion. */
body { background: radial-gradient(circle at 8% 2%,#fffaf2 0,transparent 32%), radial-gradient(circle at 92% 34%,#f4e9dc 0,transparent 32%), #f6f1e9; }
.site-header { border-bottom-color: #d6c9b8; }
.hero-story { border-color: #fffdfa; box-shadow: 0 20px 48px #6c534128, 0 3px 0 #d0bda6; }
.hero-link, .primary-button { box-shadow: 0 5px 16px #9b60413d; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.hero-link:hover, .primary-button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px #9b604147; }
.steps { background: #fffdf9; border-color: #e8ddcf; box-shadow: 0 9px 25px #66513b12; }
.form-panel, .redeem-panel, .finished-panel, .result-box { background: #fffdfa; border-color: #e9e0d5; box-shadow: 0 18px 45px #66513b13; }
.section-heading h2 { letter-spacing: .025em; }
.section-heading p { line-height: 1.8; }
.preview-column { top: 28px; }
.ticket-label-option { margin-top: 21px; padding-top: 19px; border-top: 1px dashed #dcc4ab; }
.ticket-label-option > label { display: block; margin-bottom: 8px !important; }
.custom-labels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 13px; }
.custom-labels[hidden] { display: none; }
.custom-labels label { font-size: 11px !important; }
.custom-labels input { width: 100%; min-width: 0; min-height: 45px; padding: 9px 11px; }
.ticket-card-foot { min-height: 49px; }
.ticket-card-foot small { display: block; overflow-wrap: anywhere; line-height: 1.3; font-size: 10px; }
.ticket-card-foot strong { font-size: 12px; }
@media(max-width:420px) { .custom-labels { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { .hero-link, .primary-button { transition: none; } }

/* Several one-use cards can travel together under one shared link. */
.ticket-quantity-option { margin-top: 21px; padding-top: 19px; border-top: 1px dashed #dcc4ab; }
.ticket-quantity-option > label { display: block; margin-bottom: 8px !important; }
.quantity-field { display: flex; align-items: center; gap: 12px; }
.quantity-field input { width: 88px; min-width: 88px; min-height: 47px; padding: 10px 12px; text-align: center; }
.quantity-field span { color: #756a60; font-size: 11px; line-height: 1.5; }
.ticket-quantity-option .option-hint { margin-top: 8px; }
.ticket-quantity { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border: 1px solid color-mix(in srgb,var(--frame),#fff 35%); border-radius: 999px; background: #fffdf9ed; color: var(--ticket-accent); font: 700 10px/1.2 var(--ticket-font); letter-spacing: .05em; white-space: nowrap; }
.ticket-copies { margin: 26px 0 18px; }
.ticket-copies-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.ticket-copies-heading h2 { margin: 0; color: #4b413a; font: 700 18px var(--display-font); }
.ticket-copies-heading span { color: #a66e52; font-size: 12px; font-weight: 700; }
.ticket-copy-list { display: grid; gap: 8px; }
.ticket-copy-button { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid #e1d8cc; border-radius: 6px 18px 6px 18px; background: #fffdfa; color: #493f39; font: 700 14px var(--site-font); text-align: left; box-shadow: 0 5px 12px #67534410; cursor: pointer; }
.ticket-copy-button:hover { border-color: #c99476; background: #fff8f1; }
.ticket-copy-button:focus-visible { outline: 3px solid #d38d6d; outline-offset: 2px; }
.ticket-copy-button[aria-pressed="true"] { border-color: #c88b6e; box-shadow: 0 0 0 2px #e9c8b8; }
.ticket-copy-button[data-status="used"], .ticket-copy-button[data-status="expired"] { background: #f6f3ef; color: #82776c; }
.ticket-copy-button[data-status="used"] .copy-status, .ticket-copy-button[data-status="expired"] .copy-status { color: #81766c; }
.copy-index { min-width: 55px; }
.copy-status { margin-left: auto; color: #a56d51; font-size: 12px; }
.ticket-copy-button:has(.copy-status):not([aria-pressed="true"]) .copy-arrow { color: #b99c86; }
.copy-arrow { color: #aa7257; font-size: 18px; }
@media(max-width:420px) { .ticket-quantity { top: 8px; font-size: 9px; }.ticket-copy-button { min-height: 57px; padding: 10px 13px; } }

/* The exported Photoshop lockup is used without recreating its lettering. */
.brand { min-width: 0; }
.brand-logo { display: block; width: auto; height: 42px; max-width: 100%; object-fit: contain; }
.site-footer .brand-logo { height: 30px; }
@media(max-width:780px) { .brand-logo { height: 32px; } .site-footer .brand-logo { height: 25px; } }
@media(max-width:420px) { .brand-logo { height: 26px; } .site-footer .brand-logo { height: 22px; } }

/* Rare per-field lettering controls live inside the existing options panel. */
.text-layout-panel { margin-top: 20px; border: 1px solid #e5d8c8; border-radius: 5px 13px 5px 13px; background: #fffdfa; }
.customize-panel .text-layout-panel > summary { min-height: 54px; padding: 10px 13px; }
.customize-panel .text-layout-panel > summary strong { font-size: 12px; }
.customize-panel .text-layout-panel > summary > span:last-child { color: #a77559; font-size: 20px; transition: transform .2s; }
.text-layout-panel[open] > summary > span:last-child { transform: rotate(45deg); }
.text-layout-fields { padding: 13px; }
.text-layout-fields > p { margin: 0 0 12px; color: #887569; font-size: 11px; line-height: 1.6; }
.text-layout-field { padding: 12px 0; border-top: 1px dashed #e5d8c8; }
.text-layout-field > strong { display: block; margin-bottom: 8px; color: #51463f; font-size: 12px; }
.form-panel .text-layout-field label { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 4px 8px; margin: 7px 0; color: #6e6056; font-size: 11px; }
.text-layout-field output { justify-self: end; color: #a87556; font-variant-numeric: tabular-nums; }
.form-panel .text-layout-field input[type="range"] { grid-column: 1 / -1; width: 100%; min-height: 24px; height: 24px; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: #c7805d; cursor: pointer; }
#reset-text-layout { width: 100%; min-height: 38px; margin-top: 9px; border: 1px solid #d8c4b3; border-radius: 7px; background: #fff8f0; color: #775a48; font: 700 11px var(--site-font); cursor: pointer; }
#reset-text-layout:hover { background: #fbeadd; }
.ticket-card [data-text-field] { position: relative; z-index: 3; }

/* Ticket punches replace the larger rounded corners and the decorative side tab. */
.ticket-card {
  border-radius: 5px;
  box-shadow: none;
  filter: drop-shadow(0 10px 13px #6b58453b);
  -webkit-mask-image: radial-gradient(circle 12px at 0 82%, transparent 98%, #000 100%), radial-gradient(circle 12px at 100% 82%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 12px at 0 82%, transparent 98%, #000 100%), radial-gradient(circle 12px at 100% 82%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ticket-card::after { display: none; }
.form-panel {
  border-radius: 3px;
  box-shadow: none;
  filter: drop-shadow(0 12px 25px #66513b19);
  -webkit-mask-image: radial-gradient(circle 15px at 0 0, transparent 98%, #000 100%), radial-gradient(circle 15px at 100% 100%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 15px at 0 0, transparent 98%, #000 100%), radial-gradient(circle 15px at 100% 100%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-story {
  border-radius: 3px;
  box-shadow: none;
  filter: drop-shadow(0 12px 24px #6c534128);
  -webkit-mask-image: radial-gradient(circle 16px at 100% 0, transparent 98%, #000 100%), radial-gradient(circle 16px at 0 100%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 16px at 100% 0, transparent 98%, #000 100%), radial-gradient(circle 16px at 0 100%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Cyan from the original logo, with a warm paper sheet like the supplied reference. */
:root { --teal: #009fc8; --teal-dark: #087d9f; --ink: #203e47; }
body, .site-column { background: #00ccff; }
.site-header.shell, .site-footer.shell { width: 100%; max-width: none; padding-inline: max(30px, calc((100% - 1100px) / 2)); background: #0799c1; }
.site-header { border-bottom: 1px solid #ffffff70; }
.header-nav > a, .header-note { color: #fff; }
.header-nav > a:hover, .header-note:hover { color: #fff0af; }
.header-nav .nav-cta { border-color: #ffe6a0; background: #fff4c8; color: #155064; box-shadow: none; }
.header-nav .nav-cta:hover { background: #ffe68e; color: #15485b; }
.hero-link, .primary-button { border-color: #f5d67d; background: #ffe695; color: #174958; box-shadow: 0 5px 14px #0c6f9633; }
.hero-link:hover, .primary-button:hover { background: #ffdc73; color: #174958; }
.steps-band { background: #00ccff; }
.steps { background: #fffaf0; border-color: #fff4d8; }
.steps b, .section-kicker, .preview-dot { color: #078db5; }
.preview-dot { background: #078db5; }
.maker.shell, .result-section.shell { background: #fffaf0; }
.maker.shell { padding-inline: 34px; border-radius: 5px 30px 5px 30px; }
.result-section.shell { padding: 18px 34px 65px; }
.form-panel, .redeem-panel, .finished-panel, .result-box { background-color: #fffdf8; }
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus, .redeem-panel input:focus { border-color: #00a8d3; box-shadow: 0 0 0 3px #00ccff33; }
.form-panel .style-option:has(input:checked) { border-color: #00a8d3; background: #e8faff; box-shadow: 0 0 0 2px #00ccff55; }
.customize-arrow { border-color: #84d4e8; color: #078db5; }
.form-panel .text-layout-field input[type="range"] { accent-color: #009fc8; }
.redeem-heading h1 em { color: #078db5; }
.preview-label { color: #12617b; }
.ticket-card[data-style="starlight"] { --frame: #00bde8; --ticket-accent: #078db5; }
.swatch-starlight { --swatch-frame: #00bde8; }
.result-icon, .finish-icon, .panel-icon { background: #d8f7ff; color: #078db5; }
.url-row button, .slide-handle { background: #078db5; color: #fff; }
.slide-track { background: #dff5f9; }
#slide-label { color: #166a84; }
.redeem-main.shell { margin-top: 30px; margin-bottom: 32px; padding: 40px 30px 60px; border-radius: 5px 28px 5px 28px; background: #fffaf0; }
.site-footer { border-top-color: #ffffff66; color: #fff; }
.site-footer .brand { color: #fff; }
@media(max-width:780px) {
  .site-header.shell, .site-footer.shell { padding-inline: 15px; }
  .maker.shell { padding-inline: 12px; }
  .result-section.shell { padding-inline: 16px; }
  .redeem-main.shell { padding: 28px 16px 46px; }
}

/* Both yellow actions are one-piece tickets with a detachable arrow stub. */
.hero-link, .primary-button {
  --action-stub: 46px;
  position: relative;
  justify-content: center;
  gap: 0;
  padding-left: 14px;
  padding-right: calc(var(--action-stub) + 4px);
  border-radius: 4px;
  box-shadow: none;
  filter: drop-shadow(0 5px 8px #086a8b35);
  -webkit-mask-image: radial-gradient(circle 8px at calc(100% - var(--action-stub)) 0, transparent 98%, #000 100%), radial-gradient(circle 8px at calc(100% - var(--action-stub)) 100%, transparent 98%, #000 100%);
  mask-image: radial-gradient(circle 8px at calc(100% - var(--action-stub)) 0, transparent 98%, #000 100%), radial-gradient(circle 8px at calc(100% - var(--action-stub)) 100%, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-link::after, .primary-button::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: var(--action-stub);
  border-left: 2px dashed #a37a38a8;
  pointer-events: none;
}
.hero-link:hover, .primary-button:hover { box-shadow: none; filter: drop-shadow(0 8px 12px #086a8b40); }
.hero-link:focus-visible, .primary-button:focus-visible { outline: 3px solid #075d78; outline-offset: 4px; }
.hero .hero-link { width: 218px; min-height: 72px; }
.primary-button { width: min(100%, 270px); min-height: 78px; margin-inline: auto; }

/* Selected faces are bundled so shared tickets keep their lettering. */
@font-face { font-family: "Ticket Source Han Sans"; src: url('/assets/fonts/SourceHanSans-Bold.otf') format('opentype'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Ticket DF Marumoji"; src: url('/assets/fonts/DFMarumoji-W3.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Ticket Yosugara Pen"; src: url('/assets/fonts/YosugaraPen.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Ticket Midashi Min"; src: url('/assets/fonts/MidashiMinPro-MA31.otf') format('opentype'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Ticket Rakuin Gyosho"; src: url('/assets/fonts/RakuinGyosho.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; unicode-range: U+3040-30FF; }
@font-face { font-family: "Ticket FA Gyosho"; src: url('/assets/fonts/FAZuHitsuGyosho.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Ticket Kureyon"; src: local("くれよん"), url('/assets/fonts/Kureyon.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
.ticket-card[data-font="gothic"] { --ticket-font: "Ticket Source Han Sans", "Yu Gothic", sans-serif; }
.ticket-card[data-font="maru"] { --ticket-font: "Ticket DF Marumoji", "Yu Gothic", sans-serif; }
.ticket-card[data-font="ballpen"] { --ticket-font: "Ticket Yosugara Pen", "Ticket DF Marumoji", "Yu Gothic", sans-serif; }
.ticket-card[data-font="midashi"] { --ticket-font: "Ticket Midashi Min", "Yu Mincho", serif; }
.ticket-card[data-font="hige"] { --ticket-font: "Ticket Rakuin Gyosho", "Ticket FA Gyosho", "Yu Mincho", serif; }
.ticket-card[data-font="crayon"] { --ticket-font: "Ticket Kureyon", "Ranobe POP", "Yu Gothic", sans-serif; }


