:root {
  --paper: #f7f4ed;
  --ink: #392e4d;
  --muted: #736b7f;
  --lavender: #c5b1ec;
  --purple: #7050a0;
  --coral: #ffa08a;
  --yellow: #ffe89a;
  --green: #d7e9d5;
  --line: #ddd7e2;
  --sans: 'DM Sans', system-ui, sans-serif;
  --display: 'Fredoka', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; scroll-padding-bottom: 155px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); -webkit-tap-highlight-color: transparent; }
body[data-screen='puzzle'], body[data-screen='finale'] { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
button, input { font: inherit; }
button { cursor: pointer; }
button, input, summary { touch-action: manipulation; }
button:focus-visible, input:focus-visible, summary:focus-visible, code:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
button { color: inherit; }
h1, h2, p, figure { margin: 0; }
h1:focus { outline: none; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.party-background { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 100% 50%, #e9e0f33d, transparent 50%), radial-gradient(ellipse at 0% 80%, #f4d8bd24, transparent 40%); }
.site-header { width: min(1140px, calc(100% - 96px)); margin: 0 auto; min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #ded7df; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; background: none; text-align: left; font-weight: 800; font-size: 19px; line-height: 1.3; }
.brand-flower { color: var(--purple); font-size: 48px; font-weight: 400; line-height: 1; }
.brand-sub { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 2.4px; font-weight: 650; }
.edition { display: flex; align-items: center; gap: 8px; color: #71627e; font-size: 10px; font-weight: 750; letter-spacing: 1.55px; }
.edition > span { color: var(--purple); font-size: 20px; }
.screen { animation: arrive .45s ease both; }
.screen.leaving { animation: leave .16s ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.7; }
.small-star { font-size: 21px; color: var(--purple); }
.home { max-width: 1100px; margin: 0 auto; padding: 55px 0 24px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px 60px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin: 18px 0 26px; font-family: var(--display); font-size: clamp(58px, 5.6vw, 82px); line-height: 1.03; letter-spacing: -1.4px; font-weight: 500; }
.highlight { color: var(--purple); display: inline-block; position: relative; }
.highlight svg { position: absolute; width: 100%; height: 20px; bottom: -15px; left: 0; fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; }
.hero-description { font-size: 15px; line-height: 1.9; color: #716779; margin: 32px 0 25px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; min-height: 54px; border: 2px solid var(--ink); border-radius: 12px; padding: 13px 23px; font-size: 14px; font-weight: 750; line-height: 1.4; background: var(--lavender); box-shadow: 3px 4px 0 var(--ink); transition: background .15s, transform .15s, box-shadow .15s; }
.primary-button > span[aria-hidden] { font-size: 22px; line-height: 1; }
.primary-button:hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--ink); background: #d0bff1; }
.primary-button:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.hero-note { margin: 16px 0 0; font-size: 11px; color: var(--muted); }
.hero-art { position: relative; width: 100%; padding: 38px 0 25px; background: #e8ddf3; border: 2px solid var(--ink); border-radius: 48% 48% 28px 28px; transform: rotate(3deg); box-shadow: 7px 8px 0 #ddd3e4; }
.scene { display: block; width: 100%; height: auto; }
.hero-art > .scene { transform: rotate(-3deg); }
.art-sticker { position: absolute; z-index: 1; padding: 13px 24px; font-size: 14px; line-height: 1.3; background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-12deg); }
.art-sticker strong { font-family: var(--display); font-size: 24px; font-weight: 500; }
.sticker-top { top: 7px; left: -23px; }
.age-sticker { position: absolute; right: -15px; bottom: 54px; width: 108px; height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--ink); outline: 5px solid var(--paper); background: var(--coral); transform: rotate(10deg); box-shadow: 2px 4px 0 var(--ink); }
.age-sticker strong { font-family: var(--display); font-size: 59px; font-weight: 500; line-height: 1; }
.age-sticker > span { font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.handwritten { font-family: var(--display); font-weight: 400; font-size: 18px; }
.art-bottom { display: block; text-align: center; padding: 0 15px 2px; transform: rotate(-3deg); }
.adventure-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adventure-strip > div { display: flex; align-items: center; gap: 14px; justify-content: center; }
.adventure-strip > div + div { border-left: 1px solid var(--line); }
.strip-icon { flex: 0 0 41px; height: 41px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 11px; font: 500 27px/1 var(--display); transform: rotate(-7deg); }
.lavender { background: var(--lavender); }.yellow { background: var(--yellow); }.coral { background: var(--coral); }
.adventure-strip p { display: flex; flex-direction: column; }
.adventure-strip strong { font-size: 13px; font-weight: 750; }
.adventure-strip p > span { font-size: 11px; color: var(--muted); }
.home-signoff { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--muted); margin-top: -15px; }
.home-signoff > span[aria-hidden] { color: #b35c5e; padding: 0 3px; }

.puzzle { width: min(1140px, calc(100% - 96px)); margin: 0 auto; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 78px; }
.back-button { border: 0; background: none; display: flex; align-items: center; gap: 9px; font-size: 12px; min-height: 44px; padding: 0 3px; color: var(--muted); }
.back-button:hover { color: var(--purple); }
.progress { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--muted); }
.progress strong { color: var(--ink); }
.progress-dots { display: inline-flex; gap: 5px; }
.progress-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ddd5e6; }
.progress-dots i.active { background: var(--purple); outline: 3px solid #e7dff0; }
.progress-dots i.done { background: #8baf97; }
.puzzle-card { display: grid; grid-template-columns: .95fr 1.15fr; background: #fffdf8; border: 1.5px solid var(--ink); border-radius: 24px; box-shadow: 5px 6px 0 #dfd5e7; overflow: hidden; }
.puzzle-art-panel { padding: 26px 26px 33px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; border-right: 1.5px solid var(--ink); position: relative; }
.tone-sand { background: #f2e4bf; }.tone-blue { background: #d9edf0; }.tone-lilac { background: #e3d9f0; }.tone-peach { background: #f6decc; }
.art-label { display: flex; align-items: center; gap: 11px; font-size: 10px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; width: 100%; }
.art-label > span:last-child { margin-left: auto; font-size: 24px; }
.art-number { height: 33px; width: 33px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 11px; letter-spacing: 0; background: #fffaf07d; }
.puzzle-art-panel .scene { max-width: 480px; flex: 1; min-height: 200px; }
.art-caption { font: 400 clamp(20px, 2.2vw, 27px)/1.3 var(--display); text-align: center; }
.art-footnote { font-size: 8px; letter-spacing: 1.7px; font-weight: 650; margin-top: 10px; opacity: .7; }
.puzzle-body { padding: 38px 39px 30px; align-self: center; min-width: 0; }
.puzzle-body > .eyebrow { color: var(--purple); font-size: 9px; letter-spacing: 1.2px; margin-bottom: 16px; }
.puzzle-body h1 { font: 500 clamp(24px, 2.45vw, 32px)/1.25 var(--display); letter-spacing: -.2px; }
.instruction { display: flex; gap: 12px; align-items: flex-start; margin: 21px 0 25px; padding: 13px 15px; border-radius: 9px; background: #f0eaf6; font-size: 13px; line-height: 1.6; }
.instruction > span:first-child { font-size: 22px; color: var(--purple); line-height: 1; padding-top: 1px; }
.answer-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 12px; font-weight: 750; margin-bottom: 9px; }
.answer-label > span { font-size: 10px; font-weight: 500; color: var(--muted); }
.answer-row { display: flex; align-items: stretch; gap: 14px; }
.letter-input { width: 64px; height: 60px; flex: 0 0 64px; min-width: 0; padding: 0; border: 2px solid var(--ink); border-radius: 11px; background: #fffdf8; color: var(--ink); font: 500 34px/1 ui-monospace, 'Cascadia Code', 'Courier New', monospace; text-align: center; caret-color: var(--purple); }
.letter-input::placeholder { color: #c7bfd2; font: 400 28px var(--display); }
.letter-input[aria-invalid='true'] { border-color: #b14e4a; background: #fff4ef; }
.letter-input.correct { background: var(--green); border-color: #537e5e; color: #285737; }
.answer-row .primary-button { flex: 1; gap: 14px; padding: 10px 16px; font-size: 13px; }
.input-tip { font-size: 10px; color: var(--muted); margin-top: 12px; }
.feedback { margin-top: 13px; font-size: 12px; line-height: 1.7; }
.feedback:empty { display: none; }
.feedback.is-error { color: #9d3e3b; }
.feedback.is-success { background: #ecf5e9; color: #356343; padding: 12px 14px; border-radius: 9px; }
.feedback strong, .feedback span { display: block; }
.answer-result { animation: arrive .35s ease both; scroll-margin-block: 24px calc(150px + env(safe-area-inset-bottom, 0px)); }
.answer-result > .feedback { margin-top: 0; }
.fun-fact { margin-top: 16px; padding: 19px 21px; border: 1.5px solid #dfc77c; border-radius: 13px; background: #fff4cd; }
.fun-fact h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--purple); font: 500 24px/1.3 var(--display); }
.fun-fact h2:focus { outline: none; }
.fun-fact h2 > span { font-size: 22px; }
.fun-fact p { font-size: 14px; line-height: 1.8; }
.continue-button { width: 100%; margin-top: 19px; }
.hint { margin-top: 18px; font-size: 12px; color: #756285; }
.hint summary { cursor: pointer; width: fit-content; min-height: 36px; list-style: none; display: flex; align-items: center; gap: 7px; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary::after { content: '+'; margin-left: 3px; }
.hint[open] summary::after { content: '−'; }
.hint summary > span { font-size: 20px; }
.hint p { background: #faf4e5; border-radius: 9px; padding: 12px 14px; color: var(--ink); }
.puzzle-note { text-align: center; color: var(--muted); font-size: 11px; margin: 24px 0; }
.puzzle-note > span { color: var(--purple); margin-right: 5px; }

.code-rail { position: fixed; bottom: 0; left: 0; right: 0; padding: 22px 30px calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 15; background: #fffcf8f7; border-top: 1px solid #d6ccdf; box-shadow: 0 -5px 25px #392e4d06; backdrop-filter: blur(12px); }
.code-rail-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.collection-label { display: flex; gap: 12px; align-items: center; }
.collection-icon { color: var(--purple); font-size: 32px; }
.collection-label strong { display: block; font-size: 13px; }
.collection-label div > span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.code-visual { display: flex; align-items: center; gap: 9px; }
.code-group { display: flex; gap: 7px; }
.code-slot { width: 40px; height: 47px; display: grid; place-items: center; border: 1.5px dashed #cfc3da; border-radius: 8px; color: #9788a6; background: #f5f1f8; font: 600 24px/1 ui-monospace, 'Cascadia Code', 'Courier New', monospace; }
.slot-dot { font-size: 24px; font-weight: 400; }
.code-slot.current { border: 1.5px solid var(--purple); background: #eee5fc; box-shadow: 0 0 0 3px #eee5fc; }
.code-slot.collected { border: 1.5px solid var(--ink); background: var(--lavender); color: var(--ink); box-shadow: 1px 2px 0 var(--ink); }
.code-group:nth-of-type(3) .code-slot.collected { background: var(--yellow); }
.code-group:nth-of-type(5) .code-slot.collected { background: #bcd8c3; }
.code-dash { color: var(--ink); visibility: hidden; font-size: 21px; }
.code-dash.visible { visibility: visible; }
.collection-count { font-size: 10px; color: var(--muted); text-align: right; }
.collection-count > strong { display: block; font: 500 25px/1.3 var(--display); color: var(--ink); }
.collection-count strong > span { color: #a096a9; }
.just-collected { animation: collect .55s cubic-bezier(.2, .8, .2, 1) both; }

.finale { width: min(1000px, calc(100% - 96px)); margin: 36px auto 25px; text-align: center; }
.finale > .eyebrow { color: var(--purple); }
.finale h1 { font: 500 clamp(36px, 4vw, 52px)/1.15 var(--display); margin: 17px 0; }
.finale h1 > span { color: var(--purple); }
.finale-intro { font-size: 14px; color: var(--muted); line-height: 1.9; }
.gift-ticket { text-align: left; display: grid; grid-template-columns: .8fr 1.2fr; margin: 30px auto; background: #fffdf8; border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 5px 6px 0 #ddd1e6; }
.ticket-art { position: relative; display: flex; flex-direction: column; justify-content: center; background: #e8ddf3; border-radius: 19px 0 0 19px; border-right: 2px dashed #a497b5; }
.ticket-art::before, .ticket-art::after { content: ''; position: absolute; right: -11px; width: 20px; height: 20px; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; }
.ticket-art::before { top: -11px; }.ticket-art::after { bottom: -11px; }
.ticket-sticker { position: absolute; left: 23px; bottom: 19px; transform: rotate(-9deg); background: var(--yellow); padding: 7px 15px; border: 1.5px solid var(--ink); border-radius: 6px; font: 400 17px/1.2 var(--display); }
.ticket-copy { padding: 30px 37px 22px; }
.ticket-copy > .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
.ticket-copy h2 { margin: 11px 0; font: 500 33px/1.1 var(--display); }
.ticket-copy > p { font-size: 12px; color: var(--muted); }
#voucher-code { display: block; width: fit-content; max-width: 100%; background: #f2ebf8; border: 1.5px dashed #b8a5cb; border-radius: 9px; padding: 11px 19px; font: 600 clamp(23px, 2.7vw, 33px)/1.3 ui-monospace, 'Cascadia Code', 'Courier New', monospace; letter-spacing: 2px; margin: 17px 0; user-select: all; overflow-wrap: anywhere; }
.ticket-copy .primary-button { min-height: 44px; padding: 10px 18px; font-size: 12px; gap: 10px; }
.ticket-copy .code-reminder { margin-top: 15px; font-size: 10px; }
.ticket-copy .copy-feedback { color: #356343; font-size: 11px; margin-top: 9px; }
.copy-feedback:empty { display: none; }
.redemption-guide { margin: 0 auto 32px; padding: 28px 30px; border: 1.5px solid var(--line); border-radius: 18px; background: #fffdf8; text-align: left; }
.redemption-guide > .eyebrow { color: var(--purple); }
.redemption-guide h2 { margin: 8px 0 18px; font: 500 28px/1.2 var(--display); }
.redemption-notice { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-radius: 10px; background: #fff4cd; font-size: 13px; line-height: 1.7; }
.redemption-notice > span:first-child { color: var(--purple); font-size: 23px; line-height: 1.3; }
.redemption-notice strong { display: block; }
.redemption-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; counter-reset: redeem; list-style: none; margin: 24px 0; padding: 0; }
.redemption-steps li { counter-increment: redeem; position: relative; padding-top: 43px; }
.redemption-steps li::before { content: counter(redeem); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--lavender); font: 500 19px/1 var(--display); transform: rotate(-6deg); }
.redemption-steps li:nth-child(2)::before { background: var(--yellow); transform: rotate(5deg); }
.redemption-steps li:nth-child(3)::before { background: var(--coral); }
.redemption-steps li > strong { font-size: 14px; }
.redemption-steps p { margin-top: 5px; font-size: 13px; line-height: 1.8; }
.redemption-steps a { color: var(--purple); text-underline-offset: 3px; overflow-wrap: anywhere; }
.redemption-guide a:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.redemption-link { margin-top: 20px; color: var(--ink); text-decoration: none; }
.finale-signoff { font: 400 21px/1.6 var(--display); }
.finale-signoff > span { color: var(--purple); }
.finale-signoff small { display: block; color: var(--muted); font: 11px/1.6 var(--sans); margin-top: 4px; }
.finale-actions { display: flex; justify-content: center; gap: 25px; margin-top: 14px; }
.text-button { padding: 9px 3px; min-height: 44px; border: 0; background: none; color: #79628c; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.restart-confirm { max-width: 480px; margin: 20px auto; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fffdf8; }
.restart-confirm > p { font-size: 13px; margin-bottom: 18px; }
.restart-confirm .text-button { display: block; margin: 13px auto 0; }

/* Keep the original curtain reveal and canvas confetti. */
.curtain-overlay { position: fixed; inset: 0; z-index: 40; }
.curtain { position: fixed; top: 0; bottom: 0; width: 51%; z-index: 40; background: repeating-linear-gradient(90deg, #493064 0, #9772bd 7%, #77539b 13%, #39274f 19%); box-shadow: 0 0 80px #29101766; }
.curtain::after { content: ''; position: absolute; bottom: 30px; left: 0; right: 0; height: 12px; border-block: 3px solid #edd69a; }
.curtain.left { left: 0; animation: curtain-left 1.8s cubic-bezier(.6, 0, .2, 1) forwards; }
.curtain.right { right: 0; animation: curtain-right 1.8s cubic-bezier(.6, 0, .2, 1) forwards; }
.curtain-label { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; z-index: 41; color: #fff7e4; text-align: center; padding: 20px; animation: curtain-label 1.3s ease forwards; }
.curtain-label small { font-size: 10px; font-weight: 750; letter-spacing: 2px; }
.curtain-label > span { font: 500 clamp(32px, 5vw, 60px)/1.2 var(--display); }
.curtain-label b { font-size: 38px; color: var(--yellow); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }
.float-object { animation: float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.float-object.slow { animation-duration: 6s; animation-delay: -2s; }
.is-shaking { animation: shake .35s ease; }
.noscript { margin: 60px auto; max-width: 500px; padding: 25px; }
@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes leave { to { opacity: 0; transform: translateY(-5px); } }
@keyframes collect { 0% { opacity: 0; transform: translateY(-25px) rotate(-12deg) scale(1.4); } 70% { transform: translateY(3px) scale(.95); } 100% { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes curtain-left { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(-105%); } }
@keyframes curtain-right { 0%, 15% { transform: translateX(0); } 100% { transform: translateX(105%); } }
@keyframes curtain-label { 0%, 35% { opacity: 1; } 75%, 100% { opacity: 0; } }

@media (min-width: 1450px) {
  .home { padding-top: 70px; gap: 48px 65px; }
  .hero-copy h1 { font-size: 86px; }
  .hero-art { padding-block: 55px 35px; }
  .game-top { min-height: 88px; }
  .puzzle-card { min-height: 510px; }
  .puzzle-body { padding: 45px; }
}
@media (max-width: 1199px) {
  .home { width: calc(100% - 112px); gap: 35px; }
  .hero-copy h1 { font-size: 65px; }
  .hero-description { font-size: 13px; }
  .hero-copy .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-copy .primary-button { font-size: 12px; gap: 14px; padding-inline: 17px; }
  .hero-art { padding-block: 35px; }
  .age-sticker { width: 88px; height: 88px; }.age-sticker strong { font-size: 46px; }
  .art-bottom { font-size: 16px; }
  .puzzle-body { padding: 28px; }
  .puzzle-body h1 { font-size: 27px; }
  .puzzle-art-panel { padding: 24px 18px; }
  .collection-label div > span { display: none; }
  .collection-label strong { max-width: 100px; font-size: 12px; }
  .collection-count { font-size: 9px; }
  .code-slot { width: 36px; height: 44px; }
}
@media (max-width: 900px) {
  .site-header { width: calc(100% - 48px); min-height: 90px; }
  .home { width: calc(100% - 64px); gap: 35px 28px; padding-top: 40px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: .6px; }
  .hero-description br { display: none; }
  .hero-art { padding: 44px 0 28px; }
  .art-sticker { padding: 9px 15px; font-size: 11px; left: -10px; }
  .art-sticker strong { font-size: 20px; }
  .age-sticker { width: 78px; height: 78px; right: -9px; bottom: 48px; }
  .age-sticker strong { font-size: 39px; }.age-sticker > span { font-size: 7px; }
  .art-bottom { font-size: 14px; }
  .adventure-strip { gap: 15px; }.adventure-strip > div { gap: 10px; }
  .adventure-strip strong { font-size: 11px; }.adventure-strip p > span { font-size: 9px; }
  .strip-icon { flex-basis: 32px; height: 34px; font-size: 21px; }
  .puzzle { width: calc(100% - 48px); }
  .puzzle-card { grid-template-columns: .82fr 1.18fr; }
  .puzzle-art-panel { padding: 22px 15px; }
  .art-label { letter-spacing: .5px; font-size: 9px; gap: 7px; }
  .puzzle-body { padding: 26px 22px; }
  .puzzle-body h1 { font-size: 25px; }
  .instruction { font-size: 12px; margin-block: 18px 20px; }
  .answer-row { gap: 10px; }.answer-row .primary-button { padding-inline: 10px; font-size: 12px; gap: 10px; }
  .letter-input { width: 54px; flex-basis: 54px; height: 58px; }
  .art-caption { font-size: 21px; }.art-footnote { font-size: 7px; letter-spacing: 1px; }
  .code-rail { padding: 19px 24px calc(19px + env(safe-area-inset-bottom, 0px)); }
  .code-rail-inner { gap: 12px; }
  .collection-label { gap: 7px; }.collection-icon { font-size: 23px; }
  .code-slot { width: 32px; height: 42px; font-size: 22px; }
  .code-group { gap: 5px; }.code-visual { gap: 7px; }
  .collection-count { font-size: 0; }.collection-count > strong { font-size: 22px; }
  .finale { width: calc(100% - 48px); }.ticket-copy { padding: 25px; }
  .ticket-copy h2 { font-size: 29px; }#voucher-code { font-size: 25px; letter-spacing: 1px; padding-inline: 14px; }
}
@media (max-width: 650px) {
  html { scroll-padding-bottom: 145px; }
  .site-header { width: calc(100% - 40px); min-height: 78px; }
  .brand { gap: 8px; font-size: 16px; }.brand-flower { font-size: 39px; }.brand-sub { font-size: 8px; letter-spacing: 1.8px; }
  .edition { font-size: 0; gap: 0; }.edition::after { content: 'LEVEL 12'; font-size: 9px; letter-spacing: 1px; }.edition > span { margin-right: 7px; font-size: 16px; }
  .home { width: calc(100% - 44px); grid-template-columns: 1fr; gap: 35px; padding-top: 33px; text-align: center; }
  .hero-copy > .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .hero-copy h1 { margin-top: 16px; font-size: 61px; line-height: 1.03; letter-spacing: -1px; }
  .hero-description { max-width: 340px; margin: 32px auto 23px; font-size: 14px; }
  .hero-copy .primary-button { font-size: 13px; padding: 14px 20px; gap: 20px; }
  .hero-note { font-size: 10px; }
  .hero-art { width: min(330px, calc(100% - 25px)); justify-self: center; padding-block: 20px; margin-block: 5px 3px; }
  .art-sticker { top: 2px; left: -13px; }.age-sticker { bottom: 41px; }
  .art-bottom { font-size: 15px; }
  .adventure-strip { margin: 0; grid-template-columns: 1fr; gap: 19px; padding: 24px 0; text-align: left; }
  .adventure-strip > div { justify-content: flex-start; width: 220px; margin-inline: auto; gap: 16px; }
  .adventure-strip > div + div { border: 0; }
  .adventure-strip strong { font-size: 13px; }.adventure-strip p > span { font-size: 11px; }
  .strip-icon { flex-basis: 37px; height: 37px; font-size: 24px; }
  .home-signoff { margin-top: -13px; }
  .puzzle { width: calc(100% - 32px); }.game-top { min-height: 65px; gap: 10px; }.back-button { font-size: 11px; }
  .progress { gap: 10px; font-size: 11px; }.progress-dots { gap: 4px; }.progress-dots i { width: 5px; height: 5px; }
  .puzzle-card { grid-template-columns: 1fr; border-radius: 19px; box-shadow: 3px 4px 0 #dfd5e7; }
  .puzzle-art-panel { border-right: 0; border-bottom: 1.5px solid var(--ink); padding: 12px 18px 15px; }
  .art-label { position: absolute; inset: 13px 16px auto; width: auto; font-size: 8px; }
  .art-number { width: 26px; height: 26px; font-size: 9px; }.art-label > span:last-child { font-size: 19px; }
  .puzzle-art-panel .scene { height: 165px; min-height: 0; width: 240px; margin-top: 12px; }
  .art-caption { font-size: 19px; margin-top: -6px; }.art-footnote { display: none; }
  .puzzle-body { padding: 24px 22px 21px; }
  .puzzle-body > .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 11px; }
  .puzzle-body h1 { font-size: 27px; line-height: 1.2; }
  .instruction { font-size: 13px; margin: 18px 0 22px; padding: 12px; }
  .answer-label { font-size: 12px; }.answer-label > span { font-size: 10px; }
  .answer-row { gap: 12px; }.answer-row .primary-button { font-size: 12px; min-height: 56px; }
  .letter-input { width: 59px; height: 59px; flex-basis: 59px; font-size: 31px; }
  .input-tip { font-size: 10px; }.feedback { font-size: 12px; }.hint { margin-top: 13px; }.hint summary { min-height: 44px; }
  .puzzle-note { margin: 20px 0 12px; font-size: 10px; }
  .code-rail { padding: 12px 18px calc(15px + env(safe-area-inset-bottom, 0px)); }
  .code-rail-inner { display: grid; grid-template-columns: 1fr auto; gap: 9px 10px; max-width: 420px; }
  .collection-label { grid-column: 1; gap: 7px; }.collection-label strong { max-width: none; font-size: 11px; }.collection-icon { font-size: 18px; }
  .collection-count { grid-column: 2; grid-row: 1; }.collection-count > strong { font-family: var(--sans); font-size: 12px; font-weight: 650; }
  .code-slots { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .code-slot { width: 30px; height: 38px; font-size: 21px; border-radius: 6px; }
  .code-group { gap: 5px; }.code-visual { gap: 8px; }.code-dash { font-size: 16px; }
  body[data-screen='puzzle'], body[data-screen='finale'] { padding-bottom: calc(122px + env(safe-area-inset-bottom, 0px)); }
  .finale { width: calc(100% - 36px); margin-top: 30px; }.finale > .eyebrow { font-size: 8px; letter-spacing: .8px; }
  .finale h1 { font-size: 36px; }.finale-intro { font-size: 12px; }.finale-intro br { display: none; }
  .gift-ticket { grid-template-columns: 1fr; margin: 25px auto; max-width: 390px; }
  .ticket-art { height: 190px; border-right: 0; border-bottom: 2px dashed #a497b5; border-radius: 19px 19px 0 0; align-items: center; }
  .ticket-art .scene { height: 180px; width: 250px; }.ticket-sticker { left: 12px; bottom: 15px; padding: 6px 10px; font-size: 13px; }
  .ticket-art::before { top: auto; right: auto; bottom: -11px; left: -11px; }.ticket-art::after { bottom: -11px; }
  .ticket-copy { padding: 25px 23px; text-align: center; }.ticket-copy h2 { font-size: 32px; }
  #voucher-code { margin-inline: auto; font-size: 26px; letter-spacing: 1px; }
  .ticket-copy .primary-button { font-size: 13px; padding-inline: 22px; min-height: 48px; }
  .finale-signoff { font-size: 18px; }.finale-actions { gap: 18px; }.finale-actions .text-button { font-size: 10px; }
  .redemption-guide { padding: 23px 20px; }
  .redemption-guide h2 { font-size: 25px; }
  .redemption-steps { grid-template-columns: 1fr; gap: 22px; }
  .redemption-steps li { padding: 0 0 0 43px; }
  .redemption-notice { padding: 12px; font-size: 12px; }
  .redemption-link { width: 100%; padding-inline: 14px; font-size: 12px; gap: 12px; }
}
@media (max-width: 359px) {
  .finale h1 { font-size: 31px; }
  .hero-copy h1 { font-size: 53px; }.hero-copy > .eyebrow { font-size: 7px; }.hero-description { font-size: 13px; }
  .puzzle-body { padding: 22px 17px; }.puzzle-body h1 { font-size: 25px; }.progress-dots { display: none; }
  .code-rail { padding-inline: 12px; }.code-slot { width: 24px; height: 35px; }.code-group { gap: 4px; }.code-visual { gap: 6px; }
  .letter-input { flex-basis: 52px; width: 52px; }.answer-row { gap: 9px; }.answer-row .primary-button { font-size: 11px; gap: 8px; }
  #voucher-code { font-size: 23px; padding-inline: 10px; }.ticket-copy { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .curtain-overlay, #confetti { display: none; }
}
