:root{--cream:#fff2df;--ink:#32184e;--muted:#8c7b92;--orange:#ffa252;--mint:#9fe4ca;--edge:#ecd3bc}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100svh;background:#35234c;color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px}
button,input{font:inherit}
button,a,input{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.52}
a{color:inherit;text-decoration:none}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.backdrop{position:fixed;inset:0;z-index:-2;background:#39224f center center/cover no-repeat}
.backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(35,19,57,.06),transparent 60%,rgba(37,20,55,.16))}
.page{max-width:1536px;margin:auto;padding:0 clamp(24px,4.4vw,68px)}
.site-header{height:86px;display:flex;align-items:center;justify-content:space-between;direction:ltr}
.brand{display:flex;align-items:center;gap:1px;color:#fff2dc;direction:rtl;flex-direction:row-reverse;font-family:Lalezar,sans-serif;font-size:24px;line-height:.88;filter:drop-shadow(0 3px 0 #593246)}
.brand strong{display:block;font-size:36px;font-weight:400;letter-spacing:.01em}
.brand small{display:block;font-family:Vazirmatn,sans-serif;font-size:10px;line-height:1.9;font-weight:700;letter-spacing:0;text-align:center}
.sprite-icon{display:inline-block;flex:none;width:50px;height:50px;background-image:var(--game-sprites,none);background-size:200% 200%;background-repeat:no-repeat}
.sprite-icon.pumpkin{background-position:right top}
.brand .sprite-icon{width:68px;height:68px}
.pill{display:flex;align-items:center;gap:10px;direction:rtl;border:1px solid #fff9e9;border-radius:26px;background:var(--cream);color:var(--ink);padding:12px 24px;font-weight:800;font-size:13px;box-shadow:0 4px 0 rgba(104,69,89,.16),0 9px 24px rgba(31,17,49,.12);transition:transform .18s}
.pill>span{font-size:26px;line-height:16px;margin-right:5px}
.pill:hover{transform:translateY(-2px)}
.stage-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(430px,41%);gap:40px;direction:ltr;align-items:start}
.hero{direction:rtl;min-width:0;align-self:stretch;position:relative}
.hero-copy{max-width:650px;margin:8px auto 0;text-align:right;color:var(--cream);animation:soft-arrive .7s both}
.eyebrow{font-size:13px;font-weight:700;color:#e8c9ed;display:block;margin-bottom:6px}
.hero h1{font-family:Lalezar,sans-serif;font-weight:400;font-size:clamp(64px,5.85vw,92px);line-height:1.04;margin:0 0 9px;text-shadow:0 5px 0 #55334d,0 9px 26px rgba(36,18,49,.38)}
.hero h1 em{font-style:normal;color:#ffa658;position:relative}
.hero h1 em::after{content:"";position:absolute;left:1%;right:5%;bottom:-4px;height:8px;border-bottom:4px solid #ffc078;border-radius:50%;transform:rotate(-3deg);opacity:.85}
.hero p{font-size:20px;line-height:1.8;color:#ecd4f4;font-weight:700;margin:17px 0 19px;text-shadow:0 2px 8px #2c1644}
.mobile-break{display:none}
.button{border:2px solid #ffc48d;border-radius:27px;background:linear-gradient(180deg,#ffb871 0%,#ff9d50 90%);color:#3f2150;min-height:44px;padding:10px 20px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 4px 0 #d47e49,0 8px 15px rgba(91,47,46,.12);transition:transform .16s,box-shadow .16s,filter .16s}
.button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.025);box-shadow:0 6px 0 #d47e49,0 12px 19px rgba(91,47,46,.16)}
.button:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #d47e49}
.hero-button{font-family:Lalezar,sans-serif;font-size:25px;min-width:282px;min-height:61px;color:#fff9ed;text-shadow:0 2px 0 #ce7845;gap:18px;box-shadow:0 5px 0 #b36843,0 11px 24px rgba(38,16,46,.3)}
.hero-button .icon{width:25px;height:25px;stroke-width:2.6}
.hero-note{display:block;font-size:11px;color:#efd8e9;margin:13px 6px}
.cabinet{direction:rtl;min-width:0;background:linear-gradient(130deg,#fff7e9,#f8e7d4);padding:11px 13px 5px;border:2px solid #fff5df;border-radius:30px;box-shadow:0 7px 0 #cbae9e,0 18px 34px rgba(31,14,46,.3)}
.hud{display:flex;align-items:center;justify-content:space-between;gap:12px;height:40px;padding:0 6px 7px;font-size:11px}
.game-title{font-family:Lalezar,sans-serif;font-size:19px;white-space:nowrap;display:flex;align-items:center;gap:7px}
.hud-ghost{font-size:12px;color:#fff6ed;background:#bbacb9;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 1px 2px #988699}
.lives{display:flex;direction:ltr;gap:2px;white-space:nowrap}
.lives i{color:#fa6476;font-size:27px;font-style:normal;line-height:1;text-shadow:0 2px 0 #d3425c,0 -1px 1px #ffb7b7;filter:drop-shadow(0 2px 2px #df9a9655)}
.lives i.lost{color:#c9b9c4;text-shadow:none;opacity:.55}
.time-metric{color:#9b8a9c;display:flex;align-items:center;gap:6px;white-space:nowrap}
.time-metric b{font-weight:900;color:var(--ink);font-size:23px;min-width:29px;text-align:center}
.time-metric small{font-size:9px}
.screen{position:relative;aspect-ratio:540/570;border-radius:19px;overflow:hidden;background:#74547c;border:1px solid #a27a9a;isolation:isolate}
canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}
.stage-score{position:absolute;top:13px;left:13px;direction:ltr;display:flex;align-items:center;gap:6px;color:#fff2cf;background:rgba(56,30,69,.5);border:1px solid rgba(255,229,169,.23);border-radius:20px;padding:4px 11px;font-size:12px;pointer-events:none;backdrop-filter:blur(5px)}
.coin-dot{display:grid;place-items:center;background:#f8c468;color:#95621b;border:1px solid #ffe5a0;border-radius:50%;width:20px;height:20px;font-size:15px;font-weight:900;box-shadow:0 0 10px #f4bf6766}
.ready-actions{position:absolute;inset:auto 12px 10px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 7px 6px 14px;border:1px solid #fff6e0;border-radius:22px;background:rgba(255,244,225,.95);font-size:11px;font-weight:700;box-shadow:0 5px 15px #28183f24;backdrop-filter:blur(5px)}
.ready-actions .button{min-height:33px;padding:5px 16px;font-size:12px;box-shadow:0 2px 0 #d47e49}
.ready-actions .icon{width:16px;height:16px}
.controls{height:28px;display:flex;align-items:center;justify-content:space-between;gap:7px;color:#8f7a96;font-size:9px}
.controls>div{display:flex;align-items:center;gap:1px}
.icon-button{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;padding:4px;border:0;border-radius:50%;background:transparent;color:#78617f}
.icon-button .icon{width:16px;height:16px}
.icon-button:hover:not(:disabled){background:#ead9db80;color:var(--ink)}
.countdown{position:absolute;inset:0;display:grid;place-items:center;background:rgba(72,39,88,.13);font-family:Lalezar,sans-serif;color:#fff1d3;font-size:145px;text-shadow:0 6px 0 #92526a,0 0 30px #ffe8c8;pointer-events:none}
.game-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:rgba(49,25,68,.23);backdrop-filter:blur(3px)}
.game-pop{width:min(100%,315px);background:var(--cream);border:2px solid #fff8e9;border-radius:28px;text-align:center;padding:13px 24px 22px;box-shadow:0 7px 0 #b799a5,0 17px 30px #27113b44;animation:soft-arrive .25s both}
.pop-pumpkin{width:100px;height:100px;margin:-4px auto -4px}
.game-pop h2{font-family:Lalezar,sans-serif;font-size:30px;font-weight:400;margin:0}
.game-pop p{font-size:12px;line-height:1.9;color:#8d718f;margin:4px 0 8px}
.game-pop strong{display:block;font-size:26px;font-weight:900;margin:0 0 12px}
.game-pop .button{width:100%;font-size:13px}
.text-button{border:0;background:transparent;color:#745282;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 5px;font-size:12px;font-weight:800}
.text-button .icon{width:18px;height:18px}
.bottom-row{display:grid;grid-template-columns:1.12fr 1fr 1.05fr;gap:13px;direction:ltr;margin-top:18px;align-items:stretch}
.panel{min-width:0;background:linear-gradient(130deg,#fff5e7,#fff0dd);border:1px solid #fff7e8;border-radius:25px;padding:17px 20px;direction:rtl;box-shadow:0 5px 0 #d2b4a0,0 13px 25px #26133733}
.panel h2{font-family:Lalezar,sans-serif;font-size:24px;font-weight:400;line-height:1.3;margin:0;display:flex;align-items:center;gap:8px}
.trophy{color:#ba762b}
.gift{color:#ef9254}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tiny-button{border:1px solid #dfc9bd;border-radius:20px;background:#f8e8d9;color:#745c7f;padding:5px 13px;font-size:9px;white-space:nowrap}
.leaders{list-style:none;padding:0;margin:10px 0 0}
.leaders li{display:grid;grid-template-columns:30px 36px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #dfc7bc55;font-size:11px;min-height:54px}
.leader-rank{display:grid;place-items:center;width:27px;height:31px;border-radius:50%;background:linear-gradient(#ffe49a,#ffc34b);border:1px solid #f8cd6c;font-weight:900;font-size:16px;color:#9f641f;box-shadow:0 3px 4px #a97e5b22}
.leaders li:nth-child(2) .leader-rank{background:linear-gradient(#f5eef4,#cabdd2);border-color:#d5c4db;color:#72577b}
.leaders li:nth-child(3) .leader-rank{background:linear-gradient(#edd0b9,#d3a085);border-color:#ddbaa2;color:#925e43}
.avatar{width:35px;height:35px;border-radius:50%;background-color:#e6b8ee;background-image:var(--game-sprites,none);background-size:200%;background-position:100% 0;border:2px solid #e0abe7}
.leader-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.leader-score{text-align:left;font-weight:900;font-size:13px;white-space:nowrap}
.leader-score small{display:block;font-weight:500;font-size:8px;color:#a08ba2}
.leaders .empty-board{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;min-height:159px;color:#a187a0;border-top:1px solid #ead0c177;line-height:1.9}
.empty-board .sprite-icon{width:72px;height:72px;margin:-6px 0}
.empty-board strong{color:#72537f;font-size:12px}
.refresh-button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:#a38c9f;padding:1px 0;font-size:9px}
.refresh-button .icon{width:12px;height:12px}
.result-panel{display:flex;direction:ltr;gap:14px;padding:15px}
.result-art{position:relative;flex:0 0 42%;overflow:hidden;border-radius:18px;min-height:211px}
.result-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:33% center}
.result-art>span{position:absolute;top:8px;left:11px;color:#ffd377;font-size:32px;filter:drop-shadow(0 2px 4px #854e39)}
.result-copy{flex:1;min-width:0;direction:rtl;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.result-copy h2{font-size:23px;line-height:1.15;display:block}
.result-number{display:flex;align-items:baseline;justify-content:center;gap:5px;color:var(--ink);margin:2px 0}
.result-number b{font-family:Lalezar,sans-serif;font-size:74px;font-weight:400;line-height:1}
.result-number span{font-size:10px;font-weight:800}
.result-copy p{font-size:10px;line-height:1.75;margin:2px 0 12px;color:#8c7292}
.result-copy .button{padding:8px 10px;min-height:36px;font-size:10px;width:100%;gap:4px}
.result-copy .button .icon{width:16px;height:16px}
.entry-panel>p{font-size:11px;color:#9d879b;margin:2px 0 8px;line-height:1.7}
.profile-form{display:flex;flex-direction:column;gap:7px}
.input-row{display:flex;align-items:center;gap:9px;border:1px solid #e3cfc5;border-radius:15px;background:rgba(255,250,244,.8);padding:0 11px;min-height:37px}
.input-row>.icon{width:16px;height:16px;color:#a68da9}
.input-row input{width:100%;min-width:0;background:transparent;border:0;color:var(--ink);outline:0;padding:8px 0;font-size:12px;direction:rtl}
.input-row input[dir=ltr]{direction:ltr;text-align:left;letter-spacing:.04em}
input::placeholder{color:#b2a0b1;opacity:1}
.input-row:focus-within{border-color:#b59dc7;box-shadow:0 0 0 3px #bda1cf25}
.consent{display:flex;align-items:flex-start;gap:6px;font-size:10px;color:#937e96;line-height:1.8;cursor:pointer}
.consent input{accent-color:#8f65a8;flex:none;margin:3px 0 0}
.profile-form>.button{width:100%;min-height:37px;padding:6px 12px;font-size:12px}
.form-feedback{font-size:11px;color:#a85670;line-height:1.8;margin:0}
.form-feedback:empty{display:none}
footer{display:flex;justify-content:space-between;gap:18px;color:#f0dbe9;font-size:9px;padding:17px 4px 13px;text-shadow:0 2px 6px #381f49}
footer>span:first-child{display:flex;gap:6px;align-items:center}
footer .icon{width:12px;height:12px}
.save-status:empty{display:none}
.save-status{position:fixed;bottom:20px;right:20px;margin:0;padding:12px 18px;border-radius:16px;background:var(--cream);color:#71547b;box-shadow:0 6px 25px #311c4c44;z-index:8;font-size:12px;max-width:calc(100% - 40px)}
.retry-save{position:fixed;bottom:72px;right:20px;z-index:8;background:var(--cream)}
.dialog{position:fixed;max-width:440px;width:calc(100% - 32px);max-height:calc(100svh - 36px);overflow:auto;border:2px solid #fff8e8;border-radius:30px;padding:22px 28px;color:var(--ink);background:linear-gradient(140deg,#fff7e9,#ffeedb);box-shadow:0 8px 0 #bfa3a2,0 24px 80px #1c0b3288;text-align:right}
.dialog::backdrop{background:rgba(36,17,53,.64);backdrop-filter:blur(7px)}
.dialog h2{font-family:Lalezar,sans-serif;font-size:32px;font-weight:400;margin:0;display:flex;align-items:center;gap:10px;justify-content:center}
.dialog>p{font-size:12px;color:#99819c;line-height:1.8;text-align:center;margin:3px 0 17px}
.dialog-close{position:absolute;top:10px;left:10px}
.dialog-close .icon{width:18px;height:18px}
.dialog-pumpkin{width:100px;height:100px;display:block;margin:-4px auto -10px}
.profile-dialog .profile-form{gap:9px}
.field-label{font-size:11px;color:#9d839f;margin:2px 2px -5px}
.profile-dialog .input-row{min-height:46px;border-radius:16px}
.profile-dialog input{font-size:13px}
.profile-dialog .consent{font-size:10px;margin:4px 0}
.profile-dialog .button{min-height:47px;font-size:14px}
.private-note{display:flex;justify-content:center;align-items:center;gap:5px;margin:16px 0 0;color:#a48da3;font-size:9px}
.private-note .icon{width:13px;height:13px}
.board-dialog{max-width:520px}
.board-dialog .leaders{margin-top:14px}
.story-dialog{text-align:center;padding-top:20px}
.story-dialog h2{font-size:29px}
.story-dialog>p{margin-bottom:12px}
#storyPreview{display:block;height:min(56svh,590px);width:auto;max-width:100%;object-fit:contain;margin:0 auto 15px;border-radius:17px;box-shadow:0 5px 15px #60456333}
.story-actions{display:flex;justify-content:center;gap:10px}
.story-actions .button{min-width:150px}
.story-actions .text-button{font-size:11px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button:focus-visible,a:focus-visible{outline:3px solid #a3dbcf;outline-offset:4px}
.cabinet:fullscreen{height:100svh;width:min(100vw,750px);border-radius:0;margin:auto;display:flex;flex-direction:column;padding:10px 16px;background:var(--cream)}
.cabinet:fullscreen .screen{flex:1;aspect-ratio:auto}
@keyframes soft-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.page{padding:0 66px}.hero-copy{margin-top:30px}}
@media(max-width:1180px) and (min-width:901px){.page{padding:0 30px}.stage-layout{grid-template-columns:minmax(0,1fr) 44%;gap:24px}.hero h1{font-size:67px}.hero p{font-size:16px}.hero-button{min-width:250px;font-size:22px}.panel{padding:15px}.panel h2{font-size:21px}.bottom-row{gap:10px;grid-template-columns:1fr 1fr 1.05fr}.result-panel{gap:9px;padding:12px}.result-art{flex-basis:37%}.result-copy h2{font-size:20px}.result-copy .button{font-size:9px}.hud{gap:7px}.game-title{font-size:17px}.lives i{font-size:24px}.time-metric small{display:none}}
@media(max-width:900px){.page{padding:0 18px}.site-header{height:76px}.brand{font-size:19px}.brand strong{font-size:29px}.brand .sprite-icon{width:55px;height:55px}.pill{padding:10px 15px;font-size:11px}.pill .icon{width:18px;height:18px}.stage-layout{grid-template-columns:1fr;gap:15px}.hero{min-height:385px}.hero-copy{max-width:540px;text-align:center;margin:15px auto 0}.eyebrow{font-size:11px}.hero h1{font-size:65px}.hero h1 em::after{bottom:0;height:5px;border-width:3px}.hero p{font-size:16px;margin:15px 0}.hero-button{min-height:53px;min-width:255px;font-size:23px}.hero-note{font-size:10px}.cabinet{width:min(100%,550px);margin:auto;animation:none}.screen{aspect-ratio:4/5}.bottom-row{grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.entry-panel{grid-column:1/-1;max-width:550px;width:100%;justify-self:center}.entry-panel>p{font-size:12px}.entry-panel .profile-form{display:grid;grid-template-columns:1fr 1fr;gap:9px}.entry-panel .consent,.entry-panel .button,.entry-panel .form-feedback{grid-column:1/-1}.entry-panel .input-row input{font-size:12px}.entry-panel .input-row{min-height:43px}.entry-panel .consent{font-size:11px}.entry-panel .button{min-height:43px;font-size:13px}footer{font-size:9px;flex-wrap:wrap;justify-content:center;text-align:center}}
@media(max-width:580px){.page{padding:0 13px}.backdrop{background-position:32% center}.site-header{height:70px;padding:0 2px}.brand{font-size:17px}.brand strong{font-size:27px}.brand .sprite-icon{width:48px;height:48px}.pill{padding:9px 12px;gap:5px;font-size:10px}.pill>span{font-size:20px;margin-right:0}.hero{min-height:365px}.hero-copy{margin-top:12px}.hero h1{font-size:clamp(50px,12vw,68px);line-height:1.2;text-shadow:0 4px 0 #55334d,0 8px 20px #2e183e66}.hero p{font-size:14px;margin:17px 0 15px}.hero-button{font-size:22px;min-width:248px;min-height:52px}.hero-note{margin-top:12px}.cabinet{padding:9px 10px 4px;border-radius:26px}.screen{border-radius:17px;aspect-ratio:3/4}.hud{height:39px;gap:7px;padding:0 3px 7px}.game-title{font-size:17px;gap:4px}.hud-ghost{width:17px;height:17px;font-size:9px}.lives i{font-size:23px}.lives{gap:1px}.time-metric{gap:4px;font-size:9px}.time-metric b{font-size:21px;min-width:24px}.time-metric small{display:none}.controls{height:29px;font-size:8px;gap:5px}.icon-button{width:27px;height:27px}.icon-button .icon{width:15px;height:15px}.ready-actions{left:8px;right:8px;bottom:8px;padding:5px 6px 5px 11px;font-size:10px}.ready-actions .button{font-size:11px;padding:5px 12px;min-height:31px}.stage-score{left:10px;top:10px;font-size:10px;padding:3px 8px}.coin-dot{width:17px;height:17px;font-size:13px}.bottom-row{grid-template-columns:1fr;gap:14px;margin-top:19px}.panel{padding:18px 21px;border-radius:23px}.panel h2{font-size:25px}.leaders li{font-size:12px;min-height:57px;grid-template-columns:31px 39px minmax(0,1fr) auto;gap:10px}.leaders .empty-board{min-height:140px}.leader-score{font-size:14px}.result-panel{padding:14px;gap:19px}.result-art{min-height:223px;flex-basis:42%}.result-copy h2{font-size:26px}.result-number b{font-size:80px}.result-copy p{font-size:11px}.result-copy .button{font-size:11px;min-height:40px}.entry-panel .profile-form{display:flex;gap:9px}.entry-panel>p{font-size:11px;margin-top:3px;margin-bottom:10px}.entry-panel .consent{font-size:10px}.entry-panel .input-row{min-height:43px}.entry-panel .button{min-height:44px}.dialog{padding:20px 22px;border-radius:27px}.dialog h2{font-size:29px}.dialog>p{font-size:11px}.profile-dialog .consent{font-size:10px}.private-note{font-size:8px}.game-pop{padding:12px 19px 18px}.game-pop h2{font-size:27px}.game-pop strong{font-size:22px}.game-overlay{padding:20px}.game-pop .sprite-icon{width:85px;height:85px}.game-pop p{font-size:11px}.countdown{font-size:120px}footer{padding:18px 8px 23px;line-height:1.9;gap:4px}footer>span:first-child{justify-content:center}.story-dialog h2{font-size:27px}#storyPreview{height:min(55svh,560px)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Shared pumpkin identity, wardrobe and historical journey. */
.backdrop{background-image:var(--forest-background,none)}
.hero-character{position:absolute;bottom:-7px;left:0;width:100%;height:360px;pointer-events:none}
.screen{aspect-ratio:540/640}
.journey-strip{padding:5px 5px 7px;display:grid;grid-template-columns:1fr auto;gap:6px;font-size:9px;color:#88708e}
.journey-strip>span{font-weight:800;color:#6e4d7c}
.journey-strip>small{font-size:8px}
.journey-track{height:5px;border-radius:8px;background:#ddc8d7;grid-row:2;grid-column:1/-1;position:relative;margin:3px 5px}
#journeyProgress{display:block;height:100%;width:0;background:linear-gradient(90deg,#be98d4,#f4c477);border-radius:8px;transition:width .12s linear;position:absolute;right:0}
#journeyDots{position:absolute;inset:-2px 0;display:flex;justify-content:space-between}
#journeyDots b{height:9px;width:9px;flex:none;background:#d2bbce;border:2px solid #fff2df;border-radius:50%}
#journeyDots b.reached{background:#edb764}
.milestone-banner{position:absolute;top:48px;left:50%;transform:translateX(-50%);width:min(365px,calc(100% - 36px));display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid #fff2cd;border-radius:18px;background:rgba(255,245,220,.96);color:#6e447d;box-shadow:0 6px 18px #2e153d25;pointer-events:none;z-index:2}
.milestone-banner b{font-family:Lalezar,sans-serif;font-size:25px;color:#bf7d3e}
.milestone-banner span{font-size:11px;line-height:1.7;font-weight:800}
.milestone-banner.entering{animation:banner-in .35s both}
.milestone-banner.leaving{opacity:0;transition:opacity .4s}
.safe-badge{position:absolute;top:13px;right:12px;font-size:9px;border-radius:14px;background:#d4f2d9ed;color:#507a64;padding:5px 9px;border:1px solid #ecffe9;pointer-events:none}
.skip-end{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#fff1dfeb;z-index:3}
.station-label{font-size:9px;color:#ad7a49;display:block;line-height:1.6;margin:2px 0 7px}
.pop-character{width:140px;height:140px;display:block;margin:-5px auto -6px}
.game-pop{padding:6px 20px 16px}
.game-pop h2{font-size:27px}
.game-pop p{font-size:11px;margin:3px 0 5px}
.game-pop strong{font-size:24px;margin-bottom:6px}
.game-pop .text-button{padding:7px 3px;font-size:10px}
.result-art{background:#79528b var(--card-forest,none) center center/cover}
.result-art canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:auto}
.result-panel{min-height:260px}
.result-copy p{font-size:10px;line-height:1.8;margin-bottom:5px}
.result-copy .station-label{font-size:8px}
.challenge-button{font-size:10px;padding:8px 3px 0}
.entry-intro{text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;padding:5px 0}
.entry-intro .sprite-icon{width:72px;height:72px}
.entry-intro p{font-size:11px;line-height:1.9;color:#a085a2;margin:0 0 4px;max-width:280px}
.entry-intro .button{font-size:12px;min-height:37px;padding:7px 18px}
.profile-dialog{max-width:520px;padding-top:23px}
.profile-dialog>p{margin-bottom:0}
.appearance-preview{display:block;width:100%;height:210px;margin:-4px auto -5px;touch-action:auto}
.appearance-choices{display:flex;flex-direction:column;gap:7px;margin:0 0 13px}
.look-group{margin:0;padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:7px}
.look-group legend{font-size:10px;color:#a184a4;margin-bottom:4px}
.look-option{border:1px solid #dfc6da;border-radius:15px;background:#fff9f1;padding:8px 10px;font-size:11px;color:#927597;min-height:36px;transition:background .2s,border-color .2s,transform .16s;box-shadow:0 2px 0 #e1c8bb}
.look-option[aria-pressed=true]{background:#e5f1dc;border-color:#a5cdb6;color:#4f7b66;box-shadow:0 2px 0 #a7c1aa}
.look-option:active{transform:scale(.97)}
.timeline-note{display:block;margin-top:9px;font-size:8px;line-height:1.8;color:#b29bb0;text-align:center}
.profile-dialog .private-note{margin-top:10px;font-size:9px}
.challenge-banner{padding:12px 20px;margin:0 0 12px;border-radius:20px;background:#fff1dff0;border:1px solid #fff7e8;box-shadow:0 4px 0 #bc9daa;font-size:12px;color:#775380;line-height:1.8}
.challenge-banner b{color:#b07938}
.share-link{width:100%;border:1px solid #e0c8d1;border-radius:14px;background:#fffaf1;padding:13px;color:#6e4e81;font-size:12px;margin:6px 0 13px;outline:none}
.challenge-dialog>.button{width:100%}
.challenge-dialog .form-feedback{margin-top:10px}
.challenge-dialog>p{margin:10px 0 15px}
@keyframes banner-in{from{opacity:0;transform:translate(-50%,-10px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(max-width:900px){
  .hero{min-height:0}
  .hero-character{position:relative;left:auto;bottom:auto;height:270px;margin-top:-9px}
  .hero-copy{margin-top:10px}
  .screen{aspect-ratio:540/640}
  .entry-intro p{max-width:400px}
}
@media(max-width:580px){
  .hero-character{height:250px;margin-top:-12px}
  .hero h1{font-size:clamp(47px,11.5vw,65px)}
  .screen{aspect-ratio:540/640}
  .profile-dialog{padding:21px 20px}
  .profile-dialog h2{font-size:28px}
  .appearance-preview{height:176px}
  .appearance-choices{gap:6px;margin-bottom:10px}
  .look-option{padding:7px 5px;font-size:10px;min-height:34px}
  .look-group legend{font-size:9px;margin-bottom:3px}
  .profile-dialog .private-note{font-size:8px}
  .milestone-banner{top:42px;padding:7px 10px;gap:8px;border-radius:15px}
  .milestone-banner b{font-size:23px}
  .milestone-banner span{font-size:9px}
  .safe-badge{font-size:8px;padding:4px 7px}
  .journey-strip{font-size:8px}
  .journey-strip>small{font-size:7px}
  .pop-character{height:120px;width:120px}
  .game-pop .station-label{font-size:9px}
  .result-copy .station-label{font-size:9px}
  .result-copy p{font-size:10px}
  .challenge-banner{font-size:11px;padding:11px 14px}
}
@media(prefers-reduced-motion:reduce){
  .milestone-banner.entering{animation:none}
  #journeyProgress,.look-option{transition:none}
}
canvas.avatar{background-image:none;background-color:#e6d1ec}.journey-strip>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.look-option{font-size:12px;color:#7a5888}@media(max-width:580px){.look-option{font-size:11px}}
.sound-button{border:0;border-radius:12px;background:#dfedda;color:#607761;font-size:8px;white-space:nowrap;padding:5px 7px;min-width:54px}.sound-button[aria-pressed=false]{background:#eadde4;color:#aa8a9e}.rest-pop h2{font-size:27px;line-height:1.4}.rest-pop #overlayMessage{font-size:14px;font-weight:800;line-height:1.9;color:#795584;margin:6px 0 10px}.rest-pop #overlayScore{font-size:17px;color:#b28044}.rest-pop #overlayStation{font-size:10px;margin:6px 0 13px}.rest-pop .button{font-size:12px;min-height:43px}.rest-pop .pop-character{height:150px;width:160px}.controls{gap:5px}.controls>div{gap:0}@media(max-width:580px){.rest-pop h2{font-size:24px}.rest-pop #overlayMessage{font-size:13px}.rest-pop .pop-character{height:128px;width:140px}.controls{font-size:7px}.sound-button{font-size:7px;min-width:49px;padding:5px}.game-overlay{padding:15px}}
.rest-dialog{text-align:center;max-width:455px;padding:24px 28px}.rest-eyebrow{display:block;font-size:10px;color:#b38c62;margin-bottom:5px}.rest-dialog h2{font-size:32px;line-height:1.4}.rest-character{width:100%;height:210px;display:block;touch-action:auto;margin:-2px 0}.rest-dialog .rest-message{font-size:16px;line-height:2;font-weight:800;color:#785584;margin:3px 0 9px}.rest-wave{font-size:13px;color:#b1834d}.rest-dialog .rest-note{font-size:11px;margin:9px 0 16px;color:#a28ca8}.rest-dialog>.button{width:100%;font-size:14px;min-height:48px}.rest-dialog>.text-button{font-size:10px;padding:12px 4px 0}@media(max-width:580px){.rest-dialog{padding:20px 22px}.rest-dialog h2{font-size:28px}.rest-character{height:185px}.rest-dialog .rest-message{font-size:14px}.rest-dialog>.button{font-size:13px;min-height:46px}}
.hero h1{font-size:clamp(60px,5.3vw,84px)}.hero .mission-copy{font-size:17px;line-height:1.9;font-weight:700;color:#fff0db;max-width:650px;padding:9px 14px 9px 0;margin:15px 0 18px;background:linear-gradient(90deg,transparent,rgba(44,25,62,.72));border-radius:13px;text-shadow:0 2px 3px #25142f}.hero-note{display:inline-block;padding:5px 10px;border-radius:9px;background:rgba(42,23,60,.68);color:#fff1de;font-size:12px}.profile-dialog>p{font-size:13px;color:#82648c;line-height:1.9}.look-group legend,.field-label{font-size:12px;color:#80608a}.input-row input::placeholder{color:#937a9e}.profile-dialog .private-note,.timeline-note{color:#8b7195;font-size:11px}.panel>p{color:#85698e}.look-option{font-weight:700}.rest-dialog .rest-explanation{font-size:13px;font-weight:500;line-height:2;color:#806489;margin:5px 0 14px}.rest-dialog .rest-note{color:#92789a}.rest-character{height:185px}.end-dialog{text-align:center;max-width:460px;padding:24px 27px}.end-dialog h2{font-size:32px}.end-character{width:100%;height:180px;display:block;margin:-5px 0}.end-dialog .end-message{font-size:14px;font-weight:800;line-height:1.9;color:#765281;margin:0 0 10px}.end-score{font-size:24px;color:#624074}.end-dialog .station-label{font-size:11px;color:#b18549;margin:8px 0}.end-dialog .end-description{font-size:12px;color:#92779a;line-height:1.9;margin:5px 0 18px}.end-dialog>.button{width:100%;font-size:14px;min-height:47px}.end-actions{display:flex;justify-content:center;gap:12px;margin-top:7px}.end-actions .text-button{font-size:11px}.end-description:empty,.rest-explanation:empty{display:none}footer{font-size:11px;text-shadow:0 2px 3px #271831;background:rgba(39,22,53,.45);border-radius:10px;margin-top:12px}@media(max-width:900px){.hero .mission-copy{margin-left:auto;margin-right:auto;text-align:center;padding:10px 13px;background:rgba(42,24,60,.58)}.hero-note{font-size:11px}}@media(max-width:580px){.hero h1{font-size:clamp(46px,11.5vw,65px)}.hero .mission-copy{font-size:14px;line-height:1.9}.profile-dialog>p{font-size:12px}.look-group legend,.field-label{font-size:11px}.timeline-note,.profile-dialog .private-note{font-size:10px}.rest-character{height:158px}.rest-dialog .rest-explanation{font-size:12px;line-height:2}.end-dialog{padding:23px 22px}.end-dialog h2{font-size:29px}.end-character{height:155px}.end-score{font-size:21px}.end-dialog .end-description{font-size:11px}footer{font-size:10px}}
.input-row input::placeholder{color:#7d6588}.timeline-note,.profile-dialog .private-note{color:#7d6387}.entry-intro p,.result-copy p{color:#7e6288}.rest-dialog .rest-explanation{color:#70577b}.end-dialog .end-description{color:#7a6085}
.hero-copy{animation:none}
.pill,.pill:hover{background:none;border:0;border-radius:0;box-shadow:none;color:#fff2dc;text-shadow:0 2px 4px #271731;padding:8px 0}
.tiny-button,.sound-button,.sound-button[aria-pressed=false]{background:none;border:0;border-radius:0;box-shadow:none;color:#785286;padding:5px 6px;font-size:10px}
.tiny-button:hover,.sound-button:hover,.whitepaper-link:hover{text-decoration:underline;text-underline-offset:4px}
.sound-button[aria-pressed=false]{color:#a28ba7}
.look-option,.look-option[aria-pressed=true]{background:none;border:0;border-radius:0;box-shadow:none;border-bottom:2px solid transparent}
.look-option[aria-pressed=true]{border-bottom-color:#74b598;color:#41785f}
.hero-note{background:none;border:0;border-radius:0;padding:0;color:#fff0dd;text-shadow:0 2px 4px #24132f}
.stage-score,.safe-badge{background:none;border:0;border-radius:0;backdrop-filter:none;box-shadow:none;text-shadow:0 2px 4px #35203f}
.safe-badge{color:#dcfbdc}
.whitepaper-link{display:block;font-size:11px;margin-top:10px;text-underline-offset:4px}
.hero .mission-copy{font-size:18px;max-width:625px}.hero-note{display:block;width:max-content;max-width:100%;margin-top:11px;clear:both}@media(max-width:900px){.hero-note{margin-left:auto;margin-right:auto}}@media(max-width:580px){.hero .mission-copy{font-size:14px}}
select{font:inherit;color:inherit}.input-row select{width:100%;min-width:0;border:0;background:transparent;padding:10px 0;outline:0;color:var(--ink);font-size:13px}.profile-dialog{max-height:calc(100svh - 28px);overflow-y:auto}.appearance-preview{height:145px;margin:0 auto}.profile-dialog .profile-form{gap:7px}.profile-dialog .consent{line-height:1.9}.rest-dialog[open]{display:flex;flex-direction:column;max-height:calc(100svh - 28px);overflow-y:auto}.rest-dialog>*{flex-shrink:0}.rest-dialog .rest-explanation{margin:8px 0 12px;line-height:2}.rest-wave{display:block;margin:5px 0 14px;line-height:1.8}.rest-dialog>.button{display:flex;position:static;margin:8px 0 7px;flex-shrink:0}.game-about{margin:20px 0 0;padding:12px 3px;color:#fff0df;font-size:12px;line-height:2;text-shadow:0 2px 3px #281832}.game-about summary{cursor:pointer;font-weight:700}.game-about p{max-width:780px}#pauseCount{font-size:8px;white-space:nowrap;padding-left:3px}@media(max-width:580px){.appearance-preview{height:115px}.profile-dialog{padding:18px 20px}.profile-dialog h2{font-size:26px}.look-option{min-height:30px;padding:5px}.look-group legend{margin-bottom:2px}.rest-dialog .rest-explanation{margin-bottom:14px}.rest-character{height:140px}}
