@font-face { font-family:Manrope; src:url('/assets/manrope-400.ttf'); font-weight:400; font-display:swap }
@font-face { font-family:Manrope; src:url('/assets/manrope-600.ttf'); font-weight:600; font-display:swap }
@font-face { font-family:Manrope; src:url('/assets/manrope-800.ttf'); font-weight:800; font-display:swap }
:root {
  color-scheme:light;
  --blue:#087dc4; --deep:#075f98; --ink:#194563; --muted:#47697e;
  --orange:#fb850f; --cream:#fff1e1; --ice:#eaf7ff; --line:#c3deec;
  --shadow:0 12px 32px #0b6ca114;
}
* { box-sizing:border-box }
[hidden] { display:none!important }
body {
  display:flex; flex-direction:column; min-height:100vh; min-height:100dvh;
  margin:0; font:17px/1.55 Manrope,Arial,sans-serif; color:var(--ink);
  background:radial-gradient(ellipse at 84% 27%,#d3efff 0,transparent 46%),linear-gradient(165deg,#f6fbff,#e8f6ff 60%,#fff 95%);
}
main { position:relative; flex:1 0 auto }
button,a,input,select { font:inherit }
button,a { touch-action:manipulation }
button { cursor:pointer }
button:disabled { cursor:default }
a { color:var(--deep); text-underline-offset:4px }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #084a76; outline-offset:4px;
}
h1,h2,h3,p,figure { margin:0 }
h1,h2,h3 { color:var(--blue); line-height:1.04; font-weight:800; letter-spacing:-.055em }
h1 { font-size:clamp(48px,5.3vw,81px); margin:13px 0 20px }
h2 { font-size:clamp(36px,4.1vw,63px); margin:9px 0 20px }
h3 { font-size:clamp(27px,2.4vw,36px); margin-bottom:12px }
em { color:#d96908; font-style:normal }
h1 em,h2 em { display:inline-block; position:relative }
h1 em::after,h2 em::after {
  content:''; position:absolute; left:4%; right:0; bottom:-5px; height:6px;
  border-top:4px solid var(--orange); border-radius:50%; transform:rotate(-2deg);
}
.wrap { width:min(calc(100% - 80px),1280px); margin-inline:auto }
.top { background:white; border-bottom:1px solid #deedf5 }
.top-inner,.brands,.section-top,.foot,.dialog-head,.stage-caption { display:flex; align-items:center; justify-content:space-between; gap:16px }
.top-inner { min-height:72px }
.brands { gap:22px }
.brands img { width:164px; height:auto; display:block }
.spread { display:grid; grid-template-columns:1fr 1.08fr; gap:clamp(20px,3.8vw,64px); align-items:center; padding:38px 0 30px; position:relative }
.kicker { color:var(--deep); text-transform:uppercase; letter-spacing:.09em; font-size:12px; font-weight:800 }
.kicker i { color:var(--orange); font:24px/1 Arial; vertical-align:middle; margin-right:5px }
.lead { max-width:54ch; font-size:clamp(17px,1.4vw,20px); line-height:1.6 }
.intro .primary { margin-top:20px }
main :is(h1,h2)[tabindex="-1"]:focus { outline:none }
.primary {
  display:inline-flex; align-items:center; justify-content:center; gap:22px; min-height:54px;
  padding:14px 25px; border:0; border-radius:32px; color:#103a58; background:var(--orange);
  box-shadow:0 5px 0 #d86d0c; text-decoration:none; font-weight:800; transition:transform .15s,background .15s;
}
.primary span { font-size:23px; line-height:1 }
.primary:hover:enabled,a.primary:hover { background:#ff9936; transform:translateY(-2px) }
.primary:active:enabled,a.primary:active { transform:translateY(2px) }
.primary:disabled { background:#e3eef4; color:#48667a; box-shadow:0 3px 0 #c5dce8 }
.cover-art { position:relative; padding:0 0 4px; text-align:center }
.night { position:relative; overflow:hidden; border-radius:45%; isolation:isolate; background:radial-gradient(ellipse,#fff9df 0 19%,transparent 64%) }
.night img,.stage svg,.comic svg { display:block; width:100% }
.cover-art figcaption { display:inline-flex; align-items:center; gap:10px; background:#fffc; border:1px solid var(--line); color:var(--deep); padding:6px 16px; border-radius:30px; font-size:14px; font-weight:600 }
.cover-art figcaption span+span { color:#c96a12 }
.flakes { pointer-events:none; position:absolute; inset:-30px 0 0; background-image:radial-gradient(circle,#fff 0 2px,transparent 3px),radial-gradient(circle,#fff 0 1px,transparent 2px); background-size:87px 97px,113px 71px; animation:snow 4s ease-out both }
@keyframes snow { from{transform:translateY(-22px);opacity:.1}to{transform:translateY(12px);opacity:.7} }
.cover-ledger { display:grid; grid-template-columns:1fr; gap:18px }
.cover-ledger>div,.tour-total,.form-card,.chooser,.stage { background:white; border:1px solid var(--line); box-shadow:var(--shadow); border-radius:22px }
.cover-ledger>div { padding:17px 22px }
.cover-ledger>div:first-child { background:linear-gradient(110deg,#fff1df,#fff9f0); border-color:#f5d3a8 }
.cover-ledger .kicker { margin-bottom:6px }
.cover-ledger>div:first-child .kicker { color:#96500f }
.cover-ledger strong,.numbers b,.tour-total>span { font-size:25px; font-weight:800; color:var(--deep); letter-spacing:-.03em }
.cover-ledger a { font-size:14px; white-space:nowrap }
.numbers span,.hint,small,.section-top,.foot { color:var(--muted) }
progress { display:block; appearance:none; border:0; width:100%; height:9px; border-radius:9px; overflow:hidden; margin:7px 0; background:#f7e5cd }
progress::-webkit-progress-bar { background:#f7e5cd }
progress::-webkit-progress-value { background:var(--orange); border-radius:9px }
progress::-moz-progress-bar { background:var(--orange); border-radius:9px }
.section-top { padding:18px 0; font-size:14px }
.back,.archive select { color:var(--deep); background:none; border:0; font-weight:600; text-decoration:underline; text-underline-offset:4px; padding:7px 0 }
.room-nav,.presets,.shelf { display:flex; gap:8px }
.room-nav { width:fit-content; max-width:100%; background:#ffffffd9; padding:4px; border:1px solid var(--line); border-radius:30px; margin-bottom:20px }
.room-nav button,.presets button { min-height:44px; border:1px solid transparent; border-radius:25px; padding:8px 18px; color:var(--deep); background:transparent; font-weight:800 }
.room-nav button[aria-pressed=true] { color:white; background:#0869ac }
.tour-grid { display:grid; grid-template-columns:1.32fr 1fr; gap:24px; align-items:start }
.tour-grid>* { min-width:0 }
.stage { overflow:hidden; padding:6px 6px 0 }
.canvas { position:relative; overflow:hidden; border-radius:17px }
.room-art { line-height:0 }
.stage-caption { padding:7px 10px; flex-wrap:wrap; color:var(--deep); font-size:14px; font-weight:600 }
.story-trigger { display:inline-flex; align-items:center; min-height:44px; gap:7px; background:transparent; border:0; color:var(--deep); font-size:14px; font-weight:600; padding:2px; text-decoration:underline; text-underline-offset:4px }
.face { width:34px; height:34px; display:block; border-radius:50%; overflow:hidden; background:var(--cream) }
.spot { position:absolute; transform:translate(-50%,-50%); width:44px; height:44px; border:0; border-radius:50%; background:transparent }
.spot::after { content:'+'; position:absolute; right:2px; top:2px; min-width:19px; line-height:19px; font-size:16px; font-weight:800; border-radius:50%; color:white; background:var(--deep); border:2px solid white; box-shadow:0 2px 5px #173f5438 }
.spot.contribution::after { content:'✓'; color:var(--ink); background:#ffba62 }
.spot:hover::after,.spot:focus-visible::after { transform:scale(1.12) }
.chooser,.form-card { padding:clamp(20px,2.3vw,35px) }
.chooser h3 { margin-top:5px }
.shelf { margin:15px 0 10px }
.shelf button { flex:1; min-width:0; position:relative; border:1.5px solid var(--line); border-radius:15px; background:#f1f9ff; color:var(--deep); padding:6px 3px 8px; font-weight:800; font-size:14px }
.shelf button[aria-pressed=true],.presets button[aria-pressed=true] { background:#ffddb0; color:#103a58; border-color:#da790f; box-shadow:inset 0 -2px var(--orange) }
.shelf button:hover:enabled { border-color:#559fc9 }
.shelf svg { display:block; width:100%; height:62px }
.shelf b { position:absolute; right:7px; top:4px; color:var(--deep) }
.hint,small,.archive { font-size:14px }
.hint { margin:10px 0 15px; line-height:1.45 }
.tour-total { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:3px 12px; margin:20px 0 9px; padding:15px 22px }
.tour-total progress,.tour-total small { grid-column:1/-1 }
.payment-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(26px,5vw,75px); align-items:center; padding:20px 0 45px }
.form-card { background:linear-gradient(135deg,#fff,#fffaf4) }
.presets { margin:16px 0; flex-wrap:wrap }
.presets button { border-radius:14px; border-color:var(--line); background:white; padding-inline:15px }
.form-card label,.form-card input { display:block; font-weight:600 }
.form-card label { margin:12px 0 6px }
.form-card input { width:100%; font-size:21px; padding:12px 16px; border:1.5px solid #a5cadf; background:white; color:var(--ink); border-radius:14px }
.receipt { display:flex; align-items:center; gap:14px; margin-top:20px }
.receipt>span { background:white; border:1px solid var(--line); border-radius:18px; padding:4px }
.receipt svg { width:58px; height:62px; display:block }
.receipt strong,.receipt small { display:block }
.gift-print { width:100%; max-width:100%; min-width:0; border-radius:16px; overflow:hidden; box-shadow:var(--shadow) }
.gift-print > svg { display:block; width:100%; height:auto }
#gift .primary { margin-top:20px }
.error { color:#9c3525; font-weight:600 }
.error:not(:empty) { margin:12px 0 }
.foot { font-size:14px; margin-top:30px; border-top:1px solid var(--line); min-height:69px }
.foot>span { margin-right:auto }
.foot a { min-height:44px; display:inline-flex; align-items:center }
.skip { position:absolute; left:-3000px }
.skip:focus { left:10px; top:10px; background:white; z-index:5 }
dialog { width:min(740px,calc(100% - 24px)); max-height:88svh; padding:clamp(18px,3vw,34px); color:var(--ink); background:#f8fcff; border:1px solid var(--line); border-radius:25px; box-shadow:0 22px 75px #103e5966 }
dialog::backdrop { background:#123d5bc4 }
.dialog-head .close { width:44px; height:44px; border-radius:50%; font-size:28px; color:var(--deep); border:1px solid var(--line); background:white }
.comic { display:grid; grid-template-columns:1fr 1fr; gap:13px }
.comic figure { background:white; border-radius:15px; overflow:hidden; border:1px solid var(--line) }
.comic figcaption { font-size:16px; line-height:1.5; padding:12px }
dialog .back { display:inline-block; font-size:15px; margin:8px 0 }
.close-story { display:flex; margin-top:5px }
.appear { animation:detail-in .38s ease-out }
@keyframes detail-in { from{opacity:.15}to{opacity:1} }
@media(max-width:820px) {
  .wrap { width:min(calc(100% - 36px),660px) }
  .top-inner { min-height:62px }
  .brands { gap:15px }.brands img{width:133px}
  .spread,.cover-ledger,.payment-grid,.tour-grid { grid-template-columns:minmax(0,1fr) }
  .spread { gap:16px; padding:24px 0 20px }
  h1 { font-size:clamp(44px,8.7vw,62px); margin:12px 0 17px }
  .lead { font-size:17px }
  .cover-art { width:100%; max-width:520px; margin:auto }
  .cover-ledger { gap:10px }.cover-ledger>div{padding:14px 17px}
  .section-top { padding:8px 0 11px }
  h2 { font-size:clamp(32px,6.3vw,45px); margin:6px 0 15px }
  .room-nav { width:100%; margin-bottom:12px; gap:0 }
  .room-nav button { flex:1; padding:8px 4px; font-size:15px }
  .tour-grid { gap:12px }.stage{padding:4px 4px 0}.stage-caption{padding:3px 7px;gap:2px 9px}
  .chooser,.form-card { padding:16px }.chooser h3{margin:0 0 6px}#room-label{display:none}
  .shelf { margin:10px 0 6px }.shelf svg{height:48px}.chooser .hint{margin:7px 0 12px}
  .chooser .primary,.form-card .primary { width:100% }
  .tour-total { margin-top:13px;padding:13px 17px }
  .payment-grid { padding:4px 0 18px;gap:19px }.receipt{margin-top:10px}
  .foot { flex-wrap:wrap;justify-content:flex-start;gap:2px 16px;padding:11px 0 }.foot>span{width:100%}
  .comic { grid-template-columns:1fr }.comic figure{display:grid;grid-template-columns:37% 1fr;align-items:center}.comic figcaption{font-size:15px;padding:10px}
}
@media(max-width:365px) {
  .wrap { width:calc(100% - 26px) }
  h1 { font-size:42px }.kicker{font-size:11px}
  .presets { gap:6px }.presets button{font-size:16px;padding-inline:9px}
  .primary { font-size:16px;padding-inline:16px }.shelf button{font-size:13px}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important }
}
#shelf { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr)) }
#shelf small { display:block; overflow-wrap:anywhere; padding:2px 5px; font-size:12px; line-height:1.35 }
.story-trigger { border:1px solid var(--line); border-radius:18px; padding:5px 12px; background:#f5fbff; text-decoration:none }
.story-trigger:hover { background:#e1f2ff }
@media(max-width:560px) {
  .stage-caption { flex-wrap:wrap }
  #shelf { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
#shelf small { font-size:13px }

.holiday-trim { position:relative; align-self:stretch; flex:1; min-width:0; max-width:352px; overflow:hidden; pointer-events:none }
.holiday-trim svg { position:absolute; inset:0 0 0 auto; margin-block:auto; width:100%; height:auto; max-height:100% }
.holiday-trim .trim-compact { display:none }
@media (prefers-reduced-motion:no-preference) {
  .holiday-trim .pendant { transform-origin:0 0; animation:pendant-swing 3.8s ease-in-out 1 both }
  @keyframes pendant-swing { 0%,100% {transform:rotate(0)} 22% {transform:rotate(6deg)} 62% {transform:rotate(-4deg)} }
}
@media(max-width:520px) {
  .top-inner { gap:20px }
  .brands { flex:none }
  .holiday-trim { max-width:82px }
  .holiday-trim .trim-wide { position:absolute; width:0; height:0 }
  .holiday-trim .trim-compact { display:block }
}
@media(max-width:365px) {
  .brands { gap:9px }
  .brands img { width:119px }
}

/* The holiday decorations stay in the illustration, clear of reading and controls. */
.hero-festive { position:absolute; width:110%; height:auto; left:-5%; top:-13%; pointer-events:none; z-index:1 }
.cover-art { padding-top:30px }
.cover-ledger>div:first-child { background:#fff; border-color:var(--line) }
.cover-ledger>div:first-child .kicker { color:var(--deep) }
#gift .result-link { display:flex; width:fit-content; max-width:100%; margin-bottom:15px }
#download { display:block; cursor:pointer; min-height:44px }
.result-rooms { display:grid; gap:24px; margin-top:24px }
.result-room { display:grid; grid-template-columns:1.5fr 1fr; align-items:center; background:white; border:1px solid var(--line); border-radius:24px; overflow:hidden; box-shadow:var(--shadow) }
.result-picture { margin:10px; border-radius:18px; overflow:hidden }
.result-picture svg { width:100%; height:auto; display:block }
.result-info { padding:24px }
.result-info .hint { margin:0 0 10px }
.result-credits { list-style:none; padding:0; margin:0 0 8px; font-size:14px }
.result-credits li { padding:5px 0; overflow-wrap:anywhere }
.result-credits .own-credit { background:#fff0d6; border-radius:8px; padding:7px 10px; font-weight:800 }
.result-own { border-left:4px solid var(--orange); padding:12px 16px; background:#fff4e3; border-radius:0 12px 12px 0 }
@media(prefers-reduced-motion:no-preference) {
  .festive-bulbs { animation:festive-welcome 2.4s ease-out both }
  @keyframes festive-welcome { 0%{opacity:.15}35%{opacity:1}55%{opacity:.5}100%{opacity:1} }
}
@media(max-width:820px) {
  .cover-art { margin-top:16px; width:94% }
  .hero-festive { top:-9% }
  .result-info { padding:16px 20px 20px }
  #shelf button { font-size:13px; padding-inline:2px }
  #shelf small { font-size:12px }
}
@media(max-width:365px) {
  .section-top { gap:12px; flex-wrap:wrap }
}

/* A single room and a horizontal shelf keep the preview and action together. */
.tour-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; min-width:0 }
.tour-layout>* { min-width:0 }
.tour-layout .stage { width:min(100%,780px); margin-inline:auto; position:relative; }
.tour-layout .canvas { background:#e2f4ff }
.chooser { padding:20px 24px }
#room-label { display:none }
#choice-title { font-size:29px; margin:0 0 6px }
#room-intro { font-size:16px }
.shelf-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:12px }
.shelf-heading .hint { margin:0 }
.shelf-controls { display:flex; gap:8px }
.shelf-controls button { width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:white; color:var(--deep); font-size:22px }
.shelf-controls button:disabled { opacity:.35; cursor:default }
#shelf { display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding:7px 4px 12px; margin:4px -4px 0; scrollbar-width:thin; scrollbar-color:#76b8db #e8f5fc }
#shelf button { flex:0 0 145px; min-height:146px; scroll-snap-align:start; font-size:15px; padding:7px; }
#shelf svg { height:65px; }
#shelf small { font-size:12px; line-height:1.4 }
.choice-action { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:12px }
.choice-action .hint { margin:0; max-width:64ch }
.choice-action .primary { flex-shrink:0 }
.how-it-works { margin:30px 0 20px; padding:24px; background:linear-gradient(120deg,#fff5e5,#fffaf3); border:1px solid #f0dcc1; border-radius:24px }
.how-it-works h3 { font-size:28px }
.how-it-works ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; margin:20px 0; gap:24px }
.how-it-works li { display:flex; gap:12px; align-items:flex-start }
.how-it-works li>span { width:36px; height:36px; flex:none; display:grid; place-items:center; color:var(--deep); font-weight:800; border:1px solid #efc691; background:#ffe1b6; border-radius:50% }
.how-it-works strong { display:block; font-size:17px; color:var(--deep); margin-bottom:6px }
.how-it-works li p { font-size:15px; line-height:1.5 }
.how-it-works>.hint { margin-bottom:0 }
.support-next { display:flex; align-items:center; gap:30px; padding:30px; background:#fff2dc; border:1px solid #f4d8b2; border-radius:24px; margin-top:24px }
.support-next>div { flex:1 }
.support-next h3 { margin:8px 0 12px }
.support-next .primary { flex-shrink:0 }
.support-heart { display:block; width:58px; text-align:center; font-size:48px; line-height:62px; color:#e78113 }
#gift-detail { overflow-wrap:anywhere }
/* Frost and fir sprigs frame the interior screens without covering any controls. */
#tour,#pay,#gift,#result { position:relative; isolation:isolate }
#tour::before,#pay::before,#gift::before,#result::before { content:''; position:absolute; z-index:-1; pointer-events:none; top:65px; right:-18px; width:220px; height:135px; opacity:.65; background:url('/assets/winter-sprig.svg') top right/contain no-repeat }
@media(max-width:820px) {
  .tour-layout { gap:12px }
  .chooser { padding:16px }
  #choice-title { font-size:25px }
  #shelf button { flex-basis:136px }
  .choice-action { flex-direction:column; align-items:stretch; gap:12px }
  .choice-action .primary { width:100% }
  .how-it-works { padding:20px; margin-top:20px }
  .how-it-works ol { grid-template-columns:minmax(0,1fr); gap:18px }
  .support-next { flex-direction:column; align-items:stretch; padding:22px }
  #tour::before,#pay::before,#gift::before,#result::before { right:0; width:105px; opacity:.35; top:22px }
  .result-room { grid-template-columns:minmax(0,1fr) }
}
