/* The Play button sits under the top bar; in the phone app the status bar pushes that bar down by the safe-area inset, so the button moves with it. */
.street-play{position:absolute;z-index:450;right:18px;top:calc(env(safe-area-inset-top,0px) + 152px);background:var(--brand-blue);color:#fff;border:3px solid #fff;border-radius:16px;padding:11px 18px;font-family:Archivo,system-ui,sans-serif;font-weight:900;text-transform:uppercase;box-shadow:0 4px 0 #12306a22,var(--shadow)}
.street-play[aria-pressed="true"]{background:var(--brand-red)}
.street-game-panel{position:absolute;z-index:460;left:50%;transform:translateX(-50%);overflow:hidden}
.street-game-panel[hidden],.street-game-panel [hidden]{display:none!important}
.street-game-heading{display:flex;align-items:center}.street-game-heading b{font-family:Archivo,system-ui,sans-serif;font-weight:900}
.street-game-actions{display:flex}.street-game-actions button{font-family:Archivo,system-ui,sans-serif;color:#12306a}
.street-game-panel #streetGameRestart{display:flex;justify-content:space-between;align-items:center;color:white}
@media(max-width:600px){.street-play{top:calc(env(safe-area-inset-top,0px) + 135px);right:12px;padding:9px 14px}}
@media(prefers-reduced-motion:reduce){.street-avatar.walking .sprite{animation:none}}
/* The child scales around the marker's ground anchor. Leaflet owns the outer transform. */
.street-avatar{background:none;border:0}.street-actor{position:absolute;inset:0;width:48px;height:76px;transform:scale(var(--street-scale,1));transform-origin:24px 72px}.street-avatar .name{position:absolute;bottom:66px;left:50%;transform:translateX(-50%);background:var(--brand-blue);color:#fff;border:2px solid #fff;border-radius:7px;padding:3px 8px;font-size:10px;white-space:nowrap}.street-avatar .sprite{width:40px;height:60px;position:absolute;left:4px;bottom:5px;image-rendering:pixelated;filter:drop-shadow(0 3px 0 #12306a50)}.street-avatar .shadow{position:absolute;bottom:0;left:5px;width:38px;height:10px;background:#12306a50;border-radius:50%}.street-avatar.walking .sprite{animation:street-step .18s steps(2) infinite}@keyframes street-step{50%{transform:translateY(-4px)}}.street-avatar.facing-left .sprite{scale:-1 1}.street-officer .name{background:var(--brand-red);font-size:14px;padding:0 5px}
/* Live KOTH cards remain at each business's actual coordinates in Play mode. */
.street-business{background:none;border:0}.street-business-card{position:absolute;left:0;bottom:0;width:174px;padding-top:28px;transform:scale(var(--board-scale,1));transform-origin:50% 100%;filter:drop-shadow(0 3px 3px #12306a25)}.street-business-crown{position:absolute;top:0;left:67px;width:40px;height:32px}.street-business-crown svg{width:40px;height:32px}.street-business-awning{height:9px;border:2px solid #12306a;border-bottom:0;border-radius:6px 6px 0 0;background:repeating-linear-gradient(90deg,#f2c230 0 14px,#fff 14px 28px,#0a53ac 28px 42px,#fff 42px 56px)}.street-business-face{display:flex;gap:8px;align-items:center;background:white;border:2px solid #12306a;padding:8px;border-radius:0 0 9px 9px}.street-business-face>img,.street-business-initial{width:38px;height:38px;object-fit:cover;flex:0 0 38px;border-radius:7px}.street-business-initial{display:grid;place-items:center;background:var(--brand-blue);color:white;font-family:Archivo,system-ui,sans-serif;font-weight:900;font-size:24px}.street-business-face>span:last-child{min-width:0}.street-business-face small{display:block;font-size:7px;font-weight:900;color:var(--brand-red);letter-spacing:.5px}.street-business-face b{display:block;font-family:Archivo,system-ui,sans-serif;font-weight:900;font-size:12px;line-height:1.1;color:#12306a;overflow-wrap:anywhere;margin-top:4px}.street-business-pin{display:block;width:10px;height:10px;background:#12306a;clip-path:polygon(0 0,100% 0,50% 100%);margin:auto}
/* Rangr arcade HUD: enamel blue frame, gold crown resource, chunky tactile controls. */
.street-playing .dock,.street-playing .drawer,.street-playing .mapcaption,.street-playing .explorearea,.street-playing .maptools,.street-playing .topactions,.street-playing .filters{display:none!important}
.street-playing .street-play{top:calc(env(safe-area-inset-top,0px) + 98px);right:16px;padding:9px 15px;border-width:2px;border-radius:12px;font-size:11px;box-shadow:0 4px 0 #991325,0 6px 12px #12306a25}
.street-game-panel{width:min(420px,calc(100% - 24px));bottom:calc(26px + env(safe-area-inset-bottom,0px));overflow:visible;border:3px solid #fff;border-radius:25px;background:linear-gradient(145deg,#1267c7,#0a53ac 65%,#12306a);box-shadow:0 6px 0 #12306a,0 8px 0 #fff,0 16px 30px #12306a40;color:white;padding:0 0 2px}
.street-game-panel:before{content:'';position:absolute;inset:3px;border-radius:20px;border:1px solid #ffffff40;pointer-events:none}
.street-game-heading{padding:15px 14px 12px;gap:10px;color:white;position:relative}
.street-brand{width:37px;height:43px;padding:5px;background:#fff;border-radius:12px;box-shadow:0 3px 0 #073e83;rotate:-5deg;flex-shrink:0}
.street-game-name{flex:1;min-width:0}.street-game-name small{display:block;font-family:Archivo,system-ui,sans-serif;font-size:7px;font-weight:800;letter-spacing:1px;color:#c7e2ff;margin-bottom:5px}
.street-game-heading b{display:block;font-size:24px;line-height:1;letter-spacing:-.6px;font-weight:900;text-shadow:0 3px 0 #073e83}
.street-game-heading>span{background:#d91b2b;border:2px solid #ff727d;border-radius:10px;padding:6px 8px;font-size:10px;font-weight:900;white-space:nowrap;box-shadow:0 3px 0 #96122c;align-self:center}
.street-game-panel #streetGameClose{position:absolute;right:8px;top:-12px;width:27px;height:27px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#12306a;color:white;font-size:18px;box-shadow:0 2px 0 #082554}
.street-stats{display:grid;grid-template-columns:1.08fr 1fr;gap:10px;margin:0 13px;align-items:stretch}
.street-crown-stat{position:relative;display:grid;grid-template-columns:48px auto;column-gap:8px;align-content:center;align-items:center;min-height:91px;padding:11px 12px;background:linear-gradient(#fff0a3,#f2c230 65%,#e5a619);color:#12306a;border:2px solid #ffe98c;border-radius:16px;box-shadow:inset 0 2px 0 #fff7d3,0 4px 0 #956407}
.street-crown-stat>span{grid-row:span 2;display:grid;place-items:center;width:48px;height:49px;border-radius:13px;background:linear-gradient(#ffe991,#efb721);border:2px solid #bf8617;color:#956407;box-shadow:inset 0 2px 0 #fff5c1,0 2px 0 #fff1a3;rotate:-7deg}
.street-crown-stat strong{font-size:43px;font-family:Archivo,system-ui,sans-serif;line-height:1;font-weight:900;letter-spacing:-1px;text-shadow:0 2px 0 #fff1a3}
.street-stats small{font-family:Archivo,system-ui,sans-serif;font-size:9px;letter-spacing:1px;font-weight:900}
.street-time-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#073e83;border:2px solid #70b4ff;border-radius:16px;box-shadow:inset 0 3px 0 #052f68,0 4px 0 #052f68;padding:8px;color:white}
.street-time-stat strong{font-family:Archivo,system-ui,sans-serif;font-size:33px;line-height:1.05;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-1px;text-shadow:0 2px 0 #052c63}
.street-time-stat small{color:#b7d9ff}.street-time-stat #streetGameBest{font-size:9px;font-weight:700;color:#b7d9ff}
.street-game-panel p{position:relative;font-size:11px;font-weight:700;text-align:center;color:#e1efff;margin:13px 14px 11px;min-height:14px}
.street-game-actions{position:relative;display:flex;gap:9px;padding:0 13px 15px}
.street-game-actions button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:48px;padding:10px 7px;border:2px solid #82bbff;border-radius:13px;background:linear-gradient(#2984e9,#0a53ac);color:white;box-shadow:inset 0 2px 0 #ffffff40,0 4px 0 #052e68;font-family:Archivo,system-ui,sans-serif;font-size:11px;font-weight:900;text-transform:uppercase;text-shadow:0 1px 0 #073e83;transition:transform .12s,box-shadow .12s}
.street-game-actions button:active{transform:translateY(3px);box-shadow:inset 0 2px 0 #ffffff40,0 1px 0 #052e68}
.street-game-actions #streetGamePause{background:linear-gradient(#f7495b,#d91b2b);border-color:#ff8993;box-shadow:inset 0 2px 0 #ffffff40,0 4px 0 #9b102a;text-shadow:0 1px 0 #9b102a}
#streetGamePause:before{content:'';width:8px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.street-game-actions #streetGameCharacter{background:linear-gradient(#fff0a3,#f2c230);color:#12306a;border-color:#fff0a3;box-shadow:inset 0 2px 0 #fff7d3,0 4px 0 #956407;text-shadow:0 1px 0 #fff3c5}
#streetGameCharacter:before{content:'★';font-size:17px;line-height:1}#streetGameFind:before{content:'⌖';font-size:21px;line-height:1}
.street-game-panel #streetGameRestart{flex:2;display:flex;justify-content:space-between;background:linear-gradient(#fff0a3,#f2c230);color:#12306a;border-color:#fff0a3;font-size:14px;text-shadow:0 1px 0 #fff3c5;box-shadow:inset 0 2px 0 #fff7d3,0 4px 0 #956407}
.street-game-panel.caught{background:linear-gradient(145deg,#f23d50,#d91b2b 65%,#a00f29);box-shadow:0 6px 0 #8c1127,0 8px 0 white,0 16px 30px #8c112740}.street-game-panel.caught .street-game-heading b{text-shadow:0 3px 0 #9b102a}
@media(max-width:600px){.street-playing .street-play{top:calc(env(safe-area-inset-top,0px) + 88px);right:14px}.street-game-panel{bottom:calc(26px + env(safe-area-inset-bottom,0px))}.street-game-heading b{font-size:22px}}
@media(max-width:360px){.street-game-heading b{font-size:19px}.street-game-heading{gap:7px}.street-brand{width:31px;height:37px}.street-crown-stat{grid-template-columns:39px auto;gap:5px;padding:9px}.street-crown-stat>span{width:39px;height:43px}.street-crown-stat strong{font-size:36px}.street-game-actions button{font-size:10px;gap:4px}}
@media(prefers-reduced-motion:reduce){.street-game-actions button{transition:none}}
.street-character-sheet{max-width:440px;background:#f7f9fc;border-radius:30px!important}
.street-character-sheet .sheethead small{font-size:10px;color:#a27b00;font-weight:800;letter-spacing:1px}
.street-character-sheet h2{font-family:Archivo,system-ui,sans-serif;color:#12306a;font-size:28px;letter-spacing:-1px}
.street-character-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.street-character-options button{display:flex;flex-direction:column;align-items:center;gap:4px;background:white;border:2px solid #e5ebf3;border-radius:14px;padding:10px 4px 8px;color:#12306a;min-height:112px}
.street-character-random{width:100%;margin-top:14px;background:#12306a;color:#fff;border:0;border-radius:14px;padding:12px;font-weight:900;font-size:14px}
.street-character-options button[aria-pressed="true"]{border-color:#f2c230;background:#fff8de;box-shadow:0 0 0 3px #f2c23025}
.street-character-options .sprite{width:40px;height:60px;image-rendering:pixelated}
.street-character-options b{font-size:12px}.street-character-options small{font-size:9px;color:#8390a3;line-height:1.2;text-align:center}
.street-character-sheet>p{text-align:center;color:#8390a3;font-size:12px}
#streetCharacterDone{width:100%;background:#12306a;color:white;border:0;border-radius:16px;padding:15px;font-weight:800;margin-top:12px}
.street-crown{background:none;border:0}.street-crown>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f2c230;color:#7a5600;font-size:25px;border:2px solid white;box-shadow:0 2px 8px #7a560040}


.street-crown-stat svg{width:36px;height:36px;filter:drop-shadow(0 1px 0 #fff3bd)}.street-crown svg{width:22px;height:22px}

/* Full-width compact game bar keeps the playable map clear. */
.street-game-panel{left:0;transform:none;width:100%;bottom:0;border-width:3px 0 0;border-radius:16px 16px 0 0;box-shadow:0 -4px 18px #12306a25;padding:0 0 calc(6px + env(safe-area-inset-bottom,0px))}
.street-game-panel:before{border-radius:12px 12px 0 0}
.street-game-heading{width:min(600px,100%);margin:auto;padding:6px 12px 4px;gap:7px}
.street-brand{width:22px;height:24px;padding:2px;border-radius:6px;rotate:0;box-shadow:none}
.street-game-name small{display:none}.street-game-heading b{font-size:14px;letter-spacing:0;text-shadow:0 2px 0 #073e83}
.street-game-heading>span{padding:3px 7px;font-size:9px;border-width:1px;box-shadow:none}
.street-game-panel #streetGameClose{position:static;width:24px;height:24px;border:0;box-shadow:none;font-size:17px}
.street-stats{width:min(576px,calc(100% - 24px));margin:auto;gap:8px;grid-template-columns:1fr 1fr}
.street-crown-stat{min-height:39px;padding:3px 10px;grid-template-columns:25px auto auto;gap:7px;border-radius:10px;box-shadow:inset 0 1px 0 #fff7d3,0 2px 0 #956407}
.street-crown-stat>span{grid-row:auto;width:25px;height:25px;border:0;background:none;box-shadow:none;rotate:0}
.street-crown-stat svg{width:25px;height:25px}.street-crown-stat strong{font-size:27px}.street-stats small{font-size:8px}
.street-time-stat{min-height:39px;flex-direction:row;gap:8px;padding:3px 8px;border-radius:10px;box-shadow:inset 0 2px 0 #052f68,0 2px 0 #052f68}
.street-time-stat strong{font-size:24px}.street-time-stat small{display:none}.street-time-stat #streetGameBest{font-size:8px}
.street-game-panel p{font-size:10px;line-height:12px;min-height:12px;margin:5px 12px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.street-game-actions{width:min(600px,100%);margin:auto;padding:0 12px 4px;gap:8px}
.street-game-actions button{min-height:37px;padding:6px;font-size:10px;border-radius:9px;min-width:0}
.street-game-panel #streetGameRestart{font-size:12px}
.street-game-panel.caught{box-shadow:0 -4px 18px #8c112730}
.street-playing .leaflet-control-attribution{margin-bottom:calc(143px + env(safe-area-inset-bottom,0px))!important}
.street-demo-crown small{display:block;position:absolute;top:30px;left:50%;transform:translateX(-50%);font-family:Archivo,system-ui,sans-serif;font-size:6px;font-weight:900;letter-spacing:.5px;background:#12306a;color:#ffdf66;border:1px solid #ffdf66;border-radius:3px;padding:2px 3px}
/* Small controls with the reward feedback living on the map. */
.street-game-actions{gap:6px;justify-content:center;padding-bottom:2px}
.street-game-actions button{flex:0 1 auto;min-height:28px;padding:4px 8px;font-size:9px;gap:4px;border-width:1px;border-radius:7px;box-shadow:none!important}
#streetGamePause:before{height:9px;width:6px;border-width:2px}#streetGameCharacter:before{font-size:12px}#streetGameFind:before{font-size:14px}
.street-game-actions #streetGameRanks{background:linear-gradient(#fff0a3,#f2c230);color:#12306a;border-color:#fff0a3;text-shadow:none}
.street-game-actions #streetGameSound{font-size:16px;padding:3px 9px;line-height:1}
.street-game-actions #streetGameSound[aria-pressed="false"]{opacity:.65}
.street-game-panel #streetGameRestart{flex:1;max-width:220px}
.street-pickup-pop{position:absolute;z-index:450;pointer-events:none;width:0;height:0}
.street-pickup-pop b{position:absolute;white-space:nowrap;left:0;top:-35px;color:#12306a;background:#ffdf66;border:2px solid white;box-shadow:0 3px 0 #956407;border-radius:8px;padding:5px 9px;font-family:Archivo,system-ui,sans-serif;font-size:12px;font-weight:900;animation:street-reward .8s ease-out both}
.street-pickup-pop i{position:absolute;width:7px;height:7px;background:#f2c230;border:1px solid white;border-radius:2px;animation:street-spark .7s ease-out both}
@keyframes street-reward{0%{transform:translate(-50%,5px) scale(.8);opacity:0}20%{transform:translate(-50%,-8px) scale(1.1);opacity:1}70%{opacity:1}100%{transform:translate(-50%,-36px) scale(1);opacity:0}}
@keyframes street-spark{0%{transform:translate(0,0);opacity:1}100%{transform:translate(var(--spark-x),var(--spark-y));opacity:0}}
.street-ranks-sheet{max-width:600px}.street-ranks-tabs{display:flex;gap:8px;margin:16px 0}.street-ranks-tabs button{background:#e7effb;color:#12306a;font-weight:800;border-radius:10px;padding:8px 12px}.street-ranks-tabs [aria-pressed="true"]{background:#f2c230}
#streetRanksSummary{font-size:12px;color:#12306a;font-weight:800}#streetRanksRows{padding:0;list-style:none;max-height:280px;overflow:auto}#streetRanksRows li{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e5ebf3;padding:13px 0;font-size:12px}#streetRanksRows li>b{flex:1;min-width:0;overflow-wrap:anywhere}#streetRanksRows li>span:first-child{color:#a27b00;font-weight:900}#streetRanksRows li>span{font-size:10px}#streetRanksRows button{background:#12306a;color:white;border-radius:8px;padding:6px 8px}
.street-ranks-rules{font-size:11px;line-height:1.5;color:#718094}
.street-replay-banner{position:absolute;z-index:800;top:140px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);background:#12306a;color:white;border:2px solid #f2c230;border-radius:14px;padding:10px 14px;display:flex;gap:10px;align-items:center;font-size:11px;white-space:nowrap}.street-replay-banner button{background:#f2c230;color:#12306a;border-radius:8px;padding:7px;font-size:10px;font-weight:800}.street-replaying #streetGamePanel{visibility:hidden}
@media(prefers-reduced-motion:reduce){.street-pickup-pop b,.street-pickup-pop i{animation:none}.street-pickup-pop b{transform:translateX(-50%)}}
.street-replaying .street-avatar:not(.street-replay-avatar),.street-replaying .street-crown{visibility:hidden}

/* The score stays on the map; the game drawer expands upwards from it. */
#streetGameMenuToggle{display:grid;place-items:center;flex:0 0 32px;width:32px;height:30px;padding:0;border:1px solid #ffffff70;border-radius:8px;background:#12306a;color:white;font-size:23px;line-height:1;box-shadow:0 2px 0 #071d47}
#streetGameMenuToggle[aria-expanded=true]{background:#f2c230;color:#12306a;border-color:#fff1a4}
.street-game-heading .street-brand{display:none}
.street-game-menu{max-width:600px;margin:0 auto;padding:18px 14px 12px;border-bottom:1px solid #ffffff35;max-height:calc(75dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
.street-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.street-menu-heading small{font-size:8px;font-weight:800;letter-spacing:1px;color:#bad6ff}
.street-menu-heading h2{margin:3px 0 0;font:900 24px/1.1 Archivo,sans-serif;color:white;letter-spacing:-.7px}
.street-menu-heading>span{flex-shrink:0;border:1px solid #ffe791;border-radius:6px;padding:6px 7px;font-size:8px;font-weight:900;background:#f2c230;color:#12306a}
.street-game-actions.street-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0;max-width:none}
.street-menu-grid button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:72px;padding:9px 5px;border:2px solid #ffffff65;border-radius:12px;background:linear-gradient(#367bdd,#0a53ac);color:white;font:800 11px/1.15 Archivo,sans-serif;box-shadow:0 3px 0 #071d47!important;white-space:normal}
.street-menu-grid button:before{display:grid;place-items:center;font-size:22px;line-height:24px;height:24px;width:auto;border:none;color:inherit}
.street-menu-grid #streetGamePause{background:linear-gradient(#ffdf70,#f2c230);color:#12306a;border-color:#fff1b0}
.street-menu-grid #streetGamePause:before{content:none;border:0;width:auto;height:24px}
.street-menu-grid #streetGameCharacter:before{content:'★';font-size:24px}
.street-menu-grid #streetGameFind:before{content:'⌖';font-size:28px}
.street-menu-grid #streetGameRanks,.street-menu-grid #streetGameTowns{background:linear-gradient(#ffdf70,#f2c230);color:#12306a;border-color:#fff1b0}
.street-menu-grid #streetGameRanks:before{content:'♛'}
.street-menu-grid #streetGameTowns:before{content:'⚑'}
.street-menu-grid #streetGameMaps:before{content:'▧';font-size:26px}
.street-menu-grid #streetGameClose{position:static;display:flex;width:auto;height:auto;font-size:11px;background:linear-gradient(#eb3549,#d91b2b);border:2px solid #ff8c97;border-radius:12px;order:8}
.street-menu-grid #streetGameClose:before{content:none}
.street-menu-grid #streetGameSound{font-size:11px;order:6}
.street-menu-grid #streetGameSound:before{content:'♪';font-size:26px}
.street-menu-grid #streetGameSound[aria-pressed=false]{opacity:1;background:#12306a}
.street-playing .carpin,.street-playing .arearing{display:none!important}
.street-menu-layers{margin:12px 0 0;padding:10px 12px;border:1px solid #ffffff35;border-radius:12px;color:#c3dbff;font:700 11px/1.4 Archivo,sans-serif}
.street-menu-layers summary{cursor:pointer;color:#fff;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.street-menu-layers p{margin:8px 0 6px!important;font-size:10px!important;line-height:1.4!important}
#streetGameLayers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
#streetGameLayers label{display:flex;align-items:center;gap:8px;min-height:32px;color:#fff;font-size:11px}
#streetGameLayers input{width:18px;height:18px;margin:0;accent-color:#f2c230}
.street-menu-note{margin:12px 0 0!important;color:#c3dbff;font-size:10px!important;line-height:1.4!important;text-align:center}
.street-restart-actions{display:flex;justify-content:center}
.street-restart-actions #streetGameRestart{margin:0 12px 7px;min-height:32px;padding:6px 28px;border:2px solid #fff1b0;border-radius:9px;background:#f2c230;color:#12306a;font:900 12px Archivo,sans-serif;box-shadow:0 2px 0 #071d47}
.street-game-panel button:focus-visible{outline:3px solid white;outline-offset:3px}
.street-playing .leaflet-control-attribution{margin-bottom:108px}
@media(min-width:700px){.street-game-actions.street-menu-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.street-menu-heading h2{font-size:28px}}
@media(max-width:699px){.street-menu-grid #streetGameClose{grid-column:1/-1;min-height:44px;flex-direction:row;gap:8px}.street-menu-grid #streetGameClose:before{font-size:18px}}
.street-playing .noticebar,.street-playing .riskpill,.street-playing .hazardbanner,.street-playing #hazardWrap{display:none!important}

/* Reusable launch artwork, with an independent progress layer for future campaigns. */
.street-game-loading{position:fixed;inset:0;z-index:2000;background:radial-gradient(ellipse at center,#338ce5,#12306a);display:flex;justify-content:center;overflow:hidden}
.street-game-loading[hidden]{display:none!important}
.street-game-loading>img{width:100%;height:100%;object-fit:contain;object-position:center}
.street-intro-clip{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;background:#071d47}
.street-intro-clip[hidden]{display:none}
.street-loading-progress{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 40px));padding:12px 14px;background:#12306aee;border:2px solid #ffffffb0;border-radius:14px;box-shadow:0 4px 0 #071d47;color:white;text-align:center}
.street-loading-progress>span{display:block;margin-bottom:8px;font:900 10px Archivo,sans-serif;letter-spacing:1px}
.street-loading-progress [role=progressbar]{height:12px;padding:2px;background:#071d47;border:1px solid #ffffff55;border-radius:8px;overflow:hidden}
.street-loading-progress i{display:block;height:100%;width:var(--load-progress,0%);border-radius:5px;background:linear-gradient(#ffe98c,#f2c230);box-shadow:0 0 12px #ffdf70}
@media(min-aspect-ratio:3/4){.street-game-loading{background:radial-gradient(ellipse at center,#338ce5,#12306a)}.street-game-loading>img{width:auto;max-width:100%;object-fit:contain}}
.street-rangr-pickup{background:none;border:0}
.street-rangr-token{display:block;width:16px;height:16px;margin:4px;transform:scale(var(--street-scale,1));transform-origin:center;background:#fff;border:2px solid #0a53ac;border-radius:50%;padding:2px;box-sizing:border-box;box-shadow:0 2px 0 #12306a55;transform-origin:center}
.street-rangr-token img{display:block;width:100%;height:100%}
.street-rangr-token.street-themed-token{width:20px;height:20px;margin:2px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 2px 0 #913e1d55)}
.street-stats{grid-template-columns:1.6fr 1fr 1fr}
.street-points-stat{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:7px;padding:5px 9px;min-width:0;background:#073e83;border:2px solid #70b4ff;border-radius:10px}
.street-points-stat strong{font:900 25px/1 Archivo,sans-serif;letter-spacing:-.8px;grid-row:span 2}
.street-points-stat small{font-size:8px}
.street-points-stat>span{font:800 7px Archivo,sans-serif;color:#bad6ff;white-space:nowrap}
.street-crown-stat{display:flex;gap:5px;padding:5px 7px}
.street-crown-stat strong{font-size:23px}
.street-crown-stat small{font-size:7px;letter-spacing:0}
.street-crown-stat>span{width:20px;height:20px}
.street-crown-stat>span svg{width:20px;height:20px}
.street-icon-stat{display:flex;align-items:center;justify-content:center;gap:4px;padding:5px;background:#fff;border:2px solid #b9d7ff;border-radius:10px;color:#12306a}
.street-icon-stat img{width:20px;height:22px}
.street-icon-stat strong{font:900 23px/1 Archivo,sans-serif}
.street-icon-stat small{font-size:7px;letter-spacing:0}
.street-game-heading>.street-game-clock{background:none;border:0;box-shadow:none;padding:0;font:900 12px Archivo,sans-serif}
.street-ranks-sheet li>span:last-of-type{white-space:normal;text-align:right;max-width:150px;font-size:10px}
@media(max-width:400px){.street-stats{gap:6px}.street-crown-stat,.street-icon-stat{flex-wrap:wrap;column-gap:4px;row-gap:0}.street-crown-stat small,.street-icon-stat small{width:100%;text-align:center}.street-points-stat{column-gap:5px;padding:5px 6px}.street-points-stat strong{font-size:23px}}

/* End of run: poster, central trophy card and one full-width replay action. */
.street-game-results{position:fixed;inset:0;z-index:700;display:flex;align-items:center;justify-content:center;padding:24px 18px calc(110px + env(safe-area-inset-bottom));background:#12306a;isolation:isolate;overflow-y:auto}
.street-game-results[hidden]{display:none!important}
.street-results-poster{position:fixed;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center}
.street-game-results:before{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(#12306a35,#071d4770 50%,#071d47aa)}
#streetResultsExit{position:absolute;top:calc(16px + env(safe-area-inset-top));right:16px;display:grid;place-items:center;width:38px;height:38px;border:2px solid white;border-radius:12px;background:#d91b2b;color:white;font-size:25px;box-shadow:0 3px 0 #921426}
.street-results-card{position:relative;width:min(390px,100%);padding:25px 22px 18px;border:3px solid white;border-radius:24px;background:linear-gradient(145deg,#1974d5,#0a53ac 55%,#12306a);box-shadow:0 6px 0 #071d47,0 9px 0 #ffffff60,0 20px 50px #071d4799;text-align:center;color:white;animation:street-results-in .4s cubic-bezier(.2,1.3,.5,1)}
.street-results-crown{width:58px;height:48px;margin:-50px auto 13px;color:#f2c230;filter:drop-shadow(0 3px 0 #956407)}
.street-results-crown svg{width:100%;height:100%}
.street-results-card>small{font:800 8px Archivo,sans-serif;letter-spacing:1px;color:#bad6ff}
.street-results-card h2{margin:7px 0 10px;font:900 36px/1 Archivo,sans-serif;letter-spacing:-1px;text-shadow:0 3px 0 #073e83}
#streetResultsRecord{display:block;width:fit-content;margin:0 auto 8px;padding:4px 9px;border-radius:6px;background:#f2c230;color:#12306a;font:900 8px Archivo,sans-serif}
#streetResultsRecord[hidden]{display:none}
#streetResultsPoints{display:block;font:900 66px/1 Archivo,sans-serif;letter-spacing:-2px;color:#ffdf70;text-shadow:0 3px 0 #956407}
.street-results-points-label{display:block;margin:5px 0 15px;font:900 10px Archivo,sans-serif;letter-spacing:1px}
.street-results-resources{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.street-results-resources>div{padding:10px 3px;border:1px solid #78b8ff;border-radius:10px;background:#073e83}
.street-results-resources b{display:block;font:900 23px Archivo,sans-serif}
.street-results-resources small{display:block;margin-top:3px;font:800 7px Archivo,sans-serif;color:#c3dbff}
.street-results-rank{margin:13px 0;padding:11px 8px;border:2px solid #ffe98c;border-radius:12px;background:linear-gradient(#ffe98c,#f2c230);color:#12306a}
.street-results-rank small{display:block;font:900 8px Archivo,sans-serif;letter-spacing:1px}
.street-results-rank strong{display:block;margin:4px 0;font:900 28px/1 Archivo,sans-serif}
.street-results-rank span{display:block;font-size:10px;line-height:1.35}
#streetResultsRanks{min-height:34px;padding:7px 16px;border:1px solid #ffffff80;border-radius:9px;background:#12306a;color:white;font:800 10px Archivo,sans-serif}
.street-finished .mast,.street-finished .street-play{visibility:hidden}
.street-finished .street-game-panel{z-index:710;border-radius:18px 18px 0 0;padding:0;background:none;box-shadow:none;border:0}
.street-finished .street-game-panel:before,.street-finished .street-game-heading,.street-finished .street-stats,.street-finished #streetGameStatus,.street-finished #streetGameMenu{display:none!important}
.street-finished .street-restart-actions #streetGameRestart{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;max-width:none;margin:0;min-height:76px;padding:18px 20px calc(18px + env(safe-area-inset-bottom));border:3px solid #fff1b0;border-bottom:0;border-radius:18px 18px 0 0;background:linear-gradient(#ffdf70,#f2c230);color:#12306a;font:900 24px Archivo,sans-serif;text-transform:uppercase;box-shadow:inset 0 3px 0 #fff4bc;animation:street-run-again 3.2s 1s infinite}
#streetGameRestart svg{width:34px;height:34px;flex-shrink:0}
.street-finished .street-restart-actions #streetGameRestart:disabled{animation:none;opacity:.8;cursor:wait}
.street-replaying #streetGameResults{display:none}
@keyframes street-results-in{from{opacity:0;transform:translateY(25px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes street-run-again{0%,78%,100%{transform:translateX(0)}82%,90%{transform:translateX(-3px)}86%,94%{transform:translateX(3px)}}
@media(max-height:650px){.street-game-results{align-items:flex-start;padding-top:50px}.street-results-card{padding-top:20px}#streetResultsPoints{font-size:44px}.street-results-card h2{font-size:28px}.street-results-points-label{margin-bottom:10px}.street-results-rank{margin:10px 0}.street-finished .street-restart-actions #streetGameRestart{min-height:64px}}
@media(prefers-reduced-motion:reduce){.street-results-card,.street-finished .street-restart-actions #streetGameRestart{animation:none}}
#streetResultsRanks:disabled{opacity:.65;cursor:wait}

/* Game branding replaces the standard map mast only while playing. */
.street-game-mast{position:absolute;z-index:550;top:24px;left:24px;width:410px;max-width:calc(100% - 48px);min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border:3px solid white;border-radius:21px;background:linear-gradient(145deg,#1974d5,#0a53ac 60%,#12306a);box-shadow:0 4px 0 #12306a,0 10px 25px #12306a30;color:white}
.street-game-mast[hidden]{display:none!important}
.street-game-brand{display:flex;flex-direction:column;align-items:center;min-width:0;flex:1}
.street-game-brand img{display:block;width:180px;max-width:100%;height:62px;object-fit:contain;filter:drop-shadow(0 2px 0 #071d4740)}
.street-game-brand small{display:block;margin-top:2px;font:800 8px Archivo,sans-serif;letter-spacing:.3px;color:#c3dbff;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#streetBackToMap{display:flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-height:40px;padding:10px 12px;border:2px solid #fff1b0;border-radius:11px;background:linear-gradient(#ffdf70,#f2c230);color:#12306a;font:900 10px Archivo,sans-serif;box-shadow:0 3px 0 #956407}
#streetBackToMap span{font-size:18px;line-height:1}
.street-playing .mast,.street-playing .street-play{display:none!important}
.street-finished .street-game-mast,.street-replaying .street-game-mast{display:none}
#streetResultsExit{top:calc(8px + env(safe-area-inset-top));display:flex;justify-content:center;align-items:center;gap:6px;width:auto;height:34px;padding:7px 12px;font:900 10px Archivo,sans-serif;background:#0a53ac;box-shadow:0 3px 0 #12306a}
#streetResultsExit span{font-size:17px}
@media(max-width:600px){.street-game-mast{top:12px;left:12px;width:calc(100% - 24px);max-width:none;min-height:88px;padding:8px 11px;gap:8px;border-radius:19px}.street-game-brand img{width:160px;height:58px}#streetBackToMap{padding:9px 10px;font-size:9px}}
@media(max-width:350px){.street-game-brand img{width:135px;height:52px}.street-game-brand small{font-size:7px}#streetBackToMap{padding:9px 7px;font-size:8px}}

/* Slim full-width game mast leaves more of the streets in view. */
.street-maps-sheet{max-width:440px;width:100%;max-height:calc(100dvh - 24px);overflow:auto;background:linear-gradient(145deg,#1267c7,#12306a)!important;color:white;border:3px solid white;border-radius:24px!important}
.street-maps-sheet .sheethead small{font:900 9px Archivo,sans-serif;letter-spacing:1px;color:#ffdf66}.street-maps-sheet h2{font:900 28px Archivo,sans-serif;color:white;margin:5px 0}.street-maps-sheet .iconbutton{background:#ffffff20;color:white;flex-shrink:0}
.street-maps-hint{color:#c4ddff;font-size:11px;line-height:1.4;margin:10px 0 16px}
#streetMapsOptions{display:grid;gap:12px}#streetMapsOptions button{display:flex;align-items:center;gap:14px;width:100%;padding:12px;border:2px solid #83b9ef;border-radius:16px;background:#073e83;text-align:left;color:white;box-shadow:0 3px 0 #071d47}
#streetMapsOptions button[aria-pressed=true]{border-color:#ffdf66;background:#0a53ac}.street-map-art{display:block;width:94px;flex-shrink:0;overflow:hidden;border:2px solid white;border-radius:11px;rotate:-3deg}.street-map-art svg{display:block;width:100%}
.street-map-copy small{display:block;font:900 8px Archivo,sans-serif;letter-spacing:1px;color:#ffdf66}.street-map-copy b{display:block;font:900 22px Archivo,sans-serif;margin:5px 0}.street-map-copy>span{font-size:10px;color:#c4ddff}
.street-maps-coming{margin-top:22px;padding:16px 10px;border:2px solid #fff2b9;border-radius:16px;text-align:center;background:linear-gradient(#ffe98c,#f2c230);color:#12306a;box-shadow:0 3px 0 #956407}.street-maps-coming>span{display:block;font-size:34px;line-height:1}.street-maps-coming b{display:block;font:900 14px Archivo,sans-serif;margin:8px 0}.street-maps-coming p{font-size:12px;font-weight:700;margin:0}
@media(max-width:350px){.street-map-art{width:74px}.street-map-copy b{font-size:19px}}
#streetResultsShare{display:block;width:100%;margin:12px 0 8px;padding:12px;border:2px solid #fff2b9;border-radius:12px;background:linear-gradient(#ffe98c,#f2c230);box-shadow:0 3px 0 #956407;color:#12306a;font:900 14px Archivo,sans-serif}
#streetResultsShare:disabled{opacity:.55}
.street-share-modal{z-index:1700!important}
.street-share-sheet{width:100%;max-width:440px;max-height:calc(100dvh - 24px);overflow-y:auto;background:linear-gradient(145deg,#1267c7,#12306a)!important;color:white;border:3px solid #fff;border-radius:24px!important;padding:18px!important}
.street-share-sheet .sheethead{margin-bottom:12px}.street-share-sheet .sheethead small{font:900 9px Archivo,sans-serif;letter-spacing:1px;color:#ffdf66}.street-share-sheet h2{font:900 27px Archivo,sans-serif;color:white;margin:4px 0}
.street-share-sheet .iconbutton{background:#ffffff20;color:white;flex-shrink:0}
.street-share-formats{display:flex;justify-content:center;gap:8px;margin-bottom:12px}
.street-share-formats button{border:1px solid #83b9ef;border-radius:9px;background:#073e83;color:white;padding:7px 12px;font-weight:800;font-size:11px}
.street-share-formats button[aria-pressed=true]{background:#ffdf66;border-color:#fff2b9;color:#12306a}
#streetSharePreview{display:block;max-width:100%;max-height:49dvh;width:auto;height:auto;margin:auto;border-radius:12px;box-shadow:0 4px 15px #071d4780}
#streetShareNote{font-size:11px;text-align:center;line-height:1.4;color:#c4ddff;margin:12px 0}
#streetShareSend{width:100%;padding:12px;border:2px solid #fff2b9;border-radius:12px;background:linear-gradient(#ffe98c,#f2c230);color:#12306a;font:900 13px Archivo,sans-serif;box-shadow:0 3px 0 #956407}
.street-share-secondary{display:flex;gap:8px;margin-top:12px}.street-share-secondary button{flex:1;background:#073e83;border:1px solid #83b9ef;border-radius:10px;padding:10px 6px;color:white;font-size:11px;font-weight:800}
.street-share-sheet button:disabled{opacity:.5}.street-share-sheet [hidden]{display:none!important}
#streetShareLink{width:100%;margin-top:10px;padding:8px;font-size:11px}
.street-game-mast{top:0;left:0;width:100%;max-width:none;min-height:58px;gap:10px;padding:5px 12px;padding-top:calc(5px + env(safe-area-inset-top));border-width:0 0 2px;border-radius:0;box-shadow:0 3px 0 #12306a,0 5px 15px #12306a20}
.street-game-brand{flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}
.street-game-brand img{width:68px;height:44px;flex-shrink:0}
.street-game-brand-text{min-width:0}
.street-game-brand-text b{display:block;font:900 19px/1 Archivo,sans-serif;letter-spacing:-.5px;text-transform:uppercase}
.street-game-brand small{margin-top:4px;font-size:8px}
#streetBackToMap{min-height:36px;padding:7px 11px;font-size:11px;border-radius:9px}
#streetResultsExit{height:34px;padding:7px 11px}
@media(max-width:350px){.street-game-mast{gap:7px;padding-left:8px;padding-right:8px}.street-game-brand{gap:6px}.street-game-brand-text b{font-size:16px}.street-game-brand small{font-size:7px}}

/* While playing, nothing on the real map is tappable: taps fall through to the street to steer the runner. */
.street-playing .leaflet-marker-pane,.street-playing .leaflet-shadow-pane,.street-playing .leaflet-overlay-pane,.street-playing .leaflet-popup-pane,.street-playing .leaflet-tooltip-pane{pointer-events:none!important}

/* The Play button is just the Meter Mayhem logo, no box behind it. It fidgets while idle (see overlay.js). */
.street-play{width:128px;height:auto;padding:0;background:none;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 4px 6px #0a1d4566);-webkit-tap-highlight-color:transparent}
.street-play img{display:block;width:100%;height:auto;transform-origin:50% 55%}
.street-play:active img{transform:scale(.94)}
.street-play:focus-visible{outline:3px solid #ffdf66;outline-offset:4px;border-radius:12px}
@media(max-width:600px){.street-play{width:112px;padding:0}}
.street-play-shake img{animation:street-play-shake .75s ease-in-out}
.street-play-spin img{animation:street-play-spin .9s cubic-bezier(.3,.9,.3,1)}
@keyframes street-play-shake{0%,100%{transform:rotate(0)}15%{transform:rotate(-9deg) scale(1.05)}30%{transform:rotate(8deg) scale(1.05)}45%{transform:rotate(-6deg)}60%{transform:rotate(5deg)}75%{transform:rotate(-3deg)}90%{transform:rotate(2deg)}}
@keyframes street-play-spin{0%{transform:rotateY(0) scale(1)}50%{transform:rotateY(180deg) scale(1.12)}100%{transform:rotateY(360deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.street-play-shake img,.street-play-spin img{animation:none}}

/* ===== Meter Mayhem HQ: the branded home screen. Royal blue, chunky gold and red, pixel pigs. ===== */
.street-hub{position:fixed;inset:0;z-index:700;overflow:auto;-webkit-overflow-scrolling:touch;padding:calc(12px + env(safe-area-inset-top,0px)) 16px calc(28px + env(safe-area-inset-bottom,0px));background:radial-gradient(ellipse at 50% -10%,#3b93ee,#0a53ac 45%,#071d47 100%);color:#fff;font-family:Archivo,system-ui,sans-serif;outline:none}
.street-hub[hidden]{display:none!important}
.street-replaying .street-hub{display:none!important}
.street-hub:before{content:'';position:fixed;inset:0;pointer-events:none;background:repeating-linear-gradient(135deg,#ffffff07 0 12px,transparent 12px 30px)}
.street-hub-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.street-hub-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:520px;margin:0 auto}
.street-hub-top button{min-height:40px;padding:0 14px;border:2px solid #fff1b0;border-radius:11px;background:linear-gradient(#ffdf70,#f2c230);color:#12306a;font:900 12px Archivo,system-ui,sans-serif;letter-spacing:.5px;box-shadow:0 3px 0 #956407;cursor:pointer}
.street-hub-top button:active{transform:translateY(2px);box-shadow:0 1px 0 #956407}
#streetHubSound{font-size:17px;padding:0 11px}
.street-hub-area{font:900 12px Archivo,system-ui,sans-serif;letter-spacing:3px;color:#ffdf66;text-shadow:0 2px 0 #071d47;text-align:center;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.street-hub-logo{position:relative;z-index:1;display:block;width:min(340px,80%);height:auto;margin:2px auto 0;filter:drop-shadow(0 12px 18px #071d47aa);animation:street-hub-bob 3.4s ease-in-out infinite}
.street-hub-pigs{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.street-hub-pig{position:absolute;width:40px;height:60px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30' shape-rendering='crispEdges'%3E%3Cpath fill='%23ef8fa8' d='M3 5h4v6H3zM13 5h4v6h-4zM4 9h12v7H4z'/%3E%3Cpath fill='%2312306a' d='M5 2h10v3H5zM3 5h14v3H3z'/%3E%3Cpath fill='%23f2c230' d='M9 3h2v2H9z'/%3E%3Cpath fill='%2315273b' d='M5 10h4v2H5zM11 10h4v2h-4z'/%3E%3Cpath fill='%23f5b7c6' d='M7 12h6v4H7z'/%3E%3Cpath fill='%23ac4d67' d='M8 13h1v2H8zM11 13h1v2h-1z'/%3E%3Cpath fill='%2312306a' d='M5 17h10v8H5zM3 18h2v6H3zM15 18h2v6h-2z'/%3E%3Cpath fill='%23f2c230' d='M7 18h2v2H7z'/%3E%3Cpath fill='%23ef8fa8' d='M3 24h2v2H3zM15 24h2v2h-2z'/%3E%3Cpath fill='%2320352e' d='M5 25h4v3H5zM11 25h4v3h-4zM3 28h6v2H3zM11 28h6v2h-6z'/%3E%3C/svg%3E") no-repeat center/contain;image-rendering:pixelated;opacity:.85;filter:drop-shadow(0 6px 6px #071d4788)}
.street-hub-pig.p1{top:72px;left:6%;transform:scaleX(-1);animation:street-hub-pig 2.6s ease-in-out infinite}
.street-hub-pig.p2{top:150px;right:5%;animation:street-hub-pig 3.1s ease-in-out infinite .4s}
.street-hub-pig.p3{top:34px;right:22%;width:28px;height:42px;opacity:.55;animation:street-hub-pig 3.8s ease-in-out infinite .9s}
@media(max-height:640px){.street-hub-pig{display:none}}
.street-hub-grid{position:relative;z-index:1;display:grid;gap:12px;max-width:520px;margin:10px auto 0}
.street-hub-card{position:relative;border:3px solid #fff;border-radius:20px;background:linear-gradient(160deg,#1974d5,#0a53ac 60%,#12306a);box-shadow:0 6px 0 #071d47,0 14px 30px #071d4766;padding:14px}
.street-hub-player{display:flex;align-items:center;gap:12px}
.street-hub-player>div{flex:1;min-width:0}
.street-hub-sprite{width:62px;height:92px;flex-shrink:0;display:grid;place-items:center;background:#ffffff14;border:2px solid #ffffff40;border-radius:14px}
.street-hub-sprite .sprite{width:42px;height:63px;image-rendering:pixelated}
.street-hub-sprite .sprite-big{width:46px;height:69px}
.street-hub-player small{display:block;font-size:10px;font-weight:900;letter-spacing:2px;color:#ffdf66}
.street-hub-player b{display:block;margin-top:2px;font-size:20px;line-height:1.05;overflow-wrap:anywhere}
.street-hub-player span{display:block;margin-top:4px;font:600 12px 'DM Sans',system-ui,sans-serif;color:#dbe6ff}
#streetHubOutfit{flex-shrink:0;min-height:38px;padding:0 13px;border:2px solid #fff1b0;border-radius:11px;background:linear-gradient(#ffdf70,#f2c230);color:#12306a;font:900 11px Archivo,system-ui,sans-serif;box-shadow:0 3px 0 #956407;cursor:pointer}
.street-hub-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.street-hub-stats>div{border:2px solid #ffffff55;border-radius:14px;background:#071d4788;padding:10px 4px 8px;text-align:center}
.street-hub-stats b{display:block;font-size:22px;line-height:1;color:#ffdf66;text-shadow:0 2px 0 #956407}
.street-hub-stats small{display:block;margin-top:5px;font-size:8.5px;font-weight:800;letter-spacing:1.5px;color:#dbe6ff}
.street-hub-play{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:15px 16px;border:3px solid #fff;border-radius:18px;font-family:Archivo,system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.street-hub-play{background:linear-gradient(#ff5b69,#d91b2b 60%,#b3121f);color:#fff;box-shadow:0 7px 0 #7d0f1a,0 16px 30px #d91b2b40;animation:street-hub-pulse 2.2s ease-in-out infinite}
.street-hub-play span{font-size:36px;font-weight:900;letter-spacing:3px;line-height:1;text-shadow:0 3px 0 #7d0f1a}
.street-hub-play small{font:700 11px 'DM Sans',system-ui,sans-serif;letter-spacing:.3px;opacity:.92}
.street-hub-play:active{transform:translateY(4px);box-shadow:0 3px 0 #7d0f1a}
.street-hub-card-head{display:flex;align-items:center;gap:8px}
.street-hub-card-head>div{flex:1;min-width:0}
.street-hub-card-head small{display:block;font-size:9.5px;font-weight:900;letter-spacing:2px;color:#ffdf66}
.street-hub-card-head b{display:block;font-size:17px;line-height:1.1}
.street-hub-card-head button{min-height:32px;padding:0 11px;border:2px solid #ffffff70;border-radius:9px;background:#071d4788;color:#fff;font:900 10px Archivo,system-ui,sans-serif;letter-spacing:.5px;cursor:pointer}
.street-hub-board ol{list-style:none;margin:8px 0 0;padding:0}
.street-hub-board li{display:flex;align-items:center;gap:9px;padding:8px 0;border-top:1px solid #ffffff22;font-size:12px}
.street-hub-board li.empty{color:#dbe6ff;font:600 12px 'DM Sans',system-ui,sans-serif}
.street-hub-board li>i{width:26px;height:26px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#ffffff22;color:#fff;font:900 11px Archivo,system-ui,sans-serif;font-style:normal;border:2px solid #ffffff30}
.street-hub-board li.top-1>i,#streetRanksRows li:nth-child(1)>span:first-child{background:linear-gradient(#ffe98c,#f2c230);color:#12306a;border-color:#fff;box-shadow:0 2px 0 #956407}
.street-hub-board li.top-2>i,#streetRanksRows li:nth-child(2)>span:first-child{background:linear-gradient(#f3f6fb,#b9c4d4);color:#12306a;border-color:#fff;box-shadow:0 2px 0 #6c7a8c}
.street-hub-board li.top-3>i,#streetRanksRows li:nth-child(3)>span:first-child{background:linear-gradient(#e9a36b,#b86a2f);color:#fff;border-color:#fff;box-shadow:0 2px 0 #6f3d16}
.street-hub-board li>b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.street-hub-board li>span{color:#ffdf66;font-weight:900;font-size:11px;white-space:nowrap}
.street-hub-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.street-hub-row button{min-height:48px;border:2px solid #ffffff65;border-radius:14px;background:linear-gradient(#367bdd,#0a53ac);color:#fff;font:900 12px Archivo,system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;box-shadow:0 4px 0 #071d47;cursor:pointer}
.street-hub-row button:active{transform:translateY(3px);box-shadow:0 1px 0 #071d47}
.street-hub-how{border:2px solid #ffffff40;border-radius:16px;background:#071d4788;padding:4px 14px}
.street-hub-how[hidden]{display:none}
.street-hub-how p{margin:10px 0;font:600 12.5px/1.4 'DM Sans',system-ui,sans-serif;color:#dbe6ff}
.street-hub-how b{color:#ffdf66}
.street-hub-rules{position:relative;z-index:1;max-width:520px;margin:16px auto 0;text-align:center;font:900 10px Archivo,system-ui,sans-serif;letter-spacing:2px;color:#9fc2ff}
.street-hub button:focus-visible{outline:3px solid #ffdf66;outline-offset:3px}
@keyframes street-hub-bob{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-7px) rotate(1.5deg)}}
@keyframes street-hub-pig{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.street-hub-pig.p1{animation-name:street-hub-pig-flip}
@keyframes street-hub-pig-flip{0%,100%{transform:scaleX(-1) translateY(0)}50%{transform:scaleX(-1) translateY(-9px)}}
@keyframes street-hub-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){.street-hub-logo,.street-hub-pig,.street-hub-play{animation:none}}
/* Results and drawer: the way back to HQ. */
#streetResultsHub{display:block;width:100%;margin-top:8px;min-height:38px;padding:8px 16px;border:2px solid #fff;border-radius:11px;background:linear-gradient(#367bdd,#0a53ac);color:#fff;font:900 12px Archivo,system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase;box-shadow:0 3px 0 #071d47}
.street-menu-grid #streetGameHub:before{content:'🏠'}
/* ===== Weekly leaderboards in the same arcade dress. ===== */
.street-ranks-sheet{background:linear-gradient(160deg,#1974d5,#0a53ac 55%,#12306a)!important;color:#fff!important;border:3px solid #fff;border-radius:22px!important;box-shadow:0 6px 0 #071d47,0 20px 50px #071d4799;font-family:Archivo,system-ui,sans-serif}
.street-ranks-sheet .sheethead small{display:block;color:#ffdf66;font:900 10px Archivo,system-ui,sans-serif;letter-spacing:2px}
.street-ranks-sheet h2{color:#fff;font:900 26px Archivo,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.5px;margin:2px 0 0}
.street-ranks-sheet .iconbutton{background:#d91b2b!important;color:#fff!important;border:2px solid #fff;border-radius:11px;box-shadow:0 3px 0 #921426}
.street-ranks-tabs button{background:#071d4788;color:#dbe6ff;border:2px solid #ffffff40;font:900 11px Archivo,system-ui,sans-serif;text-transform:uppercase;letter-spacing:1px}
.street-ranks-tabs [aria-pressed="true"]{background:linear-gradient(#ffe98c,#f2c230);color:#12306a;border-color:#fff;box-shadow:0 3px 0 #956407}
#streetRanksSummary{color:#ffdf66;font:900 11px Archivo,system-ui,sans-serif;letter-spacing:1px;text-transform:uppercase}
#streetRanksRows{max-height:min(46dvh,340px)}
#streetRanksRows li{border:2px solid #ffffff30;border-radius:14px;background:#071d4766;padding:9px 12px;margin-bottom:8px;gap:10px}
#streetRanksRows li>span:first-child{min-width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#ffffff22;color:#fff;font:900 11px Archivo,system-ui,sans-serif;border:2px solid #ffffff30}
#streetRanksRows li>b{font:900 13px Archivo,system-ui,sans-serif;color:#fff}
#streetRanksRows li>span{color:#dbe6ff;font:700 10px 'DM Sans',system-ui,sans-serif}
#streetRanksRows button{background:linear-gradient(#ffe98c,#f2c230);color:#12306a;font:900 10px Archivo,system-ui,sans-serif;border:2px solid #fff;box-shadow:0 2px 0 #956407}
.street-ranks-rules{color:#dbe6ff;font:600 11px/1.4 'DM Sans',system-ui,sans-serif}

/* Narrow and short phones: everything scales down instead of spilling out. */
.street-hub-stats>div{min-width:0}.street-hub-stats small,.street-hub-player small,.street-hub-card-head small{overflow-wrap:anywhere}
.street-hub-stats b{font-size:clamp(17px,6vw,22px)}
.street-hub-play span{font-size:clamp(26px,9vw,36px)}
.street-hub-player b{font-size:clamp(16px,5.5vw,20px)}
@media(max-width:380px){.street-hub{padding-left:12px;padding-right:12px}.street-hub-logo{width:88%}.street-hub-card{padding:12px}.street-hub-sprite{width:54px;height:80px}.street-hub-sprite .sprite{width:36px;height:54px}.street-hub-stats{gap:6px}.street-hub-stats>div{padding:8px 3px 7px}.street-hub-stats small{font-size:7.5px;letter-spacing:1px}.street-hub-row button{font-size:11px;min-height:44px}.street-hub-top button{padding:0 10px;font-size:11px}.street-hub-area{letter-spacing:2px;font-size:11px}#streetHubOutfit{padding:0 10px;font-size:10px}}
@media(max-height:700px){.street-hub-logo{width:min(260px,62%);animation:none}.street-hub-grid{gap:9px;margin-top:6px}.street-hub-play{padding:11px 14px}}
@media(max-width:360px){.street-play{width:96px}.street-game-mast{left:12px;top:16px;max-width:calc(100% - 24px);min-height:78px;padding:7px 10px;border-radius:16px}.street-game-brand-text b{font-size:14px}.street-game-brand small{font-size:9px}#streetBackToMap{min-height:36px;padding:8px 10px}.street-results-card{padding:20px 14px 14px;border-radius:18px}#streetResultsPoints{font-size:44px}.street-results-resources b{font-size:17px}.street-ranks-sheet h2{font-size:21px}.street-ranks-tabs{gap:5px}.street-ranks-tabs button{padding:7px 9px;font-size:10px}#streetRanksRows li{padding:8px 9px;gap:7px}}
@media(max-height:620px){.street-game-mast{top:12px;min-height:66px}.street-results-card{padding:16px 14px 12px}.street-results-crown{margin-top:-40px}}

.street-hub-replay{display:flex;align-items:center;gap:8px;margin:2px 4px 6px;font-size:12px;font-weight:700;color:#c9d8f5}.street-hub-replay input{width:18px;height:18px;accent-color:#f2c230}
.street-results-treasure{margin:0 0 8px;padding:8px 12px;border-radius:10px;background:#12306a;color:#ffdf66;border:2px solid #f2c230;font-size:12px;font-weight:800;text-align:center}
.street-chest{background:none;border:0}.street-chest>span{display:block;width:34px;height:34px;filter:drop-shadow(0 3px 4px #0005);animation:street-chest-bob 1.4s cubic-bezier(.45,0,.55,1) infinite}.street-chest svg{width:100%;height:100%}
@keyframes street-chest-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.street-chest>span{animation:none}}
.street-replaying .street-chest{visibility:hidden}
