@font-face{font-family:FontNotas;src:url('../fonts/fontnotas.ttf') format('truetype');font-display:block;font-weight:400}
:root{color-scheme:dark;--ink:#171529;--night:#121223;--cream:#fff1d2;--muted:#b9aec8;--orange:#ffb047;--mint:#9ce2c4;--paper:#fff3da;--font:'Nunito Sans',system-ui,sans-serif;--display:'Berkshire Swash',Georgia,serif}
*{box-sizing:border-box}body{margin:0;background:var(--night);color:var(--cream);font-family:var(--font);font-weight:600}button,input,select,textarea{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--mint);outline-offset:5px}button{transition:transform .18s,background .18s,box-shadow .18s}button:not(:disabled):active{transform:translateY(2px)}button svg,a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:76px;max-width:1536px;padding:0 40px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{color:var(--cream);display:flex;gap:12px;align-items:center;text-decoration:none;font-size:12px;letter-spacing:1.9px;white-space:nowrap}.brand svg{width:29px;height:29px;color:var(--orange)}.brand b{color:var(--orange)}.top-actions{display:flex;gap:10px;align-items:center}.icon-btn,.language-btn{height:37px;min-width:37px;background:transparent;color:#d6cbe1;display:grid;place-items:center;border:1px solid #ffffff1c;border-radius:50%}.icon-btn:hover,.language-btn:hover{background:#ffffff12}.help-btn{font-size:21px;font-family:Georgia,serif;font-weight:bold}.share-btn{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:20px;background:#ffffff0c;color:#e4d7ed;font-size:12px}.language-btn{font-size:11px;font-weight:900;letter-spacing:1px;border:0}main{max-width:1536px;margin:auto;padding:0 20px}.game-frame{position:relative;isolation:isolate;width:100%;height:min(790px,calc(100svh - 124px));min-height:620px;border:1px solid #ffffff16;border-radius:22px;overflow:hidden;background:#1e1b38;box-shadow:0 25px 60px #0005}.street-art{position:absolute;inset:0;z-index:-3;background:url('assets/street.png') center 58%/cover no-repeat;transition:transform 1s cubic-bezier(.2,.65,.2,1),filter .6s}.scene-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#11132655 0%,transparent 45%,#0d0c1d00 65%,#0d0c1dcc 100%)}.home-screen,.play-screen{position:absolute;inset:0}.title-block{text-align:center;position:absolute;top:28px;left:0;right:0;filter:drop-shadow(0 4px 12px #100b2f)}.eyebrow{font-size:10px;font-weight:900;letter-spacing:3.3px;color:#ecd3a3;margin:0 0 12px;text-transform:uppercase}.title-block h1{font-family:var(--display);font-weight:400;font-size:clamp(65px,7.4vw,110px);line-height:1.1;margin:0;letter-spacing:-3px;color:#fff1cd;text-shadow:0 5px 0 #522733,0 10px 24px #171128}.title-block h1 small{font-family:var(--display);font-size:.45em;margin:0 .25em;color:#f5dcac}.title-block h1 em{font-style:normal;color:#ffb048}.tagline{font-size:15px;line-height:1.6;color:#f7e9e1;margin:16px 0 0;text-shadow:0 2px 8px #000}.home-launch{position:absolute;bottom:66px;left:50%;transform:translateX(-50%);text-align:center;width:max-content;max-width:90%}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:13px;min-height:49px;padding:13px 24px;font-weight:900;font-size:14px}.primary{color:#31172b;background:linear-gradient(#ffc46a,#ffa337);box-shadow:0 4px 0 #a95726,0 9px 20px #0002;border:1px solid #ffd891}.primary:hover{background:linear-gradient(#ffd48d,#ffb14c);box-shadow:0 4px 0 #a95726,0 8px 25px #ffac3933;transform:translateY(-2px)}.secondary{color:var(--cream);background:#ffffff0d;border:1px solid #ffffff30;box-shadow:none}.secondary:hover{background:#ffffff1a}.start-button{font-size:21px;min-height:66px;padding:16px 34px;gap:28px;border-radius:16px}.home-launch p{font-size:11px;letter-spacing:.4px;color:#d5c8d9;margin:16px 0 0}.sprite{background-image:url('assets/characters.png');background-size:200% 200%;background-repeat:no-repeat;aspect-ratio:1}.ghost{background-position:0 0}.vampire{background-position:100% 0}.witch{background-position:0 100%}.skeleton{background-position:100% 100%}.home-character{position:absolute;width:clamp(120px,14vw,205px);bottom:50px;left:8%;filter:drop-shadow(0 8px 18px #0005);animation:float 4s ease-in-out infinite;transform:rotate(-9deg)}.scene-caption{position:absolute;bottom:24px;left:0;right:0;text-align:center;color:#b5a8be;font-size:9px;letter-spacing:2.5px}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 10px;font-size:10px;color:#93879f}.page-footer button{color:#bfb0cb;background:none;padding:0;font-size:10px}.fireflies{position:absolute;inset:0;pointer-events:none;z-index:-1}.fireflies i{position:absolute;width:4px;height:4px;background:#ffe8b1;border-radius:50%;box-shadow:0 0 12px 3px #ffc46999;animation:glow 4s ease-in-out infinite}.fireflies i:nth-child(1){left:11%;top:69%}.fireflies i:nth-child(2){left:35%;top:54%;animation-delay:1s}.fireflies i:nth-child(3){left:68%;top:77%;animation-delay:2s}.fireflies i:nth-child(4){left:89%;top:47%;animation-delay:3s}.fireflies i:nth-child(5){left:44%;top:83%;animation-delay:1.5s}.fireflies i:nth-child(6){left:60%;top:33%;animation-delay:2.5s}
.scoreboard{position:absolute;top:20px;left:24px;right:24px;display:flex;justify-content:space-between;gap:12px}.score-card{background:#171324db;backdrop-filter:blur(10px);border:1px solid #ffffff26;padding:10px 17px;border-radius:14px;display:flex;align-items:center;gap:14px;min-width:175px}.score-card.active{border-color:#ffd089;box-shadow:0 0 20px #ffad331a}.team-dot{width:9px;height:9px;background:var(--orange);border-radius:50%;box-shadow:0 0 9px #ffb04788}.score-card:nth-child(2) .team-dot{background:var(--mint)}.score-card .team-name{font-size:13px;display:block}.score-card small{font-size:8px;letter-spacing:1.3px;color:#b5a6c3;display:block;margin-top:2px}.score-card strong{font-family:var(--display);font-size:29px;margin-left:auto;color:#ffcd86}.score-card svg{width:20px;height:20px;stroke:var(--orange);fill:none;stroke-width:1.6}.street-instruction{position:absolute;top:110px;left:16px;right:16px;text-align:center;text-shadow:0 4px 14px #000}.pill{display:inline-block;font-size:10px;letter-spacing:1.1px;font-weight:900;color:#ead4ac;background:#1b1733bf;border:1px solid #ffffff25;border-radius:20px;padding:7px 12px}.street-instruction h2{font-family:var(--display);font-size:clamp(28px,3.2vw,44px);font-weight:400;margin:14px 0 9px}.street-instruction p{font-size:13px;margin:0;color:#ece1eb}.house-choices{position:absolute;inset:0}.house{position:absolute;top:32%;width:27%;height:44%;background:transparent;border-radius:45% 45% 12% 12%;color:#fff1d4}.house-0{left:7%}.house-1{left:36%}.house-2{left:67%}.house-glow{position:absolute;inset:0;border-radius:inherit;transition:.25s;pointer-events:none}.house:hover .house-glow,.house:focus-visible .house-glow{background:radial-gradient(ellipse at 50% 85%,#ffb94a40,transparent 66%);box-shadow:0 0 0 1px #ffd88a55,inset 0 0 25px #ffb03422}.door-marker{position:absolute;left:50%;top:65%;transform:translateX(-50%);width:38px;height:38px;display:grid;place-items:center;border:1px solid #ffe3a7;border-radius:50%;background:#ffb447;color:#47202c;box-shadow:0 0 20px #ffbd49;font-family:Georgia,serif;font-size:23px;animation:beacon 2.2s ease-in-out infinite}.house-1 .door-marker{animation-delay:.4s}.house-2 .door-marker{animation-delay:.8s}.house-label{position:absolute;bottom:-32px;left:50%;transform:translateX(-50%);width:max-content;max-width:110%;padding:10px 17px;border:1px solid #f8dca64d;background:#20172aee;border-radius:11px;backdrop-filter:blur(8px);box-shadow:0 5px 12px #0005}.house-label b{display:block;font-size:12px}.house-label small{display:block;color:#ffc278;font-size:10px;margin-top:4px}.house:hover .house-label{border-color:#ffd18a;background:#372034}.street-bottom{position:absolute;left:26px;right:26px;bottom:25px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}.bag-display{display:flex;align-items:center;gap:12px}.bag-display>svg{height:45px;width:45px;stroke:#ffc66e;fill:none;stroke-width:1.3;transform:rotate(-12deg)}.bag-display span,.next-prize>span{font-size:8px;letter-spacing:1.8px;display:block;color:#d0b8ca}.bag-display strong{display:block;font-family:var(--display);font-size:38px;line-height:1.1;color:#ffce86}.bag-display>small{align-self:end;font-size:10px;color:#b8a8bd;padding-bottom:5px;max-width:80px}.next-prize{text-align:right}.next-prize strong{font-size:20px;color:#ffcd86;display:block;margin:3px 0}.next-prize small{font-size:10px;color:#b8a8bd}
dialog{border:0;padding:0;max-height:calc(100svh - 30px);overscroll-behavior:contain;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#0a0918bb;backdrop-filter:blur(7px)}dialog[open]{animation:enter .25s ease-out}.paper-dialog{background:var(--paper);color:#34263a;border:1px solid #fff8e6;border-radius:23px;padding:32px;width:min(570px,calc(100% - 28px));color-scheme:light}.paper-dialog h2{font-family:var(--display);font-size:30px;font-weight:400;line-height:1.15;margin:6px 0 24px}.close-btn{position:absolute;right:14px;top:10px;width:32px;height:32px;border-radius:50%;background:#3a283b0d;font-size:25px;color:inherit;line-height:1}.dark{color:#98612e;font-size:9px;letter-spacing:2px;padding-right:20px}.paper-dialog p{font-size:13px;line-height:1.6}.paper-dialog fieldset{border:0;padding:0;margin:0 0 18px}.paper-dialog legend,.paper-dialog label>span{font-size:11px;font-weight:900;margin:0 0 8px;display:block}.option-pair,.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.option-card{border:1px solid #d8c6ab;border-radius:12px;padding:12px;display:flex;gap:8px;cursor:pointer;background:#fff9ec}.option-card:has(input:checked){border-color:#955c23;box-shadow:0 0 0 1px #955c23;background:#ffe3b6}.option-card input{accent-color:#884522;margin:3px 0 0}.option-card span b{font-size:11px;line-height:1.4;display:block}.option-card span small{font-size:10px;font-weight:600;display:block;margin-top:4px;line-height:1.4}.settings-row{margin:14px 0}.settings-row label{min-width:0}.paper-dialog input:not([type=radio]):not([type=range]),.paper-dialog select,.paper-dialog textarea{width:100%;border:1px solid #d6c5aa;border-radius:9px;min-height:41px;background:#fffaf0;color:#34263a;padding:9px 10px;font-size:12px}.paper-dialog input:focus,.paper-dialog select:focus,.paper-dialog textarea:focus{outline:2px solid #a15e24;outline-offset:2px}.paper-dialog input[type=range]{width:100%;accent-color:#ae6326;height:36px}.settings-row label>span b{float:right;font-size:10px;color:#a25c23}.figure-preview{display:flex;align-items:center;justify-content:center;gap:24px;padding:10px 0;min-height:62px;border-top:1px dashed #c9b28f;border-bottom:1px dashed #c9b28f}.figure-preview span{font-family:FontNotas;font-size:36px;font-weight:400;line-height:1.3}.setup-tip{font-size:11px!important;color:#74616a;margin:12px 0 18px}.wide{width:100%}.paper-dialog .secondary{color:#503648;border-color:#cbb69c;background:#fff9ed}.paper-dialog .secondary:hover{background:#f2e0c2}
.challenge-dialog{width:min(760px,calc(100% - 24px));background:radial-gradient(ellipse at top right,#46304c,#201a32 70%);border:1px solid #b69b7955;border-radius:24px;padding:24px 30px;color:var(--cream);overflow:visible;max-height:calc(100svh - 24px)}.challenge-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.text-button{background:none;color:#baadca;font-size:11px;padding:8px}.challenge-heading{display:flex;justify-content:space-between;align-items:center;min-height:148px}.challenge-heading>div:first-child{position:relative;z-index:1}.challenge-heading .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:8px;color:var(--orange)}.challenge-heading h2{font-family:var(--display);font-size:36px;font-weight:400;line-height:1.1;margin:0 0 10px}.challenge-heading p:last-child{font-size:12px;color:#cbbdd0;max-width:440px;line-height:1.5;margin:0}.host-sprite{width:170px;flex-shrink:0;margin-top:-25px;margin-right:-10px;filter:drop-shadow(0 8px 13px #0004);animation:float 4s ease-in-out infinite}.rhythm-paper{position:relative;display:flex;align-items:center;gap:15px;background:var(--paper);color:#302037;border-radius:13px;padding:19px 22px 17px;min-height:132px;box-shadow:0 5px 0 #9e7b59,0 10px 25px #0003}.time-signature{font-family:Georgia,serif;font-size:27px;font-weight:bold;line-height:.95;border-right:1px solid #d6bfa1;padding-right:16px}.rhythm-cells{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;flex:1;min-width:0}.rhythm-cell{border-radius:9px;text-align:center;min-width:0;padding:10px 0 6px;transition:background .12s,transform .12s;position:relative}.rhythm-cell .notation{font:400 clamp(48px,6.2vw,75px)/1 FontNotas;display:block;white-space:nowrap}.rhythm-cell .beat-number{font-family:var(--font);font-size:9px;display:block;margin-top:10px;color:#9a806f;font-weight:900}.rhythm-cell.active{background:#ffd894;transform:translateY(-2px);box-shadow:inset 0 -3px 0 #d89440}.rhythm-cell.correct{background:#d8edd3}.rhythm-cell.wrong{background:#f5d0bc}.end-bar{height:62px;width:7px;border-left:2px solid #533747;border-right:4px solid #533747}.beat-strip{display:flex;justify-content:center;gap:12px;margin:24px 0 10px}.beat-strip i{font-style:normal;border:1px solid #ffffff26;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;color:#b6a5c2;font-size:11px;transition:.1s}.beat-strip i.active{background:var(--orange);color:#352036;box-shadow:0 0 20px #ffb04755;border-color:var(--orange);transform:scale(1.12)}.challenge-status{min-height:22px;text-align:center;font-size:13px;color:#d8c6df;margin:10px 0 18px}.challenge-actions{display:flex;justify-content:center;gap:12px;margin-bottom:7px}.tap-pad{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:93px;border-radius:15px;border:2px solid #ffd894;background:#feb754;box-shadow:0 5px 0 #945022;color:#4a2231;user-select:none;-webkit-user-select:none;touch-action:none}.tap-pad span{font-size:23px;font-weight:900;letter-spacing:2px}.tap-pad small{font-size:10px;margin-top:3px}.tap-pad:not(:disabled):active,.tap-pad.pressed{transform:none}.tap-pad.pressed{background:#fff0c3;box-shadow:0 2px 0 #945022}.teacher-check{text-align:center}.teacher-check p{font-size:12px;color:#d1bed7}.teacher-check>div{display:flex;gap:12px;justify-content:center}.outcome-dialog{background:radial-gradient(ellipse at top,#49304c,#211a31 70%);border:1px solid #d2ae7455;border-radius:26px;color:var(--cream);text-align:center;padding:20px 34px 27px;width:min(510px,calc(100% - 28px))}.outcome-sprite{width:170px;margin:-2px auto 0;animation:float 3s ease-in-out infinite;filter:drop-shadow(0 12px 15px #0004)}.outcome-dialog h2{font:400 39px/1.1 var(--display);margin:10px 0 12px}.outcome-dialog>p:not(.eyebrow){font-size:13px;line-height:1.6;color:#cfbfd5;margin:0 auto 13px;max-width:370px}.outcome-dialog .eyebrow{font-size:9px;letter-spacing:2px;margin:8px 0;color:var(--orange)}.outcome-amount{font:400 51px/1.2 var(--display);color:#ffd28a;margin:8px 0 22px}.outcome-amount svg{height:34px;width:34px;stroke:currentColor;stroke-width:1.4;fill:none;vertical-align:middle;margin-right:9px}.outcome-actions{display:flex;flex-direction:column;gap:12px}.outcome-footnote{font-size:10px!important;margin:18px 0 0!important}.results-table{margin:12px auto 20px;width:100%;font-family:var(--font);font-size:15px}.results-table div{display:flex;justify-content:space-between;align-items:center;padding:9px 15px;border-bottom:1px solid #ffffff18}.results-table b{font-family:var(--display);font-size:28px}.how-list{list-style:none;counter-reset:steps;padding:0}.how-list li{position:relative;padding:0 0 20px 45px;counter-increment:steps}.how-list li:before{content:counter(steps);position:absolute;left:0;top:0;background:#e8cda5;color:#764124;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font-weight:900}.how-list b{font-size:14px;display:block;margin-bottom:5px}.how-list span{font-size:12px;line-height:1.6;display:block;color:#79636d}.guide-note{padding:15px;border-radius:12px;background:#ebdebf}.guide-note b{font-size:12px}.guide-note p{margin:6px 0 0;font-size:12px}.small-note{font-size:11px!important;color:#8d756e}.share-dialog label{display:block;margin:22px 0 12px}.share-dialog details{margin-top:24px;border-top:1px solid #d8c5a5;padding-top:15px}.share-dialog summary{cursor:pointer;font-size:12px;font-weight:900}.share-dialog textarea{font-family:monospace;font-size:10px;resize:vertical;margin:12px 0}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:1000;background:#fff0cf;color:#3c2840;border-radius:12px;box-shadow:0 10px 30px #0006;padding:13px 24px;font-size:13px;max-width:90%;text-align:center}.celebration{position:absolute;inset:0;pointer-events:none;z-index:5;overflow:hidden}.confetti{position:absolute;top:-25px;width:10px;height:16px;border-radius:3px;animation:fall 2.8s linear forwards}.game-frame.playing .scene-shade{background:linear-gradient(#0a0a20aa 0%,#0c0b1c20 38%,transparent 65%,#0d0c1ded 100%)}.game-frame.playing .street-art{filter:saturate(.9)}
@keyframes float{0%,100%{translate:0 0}50%{translate:0 -10px}}@keyframes glow{0%,100%{opacity:.2;translate:0 5px}50%{opacity:1;translate:6px -7px}}@keyframes beacon{0%,100%{box-shadow:0 0 15px #ffbd4977}50%{box-shadow:0 0 32px #ffbd49bb}}@keyframes enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fall{to{transform:translateY(950px) rotate(600deg);opacity:0}}
@media(min-width:1500px){.game-frame{height:820px}.title-block{top:37px}}
@media(max-width:900px){.topbar{padding:0 22px;height:64px}.game-frame{height:calc(100svh - 112px);min-height:590px}.street-art{background-size:auto 100%;background-position:50% 50%}.title-block{top:34px}.title-block h1{font-size:77px}.tagline{font-size:13px}.house-label b{font-size:10px}.house-label{padding:8px 10px;max-width:130%}.house-0{left:2%;width:29%}.house-1{left:35%;width:29%}.house-2{left:69%;width:29%}.home-character{left:2%;width:145px;bottom:110px}.street-instruction{top:100px}.score-card{min-width:150px}.street-instruction h2{font-size:32px}}
@media(max-width:600px){main{padding:0 10px}.topbar{padding:0 16px;height:60px;gap:8px}.brand{font-size:8px;letter-spacing:1.1px;gap:7px}.brand svg{width:22px}.top-actions{gap:5px}.icon-btn{min-width:31px;width:31px;height:31px}.share-btn{padding:7px;border-radius:50%}.share-btn span{display:none}.language-btn{min-width:26px;font-size:10px}.game-frame{border-radius:17px;min-height:610px;height:calc(100svh - 110px);max-height:800px}.street-art{background-size:auto 82%;background-position:center 59%;background-color:#17172f}.scene-shade{background:linear-gradient(#17172f 0%,#17172f33 22%,transparent 65%,#111022 94%)}.title-block{top:32px}.eyebrow{font-size:8px;letter-spacing:2px}.title-block h1{font-size:59px;letter-spacing:-1.6px}.tagline{margin-top:14px;font-size:12px}.home-launch{bottom:62px}.start-button{font-size:18px;min-height:58px;gap:15px;padding:15px 23px}.home-launch p{font-size:9px}.home-character{width:107px;bottom:158px;left:6%}.scene-caption{font-size:7px;letter-spacing:1.6px}.page-footer{font-size:8px;align-items:start;padding:13px 3px;line-height:1.5}.page-footer span{max-width:230px}.page-footer button{white-space:nowrap;font-size:9px}.scoreboard{top:14px;left:12px;right:12px;gap:8px}.score-card{min-width:0;flex:1;padding:8px 10px;gap:8px;border-radius:11px}.score-card .team-name{font-size:10px}.score-card small{font-size:6px;letter-spacing:.7px}.score-card strong{font-size:25px}.score-card svg{width:15px}.team-dot{width:6px;height:6px;flex-shrink:0}.street-instruction{top:95px}.street-instruction h2{font-size:26px;margin:13px 0 8px}.street-instruction p{font-size:10px;max-width:280px;margin:auto;line-height:1.5}.pill{font-size:8px;padding:6px 9px}.house{top:37%;height:35%;width:30%!important}.house-0{left:1%}.house-1{left:35%}.house-2{left:68%}.house-label{max-width:none;width:106px;padding:9px 5px;bottom:-35px}.house-label b{font-size:9px;line-height:1.35}.house-label small{font-size:8px;margin-top:4px}.door-marker{width:29px;height:29px;font-size:20px;top:70%}.street-bottom{left:16px;right:16px;bottom:27px}.bag-display>svg{width:32px;height:32px}.bag-display{gap:8px}.bag-display>small{display:none}.bag-display span,.next-prize>span{font-size:7px;letter-spacing:1px}.bag-display strong{font-size:32px}.next-prize strong{font-size:17px}.next-prize small{font-size:9px}.paper-dialog{padding:27px 21px}.paper-dialog h2{font-size:26px;margin-bottom:20px}.settings-row,.option-pair{gap:9px}.option-card{padding:10px 8px;gap:5px}.option-card span b{font-size:10px}.option-card span small{font-size:9px}.figure-preview{gap:17px;flex-wrap:wrap}.figure-preview span{font-size:28px}.challenge-dialog{padding:19px 16px;overflow:auto}.challenge-heading{min-height:124px}.challenge-heading h2{font-size:27px}.challenge-heading p:last-child{font-size:10px;max-width:240px}.host-sprite{width:100px;margin-top:-7px;margin-right:-7px}.challenge-heading .eyebrow{font-size:7px;letter-spacing:1.5px}.challenge-top .text-button{font-size:9px}.rhythm-paper{gap:8px;padding:14px 10px;min-height:113px}.time-signature{font-size:23px;padding-right:9px}.rhythm-cells{gap:2px}.rhythm-cell .notation{font-size:43px}.rhythm-cell .beat-number{font-size:8px}.end-bar{width:6px;height:49px;flex-shrink:0}.challenge-actions{gap:8px}.challenge-actions button{font-size:11px;padding:11px 13px;min-height:46px}.challenge-actions svg{width:15px}.challenge-status{font-size:11px;min-height:32px;line-height:1.5}.beat-strip{margin-top:20px}.outcome-dialog{padding:20px 24px}.outcome-dialog h2{font-size:33px}.outcome-sprite{width:145px}.outcome-amount{font-size:43px}.outcome-dialog>p:not(.eyebrow){font-size:12px}}
@media(max-width:380px){.brand span{max-width:85px;white-space:normal;line-height:1.5}.top-actions{gap:4px}#fullscreen-btn{display:none}.title-block h1{font-size:53px}.house-label{width:93px}.rhythm-cell .notation{font-size:36px}.host-sprite{width:86px}.challenge-heading h2{font-size:24px}}
@media(max-height:750px) and (min-width:601px){.game-frame{min-height:530px}.title-block{top:20px}.title-block h1{font-size:76px}.tagline{margin-top:8px}.home-launch{bottom:46px}.scene-caption{bottom:17px}.home-character{bottom:40px;width:145px}.street-instruction{top:95px}.street-instruction h2{font-size:31px}.street-bottom{bottom:17px}.challenge-heading{min-height:120px}.host-sprite{width:130px}.challenge-dialog{padding:19px 26px}.rhythm-paper{min-height:110px;padding:11px 20px}.rhythm-cell .notation{font-size:62px}.beat-strip{margin:18px 0 9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.embedded .brand{pointer-events:none}body.embedded .page-footer{display:none}body.embedded .game-frame{height:calc(100svh - 85px)}
/* Keep all three destinations visible on narrow screens. */
@media(max-width:900px){.street-art{background-size:100% auto;background-position:center 60%;background-color:#17172f}.scene-shade{background:linear-gradient(#17172f66,transparent 50%,#111022cc 100%)}}
@media(max-width:600px){.street-art{background-size:100% auto;background-position:center 56%}.scene-shade{background:linear-gradient(#17172f 0%,#17172f33 22%,transparent 65%,#111022 94%)}}
.door-portrait{position:relative;width:174px;height:184px;margin:0 auto 15px;border-radius:90px 90px 12px 12px;background:radial-gradient(ellipse at center,#f9cc7544,#100e20 70%);border:7px solid #76513f;box-shadow:0 0 0 3px #b48658,0 12px 25px #0004;perspective:600px;overflow:hidden}.door-portrait .outcome-sprite{width:158px;margin:5px auto 0}.reveal-panel{position:absolute;top:0;bottom:0;width:50%;background:repeating-linear-gradient(90deg,#724029 0,#724029 20px,#583325 21px,#583325 23px);border:2px solid #c18546;z-index:2;backface-visibility:hidden}.reveal-panel:after{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:#ffd190;top:60%;box-shadow:0 0 3px #000}.reveal-panel.left{left:0;transform-origin:left center;border-radius:75px 0 0 0}.reveal-panel.right{right:0;transform-origin:right center;border-radius:0 75px 0 0}.reveal-panel.left:after{right:7px}.reveal-panel.right:after{left:7px}.outcome-dialog[open] .reveal-panel.left{animation:door-left 1s .15s ease forwards}.outcome-dialog[open] .reveal-panel.right{animation:door-right 1s .15s ease forwards}@keyframes door-left{to{transform:rotateY(-108deg)}}@keyframes door-right{to{transform:rotateY(108deg)}}
@media(prefers-reduced-motion:reduce){.reveal-panel{display:none}}
/* The atlas has a small painted overlap at its horizontal seam. */
.ghost,.vampire{clip-path:inset(0 1% 8% 1%)}.witch{background-position:0 94%}.skeleton{background-position:100% 94%}
@media(max-width:600px){.door-portrait{width:145px;height:153px}.door-portrait .outcome-sprite{width:132px;margin-top:0}.outcome-dialog{max-height:calc(100svh - 20px);overflow-y:auto}}
