/* AMMO Studio (3D). Mobile first: designed at 390 x 844, then widened. */
:root {
  --ink: #0b0b0b; --red: #e11e23; --white: #f4f4f4; --mute: rgba(255,255,255,.58); --faint: rgba(255,255,255,.12);
  --glass: rgba(16,16,16,.68); --glass-strong: rgba(14,14,14,.86); --line: rgba(255,255,255,.09);
  --ease: cubic-bezier(.22,.8,.22,1);
  --cond: "HelveticaNeue-CondensedBold", "Helvetica Neue Condensed", "Arial Narrow", "sans-serif-condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(130% 70% at 50% 46%, #151516 0%, #0e0e0f 45%, #090909 75%);
  color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen > * { pointer-events: none; }
.screen button, .screen a, .screen .jobs, .screen .action, .screen .map-sheet, .screen .decide, .screen [data-live] { pointer-events: auto; }

/* Bars */
.bar { display: flex; align-items: center; gap: 10px; padding: calc(var(--st) + 12px) calc(var(--sr) + 16px) 8px calc(var(--sl) + 16px); touch-action: none; }
.spacer { flex: 1; }
.wordmark { width: 76px; height: 18px; color: #fff; display: block; }
.wordmark.big { width: 132px; height: 30px; }
.bar-sub { font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-top: 2px; }
.bar-title { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.muted .wave { opacity: .15; }
.chip-btn { height: 36px; padding: 0 15px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.eyebrow { font: 700 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }

/* Buttons */
.btn { height: 54px; border-radius: 16px; font: 700 15px/1 var(--sans); letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; transition: transform .15s var(--ease), background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(225,30,35,.7); }
.btn.primary:disabled { background: #3a3a3a; box-shadow: none; color: #999; }
.btn.ghost { background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.link { font-size: 12px; color: var(--mute); text-decoration: none; letter-spacing: .04em; }

/* Home */
.home-hero { padding: 6px 20px 0; }
.home-hero h1 { font: 800 clamp(38px, 11vw, 64px)/.9 var(--cond); font-stretch: condensed; text-transform: uppercase; letter-spacing: -.01em; margin: 10px 0 10px; }
.home-hero p { font-size: 14px; line-height: 1.45; color: var(--mute); max-width: 290px; margin: 0; }
.home-foot { margin-top: auto; padding-bottom: calc(var(--sb) + 14px); }
.jobs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jobs::-webkit-scrollbar { display: none; }
.job { flex: 0 0 78%; max-width: 330px; scroll-snap-align: center; border-radius: 22px; padding: 16px 18px 15px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-align: left; transition: border-color .25s, transform .3s var(--ease), opacity .3s; min-height: 126px; display: flex; flex-direction: column; }
.job.active { border-color: rgba(255,255,255,.26); }
.job:not(.active) { opacity: .78; transform: scale(.97); }
.job-top { display: flex; justify-content: space-between; align-items: center; }
.job-n { font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.job h3 { font: 700 20px/1.15 var(--sans); letter-spacing: -.01em; margin: 10px 0 8px; }
.job .meta { font-size: 12px; color: var(--mute); line-height: 1.4; margin-top: auto; }
.job .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pill { font: 700 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.08); color: #ddd; }
.pill.red { background: rgba(225,30,35,.18); color: #ff8b8e; }
.job.locked h3, .job.locked .pills, .job.locked .meta { opacity: .45; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mute); }
.lock svg { width: 12px; height: 12px; }
.mini-stars { display: flex; gap: 2px; }
.mini-stars svg { width: 13px; height: 13px; color: rgba(255,255,255,.18); }
.mini-stars svg.on { color: var(--red); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 16px; background: #fff; }
#btn-start { display: flex; width: calc(100% - 40px); margin: 0 20px; }
.home-links { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; color: var(--mute); font-size: 12px; }

/* Chapter map (home): a sheet of kits under the live car */
.map-sheet { margin-top: auto; width: 100%; max-width: 560px; align-self: center; background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 18px 16px calc(var(--sb) + 14px); max-height: 68vh; overflow-y: auto; scrollbar-width: none; animation: rise .5s var(--ease); }
.map-sheet::-webkit-scrollbar { display: none; }
.map-sheet .eyebrow { padding: 0 4px; }
.map-sheet h2 { font: 800 30px/.95 var(--cond); font-stretch: condensed; text-transform: uppercase; margin: 8px 4px 8px; }
.map-lede { font-size: 13.5px; line-height: 1.45; color: var(--mute); margin: 0 4px 14px; max-width: 340px; }
.chapters { display: flex; flex-direction: column; gap: 8px; }
.cars { display: flex; gap: 8px; margin: 0 0 10px; }
.car-chip { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 14px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left; padding: 8px 12px 8px 11px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.car-chip i { grid-row: 1 / span 2; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 0 4px rgba(255,255,255,.25); }
.car-chip b { font: 700 13px/1.2 var(--sans); }
.car-chip small { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-chip.on { border-color: var(--red); background: rgba(225,30,35,.12); }
.chap { display: grid; grid-template-columns: 22px 46px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 9px 12px 9px 10px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: transform .15s var(--ease), background .2s; }
.chap:active { transform: scale(.985); }
.chap-n { font: 700 11px/1 var(--sans); letter-spacing: .12em; color: var(--red); }
.chap-img { width: 46px; height: 46px; border-radius: 12px; background: #f3f3f3; overflow: hidden; display: grid; place-items: center; }
.chap-img img { width: 100%; height: 100%; object-fit: contain; }
.chap.grad .chap-img { background: #1a1a1b; }
.chap-img svg { width: 22px; height: 22px; color: var(--red); }
.chap-copy { min-width: 0; }
.chap-copy b { display: block; font: 700 16px/1.15 var(--sans); }
.chap-copy small { display: block; font-size: 12px; color: var(--mute); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chap-tag { font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.08); color: var(--mute); white-space: nowrap; }
.chap-tag.on { background: var(--red); color: #fff; }
.chap.locked .chap-copy, .chap.locked .chap-img { opacity: .5; }

/* Sheets */
.sheet-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet { pointer-events: auto; width: 100%; max-width: 560px; background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 20px calc(var(--sb) + 18px); max-height: 74vh; overflow-y: auto; animation: rise .5s var(--ease); scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); margin: 0 auto 16px; }
.sheet h2 { font: 800 32px/.95 var(--cond); font-stretch: condensed; text-transform: uppercase; margin: 8px 0 10px; }
.brief-text { font-size: 15px; line-height: 1.5; color: #d9d9d9; margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sys-head { display: flex; justify-content: space-between; align-items: baseline; font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 22px 0 12px; }
.sys-head span:last-child { letter-spacing: .02em; text-transform: none; font-weight: 600; color: #fff; }
.system { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.system::-webkit-scrollbar { display: none; }
.sys-item { flex: 0 0 86px; }
.sys-item img { width: 86px; height: 86px; border-radius: 16px; background: #f3f3f3; object-fit: contain; display: block; }
.sys-item b { display: block; font-size: 11px; line-height: 1.25; margin-top: 7px; font-weight: 600; }
.sys-item small { font-size: 11px; color: var(--mute); }
.verbatim { font-size: 13px; line-height: 1.45; color: #cfcfcf; border-left: 2px solid var(--red); padding-left: 12px; margin: 18px 0 0; }
.row { display: flex; gap: 10px; margin-top: 18px; }
.row .btn { flex: 1; }

/* Bay HUD */
.bay-bar { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; }
.bay-right { display: flex; gap: 8px; }
.steps { min-width: 0; }
.step-label { display: flex; justify-content: space-between; font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.step-label #step-count { color: var(--mute); letter-spacing: .08em; }
.segments { display: flex; gap: 4px; margin-top: 9px; }
.seg { height: 3px; flex: 1; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.seg i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.seg.cur i { background: var(--red); }
.seg.done i { transform: none; }

.action { position: absolute; left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 12px); touch-action: none; margin: 0 auto; max-width: 520px; display: grid; grid-template-columns: 58px 1fr 50px; gap: 12px; align-items: center; padding: 11px 12px 11px 11px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transition: transform .45s var(--ease), opacity .3s; }
.action.moving { opacity: .75; }
.action.away { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* A question in the bay: the choice moment, the lock-in after the first wheel */
.decide { position: absolute; left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 12px); margin: 0 auto; max-width: 520px; padding: 16px 16px 14px; border-radius: 24px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); animation: rise .45s var(--ease); }
.decide h3 { font: 700 19px/1.25 var(--sans); margin: 8px 0 12px; }
.dec-btns { display: flex; flex-direction: column; gap: 8px; }
.dec-btns .btn { width: 100%; height: 50px; }
.checks { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.checks li { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.3; }
.checks li small { margin-left: auto; font-size: 11px; color: var(--mute); }
.checks svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; }
.checks li.ok svg { background: rgba(70,200,120,.18); color: #6fe09b; }
.checks li.no svg { background: rgba(225,30,35,.18); color: #ff8b8e; }
#rev-checks { margin: 14px 0 0; }

/* Crud still to agitate: a ring that fills as it comes loose */
.crud { position: absolute; inset: 0; pointer-events: none; }
.crud i { position: absolute; left: 0; top: 0; border-radius: 50%; border: 2.5px solid rgba(255,196,84,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 14px rgba(255,180,60,.55), inset 0 0 10px rgba(255,180,60,.35);
  background: conic-gradient(rgba(255,214,120,.55) var(--p, 0%), transparent 0); animation: crud 1.2s ease-in-out infinite; }
@keyframes crud { 50% { opacity: .6; } }
/* Dev ortho overlay (?dev=1&ortho=side): only the canvas and the reference drawing. */
body.ortho > :not(#stage):not(#ortho-ref) { visibility: hidden; }
#ortho-ref { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .5; pointer-events: none; z-index: 50; }
/* In the bay the HUD sits over a canvas that changes every frame: solid panels, no blur to recompute under them. */
body.live .action, body.live .decide, body.live .larry, body.live .icon-btn, body.live .chip-btn, body.live .sheet { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14,14,15,.9); }
.action.flash { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.02); } }
.prod { width: 58px; height: 58px; border-radius: 15px; background: #f3f3f3; overflow: hidden; display: grid; place-items: center; }
.prod img { width: 100%; height: 100%; object-fit: contain; }
.prod.icon { background: #1d2a33; }
.prod.icon svg { width: 28px; height: 28px; color: #9fd3ff; }
.act-copy { min-width: 0; }
.act-eyebrow { font: 700 10px/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--red); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-title { font: 600 15.5px/1.25 var(--sans); margin-top: 4px; }
.act-how { display: flex; align-items: center; gap: 6px; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 7px; }
.act-how i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; position: relative; }
.act-how i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.ring { position: relative; width: 50px; height: 50px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 3.2; }
.ring circle.fill { stroke: #fff; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .25s linear, stroke .3s; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--sans); }
.ring.done circle.fill { stroke: var(--red); }
.ring.next { cursor: pointer; border-radius: 50%; background: var(--red); }
/* The halo breathes on a pseudo-element with transform and opacity only: no box-shadow repaints over the live canvas. */
.ring.next::after, .tap-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 6px solid rgba(225,30,35,.18); pointer-events: none; animation: breathe 1.6s ease-in-out infinite; }
.ring.next circle { stroke: rgba(255,255,255,.25); }
.ring.next circle.fill { stroke: #fff; }
.ring.next span { font-size: 11.5px; letter-spacing: .02em; }
.tap-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--red); font: 800 12px/1.1 var(--sans); letter-spacing: .04em; }
.tap-btn:active { transform: scale(.92); }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .45; } }

.larry { position: absolute; left: calc(var(--sl) + 16px); right: calc(var(--sr) + 16px); bottom: calc(var(--sb) + 24px + var(--card-h, 84px)); margin: 0 auto; max-width: 500px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.larry.show { opacity: 1; transform: none; }
.larry b { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }

.cursor { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.25), inset 0 0 18px rgba(255,255,255,.12); transform: translate(-50%, -50%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.cursor.on { opacity: 1; }
.cursor.hold { border-style: dashed; }
.cursor span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); font: 700 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.coach { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.coach i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.85); animation: rub 1.5s ease-in-out infinite; }
.coach.hold i { animation: press 1.4s ease-in-out infinite; }
.coach.fast i { animation: scrub .42s ease-in-out infinite; }
.coach.spin i { animation: spin-gesture 1s linear infinite; }
@keyframes spin-gesture { from { transform: rotate(0deg) translateX(14px); } to { transform: rotate(360deg) translateX(14px); } }
@keyframes scrub { 0%, 100% { transform: translateX(-16px); } 50% { transform: translateX(16px); } }
.coach.pinch i { width: 30px; height: 30px; animation: pinch 1.5s ease-in-out infinite; box-shadow: 46px 0 0 -2px rgba(255,255,255,.22); }
@keyframes pinch { 0%, 100% { transform: translateX(-18px); } 50% { transform: translateX(-36px); } }
.coach span { font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 7px 11px; border-radius: 10px; background: rgba(0,0,0,.55); }
@keyframes rub { 0%, 100% { transform: translateX(-42px); } 50% { transform: translateX(42px); } }
@keyframes press { 0%, 100% { transform: scale(1); } 50% { transform: scale(.78); background: rgba(255,255,255,.4); } }

.fault { position: absolute; left: 50%; top: calc(var(--st) + 74px); transform: translate(-50%, -6px); max-width: calc(100% - 40px); padding: 9px 14px; border-radius: 12px; background: rgba(120,10,14,.86); border: 1px solid rgba(255,90,90,.35); font-size: 13px; line-height: 1.35; text-align: center; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.fault.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal .sheet { max-height: 64vh; }
.stars { display: flex; gap: 6px; margin: 14px 0 6px; }
.stars svg { width: 34px; height: 34px; color: rgba(255,255,255,.14); transform: scale(.6); opacity: 0; animation: star .5s var(--ease) forwards; }
.stars svg.on { color: var(--red); }
@keyframes star { to { transform: none; opacity: 1; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.stat { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.stat b { display: block; font: 700 19px/1 var(--sans); }
.stat small { display: block; font: 700 9.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
.quote { margin: 16px 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--red); font-size: 15px; line-height: 1.45; }
.quote small { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-top: 8px; }
.btn.hold { width: 100%; height: 46px; font-size: 13px; letter-spacing: .06em; touch-action: none; -webkit-touch-callout: none; }
.btn.hold.pressed { background: rgba(255,255,255,.18); }
.shop-list { display: flex; flex-direction: column; }
.shop-row { display: grid; grid-template-columns: 50px 1fr auto 20px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.shop-row img { width: 50px; height: 50px; border-radius: 12px; background: #f3f3f3; object-fit: contain; }
.shop-row b { font-size: 14px; font-weight: 600; }
.shop-row small { display: block; font-size: 11px; color: var(--mute); margin-top: 3px; }
.shop-row em { font-style: normal; font-size: 14px; }
.shop-row svg { width: 16px; height: 16px; color: var(--mute); }
.shop-row.kit b { color: #fff; }
.shop-row.kit em { color: var(--red); font-weight: 700; }
.shop-row.did small { line-height: 1.35; }

/* Overlays */
.overlay { position: absolute; inset: 0; background: rgba(9,9,9,.96); overflow-y: auto; pointer-events: auto; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.overlay-note { font-size: 13px; line-height: 1.5; color: var(--mute); padding: 4px 20px 0; margin: 0; }
.shelf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 16px calc(var(--sb) + 24px); }
.shelf-card { background: #151515; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.shelf-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f3f3f3; display: block; }
.shelf-card div { padding: 10px 12px 12px; }
.shelf-card b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.shelf-card small { font-size: 12px; color: var(--mute); }
.credits { padding: 8px 20px calc(var(--sb) + 30px); font-size: 14px; line-height: 1.55; color: #d6d6d6; max-width: 620px; }

/* Title (loading) and toast */
.loading { position: absolute; inset: 0; background: #0a0a0a; transition: opacity .9s var(--ease); pointer-events: auto; overflow: hidden; }
.loading.gone { opacity: 0; pointer-events: none; }
.title-photo { position: absolute; left: 50%; top: 42%; width: min(102%, 640px); transform: translate(-50%, -50%); display: block;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
  animation: title-in 1.6s var(--ease) both; }
@keyframes title-in { from { opacity: 0; transform: translate(-50%, -48%) scale(1.03); } }
.title-top { position: absolute; top: calc(var(--st) + 18px); left: calc(var(--sl) + 20px); display: flex; align-items: center; gap: 10px; }
.title-copy { position: absolute; left: calc(var(--sl) + 20px); right: calc(var(--sr) + 20px); bottom: calc(var(--sb) + 26px); display: flex; flex-direction: column; }
.title-copy h1 { font: 800 clamp(40px, 12vw, 72px)/.9 var(--cond); font-stretch: condensed; text-transform: uppercase; margin: 10px 0 22px; }
.title-copy .btn { width: 100%; max-width: 420px; }
.load-wrap { display: flex; flex-direction: column; gap: 12px; min-height: 54px; justify-content: center; }
.load-bar { width: 140px; height: 2px; background: rgba(255,255,255,.12); border-radius: 1px; overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.load-text { font: 700 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.toast { position: absolute; left: 50%; top: calc(var(--st) + 70px); transform: translate(-50%, -8px); padding: 10px 16px; border-radius: 12px; background: #fff; color: #111; font: 700 12px/1.3 var(--sans); opacity: 0; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Wider screens and phones on their side */
@media (min-width: 760px) {
  .home-hero { padding: 18px 40px 0; }
  .home-hero h1 { font-size: 72px; }
  .jobs { padding: 4px max(40px, calc(50vw - 520px)) 8px; }
  .job { flex-basis: 300px; }
  #btn-start { width: 320px; margin: 0 auto; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .title-photo { left: 34%; top: 50%; width: min(64vw, 620px); }
  .title-copy { left: auto; width: min(360px, 42vw); }
  .title-copy h1 { font-size: 40px; margin-bottom: 14px; }
  /* The board and its text take a left column; the camera moves the car into the right. */
  #home { right: auto; width: calc(min(400px, 50vw) + var(--sl)); padding-left: var(--sl); }
  .home-hero h1 { font-size: 34px; margin: 6px 0; }
  .home-hero p { display: none; }
  .jobs { padding: 4px 16px 6px; }
  .job { flex-basis: 88%; min-height: 0; padding: 12px 14px; }
  .job h3 { font-size: 16px; margin: 6px 0; }
  .job .meta { display: none; }
  .dots { display: none; }
  #btn-start { width: calc(100% - 32px); height: 46px; margin: 4px 16px 0; }
  .home-links { margin-top: 8px; }
  .action, .decide { left: calc(var(--sl) + 16px); right: auto; width: 400px; margin: 0; }
  #map { right: auto; width: calc(min(420px, 52vw) + var(--sl)); padding-left: var(--sl); }
  .map-sheet { max-height: 100%; border-radius: 0 24px 0 0; }
  .map-lede { display: none; }
  .larry { left: calc(var(--sl) + 16px); right: auto; width: 400px; margin: 0; }
  .sheet { max-width: 520px; max-height: 88vh; border-radius: 24px; margin: 0 calc(var(--sr) + 16px) 12px auto; }
  .sheet-wrap { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .coach i, .tap-btn::after, .ring.next::after { animation: none; }
}
