@charset "UTF-8";
/*
 * Tow Truck Getaway (/play/getaway; 27 October 2026, rebuilt in 3D the same day), on top of style.css. The launch hub's
 * visual system (dark surfaces, the yellow brand, Barlow Condensed display type, 4 px buttons, visible focus). Mobile first:
 * the 3D stage fits a phone held upright (about 3:4.4), widens to 16:10 on larger screens, never scrolls the page sideways,
 * and its HUD is plain text over the canvas. Same-origin only: no external fonts or images.
 *
 * Contrast on #161616: text #f2f2f2 16.4:1, muted #a3a3a3 7.2:1, brand #ffc52f 11.5:1, link #9be6df 12.6:1.
 */
.tg{
  --t-bg:#0d0d0d;
  --t-surface:#161616;
  --t-surface-2:#1f1f1f;
  --t-line:#2c2c2c;
  --t-text:#f2f2f2;
  --t-muted:#a3a3a3;
  --t-brand:var(--amber,#ffc52f);
  --t-on-brand:#111214;
  --t-link:var(--cyan,#9be6df);
  --t-pink:var(--pink,#ed5596);
  --t-good:#5bd68a;
  --t-ui:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --t-display:var(--display,'Barlow Condensed',Impact,'Arial Narrow',sans-serif);
  background:var(--t-bg);
  color:var(--t-text);
  font:400 1rem/1.5 var(--t-ui)
}
.tg [hidden]{display:none!important}
.tg-in{max-width:860px;margin:0 auto;padding:16px 16px 48px}
.tg :focus-visible{outline:3px solid var(--t-brand);outline-offset:2px}
.tg :is(h1,h2,h3){margin:0;color:#fff}
.tg p{margin:0}
.tg a{color:var(--t-link);text-decoration:underline;text-underline-offset:.15em}
.tg a:hover{color:#fff}

.tg-crumbs ol{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none;font-size:.8125rem;color:var(--t-muted)}
.tg-crumbs li+li::before{content:'/';margin-right:6px;color:var(--t-line)}
.tg-head{margin-bottom:14px}
.tg-kicker{font:700 .9375rem/1.2 var(--t-display);letter-spacing:.06em;text-transform:uppercase;color:var(--t-link)}
.tg-head h1{margin:4px 0 8px;font:900 clamp(2.4rem,9vw,4rem)/.95 var(--t-display);text-transform:uppercase;color:var(--t-brand);text-shadow:3px 3px 0 var(--t-pink)}
.tg-lede{max-width:62ch;color:var(--t-text)}
.tg-challenge{margin:0 0 14px;padding:12px 14px;border:1px solid var(--t-good);border-radius:6px;background:rgba(91,214,138,.08)}
.tg-challenge strong{display:block;font:900 1.5rem/1.1 var(--t-display);text-transform:uppercase;color:var(--t-good)}

/* The game: a portrait stage, overlays for the menu, pause and results, and a tool bar below. */
.tg-game{margin:0 auto 28px;max-width:960px}
.tg-stage{position:relative;width:100%;aspect-ratio:3/4.4;max-height:82vh;max-height:82svh;min-height:420px;overflow:hidden;border:1px solid var(--t-line);border-radius:6px;background:#06070c;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;touch-action:none}
@media (min-width:720px){.tg-stage{aspect-ratio:16/10;max-height:80vh;max-height:80svh}}
.tg-stage:fullscreen{width:100vw;height:100vh;max-height:none;aspect-ratio:auto;border:0;border-radius:0}
.tg-stage:focus{outline:none}
.tg-stage:focus-visible{outline:3px solid var(--t-brand);outline-offset:2px}
.tg-canvas{display:block;width:100%;height:100%;touch-action:none}
.tg-screen{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;padding:20px 18px;overflow-y:auto;text-align:center;background:rgba(6,7,12,.78)}
/* Centred when it fits, scrollable from the top when it does not (a phone's short stage never clips the title). */
.tg-screen::before,.tg-screen::after{content:'';flex:1 1 0;min-height:0}
.tg-screen>*{flex-shrink:0}
.tg-start{background:linear-gradient(180deg,rgba(6,7,12,.1),rgba(6,7,12,.5) 35%,rgba(6,7,12,.88) 75%)}
.tg-screen-kicker{font:700 .875rem/1.2 var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:var(--t-link)}
.tg .tg-title{display:flex;flex-direction:column;font:900 clamp(2.8rem,14vw,4.25rem)/.9 var(--t-display);text-transform:uppercase;color:var(--t-brand);text-shadow:3px 3px 0 var(--t-pink)}
.tg .tg-screen-head{font:900 clamp(2.2rem,11vw,3.25rem)/.95 var(--t-display);text-transform:uppercase;color:var(--t-brand);text-shadow:3px 3px 0 var(--t-pink)}
.tg-screen-line{max-width:34ch;color:var(--t-text);font-size:.9375rem}
.tg-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px}
.tg-btn{display:inline-flex;align-items:center;justify-content:center;gap:.3em;min-height:44px;padding:10px 16px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-surface-2);color:var(--t-text);font:700 1.0625rem/1.1 var(--t-display);letter-spacing:.04em;text-transform:uppercase;text-decoration:none;cursor:pointer}
.tg a.tg-btn{color:var(--t-text);text-decoration:none}
.tg-btn:hover,.tg a.tg-btn:hover{border-color:var(--t-brand);color:#fff}
.tg-btn-main{border-color:var(--t-brand);background:var(--t-brand);color:var(--t-on-brand)}
.tg-btn-main:hover{background:#ffd664;color:var(--t-on-brand)}
.tg-btn-big{min-width:220px;min-height:52px;font-size:1.375rem}
.tg-btn-quiet{background:transparent}
.tg-btn-small{min-height:40px;padding:8px 12px;font-size:.9375rem}
.tg-bests,.tg-target{font-size:.875rem;color:var(--t-muted)}
.tg-target strong{color:var(--t-good)}
.tg-keys{font-size:.8125rem;color:var(--t-muted)}
.tg-keys-touch{display:none}
@media (hover:none) and (pointer:coarse){.tg-keys-wide{display:none}.tg-keys-touch{display:inline}}
.tg-over{justify-content:flex-start;gap:6px;padding-top:24px;background:linear-gradient(180deg,rgba(6,7,12,.55),rgba(6,7,12,.9) 45%)}
.tg-score{font:900 clamp(3.2rem,16vw,4.75rem)/.95 var(--t-display);color:#fff}
.tg-over-detail,.tg-over-best{font-size:.875rem;color:var(--t-muted)}
.tg-over-challenge{font-weight:700;color:var(--t-good)}
.tg-over-why{max-width:40ch;margin:2px 0;padding:6px 10px;border-left:3px solid #ff8a5a;background:rgba(0,0,0,.35);font-size:.9375rem;line-height:1.35;color:var(--t-text);text-align:left}.tg-over-why>span{display:block}.tg-over-why>span+span{margin-top:3px;color:var(--t-good)}.tg-retry-tip{color:var(--t-good)}
.tg-week{display:flex;gap:4px;justify-content:center;margin:2px 0;padding:0;list-style:none}.tg-week li{display:flex;flex-direction:column;align-items:center;min-width:38px;padding:2px 4px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);font-size:.75rem;line-height:1.2;color:var(--t-muted)}.tg-week li b{font-size:.6875rem;color:var(--t-muted)}.tg-week li span{color:var(--t-text);font-weight:700}.tg-week li.tg-wk-today{border-color:#ffc52f}
.tg-late{margin:0;padding:3px 10px;background:#1b1b1b;border-left:3px solid #ffc52f;font:700 .8125rem/1.3 var(--display,inherit);letter-spacing:.02em;color:#ffe9a8;text-transform:uppercase}
.tg-runlog{font-size:.8125rem}
.tg-cut-ai{position:absolute;left:10px;top:10px;z-index:3;margin:0;padding:2px 8px;background:rgba(0,0,0,.6);font:700 .6875rem/1.4 var(--t-display);letter-spacing:.06em;text-transform:uppercase;color:#cfd3dc;pointer-events:none}
.tg-quip{max-width:34ch;margin:4px 0 6px;font:italic 400 1rem/1.4 var(--read,Georgia,serif);color:var(--t-text)}
.tg-share{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:6px}
.tg-share-status{min-height:1.2em;max-width:36ch;font-size:.8125rem;color:var(--t-link);overflow-wrap:anywhere}
.tg-next{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin-top:4px;font-size:.8125rem}
.tg .tg-next a{color:var(--t-muted)}
.tg .tg-next a:hover{color:var(--t-link)}
.tg-link-btn{margin-top:2px;padding:6px 8px;border:0;background:none;color:var(--t-muted);font:inherit;font-size:.8125rem;text-decoration:underline;cursor:pointer}
.tg-link-btn:hover{color:#fff}
.tg-noscript{background:rgba(6,7,12,.92)}
.tg-bar{display:flex;gap:8px;justify-content:center;margin-top:8px}
.tg-tool{min-height:40px;padding:8px 14px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-surface);color:var(--t-text);font:700 .9375rem/1 var(--t-display);letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.tg-tool:hover:not(:disabled){border-color:var(--t-brand)}
.tg-tool:disabled{opacity:.45;cursor:default}
.tg-tool[aria-pressed="true"]{border-color:var(--t-link);color:var(--t-link)}

/* Overhaul (27 October 2026): one-thumb Boost and Horn buttons over the road, the job line, the garage and sharing. */
.tg-boost{position:absolute;right:12px;bottom:42px;z-index:2;width:76px;height:76px;padding:0;overflow:hidden;border:3px solid var(--t-link);border-radius:50%;background:rgba(6,7,12,.6);color:#fff;font:900 1rem/1 var(--t-display);letter-spacing:.06em;text-transform:uppercase;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}
.tg-boost-fill{position:absolute;inset:0;background:linear-gradient(0deg,rgba(155,230,223,.85),rgba(155,230,223,.35));transform:scaleY(0);transform-origin:50% 100%}
.tg-boost-label{position:relative}
.tg-boost[data-state="empty"]{border-color:#555;color:#aaa}
.tg-boost[data-state="on"]{border-color:#fff;box-shadow:0 0 18px rgba(155,230,223,.8)}
.tg-horn{position:absolute;right:22px;bottom:128px;z-index:2;width:56px;height:56px;padding:0;border:2px solid var(--t-brand);border-radius:50%;background:rgba(6,7,12,.6);color:var(--t-brand);font:900 .875rem/1 var(--t-display);text-transform:uppercase;cursor:pointer;touch-action:none}
.tg-horn[data-state="cooling"]{opacity:.45}
.tg-gadget{position:absolute;right:96px;bottom:42px;z-index:2;width:76px;height:76px;padding:4px;border:3px solid var(--t-pink);border-radius:50%;background:rgba(6,7,12,.6);color:#fff;font:900 .875rem/1 var(--t-display);letter-spacing:.04em;text-transform:uppercase;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent}
.tg-gadget[data-state="empty"]{border-color:#555;color:#888;font-size:.75rem}
.tg-job{max-width:36ch;padding:8px 10px;border-left:3px solid var(--t-brand);background:rgba(255,197,47,.08);font-size:.875rem;text-align:left}
.tg-streak{font-weight:700;color:#ff9a3c;font-size:.875rem}
.tg-rank{font:900 1.375rem/1 var(--t-display);letter-spacing:.06em;text-transform:uppercase;color:var(--t-brand)}
.tg-over-cash{font-size:.875rem;color:var(--t-good)}
.tg-garage{display:flex;flex-direction:column;gap:8px;width:100%;max-width:340px;margin:4px 0;padding:0;list-style:none;text-align:left}
.tg-garage li{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface)}
.tg-garage strong{font:900 1.125rem/1.1 var(--t-display);text-transform:uppercase;color:#fff}
.tg-garage span{font-size:.8125rem;color:var(--t-muted)}
.tg-garage .tg-btn:disabled{opacity:.5;cursor:default}
.tg-btn-share{min-width:200px;border-color:var(--t-link);background:transparent;color:var(--t-link)}
.tg-name{display:flex;flex-direction:column;gap:4px;font-size:.8125rem;color:var(--t-muted)}
.tg-name input{width:200px;min-height:36px;padding:6px 8px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-surface);color:#fff;font:inherit;font-size:1rem}
.tg-name input[aria-invalid="true"]{border-color:var(--t-pink)}
.tg-share{flex-direction:column;align-items:center}
.tg-more{max-width:340px;font-size:.875rem}
.tg-more summary{cursor:pointer;color:var(--t-link);text-decoration:underline}
.tg-more-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;margin-top:8px}
.tg-challenge p+p{margin-top:6px}
.tg-challenge-note{font-size:.875rem;color:var(--t-muted)}
.tg-over-links{display:flex;gap:12px;justify-content:center}
.tg-bar{flex-wrap:wrap}

/* 3D rebuild (27 October 2026): loading and no-WebGL screens, the HUD over the canvas, pops, subtitles and title cards. */
.tg-loading{background:radial-gradient(ellipse at 50% 70%,#2a1240,#06070c 70%)}
.tg .tg-loading-head{font-size:clamp(1.8rem,8vw,2.6rem)}
.tg-loading-slow{opacity:0;animation:tg-late .4s 9s forwards}
@keyframes tg-late{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.tg .tg-loading-slow{opacity:1}}
.tg-fx{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,rgba(255,40,70,0) 40%,rgba(255,40,70,.75))}
.tg-fx[data-kind="white"]{background:#fff}
.tg-hud{position:absolute;inset:0;z-index:2;pointer-events:none;color:#fff;font-family:var(--t-display);text-transform:uppercase;text-shadow:0 2px 0 rgba(0,0,0,.65),0 0 10px rgba(0,0,0,.5)}
.tg-hud p{margin:0}
.tg-hud-top{position:absolute;top:8px;left:10px;right:10px;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start}
.tg-hud-speed{display:flex;flex-direction:column;align-items:flex-start;line-height:.85}
.tg-hud-speed b{font:900 clamp(2rem,9vw,3.1rem)/.85 var(--t-display);font-variant-numeric:tabular-nums;color:#fff}
.tg-hud-speed span{font:700 .8125rem/1 var(--t-display);letter-spacing:.12em;color:var(--t-link)}
.tg-hud-boost{display:block;width:clamp(70px,22vw,120px);height:8px;margin-top:6px;border:1px solid rgba(155,230,223,.7);border-radius:2px;background:rgba(0,0,0,.45);overflow:hidden}
.tg-hud-boost i{display:block;height:100%;background:linear-gradient(90deg,#9be6df,#fff);transform-origin:0 50%;transform:scaleX(0)}
.tg-hud-boost[data-state="on"]{box-shadow:0 0 12px rgba(155,230,223,.9)}
.tg-hud-boost[data-state="empty"] i{background:#5a7a78}
.tg-hud-mid{min-width:0;text-align:center}
.tg-hud-job{font:700 clamp(.75rem,2.8vw,1rem)/1.15 var(--t-display);letter-spacing:.04em;color:var(--t-brand);white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tg-hud-prog{position:relative;display:block;height:7px;margin:4px auto 3px;max-width:320px;background:rgba(255,255,255,.18);border:1px solid rgba(0,0,0,.6);border-radius:3px;overflow:hidden}
/* review round 13: milestones at each quarter of the way */
.tg-hud-prog::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent calc(25% - 1px),rgba(0,0,0,.7) calc(25% - 1px) calc(25% + 1px),transparent calc(25% + 1px) calc(50% - 1px),rgba(0,0,0,.7) calc(50% - 1px) calc(50% + 1px),transparent calc(50% + 1px) calc(75% - 1px),rgba(0,0,0,.7) calc(75% - 1px) calc(75% + 1px),transparent calc(75% + 1px))}
/* Review round 28: a daily race's bar is the whole race: a tick at each leg's end and a green finish */
.tg-hud-prog.tg-prog-legs{border-right:3px solid #5bd68a}
.tg-hud-prog.tg-prog-legs::after{background:linear-gradient(90deg,transparent calc(var(--l1) - 1px),#f4f0e6 calc(var(--l1) - 1px) calc(var(--l1) + 1px),transparent calc(var(--l1) + 1px) calc(var(--l2) - 1px),#f4f0e6 calc(var(--l2) - 1px) calc(var(--l2) + 1px),transparent calc(var(--l2) + 1px))}
.tg-hud-prog i{display:block;height:100%;background:var(--t-brand);transform-origin:0 50%;transform:scaleX(0)}
.tg-hud-goal{font:700 clamp(.7rem,2.5vw,.875rem)/1.15 var(--t-display);letter-spacing:.03em;color:#d8f5f1;text-transform:none}
.tg-hud-right{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.tg-hud-score{font:900 clamp(1.4rem,6vw,2.1rem)/.9 var(--t-display);font-variant-numeric:tabular-nums}
.tg-hud-dist{font:700 .8125rem/1 var(--t-display);color:var(--t-muted);font-variant-numeric:tabular-nums}
.tg-heat{display:flex;align-items:center;gap:3px;margin-top:3px}
.tg-heat em{margin-right:3px;font:900 .75rem/1 var(--t-display);font-style:normal;letter-spacing:.1em;color:#ff9a3c}
.tg-heat-bar{display:block;width:clamp(70px,16vw,120px);height:10px;border:1px solid rgba(255,255,255,.55);border-radius:5px;background:rgba(0,0,0,.55);overflow:hidden}
.tg-heat-bar i{display:block;height:100%;background:linear-gradient(90deg,#2a6bff,#8a5cff 45%,#ff2a3a);transform-origin:0 50%;transform:scaleX(0);transition:transform .3s}
.tg-heat:not([data-level="0"]) .tg-heat-bar{box-shadow:0 0 8px rgba(255,60,90,.6)}
.tg-heat-up{animation:tg-heat .6s ease-out}
@keyframes tg-heat{0%{transform:scale(1.35)}100%{transform:scale(1)}}
.tg-hud-combo{margin-top:2px;padding:1px 6px;border-radius:3px;background:rgba(237,85,150,.85);font:900 .9375rem/1.2 var(--t-display)}
.tg-toast{position:absolute;top:clamp(120px,28%,160px);left:50%;max-width:92%;transform:translateX(-50%);padding:5px 10px;border:1px solid var(--t-brand);border-radius:4px;background:rgba(10,8,20,.75);font:700 .875rem/1.25 var(--t-display);letter-spacing:.04em;color:var(--t-brand);text-align:center;text-transform:none;text-shadow:none}
.tg-warn{position:absolute;top:44%;left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:4px;background:rgba(224,48,58,.85);font:900 clamp(1rem,4.6vw,1.5rem)/1 var(--t-display);letter-spacing:.06em;white-space:nowrap;animation:tg-blink .3s steps(2) infinite}
@keyframes tg-blink{50%{opacity:.35}}
.tg-card{position:absolute;top:24%;left:0;right:0;padding:0 12px;text-align:center}
.tg-card-on{animation:tg-card 2.8s ease-out forwards}
.tg .tg-card.tg-card-long.tg-card-on{animation-duration:4.2s}
@keyframes tg-card{0%{opacity:0;transform:translateY(12px) scale(.94)}10%{opacity:1;transform:none}85%{opacity:1}100%{opacity:0}}
.tg-card-kicker{font:700 clamp(.875rem,3.6vw,1.125rem)/1 var(--t-display);letter-spacing:.14em;color:var(--t-link)}
.tg-hud .tg-card-title{margin:4px 0;font:900 clamp(2.2rem,11vw,4.2rem)/.9 var(--t-display);color:var(--t-brand);text-shadow:3px 3px 0 var(--t-pink),0 0 18px rgba(0,0,0,.6)}
.tg-card-sub{text-wrap:balance;max-width:32ch;margin:0 auto;font:700 clamp(.8125rem,3.2vw,1rem)/1.2 var(--t-display);letter-spacing:.03em;text-transform:none}
.tg-pops{position:absolute;left:0;right:0;bottom:42%;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:2px}
.tg-pop{font:900 clamp(1rem,4.4vw,1.5rem)/1.05 var(--t-display);letter-spacing:.03em;white-space:nowrap}
.tg-pop-big{font-size:clamp(1.3rem,6vw,2.1rem)}
.tg-pop-on{animation:tg-pop 1.15s ease-out forwards}
.tg-pop-on.tg-pop-long{animation-duration:1.6s}
@keyframes tg-pop{0%{opacity:0;transform:scale(.6)}12%{opacity:1;transform:scale(1.08)}22%{transform:scale(1)}75%{opacity:1}100%{opacity:0;transform:translateY(-26px)}}
.tg-sub{position:absolute;left:50%;bottom:128px;width:max-content;max-width:min(80%,520px);transform:translateX(-50%);padding:6px 12px;border-radius:4px;background:rgba(6,7,12,.78);font:700 clamp(.875rem,3.4vw,1.0625rem)/1.25 var(--t-ui);text-transform:none;text-align:center;text-shadow:none}
.tg-sub b{font-family:var(--t-display);font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--t-link)}
.tg-sub[data-who="len"] b{color:#ff9a3c}
.tg-sub[data-who="patrol"] b,.tg-sub[data-who="rusk"] b{color:#a0beff}
.tg-len{position:absolute;left:10px;bottom:14px;display:flex;align-items:center;gap:6px;font:900 .875rem/1 var(--t-display);letter-spacing:.08em}
.tg-len span{color:#ff9a3c}
.tg-len > i{display:block;width:clamp(80px,26vw,150px);height:9px;border:1px solid rgba(255,154,60,.7);border-radius:2px;background:rgba(0,0,0,.45);overflow:hidden}
.tg-len > i i{display:block;height:100%;background:linear-gradient(90deg,#ffc52f,#ff5a3a);transform-origin:0 50%;transform:scaleX(0)}
.tg-len b{font-weight:700;color:var(--t-muted);font-variant-numeric:tabular-nums}
.tg-len[data-danger="high"] > i{box-shadow:0 0 12px rgba(255,60,60,.9);animation:tg-blink .5s steps(2) infinite}
.tg-hud-pause{position:absolute;bottom:126px;left:10px;z-index:2;width:44px;height:44px;padding:0;border:2px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(6,7,12,.5);color:#fff;font:900 1rem/1 var(--t-display);cursor:pointer;touch-action:none}
@media (hover:hover) and (pointer:fine){.tg-hud-pause{display:none}}
.tg-nogl .tg-canvas{visibility:hidden}
/* Depth (28 October 2026): the city's minimap, marker prompt, tips, Gas/camera/swap buttons, garage tabs, paint and the save code, briefings. */
.tg-map{display:none;position:absolute;right:10px;bottom:132px;width:120px;height:120px;border:2px solid rgba(255,255,255,.35);border-radius:6px;background:#10141c;image-rendering:pixelated}
.tg-in-hub .tg-map{display:block}
.tg-prompt{position:absolute;left:50%;bottom:150px;z-index:3;width:min(86%,360px);transform:translateX(-50%);padding:10px 12px;border:2px solid var(--t-brand);border-radius:6px;background:rgba(8,8,16,.88);text-align:center}
.tg-prompt-title{font:900 1.4rem/1 var(--t-display);text-transform:uppercase;color:var(--t-brand)}
.tg-prompt-text{margin:4px 0 8px!important;font-size:.875rem;color:var(--t-text)}
.tg-tip{position:absolute;left:50%;top:clamp(110px,26%,170px);z-index:3;width:min(90%,420px);transform:translateX(-50%);padding:8px 10px;border-left:4px solid var(--t-link);border-radius:4px;background:rgba(8,8,16,.9);font-size:.875rem;line-height:1.35}
.tg-tip strong{font-family:var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:var(--t-link)}
.tg-gas{position:absolute;right:12px;bottom:40px;z-index:2;width:84px;height:84px;padding:0;border:3px solid var(--t-good);border-radius:50%;background:rgba(6,7,12,.6);color:#fff;font:900 1.1rem/1 var(--t-display);text-transform:uppercase;cursor:pointer;touch-action:none}
.tg-camera{position:absolute;right:100px;bottom:126px;z-index:2;width:64px;height:64px;padding:0;border:3px solid #5bd68a;border-radius:50%;background:rgba(6,7,12,.6);color:#fff;font:900 .8125rem/1 var(--t-display);text-transform:uppercase;cursor:pointer;touch-action:none}
.tg-camera[data-state="ready"]{background:rgba(91,214,138,.55);box-shadow:0 0 16px rgba(91,214,138,.9)}
.tg-swap{position:absolute;right:104px;bottom:122px;z-index:2;min-width:58px;height:32px;padding:0 8px;border:2px solid var(--t-pink);border-radius:16px;background:rgba(6,7,12,.6);color:#fff;font:900 .75rem/1 var(--t-display);text-transform:uppercase;cursor:pointer;touch-action:none}
.tg-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.tg-garage-on{border-color:var(--t-brand)!important}
.tg-paints{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tg-paint{min-height:32px;padding:4px 8px;border:3px solid;border-radius:4px;background:var(--t-surface-2);color:var(--t-text);font:700 .8125rem/1.1 var(--t-display);text-transform:uppercase;cursor:pointer}
.tg-paint[aria-pressed="true"]{outline:2px solid #fff;outline-offset:1px}
.tg-paint:disabled{opacity:.45;cursor:default}
.tg-save{display:flex;flex-direction:column;gap:6px;width:100%;max-width:380px;text-align:left;font-size:.8125rem;color:var(--t-muted)}
.tg-save textarea{width:100%;margin-top:4px;padding:6px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-surface);color:#fff;font:.75rem/1.3 ui-monospace,monospace;word-break:break-all}
.tg-phases{max-width:380px;margin:4px 0;padding-left:1.2rem;text-align:left;font-size:.9375rem}
.tg-phases li+li{margin-top:4px}
.tg-brief-goal{font:700 1rem/1.3 var(--t-display);letter-spacing:.03em;color:var(--t-brand)}
@media (min-width:720px){.tg-map{bottom:auto;top:96px;right:14px}}
/* Phones: the objective line gets the full width on a second row (two lines at most) instead of a squeezed middle column. */
@media (max-width:560px){
  .tg-hud-top{grid-template-columns:1fr auto}
  .tg-hud-mid{grid-column:1/-1;grid-row:2}
  .tg-hud-job{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}
  .tg .tg-meter{top:clamp(118px,25%,140px)}
  .tg .tg-in-hub .tg-meter{top:116px}
  /* Phones (review round 3): subtitles sit above the Horn and Pause buttons; in the city a radio toast sits under the
     mission meter on the left, clear of the minimap. */
  .tg-sub{bottom:192px}
  .tg .tg-tip.tg-tip-edge{bottom:250px}
  .tg-in-hub .tg-toast{top:148px;left:10px;transform:none;max-width:calc(100% - 150px);text-align:left}
  .tg-hud .tg-card-title{font-size:clamp(1.5rem,7.6vw,2.3rem)}
  .tg-card{top:29%}
  .tg-in-hub .tg-card{top:24%}
  .tg-hud-goal{display:none}
  .tg-in-hub .tg-map{bottom:214px}
  /* Review round 9: compact and stacked. The objective is one small line, the radio toast a slim strip just under the HUD,
     the subtitles low and small, the pops and cards out of the top third. */
  .tg-hud-job{font-size:.6875rem;-webkit-line-clamp:1;line-clamp:1}
  .tg-hud-prog{margin:2px auto 1px}
  .tg-toast{top:96px;left:10px;right:auto;max-width:calc(100% - 20px);transform:none;padding:2px 7px;font-size:.6875rem;line-height:1.2;text-align:left}
  .tg-in-hub .tg-toast{top:148px;max-width:calc(100% - 150px)}
  .tg-sub{max-width:88%;padding:3px 8px;font-size:.8125rem;line-height:1.2}
  .tg-sub b{font-size:.6875rem}
  .tg-pops{bottom:36%}
  .tg-pop{font-size:clamp(.875rem,4vw,1.125rem)}
  .tg-pop-big{font-size:clamp(1rem,4.8vw,1.4rem)}
  .tg-tip{top:clamp(118px,24%,150px);font-size:.75rem;padding:6px 8px}
  .tg-card{top:33%}
  .tg-in-hub .tg-card{top:30%}
}
.tg-in-hub .tg-boost{right:104px;bottom:40px;width:64px;height:64px}
/* During a chase a tip sits small at the left edge, never over the road. */
.tg-tip.tg-tip-edge{left:10px;top:auto;bottom:180px;width:min(52%,260px);transform:none;padding:6px 8px;font-size:.75rem;opacity:.94}
/* Keys on screen (keyboards only), and the phone controls laid out so nothing overlaps (review round 2). */
/* The HUD's own key line only (the start screen has its own .tg-keys paragraph, which must stay in the flow and clickable). */
[data-tg-keys]{position:absolute;left:auto;right:10px;bottom:8px;max-width:55%;text-align:right;margin:0;pointer-events:none;font:700 .6875rem/1.2 var(--t-display);letter-spacing:.06em;color:rgba(255,255,255,.72);text-transform:none}
@media (pointer:coarse){[data-tg-keys]{display:none}}
.tg-in-hub .tg-gadget{right:176px;bottom:40px;width:64px;height:64px}
.tg-in-hub .tg-camera{right:12px;bottom:134px}
/* City phases: the route arrow's text and the finale's front page. */
.tg-finale-paper{max-width:420px;padding:14px 16px;border:3px solid #1a1a1a;border-radius:4px;background:#f4f0e6;color:#1a1a1a;text-align:left;box-shadow:6px 6px 0 var(--t-pink)}
.tg-finale-paper .tg-finale-mast{font:900 1.6rem/1 var(--t-display);letter-spacing:.04em;text-transform:uppercase;border-bottom:3px double #1a1a1a;padding-bottom:4px}
.tg-finale-paper .tg-finale-head{margin:8px 0 4px;font:900 1.35rem/1.05 var(--t-display);text-transform:uppercase}
.tg-finale-paper p{margin:4px 0;font-size:.875rem;line-height:1.35}
.tg-credits{max-width:420px;font-size:.8125rem;color:var(--t-muted);line-height:1.5}
.tg-unlock{font:900 1rem/1.2 var(--t-display);letter-spacing:.04em;text-transform:uppercase;color:var(--t-good)}
/* Missions (27 October 2026): the mission meter, the touch brake and the big zone title card. */
.tg-meter{position:absolute;top:clamp(74px,16%,98px);left:50%;display:flex;align-items:center;gap:6px;transform:translateX(-50%);font:900 .8125rem/1 var(--t-display);letter-spacing:.08em;white-space:nowrap}
.tg-meter span{color:var(--t-link)}
.tg-meter-bar{position:relative;display:block;width:clamp(110px,34vw,220px);height:11px;border:1px solid rgba(155,230,223,.7);border-radius:2px;background:rgba(0,0,0,.5);overflow:hidden}
.tg-meter-fill{display:block;height:100%;background:linear-gradient(90deg,#9be6df,#fff);transform-origin:0 50%;transform:scaleX(0)}
.tg-meter[data-type="stealth"] .tg-meter-fill{background:linear-gradient(90deg,#ffc52f,#ff3a5a)}
.tg-meter[data-type="takedown"] .tg-meter-fill{background:linear-gradient(90deg,#ff3a5a,#ff9a3c)}
.tg-meter-band{position:absolute;top:0;bottom:0;left:18.3%;width:44.2%;background:rgba(91,214,138,.45)}
.tg-meter-mark{position:absolute;top:-2px;bottom:-2px;width:4px;margin-left:-2px;background:#fff;box-shadow:0 0 6px #fff}
.tg-meter b{min-width:3.4em;font-variant-numeric:tabular-nums}
.tg-meter[data-danger="high"] .tg-meter-bar{border-color:#ff3a5a;box-shadow:0 0 10px rgba(255,58,90,.8)}
.tg-meter[data-danger="high"] b{color:#ff8a9a}
.tg-brake{position:absolute;left:10px;bottom:40px;z-index:2;width:64px;height:64px;padding:0;border:3px solid #ff5a5a;border-radius:50%;background:rgba(6,7,12,.6);color:#fff;font:900 .875rem/1 var(--t-display);text-transform:uppercase;cursor:pointer;touch-action:none}
.tg-brake:not([hidden])~.tg-hud .tg-len{left:84px}
.tg-card-zone .tg-card-kicker{font-size:clamp(1rem,4vw,1.375rem);letter-spacing:.3em}
.tg-hud .tg-card-zone .tg-card-title{font-size:clamp(2.8rem,14vw,5.6rem);text-shadow:4px 4px 0 rgba(0,0,0,.55),0 0 26px rgba(0,0,0,.5)}
.tg-card-zone .tg-card-sub{font:italic 700 clamp(1rem,4vw,1.375rem)/1.2 var(--t-display);letter-spacing:.06em;text-transform:uppercase}
/* Story mode: the chapter list, the fan-fiction label, and the comic-panel cutscene overlay. */
.tg-btn-story{border-color:var(--t-pink);color:#fff}
.tg-story-label{display:inline-block;padding:3px 8px;border:1px solid var(--t-pink);border-radius:3px;font:700 .8125rem/1.3 var(--t-display);letter-spacing:.05em;text-transform:uppercase;color:#ffd0e4}
.tg-chapters{display:flex;flex-direction:column;gap:6px;width:100%;max-width:380px;margin:4px 0;padding:0;list-style:none}
.tg-chapters .tg-btn{width:100%;justify-content:flex-start;text-align:left}
.tg-chapters .tg-btn:disabled{opacity:.45;cursor:default}
.tg-cut{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;gap:12px;padding:44px 14px 34px;overflow:hidden;cursor:pointer;background:radial-gradient(circle,rgba(255,255,255,.07) 1px,transparent 1.6px) 0 0/9px 9px,linear-gradient(160deg,#1c1030,#0a0812)}
.tg-cut:focus{outline:none}
.tg-cut-title{margin:auto;max-width:34ch;text-align:center}
.tg-cut-kicker{font:700 1rem/1 var(--t-display);letter-spacing:.14em;text-transform:uppercase;color:var(--t-link)}
.tg .tg-cut-name{margin:8px 0 12px;font:900 clamp(2.4rem,11vw,4.4rem)/.92 var(--t-display);text-transform:uppercase;color:var(--t-brand);text-shadow:3px 3px 0 var(--t-pink)}
.tg-cut-hint{margin-top:14px!important;font-size:.875rem;color:var(--t-muted)}
.tg-cut-panel{position:relative;flex:none;width:100%;aspect-ratio:16/9;margin:0;overflow:hidden;border:4px solid #f4f0e6;background:#1a1426;box-shadow:6px 6px 0 #000;transform:rotate(-.5deg)}
.tg-cut-panel img{display:block;width:100%;height:100%;object-fit:cover;transform-origin:50% 50%}
.tg-cut-noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;font:700 1rem/1.35 var(--t-ui);color:var(--t-muted);text-align:center}
.tg-cut-from-left.tg-cut-in{animation:tg-cut-l .5s cubic-bezier(.2,.9,.3,1.1) both}
.tg-cut-from-right.tg-cut-in{animation:tg-cut-r .5s cubic-bezier(.2,.9,.3,1.1) both}
@keyframes tg-cut-l{from{opacity:0;transform:translateX(-40%) rotate(-5deg)}to{opacity:1;transform:rotate(-.5deg)}}
@keyframes tg-cut-r{from{opacity:0;transform:translateX(40%) rotate(5deg)}to{opacity:1;transform:rotate(.5deg)}}
.tg-cam-pan-left img{animation:tg-pan-l 10s linear both}
.tg-cam-pan-right img{animation:tg-pan-r 10s linear both}
.tg-cam-zoom-in img{animation:tg-zoom-i 10s ease-out both}
.tg-cam-zoom-out img{animation:tg-zoom-o 10s ease-out both}
.tg-cam-still img{transform:scale(1.02)}
@keyframes tg-pan-l{from{transform:scale(1.14) translateX(5%)}to{transform:scale(1.14) translateX(-5%)}}
@keyframes tg-pan-r{from{transform:scale(1.14) translateX(-5%)}to{transform:scale(1.14) translateX(5%)}}
@keyframes tg-zoom-i{from{transform:scale(1)}to{transform:scale(1.18)}}
@keyframes tg-zoom-o{from{transform:scale(1.18)}to{transform:scale(1)}}
.tg-cut-lines{display:flex;flex:1;flex-direction:column;justify-content:flex-start;gap:8px;min-height:0}
.tg-bubble,.tg-cap{position:relative;max-width:86%;animation:tg-bub .32s cubic-bezier(.2,.9,.3,1.25) both;font:700 clamp(.9375rem,3.6vw,1.125rem)/1.3 var(--t-ui)}
.tg-bubble{align-self:flex-end;padding:8px 13px 9px;border:3px solid #111;border-radius:16px;background:#fff;color:#111;box-shadow:3px 3px 0 #000}
.tg-bubble::after{content:'';position:absolute;top:-12px;right:26px;border:6px solid transparent;border-bottom:8px solid #111}
.tg-bubble[data-who="mara"]{align-self:flex-start}
.tg-bubble[data-who="mara"]::after{right:auto;left:26px}
.tg-bubble b{display:block;margin-bottom:1px;font:900 .8125rem/1 var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:#1e7f76}
.tg-bubble[data-who="len"] b{color:#c4520c}
.tg-bubble[data-who="rusk"] b{color:#2a4f9a}
.tg-bubble[data-who="brayden"] b{color:#7a3fb0}
.tg-bubble[data-who="editor"] b{color:#b0105a}
.tg-cap{align-self:flex-start;padding:7px 11px;border:3px solid #111;background:var(--t-brand);color:#111;box-shadow:3px 3px 0 #000;font-style:italic}
@keyframes tg-bub{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
.tg-cut-skip{position:absolute;top:8px;right:10px;z-index:1;min-height:34px;padding:6px 14px;border:1px solid rgba(255,255,255,.5);border-radius:4px;background:rgba(6,7,12,.7);color:#fff;font:700 .9375rem/1 var(--t-display);letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.tg-cut-more{position:absolute;right:14px;bottom:8px;margin:0;font:700 .8125rem/1 var(--t-display);letter-spacing:.06em;text-transform:uppercase;color:var(--t-muted)}
@media (min-width:720px){
  .tg-cut{padding:14px}
  .tg-cut-panel{position:absolute;inset:14px;width:auto;aspect-ratio:auto}
  .tg-cut-lines{position:absolute;left:28px;right:28px;bottom:40px;flex:none;justify-content:flex-end}
  .tg-bubble,.tg-cap{max-width:62%}
  .tg-cut-title{position:relative;z-index:1}
}
@media (prefers-reduced-motion:reduce){
  .tg .tg-cut-panel.tg-cut-in{animation:tg-fade .35s ease-out both!important}
  .tg .tg-cut-panel img{animation:none!important;transform:none}
  .tg .tg-cut-lines>*{animation:tg-fade .25s ease-out both!important}
}
@keyframes tg-fade{from{opacity:0}to{opacity:1}}
.tg-caught .tg-hud-top,.tg-caught .tg-len,.tg-caught .tg-pops,.tg-caught .tg-warn,.tg-caught .tg-toast,.tg-caught .tg-card{display:none}
@media (min-width:720px){.tg-sub{bottom:46px}.tg-hud-top{top:12px;left:14px;right:14px}}
@media (prefers-reduced-motion:reduce){.tg .tg-warn,.tg .tg-len[data-danger="high"] > i{animation:none}}

/* The page around the game. */
.tg-section{margin-top:28px;padding-top:20px;border-top:1px solid var(--t-line)}
.tg-section h2{margin-bottom:10px;font:900 1.75rem/1.05 var(--t-display);text-transform:uppercase}
.tg-section p+p{margin-top:10px}
.tg-list{margin:0;padding-left:1.2rem}
.tg-list li+li{margin-top:8px}
.tg-links{display:flex;flex-wrap:wrap;gap:8px 18px}
.tg-note{margin-top:28px;padding:12px 14px;border-radius:6px;background:var(--t-surface);font-size:.875rem;color:var(--t-muted)}
.tg-note strong{color:var(--t-text)}
@media (min-width:720px){.tg-in{padding-top:24px}}
@media (prefers-reduced-motion:reduce){.tg *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* A short stage (a landscape phone, a small window): a smaller minimap that stays below the objective and the meter. */
@media (max-height:520px){.tg .tg-in-hub .tg-map{top:auto;bottom:132px;width:84px;height:84px}}
/* The radio player (owner, 28 October 2026): Mara's van at night, rain on the windscreen, the radio in the dash. */
.tg-radio-teaser{margin:2px 0 0;font-size:.8125rem;color:var(--t-muted)}
.tg-screen.tg-radio{justify-content:flex-start;gap:10px;padding:12px;background:#05060c;overflow-y:auto}
.tg-radio-dash{position:relative;width:min(100%,560px);margin:0 auto;border:3px solid #111;border-radius:14px;overflow:hidden;background:#141821;box-shadow:5px 5px 0 #000}
.tg-radio-glass{position:relative;display:block;height:clamp(90px,24vh,170px);background:linear-gradient(#0a0f24,#1b1440 60%,#2a1638);overflow:hidden}
.tg-radio-city{position:absolute;left:0;right:0;bottom:0;height:46%;background:repeating-linear-gradient(90deg,#0d0d18 0 26px,#191a2c 26px 44px,#0d0d18 44px 70px,#22213a 70px 82px);opacity:.95}
.tg-radio-city::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,#ff5aa8 0 2px,transparent 3px),radial-gradient(circle at 55% 45%,#29e3ff 0 2px,transparent 3px),radial-gradient(circle at 80% 25%,#ffd21f 0 2px,transparent 3px);background-size:90px 40px}
.tg-radio-rain{position:absolute;inset:0;background:repeating-linear-gradient(105deg,transparent 0 9px,rgba(190,220,255,.22) 9px 10px);background-size:100% 220%;animation:tg-rain 1.1s linear infinite}
@keyframes tg-rain{from{background-position:0 0}to{background-position:-40px 220px}}
.tg-radio-wiper{position:absolute;left:50%;bottom:-6px;width:4px;height:120%;background:#111;transform-origin:50% 100%;animation:tg-wipe 4s ease-in-out infinite}
@keyframes tg-wipe{0%,60%,100%{transform:rotate(-70deg)}30%{transform:rotate(70deg)}}
.tg-radio-unit{padding:12px 14px 14px;border-top:3px solid #111;background:linear-gradient(#232836,#171b26)}
.tg-radio-dash[data-skin="gold"] .tg-radio-unit{background:linear-gradient(#3a2f12,#1f1a0c);border-top-color:#d4a017}
.tg-radio-dash[data-skin="chrome"] .tg-radio-unit{background:linear-gradient(#5a606a,#2a2e36);border-top-color:#d8dde4}
.tg-radio-kicker{margin:0;font:700 .75rem/1.2 var(--t-display);letter-spacing:.1em;text-transform:uppercase;color:var(--t-link)}
.tg-radio-station{margin:4px 0 6px;font:900 clamp(1.5rem,7vw,2.2rem)/1 var(--t-display);color:#7fffd4;text-shadow:0 0 12px rgba(127,255,212,.55)}
.tg-radio-eq{display:flex;align-items:flex-end;gap:4px;height:26px;margin-bottom:6px}
.tg-radio-eq i{flex:1;height:20%;background:#7fffd4;border-radius:2px;opacity:.75}
.tg-radio-on .tg-radio-eq i{animation:tg-eq .9s ease-in-out infinite alternate}
.tg-radio-on .tg-radio-eq i:nth-child(2n){animation-duration:.6s}.tg-radio-on .tg-radio-eq i:nth-child(3n){animation-duration:1.2s}
@keyframes tg-eq{from{height:15%}to{height:100%}}
.tg-radio-now{min-height:1.3em;margin:0 0 4px;font:700 1rem/1.3 var(--t-ui);color:#fff}
.tg-radio-line{min-height:2.6em;margin:0 0 10px;font-size:.875rem;line-height:1.3;color:var(--t-muted)}
.tg-radio-controls{display:flex;gap:10px;align-items:center;margin-bottom:10px}
.tg-radio-btn{min-width:56px;min-height:56px;padding:0 14px;border:3px solid #7fffd4;border-radius:12px;background:#0d1018;color:#fff;font:900 1.1rem/1 var(--t-display);cursor:pointer}
.tg-radio-play{flex:1;text-transform:uppercase;letter-spacing:.06em}
.tg-radio-vol{display:flex;align-items:center;gap:10px;margin-bottom:10px;font:700 .875rem/1 var(--t-display);text-transform:uppercase}
.tg-radio-vol input{flex:1;min-height:44px;-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}
.tg-radio-vol input::-webkit-slider-runnable-track{height:10px;border:2px solid #0b0b10;border-radius:6px;background:linear-gradient(90deg,#7fffd4,#ffc52f)}
.tg-radio-vol input::-moz-range-track{height:10px;border:2px solid #0b0b10;border-radius:6px;background:linear-gradient(90deg,#7fffd4,#ffc52f)}
.tg-radio-vol input::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-10px;border:3px solid #0b0b10;border-radius:50%;background:#f4ead2;box-shadow:2px 2px 0 #0b0b10}
.tg-radio-vol input::-moz-range-thumb{width:22px;height:22px;border:3px solid #0b0b10;border-radius:50%;background:#f4ead2}
.tg-radio-vol input:focus-visible{outline:3px solid #5ad8ff;outline-offset:2px}
.tg-radio-dial{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.tg-radio-chip{min-height:48px;padding:6px 12px;border:2px solid rgba(255,255,255,.35);border-radius:10px;background:#0d1018;color:#fff;font:700 .875rem/1.1 var(--t-display);cursor:pointer}
.tg-radio-chip[aria-pressed="true"]{border-color:#7fffd4;color:#7fffd4}
.tg-radio-chip:disabled{opacity:.55;cursor:not-allowed}
.tg-radio-locks{margin:4px 0 0;padding-left:18px;font-size:.8125rem;color:var(--t-muted)}
@media (prefers-reduced-motion:reduce){.tg-radio-rain,.tg-radio-wiper,.tg-radio-on .tg-radio-eq i{animation:none}}
/* Results cards (review round 5): a medal award, then the numbers in a laid-out list. */
.tg-medal{display:flex;justify-content:center;margin:2px 0 4px}
.tg-medal-disc{display:grid;place-items:center;width:88px;height:88px;border:4px solid #111;border-radius:50%;box-shadow:4px 4px 0 #000;font:900 1rem/1 var(--t-display);letter-spacing:.06em;text-transform:uppercase;color:#1a1408;animation:tg-medal .7s cubic-bezier(.2,.9,.3,1.3) both}
.tg-medal[data-medal="gold"] .tg-medal-disc{background:radial-gradient(circle at 35% 30%,#fff4b8,#e8b830 45%,#a87814)}
.tg-medal[data-medal="silver"] .tg-medal-disc{background:radial-gradient(circle at 35% 30%,#ffffff,#c8ccd4 45%,#7c828c)}
.tg-medal[data-medal="bronze"] .tg-medal-disc{background:radial-gradient(circle at 35% 30%,#ffd8b0,#c47a3a 45%,#7a4416)}
.tg-medal[data-medal="none"] .tg-medal-disc{background:#3a3c44;color:#c9ced8}
@keyframes tg-medal{0%{transform:scale(.2) rotate(-40deg);opacity:0}70%{transform:scale(1.15) rotate(6deg);opacity:1}100%{transform:scale(1) rotate(0)}}
.tg-result{display:grid;grid-template-columns:auto auto;gap:4px 16px;width:min(100%,420px);margin:6px auto;font-size:.9375rem;text-align:left}
.tg-result dt{color:var(--t-muted)}
.tg-result dd{margin:0;font-weight:700;text-align:right}
.tg-result-unlock{max-width:420px;margin:4px auto;font:700 .875rem/1.35 var(--t-display);color:var(--t-good)}
.tg-result-unlock:empty{display:none}
/* City popups never run under the minimap; the round touch buttons only on touch screens. */
.tg-in-hub .tg-pop{white-space:normal;max-width:calc(100% - 300px);text-align:center}
@media (max-width:719px){.tg-in-hub .tg-pop{max-width:92%}}
/* The graphics fallback note: shown when the post-processing or a frame fails and the game switches to Low. */
.tg-gfx-note{position:absolute;left:50%;top:12px;z-index:30;transform:translateX(-50%);max-width:calc(100% - 32px);margin:0;padding:6px 12px;border:2px solid #111;background:#ffc52f;color:#111;font:700 .8125rem/1.3 var(--t-display);box-shadow:3px 3px 0 #000;text-align:center}
.tg-gfx-note[hidden]{display:none}
/* The garage's turntable (review round 6): on the Vans & paint tab the screen opens a clear window at the top. */
.tg-garage-stage{display:none}
.tg-screen.tg-garage-3d{background:linear-gradient(180deg,rgba(6,7,12,0) 0,rgba(6,7,12,0) 34%,rgba(6,7,12,.86) 46%,rgba(6,7,12,.92))}
.tg-garage-3d .tg-garage-stage{display:block;flex:0 0 auto;width:100%;height:clamp(150px,36%,260px)}
.tg-garage li.tg-garage-view{outline:2px solid #9be6df;outline-offset:2px}
/* Review round 6: the objective lines sit on a dark plate (readable over bright fog and the boss's mist); the results cards
   and the epilogue keep their buttons in view at the bottom of the screen, and the medal is smaller on short screens. */
.tg-hud-job,.tg-hud-goal{width:fit-content;max-width:100%;padding:2px 8px;border-radius:4px;background:rgba(8,8,14,.72);box-shadow:0 1px 0 rgba(0,0,0,.4);text-shadow:0 1px 2px #000}
[data-tg-screen="chapter"] .tg-actions,[data-tg-screen="finale"] .tg-actions,[data-tg-screen="jobdone"] .tg-actions{position:sticky;bottom:-20px;z-index:2;width:100%;justify-content:center;margin-top:auto;padding:10px 0 12px;background:linear-gradient(180deg,rgba(6,7,12,0),rgba(6,7,12,.94) 28%)}
/* Review round 25: a chapter's, the finale's and a side job's results sit on an all but opaque, blurred backdrop: the 3D
   world's billboards no longer show through the panel, and the buttons' band is no darker than the rest. */
/* (specific enough to win over .tg-menu and .tg-over, which come later) */
.tg .tg-screen[data-tg-screen="chapter"],.tg .tg-screen[data-tg-screen="finale"],.tg .tg-screen[data-tg-screen="jobdone"]{background:radial-gradient(rgba(0,0,0,.42) 1.1px,transparent 1.5px) 0 0/7px 7px,rgba(8,7,16,.95);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tg .tg-screen[data-tg-screen="chapter"] .tg-actions,.tg .tg-screen[data-tg-screen="finale"] .tg-actions,.tg .tg-screen[data-tg-screen="jobdone"] .tg-actions{background:none}
@media (max-height:820px){.tg-medal-disc{width:64px;height:64px;font-size:.8125rem}.tg-result{gap:2px 14px;font-size:.875rem}[data-tg-screen="chapter"] .tg-screen-head,[data-tg-screen="jobdone"] .tg-screen-head{margin:2px 0}}

/* ---- Review round 10 (owner: "upgrade the visuals of our menu ... a proper comic style game manual"): comic menus. Ink
   borders and offset shadows, halftone dots, chunky icon buttons with hover and press states, caption-box headings, the pit
   stop, the shop strip, Settings and the paged manual. The start menu keeps the live 3D city behind a halftone veil. ---- */
.tg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.tg-ico{width:1.35em;height:1.35em;flex:none;fill:currentColor}
/* Review round 12: glyphs in text (arrows, ticks, scoops, radio voices) are sprite shapes, never a font's; garage levels are drawn pips */
.tg-gi{display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.14em;fill:currentColor}
.tg-pips{display:inline-flex;gap:.22em;margin-left:.4em;vertical-align:.06em}
.tg-pip{display:inline-block;width:.62em;height:.62em;border:2px solid currentColor;border-radius:2px;box-sizing:border-box}
.tg-pip-on{background:currentColor}
.tg-new{display:inline-block;margin-left:.5em;padding:1px 6px;border:2px solid #0b0b10;border-radius:4px;background:#ed5596;color:#fff;font:900 .75rem/1.2 var(--t-display);letter-spacing:.06em;text-transform:uppercase;transform:rotate(-4deg)}
.tg-new[hidden]{display:none}
.tg-menu{gap:12px;background:radial-gradient(rgba(0,0,0,.42) 1.1px,transparent 1.5px) 0 0/7px 7px,linear-gradient(180deg,rgba(10,8,20,.88),rgba(10,8,20,.95))}
.tg-start.tg-menu{background:radial-gradient(rgba(0,0,0,.5) 1.1px,transparent 1.5px) 0 0/7px 7px,linear-gradient(180deg,rgba(10,8,20,.2),rgba(10,8,20,.62) 30%,rgba(10,8,20,.9) 70%)}
.tg-screen.tg-menu.tg-garage-3d{background:linear-gradient(180deg,rgba(10,8,20,0) 0,rgba(10,8,20,0) 36%,rgba(10,8,20,.9) 52%)}
.tg-menu .tg-btn{position:relative;min-height:52px;padding:10px 14px;border:3px solid #0b0b10;border-radius:8px;background:#f4ead2;color:#17131f;font:800 1.125rem/1.05 var(--t-display);letter-spacing:.03em;box-shadow:4px 4px 0 #0b0b10;transition:transform .08s,box-shadow .08s,background .12s}
.tg-menu .tg-btn:hover:not(:disabled){transform:translate(-2px,-2px);box-shadow:6px 6px 0 #0b0b10;background:#fff6dc;color:#17131f;border-color:#0b0b10}
.tg-menu .tg-btn:active:not(:disabled){transform:translate(3px,3px);box-shadow:1px 1px 0 #0b0b10}
.tg-menu .tg-btn:focus-visible{outline:3px solid #5ad8ff;outline-offset:3px}
.tg-menu .tg-btn-main{background:#ffc52f;color:#120e08}
.tg-menu .tg-btn-main:hover:not(:disabled){background:#ffd664}
.tg-menu .tg-btn-quiet{background:#2b2733;color:#f4ead2}
.tg-menu .tg-btn-quiet:hover:not(:disabled){background:#3a3544;color:#fff}
.tg-menu .tg-btn:disabled{opacity:.55;cursor:default;box-shadow:2px 2px 0 #0b0b10}
.tg-btn-tag{margin-left:auto;padding:2px 7px;border:2px solid #0b0b10;border-radius:5px;background:#17131f;color:#ffc52f;font:800 .875rem/1.2 var(--t-display)}
.tg-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(100%,480px)}
.tg-menu-grid .tg-btn{justify-content:flex-start;text-align:left}
.tg-btn-two{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.tg-btn-two small{font:600 .75rem/1.15 var(--t-ui);letter-spacing:0;text-transform:none;opacity:.78}
.tg-btn-wide{grid-column:1/-1;justify-content:center!important;font-size:1.375rem!important;min-height:58px!important}
.tg-logo{position:relative;padding:6px 18px 2px}
.tg-logo::before{content:'';position:absolute;inset:-10px -26px;z-index:-1;background:conic-gradient(from 0deg,#ed5596 0 8deg,transparent 8deg 22deg,#ffc52f 22deg 30deg,transparent 30deg 45deg) center/100% 100%;opacity:.28;border-radius:50%;filter:blur(.3px)}
.tg-logo-tag{display:inline-block;margin-bottom:4px!important;padding:2px 10px;border:2px solid #0b0b10;background:#5ad8ff;color:#0b0b10;font:800 .8125rem/1.3 var(--t-display);letter-spacing:.1em;text-transform:uppercase;transform:rotate(-2deg);box-shadow:3px 3px 0 #0b0b10}
.tg .tg-menu .tg-title{font-size:clamp(3rem,13vw,5rem);line-height:.86;color:#ffc52f;-webkit-text-stroke:2px #0b0b10;text-shadow:4px 4px 0 #ed5596,8px 8px 0 #0b0b10;transform:rotate(-3deg) skewX(-6deg)}
.tg .tg-menu .tg-screen-head{display:inline-block;padding:4px 16px 2px;border:3px solid #0b0b10;background:#ffc52f;color:#120e08;text-shadow:none;box-shadow:5px 5px 0 #0b0b10;transform:rotate(-1.5deg);font-size:clamp(1.8rem,8vw,2.6rem)}
.tg-menu .tg-screen-kicker{padding:2px 10px;border:2px solid #0b0b10;background:#f4ead2;color:#17131f;box-shadow:3px 3px 0 #0b0b10}
.tg-menu .tg-screen-line{color:#f4ead2}
.tg-menu .tg-job{border:2px solid #0b0b10;border-left:6px solid #ffc52f;background:#1b1724;color:#f4ead2}
.tg-menu .tg-chapters .tg-btn{display:flex;gap:8px;width:100%}
.tg-ch-name{flex:1 1 auto}
.tg-menu .tg-result{border:3px solid #0b0b10;background:#f4ead2;color:#17131f;box-shadow:5px 5px 0 #0b0b10}
.tg-menu .tg-result dt{color:#5a5262}
.tg-menu .tg-result dd{color:#17131f}
.tg-menu .tg-phases{padding:10px 12px 10px 30px;border:3px solid #0b0b10;background:#f4ead2;color:#17131f;box-shadow:4px 4px 0 #0b0b10}
.tg-menu .tg-brief-goal{max-width:40ch;color:#ffc52f}
.tg-wallet-big{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:3px solid #0b0b10;border-radius:30px;background:#1b1724;color:#f4ead2;font:800 1.25rem/1 var(--t-display);box-shadow:4px 4px 0 #0b0b10}
.tg-wallet-big .tg-ico{color:#ffc52f}
.tg-wallet-big strong{color:#5bd68a;font-size:1.5rem}
.tg-wallet-scoops{margin-left:6px;font-size:1rem;color:#c9c2d3}
.tg-wallet-scoops strong{color:#ffc52f;font-size:1.1rem}
/* the shop step between chapters */
.tg-shop{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(100%,520px);padding:10px;border:3px solid #0b0b10;background:#2a2140;box-shadow:5px 5px 0 #0b0b10}
.tg-shop-head{font:900 1.125rem/1 var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:#ffc52f}
.tg-shop-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}
.tg-shop-buy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:132px;min-height:52px;padding:8px 10px;border:3px solid #0b0b10;border-radius:8px;background:#f4ead2;color:#17131f;font:800 1rem/1.1 var(--t-display);text-align:left;cursor:pointer;box-shadow:3px 3px 0 #0b0b10}
.tg-shop-buy b{color:#1f7a45}
.tg-shop-buy:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 #0b0b10}
.tg-shop-none{color:#c9c2d3;font-size:.9375rem}
/* the pit stop between parts of a chapter */
.tg-pit-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:min(100%,620px)}
.tg-pit-item{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:132px;padding:12px 8px;border:3px solid #0b0b10;border-radius:10px;background:#f4ead2;color:#17131f;cursor:pointer;box-shadow:5px 5px 0 #0b0b10;transition:transform .08s,box-shadow .08s}
.tg-pit-item .tg-ico{width:38px;height:38px;color:#ed5596}
.tg-pit-item:hover:not(:disabled){transform:translate(-2px,-2px);box-shadow:7px 7px 0 #0b0b10}
.tg-pit-item:active:not(:disabled){transform:translate(3px,3px);box-shadow:2px 2px 0 #0b0b10}
.tg-pit-item:disabled{cursor:default;opacity:.6}
.tg-pit-item[aria-pressed="true"]{opacity:1;background:#c9f2d7}
.tg-pit-name{font:900 1.25rem/1 var(--t-display);text-transform:uppercase}
.tg-pit-text{font-size:.8125rem;color:#4a4352}
.tg-pit-price{padding:2px 10px;border:2px solid #0b0b10;border-radius:20px;background:#ffc52f;font:900 1.125rem/1.2 var(--t-display)}
.tg-check{display:flex;align-items:center;gap:8px;font-size:.875rem;color:#c9c2d3}
.tg-check input{width:20px;height:20px}
/* Settings */
.tg-set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,440px)}
.tg-set-grid .tg-tool{min-height:50px;border:3px solid #0b0b10;border-radius:8px;background:#f4ead2;color:#17131f;box-shadow:3px 3px 0 #0b0b10;font-size:1.0625rem}
.tg-set-grid .tg-tool[aria-pressed="false"]{background:#2b2733;color:#f4ead2}
.tg-set-head{font:900 1.25rem/1 var(--t-display);text-transform:uppercase;color:#ffc52f}
.tg-controls{display:grid;grid-template-columns:auto auto;gap:4px 16px;margin:0;padding:10px 16px;border:3px solid #0b0b10;background:#f4ead2;color:#17131f;box-shadow:4px 4px 0 #0b0b10;text-align:left}
.tg-controls dt{font:800 1rem/1.3 var(--t-display);text-transform:uppercase}
.tg-controls dd{margin:0;font-weight:700}
/* the comic manual: a printed booklet, one page at a time */
.tg-manual{gap:8px;padding:12px;background:radial-gradient(rgba(0,0,0,.35) 1px,transparent 1.4px) 0 0/6px 6px,#1b1626}
.tg-manual::before,.tg-manual::after{display:none}
.tg-man-bar{display:flex;align-items:center;justify-content:space-between;width:min(100%,720px)}
.tg-man-num{font:800 .9375rem/1 var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:#ffc52f}
.tg-man-page{display:flex;flex-direction:column;align-items:center;gap:8px;width:min(100%,720px);flex:1 1 auto;min-height:0;padding:12px 14px;overflow-y:auto;border:4px solid #0b0b10;background:radial-gradient(rgba(23,19,31,.1) 1px,transparent 1.3px) 0 0/5px 5px,#f4ead2;color:#17131f;box-shadow:6px 6px 0 #0b0b10;text-align:left}
.tg-man-art{display:block;flex:none;width:auto;max-width:100%;aspect-ratio:16/9;height:min(210px,30vh);object-fit:cover;border:3px solid #0b0b10;box-shadow:4px 4px 0 #0b0b10;background:#2a2140}
.tg-man-head{align-self:flex-start;padding:2px 12px;border:3px solid #0b0b10;background:#ffc52f;font:900 clamp(1.4rem,6vw,2rem)/1 var(--t-display);text-transform:uppercase;color:#120e08!important;box-shadow:4px 4px 0 #0b0b10;transform:rotate(-1deg)}
.tg-man-title{font:900 clamp(2.4rem,11vw,3.6rem)/.88 var(--t-display);text-transform:uppercase;text-align:center;color:#ffc52f!important;-webkit-text-stroke:2px #0b0b10;text-shadow:4px 4px 0 #ed5596,7px 7px 0 #0b0b10;transform:rotate(-2deg)}
.tg-man-title span{display:block;font-size:.6em}
.tg-man-sub{font:800 1.25rem/1 var(--t-display);text-transform:uppercase;letter-spacing:.1em}
.tg-man-list{margin:0;padding-left:1.2rem;font-size:.9688rem;line-height:1.45}
.tg-man-list li+li{margin-top:3px}
.tg-man-tip{position:relative;align-self:stretch;margin-top:4px!important;padding:8px 12px;border:3px solid #0b0b10;border-radius:16px;background:#fff;font-weight:700;box-shadow:3px 3px 0 #0b0b10}
.tg-man-tip::after{content:'';position:absolute;left:22px;bottom:-14px;border:8px solid transparent;border-top:10px solid #0b0b10}
.tg-man-tip strong{margin-right:6px;font:900 .875rem/1 var(--t-display);text-transform:uppercase;color:#ed5596}
.tg-man-small{font-size:.8125rem;color:#4a4352}
.tg-crew{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px;width:100%;margin:0;padding:0;list-style:none}
.tg-crew li{display:flex;flex-direction:column;gap:3px;padding:6px;border:3px solid #0b0b10;background:#fff;box-shadow:3px 3px 0 #0b0b10}
.tg-crew img{width:100%;aspect-ratio:1;object-fit:cover;border:2px solid #0b0b10}
.tg-crew-mara{object-position:78% 30%}.tg-crew-bray{object-position:42% 30%}.tg-crew-len{object-position:30% 40%}.tg-crew-rusk{object-position:40% 30%}.tg-crew-ed{object-position:50% 30%}
.tg-crew strong{font:900 1rem/1 var(--t-display);text-transform:uppercase}
.tg-crew span{font-size:.8125rem;line-height:1.3}
.tg-man-van{width:min(100%,380px);height:auto;padding:6px;border:3px solid #0b0b10;background:#2b2a36;box-shadow:4px 4px 0 #0b0b10;font-family:var(--t-display)}
.tg-man-table{width:100%;border-collapse:collapse;font-size:.875rem}
.tg-man-table th,.tg-man-table td{padding:4px 6px;border:2px solid #0b0b10;text-align:left}
.tg-man-table thead th{background:#17131f;color:#ffc52f;font-family:var(--t-display);text-transform:uppercase}
.tg-man-medals{display:flex;gap:14px}
.tg-mm{display:grid;place-items:center;width:72px;height:72px;border:4px solid #0b0b10;border-radius:50%;font:900 .875rem/1 var(--t-display);text-transform:uppercase;box-shadow:3px 3px 0 #0b0b10}
.tg-mm-b{background:radial-gradient(circle at 35% 30%,#f0b98a,#a86a3a)}.tg-mm-s{background:radial-gradient(circle at 35% 30%,#fff,#a8aeb8)}.tg-mm-g{background:radial-gradient(circle at 35% 30%,#fff3b0,#d4a017)}
.tg-man-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;width:min(100%,720px)}
.tg-man-nav .tg-btn{min-width:88px;border:3px solid #0b0b10;box-shadow:3px 3px 0 #0b0b10}
.tg-man-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.tg-man-dot{width:14px;height:14px;padding:0;border:2px solid #0b0b10;border-radius:50%;background:#f4ead2;cursor:pointer}
.tg-man-dot[aria-current="true"]{background:#ffc52f;transform:scale(1.25)}
@media (max-width:560px){
  .tg-menu-grid{gap:9px}
  .tg-menu .tg-btn{min-height:50px;padding:8px 10px;font-size:1rem}
  .tg-pit-items{grid-template-columns:1fr}
  .tg-pit-item{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;min-height:64px;text-align:left}
  .tg-pit-item .tg-ico{width:28px;height:28px}
  .tg-pit-text{flex-basis:100%}
  .tg-man-page{padding:10px}
  .tg-man-list{font-size:.875rem}
  .tg-man-dot{width:12px;height:12px}
  .tg-man-nav .tg-btn{min-width:72px}
  .tg-set-grid{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){.tg-menu .tg-btn,.tg-pit-item{transition:none}.tg .tg-menu .tg-title{transform:none}}

/* Review round 10: the map and the navigation. A bigger round minimap (tap it, or press M, for the full map), the turn
   indicator at the top, the full map screen and the legend (each icon a shape as well as a colour). */
.tg .tg-in-hub .tg-map{width:168px;height:168px;border:0;border-radius:50%;background:transparent;cursor:pointer;image-rendering:auto;filter:drop-shadow(3px 3px 0 rgba(0,0,0,.6))}
.tg-turn{position:absolute;top:102px;left:50%;z-index:2;display:flex;align-items:center;gap:8px;padding:5px 14px 5px 8px;border:3px solid #0b0b10;border-radius:30px;background:#ffd21f;color:#0b0b10;font:900 1.25rem/1 var(--t-display);letter-spacing:.03em;text-transform:uppercase;text-shadow:none;transform:translateX(-50%);box-shadow:3px 3px 0 rgba(0,0,0,.7);white-space:nowrap}
.tg-turn-ico{width:30px;height:30px;fill:#0b0b10}
.tg-mapscreen{gap:8px}
.tg-map-wrap{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:12px;width:100%}
.tg-bigmap{width:min(100%,370px);height:auto;aspect-ratio:1;border:4px solid #0b0b10;border-radius:8px;box-shadow:5px 5px 0 #0b0b10;background:#0b0b10}
.tg-legend{display:grid;grid-template-columns:1fr;gap:5px;margin:0;padding:10px 12px;border:3px solid #0b0b10;background:#f4ead2;color:#17131f;list-style:none;text-align:left;font-size:.875rem;font-weight:700;box-shadow:4px 4px 0 #0b0b10}
.tg-legend li{display:flex;align-items:center;gap:8px}
.tg-lg{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;border:2px solid #0b0b10;font:900 .6875rem/1 var(--t-display);font-style:normal;color:#0b0b10}
.tg-lg-target{border-radius:50%;background:#5bd68a}
.tg-lg-route{height:8px;border-radius:4px;background:#ffd21f}
.tg-lg-len{width:0;height:0;border:0;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:16px solid #ff3a3a;filter:drop-shadow(0 0 1px #0b0b10)}
.tg-lg-cop{background:linear-gradient(90deg,#ff2a3a 50%,#2a6bff 50%)}
.tg-lg-spot{width:14px;height:14px;margin:2px;background:#ff9a3c;transform:rotate(45deg)}
.tg-lg-block{background:#ff2a3a;position:relative}
.tg-lg-block::after{content:'';position:absolute;inset:3px;background:linear-gradient(45deg,transparent 42%,#fff 42% 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,#fff 42% 58%,transparent 58%)}
.tg-lg-shop{border-color:#ff5aa8;background:#10141c;box-shadow:inset 0 0 0 3px #10141c,inset 0 0 0 6px #ff5aa8}
.tg-lg-job{border-radius:50%;background:#ffd21f}
.tg-lg-page{width:14px;background:#f4ead2}
.tg-man-page .tg-legend{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;box-shadow:none}
@media (min-width:720px){.tg .tg-in-hub .tg-map{top:92px;bottom:auto;right:14px}.tg-legend{max-width:240px}}
@media (max-width:560px){
  .tg .tg-in-hub .tg-map{width:128px;height:128px;bottom:140px}
  .tg-man-dots{gap:4px;flex-wrap:nowrap}
  .tg-man-dot{width:10px;height:10px}
  .tg-turn{top:136px;padding:3px 10px 3px 6px;font-size:1rem}
  .tg-turn-ico{width:22px;height:22px}
  .tg-bigmap{width:min(100%,330px)}
  .tg-legend{grid-template-columns:repeat(2,minmax(0,1fr));font-size:.75rem}
}
/* Review round 10, the busy start of a city part: radio and story toasts get one fixed slot at the bottom left (on phones a
   slim strip under the HUD), tips sit compact at the left edge above it, and on phones the city's subtitles stay left of the
   minimap. One toast and one tip at most, never over the turn sign or the objective. */
.tg .tg-hud .tg-toast{top:auto;bottom:112px;left:10px;right:auto;max-width:min(44%,380px);transform:none;padding:3px 8px;font-size:.8125rem;line-height:1.25;text-align:left}
.tg .tg-tip,.tg .tg-tip.tg-tip-edge{left:10px;right:auto;top:auto;bottom:150px;width:min(46%,300px);transform:none;padding:6px 9px;font-size:.78rem;line-height:1.3}
@media (max-width:560px){
  .tg .tg-hud .tg-toast,.tg .tg-in-hub .tg-hud .tg-toast{top:178px;bottom:auto;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tg .tg-tip,.tg .tg-tip.tg-tip-edge{bottom:250px;width:min(56%,200px);font-size:.72rem}
  .tg-in-hub .tg-sub{left:10px;transform:none;max-width:calc(100% - 150px);text-align:left}
}@media (pointer:coarse) and (min-width:561px){.tg .tg-hud .tg-toast{bottom:130px}.tg .tg-tip,.tg .tg-tip.tg-tip-edge{bottom:176px}}

/* Review round 11: the map legend's pictures, and a calm phone HUD (only the turn sign and the minimap up top; the clock is
   in the objective line; toasts low; the tip small and brief); the phone menu fits without scrolling. */
.tg-lg-mk{border-radius:50%}
.tg-lg svg{width:13px;height:13px;fill:#0b0b10}
.tg-lg-story{background:#ffc52f}.tg-lg-daily{background:#9be6df}.tg-lg-garage{background:#ed5596}.tg-lg-taxi{background:#ffd21f}.tg-lg-photo{background:#ff9a3c}.tg-lg-paper{background:#c9b6f2}
.tg-lg-sh{border-radius:3px;background:#10141c}
.tg-lg-spray{border-color:#ff5aa8}.tg-lg-spray svg{fill:#ff5aa8}.tg-lg-tune{border-color:#5ad8ff}.tg-lg-tune svg{fill:#5ad8ff}.tg-lg-cup{border-color:#ffc52f}.tg-lg-cup svg{fill:#ffc52f}
.tg-lg-north{border-radius:50%;background:#ffc52f;font-size:.625rem}
.tg-mapscreen .tg-legend{max-height:min(370px,64vh);overflow-y:auto}
.tg-btn-tag{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg-cut-title:not([hidden])~.tg-cut-more{display:none}
@media (max-width:560px){
  .tg .tg-in-hub .tg-meter{display:none}
  .tg .tg-in-hub .tg-map{top:96px;bottom:auto;right:10px;width:112px;height:112px}
  .tg-in-hub .tg-turn{top:98px;left:10px;transform:none;max-width:calc(100% - 140px);white-space:normal}
  .tg .tg-in-hub .tg-hud .tg-toast{top:auto;bottom:132px;max-width:calc(100% - 20px)}
  .tg-in-hub .tg-sub{left:50%;transform:translateX(-50%);max-width:88%;text-align:center;bottom:160px}
  .tg .tg-tip,.tg .tg-tip.tg-tip-edge{bottom:214px;width:min(60%,200px);padding:5px 7px;font-size:.6875rem}
  .tg-start.tg-menu{gap:7px;padding-top:10px;padding-bottom:10px}
  .tg-start .tg-job,.tg-start .tg-radio-teaser,.tg-start .tg-bests,.tg-start .tg-streak{display:none}
  .tg .tg-start .tg-title{font-size:clamp(2.2rem,11vw,2.9rem)}
  .tg-start .tg-logo-tag{font-size:.6875rem}
  .tg-start .tg-menu-grid{gap:7px}
  .tg-start .tg-menu-grid .tg-btn{min-height:44px;padding:6px 8px;font-size:.9375rem}
  .tg-start .tg-btn-wide{min-height:50px!important;font-size:1.1875rem!important}
  .tg-btn-tag{font-size:.75rem;padding:1px 5px}
}
/* ---- review round 13: a stage that fits the screen, screens that fit the stage, one message lane, readable HUD ------------- */
.tg{overflow-x:clip}
.tg-stage{container-type:size}
@media (min-width:720px){
  .tg-game{max-width:none}
  .tg-stage{--tg-w:min(calc(100vw - 32px),1600px,calc(var(--tg-avail, calc(100vh - 120px)) * 16 / 9));width:var(--tg-w);max-width:none;aspect-ratio:16/9;max-height:none;min-height:340px;margin-left:calc(50% - var(--tg-w) / 2)}
}
.tg-stage:fullscreen{margin:0;--tg-w:100vw}
/* the HUD: backing plates and bigger type where it sits on a bright road or sky */
.tg-keys{padding:3px 10px;border-radius:4px;background:rgba(6,7,12,.72);font-size:.9375rem;color:#fff;text-shadow:none}
.tg-hud-dist{padding:1px 6px;border-radius:3px;background:rgba(6,7,12,.6);font-size:.9375rem;color:#e8e8f0}
.tg-hud-score{padding:0 6px;border-radius:4px;background:rgba(6,7,12,.45)}
.tg-heat{padding:2px 6px;border-radius:3px;background:rgba(6,7,12,.6)}
/* fixed slots at the top: the objective, the meter under it, the turn sign under that; the card below them all */
.tg-meter{top:78px}
.tg-turn{top:116px;transform:translateX(-50%) scale(.92);transform-origin:50% 0}
.tg-card{top:30%}
.tg-hud .tg-card-title{font-size:clamp(2rem,8cqh,3.6rem)}
.tg-card-sub{max-width:46ch;font-size:clamp(.875rem,2.4cqh,1.0625rem)}
.tg-hud .tg-card-zone .tg-card-title{font-size:clamp(2.4rem,10cqh,4.6rem)}
.tg-warn{top:auto;bottom:34%}
/* one message lane at the bottom: dialogue, a radio line or a tip, one at a time (the script queues them) */
.tg-sub,.tg-toast,.tg-tip.tg-tip-edge{top:auto;bottom:44px;left:50%;right:auto;transform:translateX(-50%);max-width:min(62%,560px)}
.tg-toast{width:max-content}
.tg-tip.tg-tip-edge{width:min(62%,520px);font-size:.875rem}
@media (max-width:719px){.tg-sub,.tg-toast,.tg-tip.tg-tip-edge{bottom:120px;max-width:86%}.tg-tip.tg-tip-edge{width:86%}}
/* screens fit the stage: compact on a short stage, wider layouts on a wide one */
@container (max-height:760px){
  .tg-screen{gap:7px;padding:12px 16px}
  .tg .tg-menu .tg-title{font-size:clamp(2.2rem,9cqh,4.4rem)}
  .tg-menu .tg-btn{min-height:44px;padding:7px 12px;font-size:1.0625rem}
  .tg-menu-grid{gap:9px}
  .tg .tg-screen-head,.tg .tg-menu .tg-screen-head{font-size:clamp(1.6rem,6cqh,2.6rem)}
  .tg-man-art{height:min(190px,26cqh)}
  .tg-medal-disc{width:58px;height:58px}
  .tg-result{font-size:.875rem;gap:2px 14px}
  .tg-garage li{padding:6px 9px;gap:3px}
  .tg-garage .tg-btn-small{min-height:36px;padding:5px 10px}
  .tg-garage span{line-height:1.3}
}
@container (min-width:880px){
  .tg-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,800px)}
  .tg-garage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:min(100%,1080px)}
  .tg-result{grid-template-columns:auto auto auto auto;width:min(100%,820px);gap:3px 18px}
  /* the manual uses the width: its picture on the left, its words on the right (a page without a picture runs in two columns) */
  .tg-man-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-flow:row dense;align-content:safe center;align-items:start;column-gap:28px;row-gap:8px;width:min(100%,1160px);text-align:left}
  .tg-man-page>*{grid-column:2;margin:0}
  .tg-man-page>.tg-man-art{grid-column:1;grid-row:1 / span 8;align-self:center;width:100%;height:auto;max-height:78cqh}
  .tg-man-page:not(:has(.tg-man-art)){display:block;column-count:2;column-gap:28px}
  .tg-man-page:not(:has(.tg-man-art))>*{break-inside:avoid;margin-bottom:8px}
  .tg-man-bar,.tg-man-nav{width:min(100%,1160px)}
  .tg-mapscreen .tg-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:480px;max-height:none;overflow:visible}
  .tg-actions{flex-wrap:wrap;justify-content:center}
}
.tg-mapscreen .tg-legend{max-height:min(370px,64cqh)}
/* a visible cue where a screen still has to scroll (phones) */
.tg-screen.tg-scrolls{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 46px),rgba(0,0,0,.25));mask-image:linear-gradient(180deg,#000 calc(100% - 46px),rgba(0,0,0,.25))}
.tg-scroll-cue{position:absolute;left:50%;bottom:8px;z-index:4;transform:translateX(-50%);padding:3px 12px;border:2px solid #0b0b10;border-radius:14px;background:#ffc52f;color:#120e08;font:900 .8125rem/1.2 var(--t-display);letter-spacing:.06em;text-transform:uppercase;pointer-events:none}
/* the results card breathes */
.tg-menu .tg-result{padding:10px 16px}
/* full screen offer on the first drive */
.tg-fs-offer{position:absolute;top:150px;left:50%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:10px;width:min(90%,360px);transform:translateX(-50%);padding:16px;border:3px solid #0b0b10;border-radius:10px;background:#f4ead2;color:#17131f;box-shadow:6px 6px 0 #0b0b10;text-align:center}
.tg-fs-offer p{margin:0;font:800 1.125rem/1.2 var(--t-display);text-transform:uppercase}
.tg-fs-offer div{display:flex;gap:10px}
/* the fail screens: a comic front page of the Dispatch */
.tg-paper{width:min(100%,560px);padding:10px 16px 12px;border:3px solid #0b0b10;background:#f4efe2;color:#17131f;box-shadow:6px 6px 0 #0b0b10;transform:rotate(-1.2deg);text-align:left}
.tg-paper-mast{margin:0 0 6px;padding-bottom:4px;border-bottom:3px double #17131f;font:900 .9375rem/1 var(--t-display);letter-spacing:.18em;text-transform:uppercase;text-align:center}
.tg .tg-paper-head{margin:2px 0 6px;font:900 clamp(1.7rem,6cqh,2.6rem)/.95 var(--t-display);text-transform:uppercase;color:#17131f;text-shadow:none}
.tg-paper-stand{margin:0;font:italic 600 .9375rem/1.3 Georgia,'Times New Roman',serif;color:#3a3442}
/* the slow-motion crossing: grey picture, vignette, a big BOOST! with a shrinking ring; the touch Boost button pulses */
/* review round 15: no greyscale (it took the train's colour too); the vignette alone marks slow motion */
.tg-slowmo::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at center,transparent 42%,rgba(0,0,0,.72))}
.tg-qte{position:absolute;top:50%;left:50%;z-index:3;display:grid;place-items:center;width:clamp(150px,30cqh,230px);aspect-ratio:1;transform:translate(-50%,-62%);pointer-events:none}
.tg-qte[hidden]{display:none}
.tg-qte-ring{position:absolute;inset:0;border:6px solid #ffc52f;border-radius:50%;box-shadow:0 0 24px rgba(255,197,47,.7);transition:transform .05s linear}
.tg-qte-word{font:900 clamp(2.2rem,8cqh,3.6rem)/1 var(--t-display);color:#ffc52f;text-shadow:3px 3px 0 #ed5596,0 0 18px rgba(0,0,0,.7)}
.tg-qte-key{position:absolute;bottom:-34px;padding:3px 12px;border:2px solid #0b0b10;border-radius:6px;background:#f4ead2;color:#17131f;font:900 1rem/1.2 var(--t-display);text-transform:uppercase;text-shadow:none;white-space:nowrap}
.tg-qte-pulse{animation:tg-qte-pulse .45s ease-in-out infinite alternate;border-color:#ffc52f!important}
@keyframes tg-qte-pulse{from{transform:scale(1)}to{transform:scale(1.18);box-shadow:0 0 22px #ffc52f}}
@media (prefers-reduced-motion:reduce){.tg-qte-pulse{animation:none}}
.tg-hud .tg-card-sub{margin:4px auto 0}
.tg-hud .tg-hud-job,.tg-hud .tg-hud-goal{margin-left:auto;margin-right:auto}
.tg-fs-offer .tg-btn-quiet{background:transparent;color:#17131f;border:2px solid #17131f}
/* the speech bubbles sit on their speaker's side of the panel, the tail towards them (review round 13) */
.tg-bubble[data-side="left"]{align-self:flex-start}
.tg-bubble[data-side="left"]::after{right:auto;left:26px}
.tg-bubble[data-side="right"]{align-self:flex-end}
.tg-bubble[data-side="right"]::after{left:auto;right:26px}
/* the world scoreboard (review round 13) */
.tg-world{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(100%,520px);padding:8px 12px;border:2px solid #ffc52f;border-radius:8px;background:rgba(10,8,20,.82)}
.tg-world[hidden]{display:none}
.tg-world-line{margin:0;font:800 1rem/1.2 var(--t-display);letter-spacing:.04em;text-transform:uppercase;color:#ffc52f}
.tg-world-form{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.tg-world-form[hidden]{display:none}
.tg-world-join{margin:0;font:700 .875rem/1.3 var(--t-display);text-transform:uppercase;letter-spacing:.03em}
.tg-world-join[hidden]{display:none}
.tg-world-join a{color:#ffc52f}
.tg-beta{display:inline-block;vertical-align:middle;margin-left:.35em;padding:.1em .45em;border:2px solid #ffc52f;border-radius:6px;font:800 .4em/1.2 var(--t-display);letter-spacing:.12em;color:#ffc52f}
.tg-beta-note{margin:.5rem 0 0;font-size:.875rem;color:var(--t-muted)}
.tg-world-label input{width:4.2em;padding:6px 8px;border:2px solid #0b0b10;border-radius:6px;background:#f4ead2;color:#17131f;font:900 1.25rem/1 var(--t-display);letter-spacing:.2em;text-align:center;text-transform:uppercase}
.tg-board{display:grid;gap:3px;width:min(100%,560px);margin:0;padding:0;list-style:none;text-align:left}
.tg-board-row{display:grid;grid-template-columns:3.2em 1fr auto 5.5em;gap:10px;align-items:center;padding:3px 10px;border:2px solid #0b0b10;border-radius:6px;background:#f4ead2;color:#17131f;font:700 .9375rem/1.2 var(--t-ui)}
.tg-board-you{background:#ffc52f}
.tg-board-rank{font:900 1rem/1 var(--t-display)}
.tg-board-name{font:900 1.0625rem/1 var(--t-display);letter-spacing:.08em;text-transform:uppercase}
.tg-board-badge{margin-left:6px;padding:0 5px;border-radius:3px;background:#1e7f76;color:#fff;font:700 .6875rem/1.4 var(--t-ui);font-style:normal;letter-spacing:0;text-transform:none}
.tg-board-score{font-variant-numeric:tabular-nums;font-weight:800}
.tg-board-dist{color:#5a5262;font-size:.8125rem;text-align:right}
.tg-board-empty{padding:6px;color:#f4ead2}
.tg-board-me{margin:0;font:800 1rem/1 var(--t-display);color:#ffc52f;text-transform:uppercase}
.tg-board-note{margin:0;font-size:.8125rem;color:#c8c0d0}
.tg-board-small .tg-board-row{padding:2px 10px;font-size:.875rem}
@container (min-width:880px){.tg-boardscreen{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-content:center;justify-items:center;column-gap:28px}.tg-boardscreen::before,.tg-boardscreen::after{display:none}.tg-boardscreen>*{grid-column:1}.tg-boardscreen>.tg-set-head{grid-column:2;grid-row:2;align-self:end}.tg-boardscreen>.tg-board-small{grid-column:2;grid-row:3;align-self:start}}
.tg-boardscreen{gap:6px}
.tg-boardscreen .tg-board{gap:2px}
.tg-boardscreen .tg-board-row{padding:1px 10px;font-size:.875rem}
.tg-boardscreen .tg-board-name{font-size:1rem}
/* a daily race's results use the stage's width: the front page and the score on the left, the world board, share and buttons on the right */
@container (min-width:880px){[data-tg-screen="over"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-flow:row dense;align-content:center;justify-items:center;column-gap:30px;row-gap:6px}[data-tg-screen="over"]::before,[data-tg-screen="over"]::after{display:none}[data-tg-screen="over"]>*{grid-column:1}[data-tg-screen="over"]>.tg-over-why,[data-tg-screen="over"]>[data-tg-retry-note],[data-tg-screen="over"]>.tg-world,[data-tg-screen="over"]>.tg-actions,[data-tg-screen="over"]>.tg-share,[data-tg-screen="over"]>.tg-share-status,[data-tg-screen="over"]>.tg-next,[data-tg-screen="over"]>.tg-over-links{grid-column:2}}
/* the controls drawing keeps its shape in a short page (it collapsed to a strip at phone width) */
.tg-man-van{flex:none;aspect-ratio:320/150;min-height:120px}
@container (max-width:560px){.tg-keys{display:none}}
/* Review round 14: the page fits on arrival. On a wide screen the title, its kicker and the lede share one short band, and the
   stage is sized (by the script) to what is left of the window under it; once the player engages, the stage scrolls up and
   takes the window's height. A short stage puts the menu's buttons beside the logo. */
@media (min-width:900px){
  .tg-crumbs ol{margin-bottom:6px}
  .tg-head{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:28px;align-items:end;margin-bottom:10px}
  .tg-head .tg-kicker,.tg-head h1{grid-column:1}
  .tg-head h1{margin:2px 0 0;font-size:2.6rem}
  .tg-head .tg-lede{grid-column:2;grid-row:1 / span 2;align-self:end;max-width:62ch;font-size:.875rem;line-height:1.35}
  /* The beta note spans both columns: auto-placed in the first, its one long line sized that column to the full width
     and squeezed the lede into a zero-wide second column (owner's screenshot, 9 Nov 2026). */
  .tg-head .tg-beta-note{grid-column:1 / -1}
}
@container (max-height:560px) and (min-width:640px){
  .tg-start{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);grid-auto-rows:min-content;align-content:center;column-gap:22px;row-gap:8px}
  .tg-start::before,.tg-start::after{display:none}
  .tg-start>*{grid-column:1;justify-self:center}
  .tg-start>.tg-menu-grid{grid-column:2;grid-row:1 / span 7;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;align-self:center}
  .tg .tg-start .tg-title{font-size:clamp(2rem,11cqh,3.4rem)}
  .tg-start .tg-btn-wide{grid-column:1 / -1}
}
/* Review round 14: settings in two halves, the crew in one row, the map legend in three columns, nothing centred off the top */
@container (min-width:880px){
  [data-tg-screen="settings"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:safe center;justify-items:center;column-gap:28px;row-gap:10px}
  [data-tg-screen="settings"]::before,[data-tg-screen="settings"]::after{display:none}
  [data-tg-screen="settings"]>.tg-screen-head,[data-tg-screen="settings"]>.tg-actions,[data-tg-screen="settings"]>.tg-screen-line{grid-column:1 / -1}
  [data-tg-screen="settings"]>.tg-set-grid{grid-column:1;grid-row:2 / span 2;align-self:center}
  [data-tg-screen="settings"]>.tg-set-head{grid-column:2;grid-row:2;align-self:end}
  [data-tg-screen="settings"]>.tg-controls{grid-column:2;grid-row:3;grid-template-columns:auto auto auto auto}
  .tg-man-page .tg-crew{grid-template-columns:repeat(5,minmax(0,1fr))}
  .tg-man-page .tg-legend{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.tg-screen{justify-content:safe flex-start}
@container (min-width:880px){
  .tg-man-page .tg-legend{max-width:none;width:100%}
  .tg-man-page .tg-legend li{white-space:nowrap}
  .tg-garage-3d .tg-garage-stage{height:clamp(60px,12%,110px)}
  .tg-screen.tg-garage-3d{gap:6px;padding-top:10px;padding-bottom:10px}
  .tg-garage-3d .tg-garage{gap:6px}
  .tg-garage-3d .tg-paints{gap:4px}
  .tg-garage-3d .tg-paint{min-height:26px;padding:2px 6px;border-width:2px;font-size:.6875rem}
  .tg-garage-3d .tg-garage li{gap:3px;padding:6px 8px}
  .tg-garage-3d .tg-garage span{font-size:.75rem;line-height:1.25}
}
.tg-scroll-cue{left:auto;right:12px;transform:none}
/* Review round 14: the crossing's window. A LEVEL CROSSING sign over the ring; the ring shrinks through a green zone (a press
   before it is too early) to the gold PERFECT circle. */
.tg-qte-sign{position:absolute;bottom:calc(100% + 34px);left:50%;transform:translateX(-50%);margin:0;padding:5px 14px;border:3px solid #e0303a;border-radius:8px;background:#f4f0e6;color:#17131f;font:900 clamp(.8rem,3.4cqh,1.15rem)/1.1 var(--t-display);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.55);animation:tg-qte-sign .5s steps(2) infinite}
.tg-qte-sign::before,.tg-qte-sign::after{content:'';position:absolute;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;background:#e0303a;box-shadow:0 0 10px #ff2a3a}
.tg-qte-sign::before{left:-22px}.tg-qte-sign::after{right:-22px;animation:tg-qte-lamp .5s steps(2) infinite reverse}
@keyframes tg-qte-sign{50%{border-color:#ff7a7a}}
@keyframes tg-qte-lamp{50%{opacity:.25}}
.tg-qte-zone,.tg-qte-perfect{position:absolute;border-radius:50%;pointer-events:none}
.tg-qte-zone{inset:15%;border:4px dashed rgba(91,214,138,.85)}
.tg-qte-perfect{inset:33.5%;border:4px solid rgba(255,197,47,.9);background:rgba(11,11,16,.35)}
.tg-qte[data-zone=wait] .tg-qte-ring{border-color:#f4f0e6;box-shadow:0 0 18px rgba(244,240,230,.5)}
.tg-qte[data-zone=go] .tg-qte-ring{border-color:#5bd68a;box-shadow:0 0 24px rgba(91,214,138,.8)}
.tg-qte[data-zone=wait] .tg-qte-word{font-size:clamp(1.3rem,5cqh,2rem);color:#f4f0e6}
.tg-qte-word{position:relative;z-index:1;padding:4px 12px;border-radius:10px;background:rgba(11,11,16,.55)}
@container (max-height:420px){.tg-qte{width:clamp(120px,34cqh,170px);transform:translate(-50%,-50%)}.tg-qte-sign{bottom:calc(100% + 8px)}.tg-qte-key{bottom:-28px}}
@media (prefers-reduced-motion:reduce){.tg-qte-sign,.tg-qte-sign::after{animation:none}}
/* Review round 14: every HUD read-out sits on the same dark rounded backing as Heat (the mission meter, the popups, the
   warnings and the Len bar), and the score says what it is. */
.tg .tg-meter{padding:4px 8px;border-radius:4px;background:rgba(6,7,12,.66)}
.tg .tg-pop{padding:2px 10px;border-radius:5px;background:rgba(6,7,12,.66)}
.tg .tg-warn{padding:6px 12px;border:2px solid #e0303a;border-radius:5px;background:rgba(6,7,12,.78);color:#ff8a8a}
.tg .tg-len{padding:3px 8px;border-radius:4px;background:rgba(6,7,12,.6)}
.tg-hud-score::before{content:attr(data-label);margin-right:.35em;font-size:.42em;letter-spacing:.1em;text-transform:uppercase;color:var(--t-muted);vertical-align:.35em}
.tg-hud-dist[hidden]{display:none}
/* Review round 14, phones. Portrait: the message lane sits above the Pause button. Landscape (a short, wide stage): the
   objective is one line and the goal line goes (the meter takes its place), and the message lane runs between the Brake
   button and the gadget and Boost buttons instead of under them. */
@media (max-width:560px){.tg .tg-hud .tg-sub,.tg .tg-tip.tg-tip-edge{bottom:184px}}
@container (max-height:440px) and (min-width:560px){
  .tg .tg-hud-job{-webkit-line-clamp:1;line-clamp:1;font-size:.75rem}
  .tg .tg-hud-goal{display:none}
  .tg .tg-hud .tg-meter{top:50px}
}
@media (pointer:coarse){
  @container (max-height:440px) and (min-width:560px){
    .tg .tg-hud .tg-sub{left:84px;right:178px;bottom:44px;width:auto;max-width:none;transform:none;padding:3px 8px;font-size:.8125rem;line-height:1.2}
  }
}
.tg-lg-phone{border-color:#5bd68a}.tg-lg-phone svg{fill:#5bd68a}
.tg-board-nick{letter-spacing:.02em;text-transform:none}
.tg-world-lead{margin:2px 0 0;font:700 .875rem/1.2 var(--t-display);letter-spacing:.04em;color:#ffc52f}
.tg-world-lead[hidden]{display:none}
/* Review round 14: the full map takes most of a wide stage's height; the scoreboard's twenty rows fit a 720 px stage. */
@container (min-width:880px){.tg-mapscreen .tg-bigmap{width:min(74cqh,640px)}}
@container (max-height:760px){.tg-boardscreen{padding-top:8px;padding-bottom:8px;gap:4px}.tg-boardscreen .tg-board{gap:1px}.tg-boardscreen .tg-board-row{padding:0 10px;font-size:.8125rem;line-height:1.15}.tg-boardscreen .tg-board-name{font-size:.875rem}.tg-boardscreen .tg-screen-head{font-size:clamp(1.6rem,6cqh,2.4rem)}}
.tg .tg-man-page .tg-legend{grid-template-columns:repeat(2,minmax(0,1fr))}
.tg .tg-man-page .tg-legend li{white-space:normal;overflow-wrap:anywhere}
/* Review round 15: on a tall (portrait) stage the crossing's widget sits on the left, between the HUD and the van, clear of the train (upper right) and the touch buttons. */
@container (orientation:portrait){
  .tg-qte{top:25%;left:5%;width:clamp(100px,28cqw,140px);transform:none}
  .tg-qte-sign{top:calc(100% + 36px);bottom:auto;left:0;transform:none}
  .tg-qte-sign::before,.tg-qte-sign::after{display:none}
  .tg .tg-qte-word{font-size:clamp(1.3rem,8cqw,1.9rem)}
  .tg-qte-key{bottom:-28px}
}
/* Review round 15: paint chips are readable (12 px and up). */
.tg .tg-paint,.tg .tg-garage-3d .tg-paint{min-height:28px;padding:3px 8px;font-size:.75rem;line-height:1.15}
/* Review round 15: the full-screen offer sits small at the bottom left, never over the turn sign or a title. */
.tg .tg-fs-offer{top:auto;bottom:48px;left:12px;width:auto;max-width:300px;transform:none;flex-direction:row;padding:8px 10px;gap:8px;box-shadow:4px 4px 0 #0b0b10}
.tg .tg-fs-offer p{font-size:.875rem}
/* Review round 15, a phone held sideways: the mission meter sits under the speed on the left (clear of Heat), and the
   turn sign rides high in the middle, clear of the part title. */
@container (max-height:440px) and (min-width:560px){
  .tg .tg-hud .tg-meter{top:96px;left:10px;transform:none}
  .tg .tg-hud .tg-meter-bar{width:min(22cqw,140px)}
  .tg .tg-turn{top:44px}
}
/* Review round 15: polish. A comic tail only where the tip is a bubble under art; the radio's lock list centred without
   stray bullets; the scroll pill on the radio screen sits at the top, clear of the station buttons. */
.tg-man-page:not(:has(.tg-man-art)) .tg-man-tip::after{display:none}
.tg .tg-radio-locks{list-style:none;padding:0;text-align:center}
.tg-stage:has([data-tg-screen="radio"]:not([hidden])) .tg-scroll-cue{top:10px;bottom:auto}
/* Review round 16. The shop step between chapters in two columns on a wide stage: the offers and Continue on the left, the
   garage's tabs and upgrades on the right, all in view at 1080 and 945. */
@container (min-width:880px){
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden])){display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);grid-auto-rows:min-content;align-content:safe center;column-gap:20px;row-gap:6px}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>*{grid-column:2}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-screen-head,.tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-wallet-big{grid-column:1;justify-self:center}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-screen-head{grid-row:1}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-wallet-big{grid-row:2}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-shop{grid-column:1;grid-row:3 / span 4;align-self:start;width:100%}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-tabs{grid-row:1;align-self:end}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-garage,.tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-save{grid-row:2 / span 5;align-self:start}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden]))>.tg-garage-stage{display:none}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden])) .tg-garage{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden])) .tg-garage>li{padding:6px 8px}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden])) .tg-garage p{margin:2px 0;font-size:.8125rem;line-height:1.2}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden])) .tg-shop-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .tg-screen[data-tg-screen="garage"]:has([data-tg-shop]:not([hidden])) .tg-shop-buy{min-width:0;width:100%}
}
/* The ch5 boss's title card (and every card) reads on a bright scene: a dark backing behind its words. */
.tg .tg-card{left:0;right:0;margin-inline:auto;width:max-content;max-width:min(92%,820px);padding:10px 22px 12px;border-radius:10px;background:rgba(6,7,12,.72)}
/* The crossing's ring sits left of the road, clear of the train coming from the right (desktop and a sideways phone). */
@container (orientation:landscape){.tg .tg-qte{top:46%;left:24%}}
@container (orientation:landscape) and (max-height:440px){.tg .tg-qte{top:52%;left:19%;width:clamp(96px,30cqh,130px)}.tg .tg-qte-sign{bottom:calc(100% + 6px);font-size:.75rem}}
/* Phones, portrait: the message lane rides above the pause button and wraps (two lines) instead of cutting off. */
@media (max-width:560px){
  .tg .tg-hud .tg-toast,.tg .tg-in-hub .tg-hud .tg-toast{top:auto;bottom:184px;left:64px;right:10px;width:auto;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* Phones, sideways: the tip sits low on the left, clear of the TIME meter; the minimap clears the Gas button. */
@container (max-height:440px) and (min-width:560px){
  .tg .tg-tip,.tg .tg-tip.tg-tip-edge{top:auto;bottom:96px;left:10px;width:min(40%,260px);font-size:.6875rem}
  .tg .tg-in-hub .tg-map{top:auto;bottom:auto;top:46px;width:96px;height:96px}
}
/* The menu grid's last button spans the free slot on a three-column menu, so no row has a hole (the script marks it). */
@container (min-width:880px){.tg-menu-grid>.tg-btn.tg-span2{grid-column:span 2}}
@container (max-height:560px) and (min-width:640px){.tg-start>.tg-menu-grid>.tg-btn.tg-span2{grid-column:auto}}
/* Review round 16b: the rear-view mirror in a Mega-Tow fight (the view is drawn into the canvas under this frame). */
.tg-mirror{position:absolute;top:118px;left:50%;width:clamp(150px,24cqw,300px);aspect-ratio:2.6;transform:translateX(-50%);border:3px solid #0b0b10;border-radius:14px;box-shadow:0 0 0 2px #c9ced8,0 6px 14px rgba(0,0,0,.5);pointer-events:none}
.tg-mirror[hidden]{display:none}
.tg-mirror span{position:absolute;left:8px;bottom:4px;padding:0 5px;border-radius:3px;background:rgba(6,7,12,.7);font:800 .625rem/1.3 var(--t-display);letter-spacing:.1em;text-transform:uppercase;color:#c9ced8}
@container (max-height:440px){.tg-mirror{top:44px;width:clamp(120px,20cqw,180px)}}
@media (pointer:coarse){@container (max-height:440px) and (min-width:560px){.tg .tg-hud .tg-toast{left:64px;max-width:min(40%,300px)}}}
/* Review round 17. The boss mirror sits top right under the score and heat (never over the road's vanishing point); on a
   phone held upright the Mega-Tow meter takes the left of that row. */
.tg .tg-mirror{left:auto;right:14px;top:118px;transform:none;width:clamp(150px,22cqw,300px)}
@container (max-height:440px){.tg .tg-mirror{top:92px;right:10px;width:clamp(120px,20cqw,170px)}}
@container (orientation:portrait){
  .tg .tg-mirror{top:118px;right:10px;width:42%}
  .tg .tg-hud .tg-meter[data-type="takedown"]{left:10px;transform:none;top:126px}
  .tg .tg-hud .tg-meter[data-type="takedown"] .tg-meter-bar{width:22cqw}
}
/* Popups and warnings ride above the van in their own lane at the top; dialogue keeps the lane at the bottom. */
.tg-stage:not(.tg-in-hub) .tg-pops{top:27%;bottom:auto}
.tg .tg-warn{top:19%;bottom:auto}
@container (orientation:portrait){.tg-stage:not(.tg-in-hub) .tg-pops{top:36%}.tg .tg-warn{top:30%}}
@container (max-height:440px) and (min-width:560px){.tg-stage:not(.tg-in-hub) .tg-pops{top:30%}.tg .tg-warn{top:26%}}
/* A phone held sideways: the tip sits top centre under the turn sign (clear of Pause, Brake, Gas and Boost), and the
   city's minimap sits under the cash and pages. */
@media (pointer:coarse){
  @container (max-height:440px) and (min-width:560px){
    .tg .tg-tip,.tg .tg-tip.tg-tip-edge{top:128px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(44%,340px)}
  }
}
@container (max-height:440px) and (min-width:560px){.tg .tg-in-hub .tg-map{top:84px;bottom:auto;right:10px;width:96px;height:96px}}
/* Garage level pips: owned bright and filled, empty an outline. */
.tg .tg-pip{border-color:rgba(255,255,255,.6);background:transparent}
.tg .tg-pip-on{border-color:#ffc52f;background:#ffc52f;box-shadow:0 0 4px rgba(255,197,47,.7)}
.tg .tg-btn .tg-pip,.tg .tg-pick .tg-pip{border-color:#6b6475}
.tg .tg-btn .tg-pip-on,.tg .tg-pick .tg-pip-on{border-color:#c98a00;background:#ffc52f}
/* The tool bar's Full screen button pulses once a visit instead of a popup over the menu. */
.tg-pulse-once{animation:tg-pulse-once 1s ease-in-out 4}
@keyframes tg-pulse-once{50%{box-shadow:0 0 0 3px #ffc52f,0 0 16px rgba(255,197,47,.8);color:#ffc52f}}
@media (prefers-reduced-motion:reduce){.tg-pulse-once{animation:none;box-shadow:0 0 0 2px #ffc52f}}
/* Review round 17, a phone held upright on the road: the mirror is a small top-right corner, the Mega-Tow meter fits beside
   it, and the lanes stack top to bottom clear of the van: dialogue under the mirror, popups below it, warnings below them. */
@container (orientation:portrait){
  .tg .tg-mirror{width:34%}
  .tg .tg-hud .tg-meter[data-type="takedown"] .tg-meter-bar{width:16cqw}
  .tg-stage:not(.tg-in-hub) .tg-hud .tg-sub{top:33%;bottom:auto}
  .tg-stage:not(.tg-in-hub) .tg-pops{top:45%}
  .tg .tg-warn{top:53%}
}
/* Review round 18. The world scoreboard is a panel: the title on top, today's board on the left, yesterday's winners on the
   right, Back at the bottom centre. */
@container (min-width:880px){
  .tg-screen.tg-boardscreen{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);grid-template-rows:auto auto auto auto auto auto;align-content:center;justify-content:center;column-gap:24px;row-gap:6px;padding:20px max(24px,calc((100% - 1100px) / 2))}
  .tg-boardscreen>*{grid-column:auto;justify-self:stretch;text-align:left}
  .tg-boardscreen>.tg-screen-kicker,.tg-boardscreen>.tg-screen-head{grid-column:1 / -1;justify-self:center}
  .tg-boardscreen>.tg-board-me{grid-column:1;grid-row:3}
  .tg-boardscreen>.tg-board:not(.tg-board-small){grid-column:1;grid-row:4;align-self:start;padding:10px;border:3px solid #0b0b10;border-radius:8px;background:rgba(22,18,34,.92);width:auto}
  .tg-boardscreen>.tg-set-head{grid-column:2;grid-row:3;align-self:end}
  .tg-boardscreen>.tg-board-small{grid-column:2;grid-row:4;align-self:start;padding:10px;border:3px solid #0b0b10;border-radius:8px;background:rgba(22,18,34,.92);width:auto}
  .tg-boardscreen>.tg-board-note{grid-column:1 / -1;grid-row:5;justify-self:center;text-align:center}
  .tg-boardscreen>.tg-actions{grid-column:1 / -1;grid-row:6;justify-self:center}
  .tg-boardscreen .tg-board-empty{padding:4px 6px}
}
/* A phone held sideways: the stage fills the window (no black bars); popups, the turn sign and the HUD are smaller. */
.tg-stage.tg-fill{--tg-w:100vw;width:100vw;height:calc(100vh - 8px);aspect-ratio:auto;margin-left:calc(50% - 50vw);border-radius:0}
@container (max-height:440px){
  .tg .tg-pop{font-size:.95rem}
  .tg .tg-pop-big{font-size:1.1rem}
  .tg .tg-hud .tg-warn{font-size:.95rem;padding:3px 8px}
  .tg .tg-heat-bar{width:clamp(60px,12cqw,96px)}
  .tg .tg-hud-right{max-width:34cqw}
}
/* The manual on a big stage: bigger type and art, the crew cards larger, the page filling its frame. */
@container (min-height:820px) and (min-width:1300px){
  .tg-man-page{width:min(100%,1420px);font-size:1.12rem;align-content:start;padding:22px 26px}
  .tg-man-page .tg-man-list{font-size:1.12rem;line-height:1.5}
  .tg-man-page .tg-man-tip{font-size:1.05rem}
  .tg-man-page>.tg-man-art{max-height:84cqh}
  .tg .tg-man-head{font-size:2.6rem}
  .tg-man-page:has(.tg-crew){display:flex;flex-direction:column;align-items:stretch;justify-content:center}
  .tg-man-page .tg-crew{gap:16px}
  .tg-man-page .tg-crew strong{font-size:1.35rem}
  .tg-man-page .tg-crew span{font-size:1rem}
  .tg-man-page:not(:has(.tg-man-art)){column-gap:40px}
}
.tg-man-scoops{margin:2px 0 0;padding-left:1.1rem;list-style:none}
.tg-man-scoops li{position:relative}
.tg-man-scoops li .tg-glyph{margin-right:.35em}
/* The legend's van arrow. */
.tg-lg-van{background:transparent;border:0}
.tg-lg-van svg{width:16px;height:16px;fill:#fff;stroke:#0b0b10;stroke-width:2}
/* A phone held upright: the briefing fits the stage (Start in view). */
@container (orientation:portrait){
  [data-tg-screen="brief"]{gap:6px;padding:10px 12px}
  [data-tg-screen="brief"] .tg-screen-head{font-size:clamp(1.5rem,9cqw,2rem)}
  [data-tg-screen="brief"] .tg-phases{font-size:.8125rem;margin:0}
  [data-tg-screen="brief"] .tg-phases li+li{margin-top:2px}
  [data-tg-screen="brief"] .tg-brief-goal,[data-tg-screen="brief"] .tg-bests{font-size:.8125rem;margin:0}
  [data-tg-screen="brief"] .tg-actions{gap:6px}
  [data-tg-screen="brief"] .tg-actions .tg-btn{min-height:40px;padding:6px 10px}
}
/* Review round 19. A title card in a Mega-Tow fight sits high, clear of the truck; the garage's stat bars; chapter medal times. */
.tg .tg-card.tg-card-high{top:12%}
/* Review round 25: a Mega-Tow fight's title card is a compact strip under the Mega-Tow meter, never over the truck. */
.tg .tg-card.tg-card-finish{background:#0c1a12;border:3px solid #5bd68a;box-shadow:0 0 0 4px #0b0b10,0 10px 28px rgba(0,0,0,.6)}
.tg .tg-card.tg-card-finish.tg-card-on{animation:tg-card-finish 3.2s ease-out forwards}
@keyframes tg-card-finish{0%{transform:scale(.96)}8%{transform:none}88%{opacity:1}100%{opacity:0}}
.tg .tg-card.tg-card-strip{top:13%;max-width:min(78%,560px);padding:4px 14px 6px}
.tg .tg-card.tg-card-strip .tg-card-kicker{font-size:clamp(.6875rem,2.2cqh,.875rem)}
.tg .tg-hud .tg-card.tg-card-strip .tg-card-title{margin:2px 0 0;font-size:clamp(1.05rem,3.6cqh,1.6rem);text-shadow:2px 2px 0 var(--t-pink)}
.tg .tg-card.tg-card-strip .tg-card-sub{margin:2px 0 0;font-size:clamp(.72rem,2.3cqh,.95rem);line-height:1.2}
.tg-statrow{display:grid;grid-template-columns:auto minmax(60px,1fr) auto;align-items:center;gap:8px;font-size:.8125rem}
.tg-statrow b{font:800 .75rem/1 var(--t-display);letter-spacing:.06em;text-transform:uppercase}
.tg-statbar{position:relative;height:10px;border:2px solid #0b0b10;border-radius:5px;background:rgba(0,0,0,.35);overflow:hidden}
.tg-statbar i{position:absolute;left:0;top:0;bottom:0;display:block}
.tg-stat-next{background:repeating-linear-gradient(45deg,rgba(91,214,138,.55) 0 4px,rgba(91,214,138,.25) 4px 8px)}
.tg-stat-now{background:#ffc52f}
.tg-ch-medals{display:block;margin-top:2px;font:700 .75rem/1.2 var(--t-ui);letter-spacing:0;text-transform:none;opacity:.85}
.tg-stage:not(.tg-in-hub) .tg-pops{top:20%}
/* Review round 20: the radio's two rows of chips are labelled (stations, then the dashboard look). */
.tg-radio-label{margin:10px 0 -2px;font:700 .75rem/1 var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:#9be6df;text-align:left}
.tg-ch-medals>span{white-space:nowrap}
/* Review round 20: the manual's credits are laid out as credits: a role, then who, one per line (round 21: its own class, so
   the finale's credits line keeps its light text on the dark screen). */
.tg-man-credits{display:grid;width:100%;box-sizing:border-box;color:#14110c;gap:6px;margin:10px 0 6px;padding:10px 12px;border-top:2px solid #111;border-bottom:2px solid #111}
.tg-man-credits>div{display:grid;grid-template-columns:minmax(0,11em) minmax(0,1fr);gap:10px;align-items:baseline}
.tg-man-credits dt{margin:0;font:700 .8125rem/1.2 var(--t-display);letter-spacing:.08em;text-transform:uppercase;color:#8a5a00;text-align:right}
.tg-man-credits dd{margin:0;font-weight:700;font-size:.9375rem;line-height:1.3;color:#14110c}
@media (max-width:480px){.tg-man-credits>div{grid-template-columns:1fr;gap:0}.tg-man-credits dt{text-align:left}}
/* Review round 21: the finale's credits line reads on the dark end screen. */
.tg-screen .tg-credits{color:#cfd3da}
/* Review round 21: the city's popup sits in the upper middle (it fell to the foot of the screen, on the subtitle and the message lane). */
.tg-stage.tg-in-hub .tg-pops{top:24%;bottom:auto}
@media (max-width:560px){.tg-stage.tg-in-hub .tg-pops{top:42%;bottom:auto}}
/* Review round 21: the Garage button's New! badge rides on its corner like a sticker, so the cash tag fits inside the button. */
.tg-btn[data-tg-open-garage]{position:relative;overflow:visible;min-width:0}
.tg-btn[data-tg-open-garage]>.tg-new{position:absolute;top:-10px;right:8px;margin:0;z-index:1}
.tg-btn[data-tg-open-garage]>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Review round 23: the corner score ticker (small gains; the centre keeps hits, warnings and objectives). Review round 26:\n   below the combo pill (it sat on it at 1920 x 1080). */
.tg-ticker{position:absolute;right:14px;top:132px;margin:0;padding:2px 8px;border-radius:4px;background:rgba(6,7,12,.6);color:#ffc52f;font:800 .8125rem/1.2 var(--t-display);letter-spacing:.04em;pointer-events:none;white-space:nowrap}
.tg-ticker[hidden]{display:none}
.tg-tick-on{animation:tg-tick .9s ease-out}
@keyframes tg-tick{0%{opacity:0;transform:translateY(6px)}15%{opacity:1;transform:none}80%{opacity:1}100%{opacity:.7}}
.tg-in-hub .tg-ticker{top:auto;bottom:150px;right:14px}
@media (max-width:560px){.tg-ticker{top:110px;font-size:.6875rem}}
/* Review round 23: a daily race's rules are a plain list, not numbered parts. */
.tg-phases.tg-rules{list-style:disc}
/* Review round 23: the chapter list lines up in three columns: name, medal times, scoops (no ragged middle column). */
.tg-menu .tg-chapters .tg-btn{display:grid;grid-template-columns:minmax(0,1fr) 9.5em 7.5em;align-items:center;column-gap:10px}
.tg-menu .tg-chapters .tg-ch-medals{margin:0;text-align:left}
.tg-menu .tg-chapters .tg-ch-medals>span{display:block}
.tg-menu .tg-chapters .tg-btn-tag{justify-self:end;margin:0}
.tg-menu .tg-chapters .tg-btn>.tg-ch-name:only-of-type:nth-last-child(2){grid-column:1 / 3}
@media (max-width:480px){.tg-menu .tg-chapters .tg-btn{grid-template-columns:minmax(0,1fr) auto}.tg-menu .tg-chapters .tg-ch-medals{grid-column:1;grid-row:2}.tg-menu .tg-chapters .tg-btn-tag{grid-row:1 / 3;grid-column:2}}
/* Review round 23: on a short sideways phone a boss's title card is a compact strip at the foot, clear of the Mega-Tow meter and the truck. */
@container (max-height:440px) and (min-width:560px){.tg .tg-card.tg-card-high{top:auto;bottom:52px;max-width:min(56%,460px);padding:4px 12px 6px}.tg .tg-card.tg-card-high .tg-card-sub{display:none}}
/* Review round 24: the warning box is steady and solid (it blinked down to a third and could not be read); only its
   border and glow pulse. */
.tg .tg-warn{animation:none;opacity:1;background:#0d0e14;color:#ffd0d0;border:3px solid #ff3a4a;box-shadow:0 0 0 0 rgba(255,58,74,.0)}
.tg .tg-warn:not([hidden]){animation:tg-warn-pulse .45s ease-in-out infinite alternate}
@keyframes tg-warn-pulse{from{border-color:#ff3a4a;box-shadow:0 0 6px 1px rgba(255,58,74,.55)}to{border-color:#ffd25a;box-shadow:0 0 16px 4px rgba(255,58,74,.85)}}
@media (prefers-reduced-motion:reduce){.tg .tg-warn:not([hidden]){animation:none}}
/* Round 38: a race call eases back when a warning goes, and the warning stays on top of it. */
.tg-pops{transition:transform .12s ease-out}
.tg .tg-warn{z-index:4}
/* Round 39: an opening's word stays up for as long as it lasts, with no fade. */
.tg .tg-pop.tg-open{opacity:1;animation:none;color:#5bd68a}
/* (round 41b: touch screens see tap words, keyboards key words) */
.tg-tap{display:none}@media (pointer:coarse){.tg-kb,.tg-controls{display:none}.tg-tap{display:revert}}
/* radio update, 9 Nov: the record shop's song list and the hosts' credit line */
.tg-radio-shop-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:16px}
.tg-radio-shop-head strong{color:#ffd166}
.tg-radio-songs{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.tg-radio-song{display:flex;align-items:center;gap:8px;padding:4px 4px 4px 10px;border:2px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(0,0,0,.25);font-size:.875rem;text-align:left}
.tg-radio-song.tg-on{border-color:#7fffd4}
.tg-radio-song-name{flex:1;min-width:0}
.tg-radio-song-tag{font:700 .8125rem/1 var(--t-display);color:#ffd166;white-space:nowrap}
.tg-radio-song .tg-radio-chip{min-width:72px}
.tg-radio-chip.tg-radio-arm{border-color:#ffd166;color:#ffd166;max-width:9.5em}
.tg-radio-small,.tg-radio-credit{margin:8px 0 0;font-size:.75rem;line-height:1.3;color:var(--t-muted);text-align:left}

/* ---- phone pass (10 November 2026) ------------------------------------------------------------------------------------- */
/* The loading screen's progress bar (getaway-load.js fills it). */
.tg-load{width:min(86%,340px);margin:6px auto 0}
.tg-load-bar{display:block;height:12px;overflow:hidden;border:2px solid #f4f0e6;border-radius:8px;background:#1a1426}
.tg-load-fill{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--t-pink),var(--t-brand));transition:width .25s}
.tg-load-text{margin:6px 0 0;font-size:.8125rem;color:#e8e8f0}
/* A phone held upright: the stage takes up to the whole window's height (it used about 62% of it), never narrower than
   1:2; the camera keeps its side view and opens up instead (getaway.js). */
@media (max-width:719px) and (orientation:portrait){.tg-stage{aspect-ratio:1/2;max-height:calc(100vh - 12px);max-height:calc(100svh - 12px)}
  /* the start menu sits high in the taller stage, so its first buttons show above the fold on arrival */
  .tg-start::before{flex:0 0 0}}
/* No callout menu or image drag under a thumb on the stage (a long press steers). The page sets no viewport-fit=cover, so the
   browser itself keeps the game clear of a notch or home bar. */
.tg-stage canvas,.tg-stage button,.tg-stage img{-webkit-touch-callout:none}
.tg-stage img{-webkit-user-drag:none}
/* A new player's first drive on a touch screen: the two halves to hold, for three seconds (getaway-ui.js zonesHint). */
.tg-zones{position:absolute;left:8px;right:8px;top:40%;height:21%;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:10px;pointer-events:none}
.tg-zones[hidden]{display:none}
.tg-zones span{display:flex;align-items:center;justify-content:center;border:3px dashed rgba(255,255,255,.75);border-radius:14px;background:rgba(90,216,255,.16);color:#fff;font:900 1.05rem/1.15 var(--t-display);letter-spacing:.04em;text-align:center;text-transform:uppercase;text-shadow:0 2px 0 #000;animation:tg-zones 1s ease-in-out infinite alternate}
@keyframes tg-zones{from{background:rgba(90,216,255,.08)}to{background:rgba(90,216,255,.26)}}
@media (prefers-reduced-motion:reduce){.tg-zones span{animation:none}}
/* Phones: the small text buttons on result screens are full 44 px touch targets; the results' Play again stays in reach. */
@media (pointer:coarse){.tg-stage .tg-link-btn{min-height:44px}}
@media (max-width:719px) and (orientation:portrait){
  [data-tg-screen="over"] .tg-actions{position:sticky;bottom:-20px;z-index:2;width:100%;padding:10px 0 12px;background:linear-gradient(180deg,rgba(6,7,12,0),rgba(6,7,12,.94) 28%)}
  .tg .tg-stage .tg-tip,.tg .tg-stage .tg-tip.tg-tip-edge{top:40%;bottom:auto}
}/* Phone pass review: in the city the steering halves sit below the tip; the manual's buttons are full touch targets; on the
   results and retry screens the Scroll cue sits at the top, clear of every button. */
.tg-in-hub .tg-zones{top:53%}
.tg .tg-manual .tg-btn-small{min-height:44px}
.tg-stage:has([data-tg-screen="over"].tg-scrolls:not([hidden])) .tg-scroll-cue,.tg-stage:has([data-tg-screen="retry"].tg-scrolls:not([hidden])) .tg-scroll-cue{top:8px;bottom:auto;left:50%;right:auto;transform:translateX(-50%)}
[data-tg-screen="over"].tg-scrolls,[data-tg-screen="retry"].tg-scrolls{padding-top:44px}
/* Recheck: the manual's page dots only show where you are (Back and Next turn the pages; a mouse may still click one). */
.tg-man-dot{display:inline-block;box-sizing:border-box}
@media (pointer:coarse){.tg-man-dot{pointer-events:none;cursor:default}}
