/* fix-site-r62 (audit B7): self-hosted fonts, the exact files and rules Google Fonts served for Anton + Inter 500/700 (latin, latin-ext),
   so no request leaves our domain. SIL OFL 1.1: assets/fonts/OFL-*.txt. Inter is one variable file, declared per weight like Google's CSS. */
@font-face { font-family:'Anton'; font-style:normal; font-weight:400; font-display:swap; src:url(assets/fonts/anton-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'Anton'; font-style:normal; font-weight:400; font-display:swap; src:url(assets/fonts/anton-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url(assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url(assets/fonts/inter-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url(assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url(assets/fonts/inter-latin.woff2) format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --orange:#ff6a00; --ink:#0d0f14; --paper:#f4efe6; }
* { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; overflow:hidden; background:#0d0f14; font-family:Inter,system-ui,sans-serif; color:var(--paper); -webkit-tap-highlight-color:transparent; touch-action:none; }
canvas#game { position:fixed; inset:0; width:100%; height:100%; display:block; }
#vignette { position:fixed; inset:0; pointer-events:none; background:radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.32) 100%); }
.hud { position:fixed; pointer-events:none; user-select:none; transition:opacity .4s; }
#title { top:20px; left:20px; font:italic 40px/0.95 Anton,Impact,sans-serif; letter-spacing:.02em; text-transform:uppercase; -webkit-text-stroke:2px #000; paint-order:stroke fill; text-shadow:3px 3px 0 #000; }
#title b { color:var(--orange); font-weight:inherit; }
#title small { display:block; font:700 11px Inter,sans-serif; letter-spacing:.12em; -webkit-text-stroke:0; text-shadow:none; opacity:.85; margin-top:6px; }
#list { top:110px; left:20px; font-size:12.5px; line-height:1.5; background:rgba(13,15,20,.55); padding:10px 14px; border-radius:10px; -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px); min-width:210px; max-height:calc(100vh - 360px); overflow:hidden; }
#list:not(.on) { display:none; }
#list h4 { font:400 14px Anton,sans-serif; letter-spacing:.1em; color:var(--orange); margin-bottom:4px; }
#list .done { color:#8fe3a1; } #list .todo { opacity:.85; }
#list .arr { display:inline-block; width:14px; text-align:center; color:var(--orange); font-weight:700; } #list em { font-style:normal; opacity:.6; margin-left:4px; } #list .kbd { float:right; font:600 10px Inter,sans-serif; opacity:.5; border:1px solid rgba(255,255,255,.4); border-radius:3px; padding:0 4px; margin-top:3px; letter-spacing:0; color:#fff; }
#list .stat { margin-top:6px; padding-top:6px; border-top:1px solid rgba(255,255,255,.15); opacity:.9; }
#speed { right:24px; bottom:20px; text-align:right; font:italic 64px/1 Anton,sans-serif; -webkit-text-stroke:2px #000; paint-order:stroke fill; text-shadow:3px 3px 0 #000; }
#speed small { font-size:18px; margin-left:6px; color:var(--orange); }
#street { left:50%; bottom:26px; transform:translateX(-50%); font:italic 30px Anton,sans-serif; letter-spacing:.04em; text-transform:uppercase; -webkit-text-stroke:1.5px #000; paint-order:stroke fill; text-shadow:2px 2px 0 #000; opacity:0; white-space:nowrap; }
#hoodname { left:50%; bottom:68px; transform:translateX(-50%); font:700 12px Inter,sans-serif; letter-spacing:.3em; text-transform:uppercase; color:var(--orange); text-shadow:0 1px 4px #000; white-space:nowrap; }
#hood { right:24px; top:48px; width:320px; background:rgba(13,15,20,.72); border-left:5px solid var(--orange); padding:14px 16px 12px; border-radius:6px; -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px); opacity:0; transform:translateX(30px); transition:opacity .4s, transform .4s; }
#hood.on { opacity:1; transform:none; }
#hood .t { font:700 11px Inter; letter-spacing:.2em; text-transform:uppercase; color:var(--orange); }
#hood h3 { font:italic 34px/1 Anton,sans-serif; text-transform:uppercase; margin:3px 0 8px; letter-spacing:.02em; }
#hood p { font-size:13px; line-height:1.5; }
#hood .s { margin-top:8px; font-size:11px; opacity:.5; letter-spacing:.06em; }
#toast { left:50%; top:22%; transform:translateX(-50%); font:italic 46px Anton,sans-serif; text-transform:uppercase; letter-spacing:.03em; text-align:center; color:var(--orange); -webkit-text-stroke:2px #000; paint-order:stroke fill; text-shadow:4px 4px 0 #000; opacity:0; transition:opacity .3s; white-space:nowrap; }
#toast.on { opacity:1; }
#toast small { display:block; font:700 14px Inter,sans-serif; color:#fff; -webkit-text-stroke:0; text-shadow:0 1px 3px #000; letter-spacing:.06em; margin-top:4px; }
#toast { width:max-content; max-width:min(92vw, 820px); } #toast small { white-space:normal; line-height:1.3; }   /* r5 QA P1: long subtitles wrap instead of running off the screen */
body.touch #toast, #toast.long { white-space:normal; line-height:1.05; } @media (max-width:800px) { #toast { white-space:normal; line-height:1.05; } }
#mapwrap { left:20px; bottom:20px; width:190px; height:190px; border-radius:50%; border:4px solid #000; overflow:hidden; box-shadow:0 0 0 2px var(--orange); }
#mapwrap canvas { width:100%; height:100%; display:block; }
#osm { left:30px; bottom:4px; font:600 10.5px Inter,sans-serif; opacity:.75; text-shadow:0 1px 3px #000; pointer-events:auto; } #osm a { color:inherit; }   /* ux r2: only the OSM licence line sits by the minimap; the full credits live on the loading screen + Esc → Credits */
body.touch #osm { left:auto; right:10px; bottom:2px; }
#credit { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); width:min(980px, 94vw); font-size:12px; line-height:1.5; opacity:.82; text-align:center; text-shadow:0 1px 3px #000; pointer-events:auto; } #credit a { color:inherit; }   /* fix-site-r62 (audit B9): was 10.5 px at 55 % */
@media (max-height:800px) { #keys { margin-top:14px; gap:3px 26px; } #credit { font-size:11px; } }
@media (max-width:600px) { #credit { font-size:10.5px; } }   /* fix-site-r62: phones, so the credit block does not crowd the notice */
#hint { right:24px; bottom:104px; font-size:13.5px; opacity:.9; text-align:right; line-height:1.6; text-shadow:0 1px 3px rgba(0,0,0,.85); }   /* closeout r32: the owner's key line, readable when stopped */
#hint { max-width:calc(100vw - 290px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } #hint b { font-weight:800; color:#ffb347; }   /* ux r1: short line, never runs under the minimap (was 1116 px wide, 70×18 px over it at 1280×800); the full list lives in Esc → Controls */
#mission { left:50%; top:14px; transform:translateX(-50%); font:600 14px Inter,sans-serif; background:rgba(13,15,20,.6); padding:7px 14px; border-radius:20px; -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px); white-space:nowrap; }
#mission b { color:#ff6a00; } #mission kbd { background:#fff; color:#000; border-radius:3px; padding:0 5px; font:700 11px Inter; }
#fps { left:50%; top:52px; transform:translateX(-50%); font:700 11px Inter; opacity:.6; }
#overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; z-index:10; padding:20px; background:radial-gradient(ellipse at 50% 60%, rgba(255,106,0,.28), rgba(13,15,20,.94) 65%); transition:opacity .6s; }
#overlay.hide { opacity:0; pointer-events:none; }
#overlay.unsupported #bar, #overlay.unsupported #keys { display:none; }
#overlay.phone #bar, #overlay.phone #keys { display:none; }   /* fix-site-r62 (audit B8): the phone notice uses the same look as the unsupported message */
#overlay.unsupported #load, #overlay.phone #load { max-width:34rem; line-height:1.6; font-size:clamp(16px,2.2vw,22px); color:#fff; opacity:1; }
#overlay h1 { font:italic 120px/.9 Anton,Impact,sans-serif; text-transform:uppercase; letter-spacing:.02em; -webkit-text-stroke:3px #000; paint-order:stroke fill; text-shadow:6px 6px 0 #000; }
#overlay h1 b { color:var(--orange); font-weight:inherit; }
#overlay p.sub { margin-top:14px; font-size:15px; letter-spacing:.14em; text-transform:uppercase; opacity:.8; }
#go { margin-top:30px; pointer-events:auto; cursor:pointer; background:var(--orange); color:#000; border:0; padding:16px 44px; font:italic 28px Anton,sans-serif; letter-spacing:.06em; text-transform:uppercase; border-radius:4px; box-shadow:5px 5px 0 #000; }
#go:disabled { opacity:.5; cursor:wait; }
#go:not(:disabled):hover { transform:translate(-1px,-1px); box-shadow:6px 6px 0 #000; }
#bar { width:280px; height:4px; background:rgba(255,255,255,.12); margin-top:18px; border-radius:2px; overflow:hidden; }
#bar i { display:block; height:100%; width:0; background:var(--orange); transition:width .2s; }
#keys { margin-top:26px; display:grid; grid-template-columns:auto auto; gap:6px 26px; font-size:13px; opacity:.85; text-align:left; }
#keys kbd { background:#fff; color:#000; border-radius:4px; padding:1px 7px; font:700 12px Inter; margin-right:3px; }
#load { margin-top:10px; font-size:12px; opacity:.65; min-height:16px; }
#overlay #load { display:inline-block; padding:3px 14px; border-radius:999px; background:rgba(10,10,14,.72); opacity:.92; }   /* ux r44 (P1 A10): the stats line sat unreadable over the bike */
body.splc #hint, body.cine #hint, body.bust #hint { display:none !important; }   /* ux r44 (P1 A12): no key hints in the splash / cutscenes */
#touch { display:none; }
body.touch #touch { display:block; }
body.touch #keys, body.touch #hint, body.touch #list { display:none; }
#stick { position:fixed; left:28px; bottom:28px; width:140px; height:140px; border-radius:50%; background:rgba(255,255,255,.08); border:2px solid rgba(255,255,255,.25); z-index:5; }
#knob { position:absolute; left:45px; top:45px; width:50px; height:50px; border-radius:50%; background:rgba(255,106,0,.85); box-shadow:0 2px 8px rgba(0,0,0,.4); }
#tbtns { position:fixed; right:22px; bottom:26px; display:grid; grid-template-columns:auto auto; gap:12px; z-index:5; }
#tbtns button { width:62px; height:62px; border-radius:50%; border:2px solid rgba(255,255,255,.3); background:rgba(13,15,20,.55); color:#fff; font:700 20px Inter; }
#tbtns button.big { width:78px; height:78px; }
#tbtns button.go { background:rgba(255,106,0,.85); color:#000; }
body.touch #mapwrap { left:auto; right:20px; top:20px; bottom:auto; width:120px; height:120px; }
body.touch #speed { bottom:auto; top:150px; font-size:38px; }
@media (max-width:800px) { #overlay h1 { font-size:64px; } #list { display:none; } #title { font-size:26px; } #hood { width:240px; top:auto; bottom:190px; right:12px; } #hood h3 { font-size:24px; } #street { font-size:20px; bottom:180px; } #hoodname { bottom:206px; } #toast { font-size:30px; } }

/* phones: compact HUD, nothing over the rider */
body.touch #title, body.touch #hint, body.touch #hoodname { display:none; }
body.touch #mission { top:calc(env(safe-area-inset-top) + 8px); font-size:12px; max-width:94vw; white-space:normal; text-align:center; padding:6px 12px; }
body.touch #mapwrap { top:calc(env(safe-area-inset-top) + 58px); right:12px; left:auto; bottom:auto; width:104px; height:104px; }
body.touch #speed { top:calc(env(safe-area-inset-top) + 170px); right:16px; bottom:auto; font-size:32px; }
body.touch #hood { top:calc(env(safe-area-inset-top) + 58px); left:12px; right:auto; bottom:auto; width:calc(100vw - 150px); padding:9px 11px; }
body.touch #hood h3 { font-size:20px; margin:2px 0 4px; } body.touch #hood p { font-size:11.5px; line-height:1.4; } body.touch #hood .s { display:none; }
body.touch #street { bottom:calc(env(safe-area-inset-bottom) + 236px); font-size:18px; }
body.touch #toast { top:30%; font-size:28px; }
body.touch #fps { top:auto; bottom:calc(env(safe-area-inset-bottom) + 270px); }
body.touch #tbtns { grid-template-columns:auto auto auto; }
body.touch #tbtns { gap:8px; right:14px; bottom:calc(env(safe-area-inset-bottom) + 22px); }
body.touch #tbtns button { width:52px; height:52px; font-size:17px; }
body.touch #tbtns button.big { width:64px; height:64px; }
body.touch #stick { left:18px; bottom:calc(env(safe-area-inset-bottom) + 22px); width:130px; height:130px; }
body.touch #knob { left:40px; top:40px; }

#trophies { position:fixed; inset:0; z-index:8; display:flex; align-items:center; justify-content:center; background:rgba(8,10,14,.62); -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px); transition:opacity .25s; }
#trophies.hide { opacity:0; pointer-events:none; }
#trophies .card { width:min(760px, 94vw); max-height:88vh; overflow:auto; background:#11141b; border:2px solid #ff6a00; border-radius:14px; padding:22px 24px; box-shadow:8px 8px 0 #000; }
#trophies h2 { font:italic 40px Anton,sans-serif; text-transform:uppercase; letter-spacing:.02em; margin-bottom:4px; }
#trophies h2 b { color:#ff6a00; font-weight:inherit; }
#trophies .stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:12px 0 16px; }
#trophies .stat { background:#1a1f29; border-radius:10px; padding:10px 12px; } #trophies .stat i { display:block; font:400 26px Anton,sans-serif; font-style:normal; color:#ff6a00; } #trophies .stat span { font-size:11px; opacity:.7; letter-spacing:.06em; text-transform:uppercase; }
#trophies .grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#trophies .t { display:flex; gap:12px; align-items:center; background:#1a1f29; border-radius:10px; padding:10px 12px; opacity:.45; }
#trophies .t.on { opacity:1; box-shadow:inset 0 0 0 1px #ff6a00; }
#trophies .t .ic { font-size:26px; filter:grayscale(1); } #trophies .t.on .ic { filter:none; }
#trophies .t b { display:block; font-size:14px; } #trophies .t small { font-size:12px; opacity:.75; }
#trophies .foot { margin-top:14px; font-size:12px; opacity:.6; text-align:center; }
/* ux r2: the same trophy cards inside Esc → Trophies (was an unstyled text dump) */
#pause section[data-tab=tro] h2 { font:italic 40px Anton,sans-serif; text-transform:uppercase; letter-spacing:.02em; margin-bottom:4px; }
#pause section[data-tab=tro] h2 b { color:#ff6a00; font-weight:inherit; }
#pause section[data-tab=tro] .stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:12px 0 16px; }
#pause section[data-tab=tro] .stat { background:#1a1f29; border-radius:10px; padding:10px 12px; }
#pause section[data-tab=tro] .stat i { display:block; font:400 26px Anton,sans-serif; font-style:normal; color:#ff6a00; }
#pause section[data-tab=tro] .stat span { font-size:11px; opacity:.7; letter-spacing:.06em; text-transform:uppercase; }
#pause section[data-tab=tro] .grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
#pause section[data-tab=tro] .t { display:flex; gap:12px; align-items:center; background:#1a1f29; border-radius:10px; padding:10px 12px; opacity:.45; }
#pause section[data-tab=tro] .t.on { opacity:1; box-shadow:inset 0 0 0 1px #ff6a00; }
#pause section[data-tab=tro] .t .ic { font-size:26px; filter:grayscale(1); }
#pause section[data-tab=tro] .t.on .ic { filter:none; }
#pause section[data-tab=tro] .t b { display:block; font-size:14px; }
#pause section[data-tab=tro] .t small { font-size:12px; opacity:.75; }
#pause section[data-tab=tro] .foot { margin-top:14px; font-size:12px; opacity:.6; text-align:center; }
#pause section[data-tab=tro] .card { width:min(900px,100%); margin:0 auto; padding:4px 0 24px; background:transparent; border:0; box-shadow:none; max-height:none; overflow:visible; }
#pause section[data-tab=tro] h2 { font-size:32px; }
@media (max-width:700px) { #pause section[data-tab=tro] .stats { grid-template-columns:1fr 1fr; } #pause section[data-tab=tro] .grid { grid-template-columns:1fr; } }
@media (max-width:700px) { #trophies .stats { grid-template-columns:1fr 1fr; } #trophies .grid { grid-template-columns:1fr; } #trophies h2 { font-size:30px; } }

/* wanted level */
#wanted { top:18px; right:22px; text-align:right; opacity:0; transition:opacity .3s; pointer-events:none; }
#wanted.on { opacity:1; }
#wanted .stars { font-size:30px; letter-spacing:2px; color:#fff; text-shadow:0 2px 0 #000, 0 0 12px rgba(0,0,0,.5); }
#wanted .stars span { color:rgba(255,255,255,.22); }
#wanted .lbl { font:700 11px Inter,sans-serif; letter-spacing:.14em; color:#fff; opacity:.85; margin-top:2px; text-shadow:0 1px 2px #000; }
#wanted.on.search .stars { animation: wblink .8s steps(2) infinite; }   /* r5: solid while they see you, blinking while they search */
@keyframes wblink { 50% { opacity:.3; } }
#wanted .esc { display:block; height:3px; width:92px; margin:4px 0 0 auto; background:rgba(255,255,255,.2); border-radius:2px; overflow:hidden; opacity:0; transition:opacity .3s; box-shadow:0 1px 2px rgba(0,0,0,.6); }
#wanted.search .esc { opacity:1; } #wanted .esc s { display:block; height:100%; width:0; background:#5be37d; transition:width .12s linear; }
#wanted.hid .lbl { color:#7dffa0; }
#wanted.esc-on { opacity:1; } #wanted.esc-on .stars span { color:#5be37d; } #wanted.esc-on .lbl::after { content:'ONTSNAPT'; color:#7dffa0; }
body.escaped::after { content:''; position:fixed; inset:0; pointer-events:none; z-index:4; box-shadow:inset 0 0 140px rgba(70,230,130,.5); animation:escf 1.2s ease-out forwards; }
@keyframes escf { to { opacity:0; } }
body.touch #wanted .esc { width:64px; }
@keyframes wpulse { 50% { color:#9cc0ff; } }
/* busted screen */
#busted { position:fixed; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; background:radial-gradient(ellipse at center, rgba(10,12,18,.55), rgba(10,12,18,.85)); z-index:50; color:#fff; font-family:Inter,sans-serif; }
#busted { display:flex; visibility:hidden; opacity:0; pointer-events:none; transition:opacity .3s, visibility 0s linear .3s; }   /* ux r1: fades out on Continue instead of vanishing in one frame */
#busted.on { visibility:visible; opacity:1; pointer-events:auto; transition:opacity .25s; animation: bfade .5s ease; }
#busted::before { content:''; position:absolute; inset:0; z-index:-1; background:#0a0c12; opacity:0; pointer-events:none; }
#busted.on::before { animation: bdip .55s ease-out; }   /* ux r1: short dip to dark hides the arrest-cam → chase-cam cut (8.8 m / 112° in one frame) that happens as the screen opens */
@keyframes bdip { from { opacity:.92; } to { opacity:0; } }
@keyframes bfade { from { opacity:0; transform:scale(1.04); } }
#busted h1 { font:400 120px Anton,sans-serif; color:#ff5a36; letter-spacing:.02em; text-shadow:0 6px 0 rgba(0,0,0,.35); line-height:1; }
#busted .sub { opacity:.85; margin:6px 0 22px; letter-spacing:.06em; }
#busted .grid { display:grid; grid-template-columns:1fr 1fr; gap:26px; background:rgba(20,22,30,.7); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:18px 24px; max-width:640px; width:calc(100% - 32px); font-size:13.5px; line-height:1.7; }
#busted h5 { font:700 10px Inter,sans-serif; letter-spacing:.16em; opacity:.6; margin-bottom:6px; text-transform:uppercase; }
#busted .nums { display:grid; grid-template-columns:auto; } #busted .nums b { font-size:22px; } #busted .nums small { opacity:.55; font-size:11px; margin-bottom:6px; }
#busted .btns { display:flex; gap:12px; margin-top:20px; } #busted button { font:600 15px Inter,sans-serif; padding:12px 26px; border-radius:8px; border:1px solid rgba(255,255,255,.2); background:rgba(30,32,40,.9); color:#fff; cursor:pointer; }
#busted button:first-child { background:#ff6a00; border-color:#ff6a00; } #busted kbd { font-size:10px; opacity:.7; margin-left:8px; border:1px solid currentColor; border-radius:3px; padding:0 4px; }
#busted .fine { opacity:.5; font-size:11.5px; margin-top:12px; }
@media (max-width:800px) { #busted h1 { font-size:72px; } #busted .grid { grid-template-columns:1fr; gap:12px; } }
/* RG-09 BUSTED stats + arrest cinematic (letterbox, HUD hidden, AANGEHOUDEN progress) */
#busted .bstars { font-size:26px; letter-spacing:4px; color:#fff; text-shadow:0 2px 0 #000; margin-top:4px; } #busted .bstars span { color:rgba(255,255,255,.22); }
#busted .dbar { display:inline-block; width:70px; height:4px; background:rgba(255,255,255,.15); border-radius:2px; margin-left:6px; vertical-align:middle; overflow:hidden; } #busted .dbar s { display:block; height:100%; background:#ff5a36; }
@media (max-width:800px) { #busted .nums { grid-template-columns:auto auto; column-gap:18px; grid-auto-flow:row; } #busted .nums b { font-size:18px; } #busted .grid { padding:12px 16px; line-height:1.5; } #busted .sub { margin:4px 0 12px; } }
body.touch #fps { top:auto; bottom:calc(env(safe-area-inset-bottom) + 2px); font-size:8.5px; opacity:.45; white-space:nowrap; }   /* QA P2: debug line off mid-screen on mobile */
body.touch.incar #hood { opacity:0 !important; }   /* RG-04: no lore card over the road while driving on a phone */
body.cine .hud, body.cine #touch, body.bust #toast, body.bust #mission, body.bust #touch { opacity:0 !important; }
body.cine::before, body.cine::after { content:''; position:fixed; left:0; right:0; height:9vh; background:#000; z-index:40; pointer-events:none; animation: bfade .35s ease; }
body.cine::before { top:0; } body.cine::after { bottom:0; }
#arrest { position:fixed; left:50%; bottom:calc(9vh + 18px); transform:translateX(-50%); z-index:45; display:none; flex-direction:column; align-items:center; gap:6px; color:#fff; font-family:Inter,sans-serif; pointer-events:none; }
#arrest.on { display:flex; } #arrest b { font:400 30px Anton,sans-serif; letter-spacing:.08em; text-shadow:0 3px 0 rgba(0,0,0,.4); }
#arrest i { display:block; width:220px; height:4px; background:rgba(255,255,255,.2); border-radius:2px; overflow:hidden; } #arrest s { display:block; height:100%; width:0; background:#3d6bff; }
#arrest small { font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; opacity:.6; }
body.cine #vsub { bottom:calc(9vh + 104px) !important; }   /* game-r69 (P1 r68 #3): the arrest subtitle sits above AANGEHOUDEN + its bar (they overlapped 220×9 px) */

/* gameplay round 2: HUD stacking + minimal HUD while moving (RG-04) */
#hood { transition:opacity .4s, transform .4s, top .3s; }
#wanted.on ~ #hood { top:84px; }                                   /* stars + label sit above the lore card, never on it */
body.touch #wanted { top:calc(env(safe-area-inset-top) + 166px); right:12px; }   /* under the minimap, not on it */
body.touch #wanted .stars { font-size:20px; letter-spacing:1px; } body.touch #wanted .lbl { font-size:8.5px; letter-spacing:.1em; }
body.touch #wanted.on ~ #speed { top:calc(env(safe-area-inset-top) + 212px); }
body.touch #wanted.on ~ #hood { top:calc(env(safe-area-inset-top) + 58px); }
#list, #hint, #fps, #title, #hoodname, #street, #mission { transition:opacity .6s; }
body.moving #hint, body.moving #fps, body.moving #title, body.moving #hood, body.moving #hoodname { opacity:0 !important; }
body.moving #street:not(.fresh) { opacity:0 !important; }           /* street name only flashes up when it changes */
body.moving:not(.job) #mission { opacity:0; }                       /* the idle "press J" pill goes; an active job's objective stays */
/* r6 world edge: haze closing in + a turn-back line (hud.js edge()) */
#edgehaze { position:fixed; inset:0; pointer-events:none; z-index:3; opacity:0; transition:opacity .4s; background:radial-gradient(ellipse at 50% 60%, rgba(214,222,228,0) 25%, rgba(214,222,228,.55) 60%, rgba(226,231,235,.95) 100%); }
#edgemsg { position:fixed; left:50%; top:34%; transform:translateX(-50%); z-index:6; pointer-events:none; font:italic 34px Anton,sans-serif; text-transform:uppercase; letter-spacing:.03em; text-align:center; color:#fff; -webkit-text-stroke:1.5px #000; paint-order:stroke fill; text-shadow:3px 3px 0 #000; opacity:0; transition:opacity .4s; white-space:nowrap; }
#edgemsg.on { opacity:1; }
#edgemsg small { display:block; font:700 13px Inter,sans-serif; color:#fff; -webkit-text-stroke:0; text-shadow:0 1px 3px #000; letter-spacing:.06em; margin-top:4px; }

/* ux r2 (Player One clean-ups) */
#speed.off { opacity:0; }                                              /* no speedometer on foot or standing still */
body.night #mapwrap { filter:brightness(.8); }                         /* the minimap was the brightest thing on screen at night */
body.jobpick #vsub { opacity:0 !important; } /* missions r30: no subtitle across the start button of Henk's card */
body.paused #vsub { opacity:0 !important; visibility:hidden !important; } /* dispatch subtitles belong to the live game, not the frozen map */
body.phone #mission { opacity:0 !important; }                          /* Henk's call is the one goal while his card is up */
body.wantpill #wanted .lbl { display:none; }                           /* the pill already says the chase status */
body.tipgoal #mission { transition:opacity .25s; }
@media (max-width:800px) { #vsub { margin-bottom:68px; } }             /* NPC subtitle above the street + district name (they sit at 180 / 206 px here) */
@media (max-width:900px) { #busted .nums { display:grid; grid-template-columns:auto 1fr; justify-content:start; align-items:baseline; column-gap:14px; } #busted .nums b, #busted .nums small { margin:0; padding:2px 0; } #busted .nums small { white-space:nowrap; } }
/* ux r3 (#17): stealing a car stacked wanted pill + radio card + toast + footer. The footer controls line steps aside while a toast, the wanted pill or a tip is up; the radio card waits (radio.js) */
body.toaston #hint, body.wantpill #hint { opacity:0 !important; }   /* closeout r32: a tip sits bottom-left, the key line bottom-right: it stays */
/* ux r30 (P1 #19 / #20): the grey controls line has no place in a race, a shift or any job; the Gracht FM card is never drawn over the pause map */
body.mact #hint { opacity:0 !important; }
body.paused #radio { display:none !important; }

/* fix-site-r62 (audit B9): Esc → Credits, the full list with links */
#pause .credits h5 { font:700 11px Inter,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--orange); margin:14px 0 4px; }
#pause .credits ul { list-style:none; padding:0; margin:0; } #pause .credits li { margin:2px 0; } #pause .credits p { margin:0 0 4px; }

/* ux r69: #14 first person: the street / district label never sits on the dash or speedo; #37 no tip ghost behind the loader */
body.fpv #street, body.fpv #hoodname { display:none !important; }
body:not(.go) #notes { visibility:hidden; }
.touch-only { display:none; } body.touch .touch-only { display:inline; } body.touch .kbd-only { display:none; }   /* phonehints-r90 (owner 17 Nov): a touch device never shows a key name (loading-screen credit line) */
