/* The street is the game world; the HUD stays in the viewport. */
.topbar{height:62px}.game-frame{height:calc(100svh - 94px);min-height:540px;max-height:880px;border-radius:17px;outline:none}.page-footer{padding:9px 6px;font-size:9px}.street-world{position:absolute;inset:0 auto 0 0;width:100%;min-width:1100px;height:100%;will-change:transform;isolation:isolate}.street-art{background-size:cover;background-position:center 58%;pointer-events:none}.scene-shade{pointer-events:none;background:linear-gradient(#10102225,transparent 50%,#10102222)}.game-frame.playing .scene-shade{background:linear-gradient(#0a0a2038,transparent 36%,transparent 80%,#100e2533)}.game-frame.playing .street-art{filter:none}.play-screen{pointer-events:none}.home-screen{background:linear-gradient(#10102235,transparent 60%,#11102277)}.title-block{top:30px}.title-block h1{font-size:clamp(72px,8vw,115px)}.tagline{font-size:13px;margin-top:10px}.home-launch{bottom:32px;display:flex;flex-direction:column;align-items:center;gap:17px}.start-button{min-width:190px;min-height:61px;font-size:22px;border-radius:16px}.menu-settings{background:transparent;color:#e9d9d5;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:4px 10px}.home-character{width:210px;left:17%;bottom:39px;transform:rotate(-3deg)}.settings-btn{font-size:19px}.house-choices{pointer-events:none}.house{pointer-events:auto;top:35%;height:39%;border-radius:45% 45% 20% 20%;width:27%!important}.house-0{left:9%}.house-1{left:36.5%}.house-2{left:71%}.house-label{display:none}.house-glow{box-shadow:none}.house .door-marker{width:29px;height:29px;font-size:19px;left:50%;top:73%;background:#261833ba;color:#ffda8b;border:1px solid #ffd28499;box-shadow:0 0 18px #ffbb4377;transition:.2s}.house-prize{position:absolute;left:50%;top:92%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;color:#ffedc2;background:#28192ebd;border:1px solid #eac88766;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:900;white-space:nowrap;opacity:.75;transition:.2s;pointer-events:none}.house-prize svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}.house.near .house-glow,.house:hover .house-glow{background:radial-gradient(ellipse at 50% 85%,#ffbb4530,transparent 60%);box-shadow:none}.house.near .door-marker{background:#ffcc78;color:#4b2836;box-shadow:0 0 30px #ffb636cc;scale:1.2}.house.near .house-prize{opacity:1;transform:translateX(-50%) translateY(3px)}.game-frame:not(.playing) .house-choices,.game-frame:not(.playing) .player-character,.game-frame:not(.playing) .door-prompt{display:none}.player-character{position:absolute;left:50%;bottom:11%;width:148px;height:148px;transform:translateX(-50%);transform-origin:50% 90%;z-index:4;pointer-events:none;transition:translate .38s,scale .38s,opacity .38s;will-change:left}.player-sprite{width:100%;height:100%;transform-origin:50% 80%;animation:player-idle 2.8s ease-in-out infinite;filter:drop-shadow(0 7px 5px #0007)}.player-shadow{position:absolute;bottom:5px;left:20%;width:60%;height:14px;border-radius:50%;background:#08061077;filter:blur(3px);scale:1 .7}.player-character.walking .player-sprite{animation:player-walk .28s ease-in-out infinite}.player-character.facing-left .player-sprite{scale:-1 1}.player-character.team-two .player-sprite{filter:hue-rotate(30deg) drop-shadow(0 7px 5px #0007)}.player-character.approaching,.encounter .player-character{translate:0 -80px;scale:.72;opacity:.8}.player-spark{position:absolute;left:42%;top:23%;width:4px;height:4px;background:#ffd778;border-radius:50%;box-shadow:0 0 10px #ffb940;opacity:0}.walking .player-spark{animation:trail .35s infinite}.door-prompt{position:absolute;bottom:12%;transform:translateX(-50%);background:#fff0cb;color:#41273b;border-radius:20px;padding:7px 14px;font-size:11px;font-weight:900;z-index:5;pointer-events:none;box-shadow:0 3px 0 #9c6b3e,0 5px 18px #0005;animation:prompt-bob 1.8s ease-in-out infinite}.door-prompt:after{content:'';position:absolute;left:calc(50% - 5px);bottom:-5px;width:10px;height:10px;background:#fff0cb;transform:rotate(45deg)}.bank-stop{position:absolute;left:7%;bottom:17%;background:#fff0c9;color:#583349;width:47px;height:57px;border-radius:8px 8px 16px 16px;border:3px solid #a2744b;box-shadow:0 8px 0 -4px #422d32;z-index:3;rotate:-6deg;display:grid;place-items:center}.bank-stop svg{width:26px;height:26px}.bank-stop span{position:absolute;right:-8px;top:-9px;background:#a8e3c5;color:#243a32;border-radius:50%;font-size:13px;width:22px;height:22px;display:grid;place-items:center}.bank-stop:hover{rotate:0deg}.world-host{position:absolute;width:130px;bottom:26%;transform:translateX(-50%);z-index:3;animation:host-enter .35s both;filter:drop-shadow(0 8px 8px #0008)}.scoreboard{left:18px;right:18px;top:16px;justify-content:flex-start;gap:10px}.score-card{min-width:0;max-width:230px;padding:8px 13px;gap:9px;border-radius:12px;box-shadow:0 5px 17px #0004;pointer-events:none}.score-card .team-name{font-size:11px}.score-card strong{font-size:27px;line-height:1}.score-card svg{height:17px;width:17px}.score-card .team-dot{width:7px;height:7px}.round-pill{position:absolute;right:20px;top:22px;padding:7px 13px;border:1px solid #ffffff44;border-radius:20px;background:#171324cc;color:#f7e2bd;font-size:11px;font-weight:900}.street-bottom{left:18px;right:18px;bottom:17px;align-items:center}.bag-display{pointer-events:auto;gap:9px;position:relative;padding:8px 14px;border:1px solid #ffd48b88;border-radius:14px;background:#1e162ee6;color:var(--cream);box-shadow:0 6px 20px #0005;min-height:54px}.bag-display:not(:disabled):hover{background:#493140;translate:0 -3px}.bag-display:disabled{opacity:1}.bag-display>svg{width:29px;height:29px}.bag-display strong{font-size:29px;line-height:1}.bag-display>span{font-size:10px;letter-spacing:0;font-weight:900;color:#ead8c2;margin-left:3px}.bag-display:not(:disabled)>span{color:var(--mint)}.control-hint{color:#fff0d5;font-size:10px;letter-spacing:.4px;padding:8px 15px;border-radius:20px;background:#1d1731ad;text-shadow:0 1px 4px #000}.next-prize{display:flex;align-items:center;gap:10px;color:var(--cream);padding:9px 13px;background:#1e162edb;border-radius:13px;border:1px solid #ffffff28}.next-prize>b{font-size:10px;letter-spacing:1px}.next-prize strong{display:flex;gap:6px;font-size:16px;align-items:center;margin:0}.next-prize svg{height:18px;width:18px;stroke:var(--orange);fill:none;stroke-width:1.5}.touch-controls{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);display:none;gap:9px;pointer-events:auto}.touch-controls button{width:50px;height:46px;background:#231c37e8;color:#ffe6b3;border:1px solid #f6d69977;border-radius:13px;font-size:24px;box-shadow:0 4px 0 #0d091c;touch-action:none;user-select:none}.touch-controls #enter-house{font-size:11px;width:86px;font-weight:900}.touch-controls button:active{background:#70513e}.touch-controls #enter-house:not(:disabled){background:#ffc778;color:#482538}.loot-popup{position:absolute;left:50%;top:30%;transform:translateX(-50%);z-index:20;pointer-events:none;text-align:center;filter:drop-shadow(0 7px 10px #100b27);animation:loot-arrive .3s ease-out both}.loot-popup>span{font-family:var(--display);font-size:44px;display:block;color:#fff0c3;text-shadow:0 3px 0 #633540}.loot-popup>strong{display:flex;justify-content:center;align-items:center;gap:10px;font:400 75px var(--display);color:#ffd384}.loot-popup svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.7}.loot-popup.boo{animation:boo-arrive .45s both}.loot-popup.boo>span{font-size:83px;color:#f1d9ff}.loot-popup.boo>strong{font-size:46px;color:#e7cadb}.primary,.secondary{min-height:44px;font-size:13px;padding:10px 22px}
/* The encounter is a small game panel over the street. */
.challenge-dialog{position:fixed;inset:auto 0 55px;width:min(650px,calc(100% - 30px));padding:14px 18px 15px;margin:0 auto;overflow:visible;background:linear-gradient(#272035f7,#20192ff9);border-radius:19px;border:1px solid #dfb87977;box-shadow:0 12px 35px #0009}.challenge-dialog::backdrop{background:#09081725;backdrop-filter:none}.challenge-top{height:24px;margin-bottom:11px}.challenge-top .pill{font-size:9px;letter-spacing:.7px;padding:5px 9px;background:#100d1d66}.challenge-top .text-button{height:28px;width:28px;border-radius:50%;padding:0;font-size:22px;background:#ffffff10;color:#ffe3bc}.challenge-heading{position:absolute;right:47px;top:-93px;height:100px;min-height:0;pointer-events:none}.challenge-heading .host-sprite{width:125px;margin:0;filter:drop-shadow(0 6px 8px #0007)}.rhythm-paper{min-height:109px;padding:12px 17px 10px;gap:13px;border-radius:11px;box-shadow:0 4px 0 #a57c52}.rhythm-cell{padding:5px 0 3px}.rhythm-cell .notation{font-size:63px}.rhythm-cell .beat-number{margin-top:7px;font-size:9px}.time-signature{font-size:23px}.end-bar{height:55px}.beat-strip{display:none}.challenge-status{font-size:15px;font-weight:900;min-height:23px;line-height:1.2;margin:13px 0 9px;color:#ffd69c}.counting .challenge-status{font-family:var(--display);font-size:35px;line-height:1;min-height:35px;color:#ffe3a6}.challenge-actions{gap:12px;margin:0}.challenge-actions button{min-width:135px}.tap-pad{height:66px;border-radius:12px;border-width:1px;box-shadow:0 3px 0 #945022}.tap-pad span{font-size:21px}.tap-pad small{font-size:8px;letter-spacing:1.2px;margin-top:2px}.teacher-check>div{gap:14px}.teacher-check button{min-width:100px;min-height:43px;font-size:25px;padding:2px 18px}.teacher-check .primary{background:#a8e3c5;border-color:#c7efdc;box-shadow:0 3px 0 #467b64}.teacher-check .secondary{color:#ffc0a4}.rhythm-cell .hit-flash{position:absolute;left:calc(50% - 3px);bottom:2px;width:6px;height:6px;border-radius:50%;background:#ad6d24;opacity:0}.rhythm-cell.tapped .hit-flash{animation:note-hit .3s ease-out}.rhythm-cell.active{background:#ffe1a0;transform:translateY(-1px)}.outcome-dialog{width:min(430px,calc(100% - 28px));padding:22px 25px}.outcome-dialog h2{font-size:33px;margin:13px 0 9px}.outcome-amount{margin:6px 0 16px}.results-table{margin:4px 0;font-size:13px}.results-table div{padding:7px 11px}.outcome-actions{flex-direction:row;flex-wrap:wrap;gap:8px}.outcome-actions button{flex:1;font-size:12px}.outcome-actions button:first-child{flex-basis:100%}.door-portrait{width:138px;height:145px;margin-bottom:7px}.door-portrait .outcome-sprite{width:124px}.paper-dialog .setup-tip{display:none}.paper-dialog .dark{font-size:8px;letter-spacing:2px}.paper-dialog h2{margin-bottom:19px}.option-card span small{font-size:9px}.paper-dialog fieldset{margin-bottom:13px}.settings-row{margin:11px 0}.figure-preview{min-height:50px;margin-bottom:17px}.figure-preview span{font-size:30px}.paper-dialog{max-width:530px}.scene-caption,.street-instruction{display:none}
@keyframes player-idle{0%,100%{translate:0 0;rotate:-1deg}50%{translate:0 -4px;rotate:1deg}}@keyframes player-walk{0%,100%{translate:0 0;rotate:-4deg}50%{translate:0 -8px;rotate:4deg}}@keyframes prompt-bob{0%,100%{translate:0 0}50%{translate:0 -4px}}@keyframes host-enter{from{opacity:0;translate:0 20px;scale:.6}to{opacity:1;translate:0 0;scale:1}}@keyframes loot-arrive{from{opacity:0;translate:0 25px;scale:.75}to{opacity:1;translate:0 0;scale:1}}@keyframes boo-arrive{0%{scale:.2;opacity:0}70%{scale:1.15;opacity:1}100%{scale:1;opacity:1}}@keyframes note-hit{0%{opacity:1;scale:1.7}100%{opacity:0;scale:.6}}@keyframes trail{0%{opacity:.9;translate:0 0}100%{opacity:0;translate:-25px 25px}}
@media(min-width:1500px){.game-frame{height:calc(100svh - 102px);max-height:950px}.title-block{top:45px}.title-block h1{font-size:125px}.home-launch{bottom:48px}}
@media(max-width:900px){.game-frame{height:calc(100svh - 94px);min-height:560px}.street-art{background-size:cover;background-position:center 58%}.touch-controls{display:flex}.control-hint{display:none}.street-bottom{bottom:78px}.scoreboard{left:12px;right:12px;top:13px}.score-card{flex:0 1 auto;max-width:190px}.round-pill{top:19px;right:15px}.challenge-dialog{bottom:38px}.player-character{bottom:13%;width:145px;height:145px}.door-prompt{bottom:14%}.house-prize{font-size:10px}.house{top:35%;height:39%}.home-character{left:7%;width:180px;bottom:96px}.home-launch{bottom:38px}}
@media(max-width:600px){.topbar{height:54px;padding:0 12px}.top-actions{gap:4px}.brand{font-size:7px;letter-spacing:.8px;gap:5px}.brand svg{width:20px}#fullscreen-btn{display:none}.icon-btn{width:29px;min-width:29px;height:29px}.settings-btn{font-size:17px}.share-btn{padding:6px}.game-frame{height:calc(100svh - 83px);min-height:540px;max-height:none;border-radius:13px}.street-world{min-width:1000px}.street-art{background-size:cover;background-position:center 58%;background-color:#17172f}.scene-shade{background:linear-gradient(#15112633,transparent 50%,#15112633)}.title-block{top:44px}.title-block h1{font-size:62px;letter-spacing:-2px}.tagline{font-size:12px;margin-top:9px}.home-launch{bottom:41px}.start-button{font-size:23px;min-height:58px}.home-character{width:195px;left:calc(50% - 98px);bottom:142px}.page-footer{font-size:8px;padding:7px 3px}.page-footer button{font-size:8px}.scoreboard{top:12px;left:10px;right:66px;gap:6px}.score-card{padding:7px 9px;gap:7px;max-width:166px;flex:1}.score-card .team-name{font-size:9px;max-width:85px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.score-card strong{font-size:23px}.score-card svg{height:14px;width:14px}.score-card .team-dot{width:5px;height:5px}.round-pill{top:17px;right:10px;font-size:9px;padding:5px 8px}.street-bottom{left:12px;right:12px;bottom:75px}.bag-display{gap:7px;min-height:48px;padding:7px 10px;border-radius:12px}.bag-display>span{display:block;font-size:9px}.bag-display>svg{height:25px;width:25px}.bag-display strong{font-size:25px}.next-prize{padding:7px 10px;gap:8px;min-height:46px}.next-prize>b{font-size:8px}.next-prize strong{font-size:14px}.next-prize svg{height:16px;width:16px}.touch-controls{bottom:15px;gap:10px}.touch-controls button{width:57px;height:45px}.touch-controls #enter-house{width:92px}.player-character{width:148px;height:148px;bottom:19%}.player-character.approaching,.encounter .player-character{translate:0 -90px;scale:.72}.door-prompt{bottom:21%;font-size:11px}.house{top:35%;height:39%;width:27%!important}.house-0{left:9%}.house-1{left:36.5%}.house-2{left:71%}.house-prize{top:92%;font-size:10px}.house .door-marker{top:73%;height:30px;width:30px}.world-host{width:125px;bottom:27%}.bank-stop{bottom:25%}.challenge-dialog{bottom:24px;padding:12px 12px 13px;width:calc(100% - 22px);border-radius:16px}.challenge-heading{right:40px;top:-87px}.challenge-heading .host-sprite{width:118px}.challenge-top{margin-bottom:9px;height:24px}.challenge-top .pill{font-size:8px}.rhythm-paper{min-height:103px;padding:12px 9px 8px;gap:8px}.rhythm-cell .notation{font-size:43px}.rhythm-cell .beat-number{font-size:8px;margin-top:8px}.time-signature{font-size:23px;padding-right:9px}.end-bar{height:48px;width:6px}.challenge-status{min-height:20px;margin:12px 0 9px;font-size:13px}.counting .challenge-status{font-size:31px;min-height:31px}.challenge-actions{gap:10px}.challenge-actions button{min-width:125px;font-size:12px;min-height:44px;padding:10px 16px}.challenge-actions svg{display:none}.tap-pad{height:65px}.tap-pad span{font-size:21px}.loot-popup{top:31%}.loot-popup>span{font-size:39px}.loot-popup>strong{font-size:66px}.loot-popup.boo>span{font-size:70px}.loot-popup.boo>strong{font-size:39px}.paper-dialog{padding:25px 20px}.paper-dialog h2{font-size:28px}.figure-preview{gap:18px}.option-card{padding:10px 8px}.outcome-dialog h2{font-size:30px}.door-portrait{width:130px;height:138px}.door-portrait .outcome-sprite{width:118px}}
@media(max-width:380px){.title-block h1{font-size:56px}.brand span{max-width:85px;white-space:nowrap}.rhythm-cell .notation{font-size:38px}.challenge-actions button{min-width:117px}.topbar{padding:0 9px}}
@media(max-height:620px) and (min-width:601px){.game-frame{min-height:450px}.topbar{height:50px}.challenge-dialog{bottom:23px}.challenge-heading .host-sprite{width:100px}.challenge-heading{top:-72px}.title-block{top:14px}.title-block h1{font-size:75px}.home-character{width:150px;bottom:33px}.home-launch{bottom:28px}.player-character{width:120px;height:120px}.rhythm-paper{min-height:90px}.rhythm-cell .notation{font-size:53px}.tap-pad{height:53px}.challenge-status{margin:9px 0 7px}.challenge-dialog{padding:10px 15px 12px}}
@media(prefers-reduced-motion:reduce){.player-sprite,.player-character,.door-prompt,.loot-popup{animation:none!important;transition:none!important}.street-world{will-change:auto}}
.primary.start-button{font-size:22px;min-height:61px}.challenge-heading{display:none}.world-host{bottom:39%}.challenge-status:empty{min-height:0;margin:10px 0}.challenge-actions svg{display:none}
@media(max-width:600px){.world-host{bottom:41%}.primary.start-button{font-size:23px;min-height:58px}}
/* A hidden-house event: the mummy takes this team's complete stash. */
.monster-reveal{position:absolute;inset:0;z-index:30;pointer-events:auto;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#9a573455 0%,#21142b77 48%,#120e2266 100%)}.mummy-aura{position:absolute;left:50%;top:47%;width:min(65vw,500px);height:min(65vw,500px);border-radius:50%;translate:-50% -50%;background:radial-gradient(#ffbe6555,#c5854233 35%,transparent 68%);animation:mummy-glow .8s ease-in-out infinite alternate}.mummy-sprite{position:absolute;left:50%;top:46%;translate:-50% -50%;width:310px;height:465px;max-height:76%;background:url('assets/mummy.png') center/contain no-repeat;filter:drop-shadow(0 13px 16px #09061477);animation:mummy-pop .4s cubic-bezier(.2,.8,.3,1.2) both,mummy-escape .45s 2.4s ease-in forwards;z-index:2}.monster-caption{position:absolute;left:12px;right:12px;bottom:8%;text-align:center;z-index:4;filter:drop-shadow(0 5px 6px #171025);animation:monster-caption .35s .15s both}.monster-caption>strong{display:block;font:400 43px/1.15 var(--display);color:#ffe0a4;text-shadow:0 3px 0 #713b3d}.monster-caption>span{display:flex;align-items:center;justify-content:center;gap:10px;color:#fff0ca;font:400 62px/1.2 var(--display);margin-top:7px}.monster-caption svg{width:37px;height:37px;fill:none;stroke:currentColor;stroke-width:1.5}.stolen-candy{position:absolute;inset:0;z-index:3;pointer-events:none}.stolen-spark{position:absolute;width:22px;height:22px;color:#ffd986;animation:candy-stolen 1s cubic-bezier(.25,.5,.3,1) both;filter:drop-shadow(0 0 6px #ffbc44)}.stolen-spark svg{width:22px;height:22px;fill:#ffaf4033;stroke:currentColor;stroke-width:1.5}.monster-active .player-sprite{animation:player-startled .35s 2}.monster-active .score-card.active{animation:score-stolen .35s 3}.monster-active .score-card.active strong{color:#ffbea2}.haunted-reveal .house-glow{background:radial-gradient(ellipse at 50% 85%,#b37ae577,transparent 70%);animation:haunted-door .3s 4}.monster-active .control-hint{visibility:hidden}
@keyframes mummy-pop{from{scale:.25;rotate:-16deg;opacity:0}to{scale:1;rotate:0;opacity:1}}@keyframes mummy-escape{from{translate:-50% -50%;rotate:0;opacity:1}to{translate:130% -55%;rotate:12deg;opacity:0}}@keyframes mummy-glow{from{scale:.85;opacity:.5}to{scale:1.2;opacity:1}}@keyframes monster-caption{from{opacity:0;translate:0 15px}to{opacity:1;translate:0 0}}@keyframes candy-stolen{0%{opacity:0;translate:0 0;scale:.8;rotate:-25deg}10%{opacity:1}55%{translate:calc(var(--dx)*.55) calc(var(--dy)*.55 - 65px);scale:1.15;rotate:75deg;opacity:1}100%{translate:var(--dx) var(--dy);scale:.3;rotate:170deg;opacity:0}}@keyframes player-startled{0%,100%{translate:0 0;rotate:0}35%{translate:-7px -8px;rotate:-7deg}70%{translate:7px -3px;rotate:7deg}}@keyframes score-stolen{0%,100%{translate:0 0;border-color:#ffd089}40%{translate:-4px 0;border-color:#ff8d86}75%{translate:4px 0;border-color:#ff8d86}}@keyframes haunted-door{from{opacity:.3}to{opacity:1}}
@media(max-width:600px){.mummy-sprite{width:285px;height:427px;top:44%}.monster-caption{bottom:15%}.monster-caption>strong{font-size:37px}.monster-caption>span{font-size:55px}.monster-caption svg{width:31px;height:31px}.mummy-aura{width:380px;height:380px;top:42%}}
@media(max-height:620px) and (min-width:601px){.mummy-sprite{height:330px;width:220px;top:43%}.monster-caption{bottom:5%}.monster-caption>strong{font-size:32px}.monster-caption>span{font-size:47px}}
@media(prefers-reduced-motion:reduce){.mummy-sprite,.mummy-aura,.monster-caption,.stolen-spark,.monster-active .score-card.active,.monster-active .player-sprite,.haunted-reveal .house-glow{animation:none!important}.stolen-candy{display:none}}
