@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #16171b;
  --panel: rgba(22, 23, 27, 0.82);
  --text: #f4f1ea;
  --muted: #a9a59b;
  --yellow: #ffcc29;
  --green: #1fa463;
  --red: #ff4d4d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
canvas { display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; }
.hidden { display: none !important; }

#hud {
  position: fixed; top: calc(10px + var(--safe-area-inset-top, env(safe-area-inset-top))); left: calc(10px + var(--safe-area-inset-left, env(safe-area-inset-left)));
  display: flex; gap: 6px; pointer-events: none;
}
.stat {
  background: var(--panel); border-radius: 10px; padding: 5px 10px; min-width: 62px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.stat .lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat span:last-child { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat.cash span:last-child { color: var(--yellow); }
.stat.low span:last-child { color: var(--red); }

#riders {
  position: fixed; top: calc(62px + var(--safe-area-inset-top, env(safe-area-inset-top))); left: calc(10px + var(--safe-area-inset-left, env(safe-area-inset-left)));
  display: flex; flex-wrap: wrap; gap: 5px; max-width: 60vw; pointer-events: none;
}
.chip {
  background: var(--panel); border: 2px solid; border-radius: 999px; padding: 2px 9px 2px 6px;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 4px;
}

#hoot {
  position: fixed; right: calc(18px + var(--safe-area-inset-right, env(safe-area-inset-right))); bottom: calc(22px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom)));
  width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff3; background: var(--yellow);
  color: #1b1b1b; font-size: 30px; font-weight: 900; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; box-shadow: 0 6px 0 #b38a00, 0 10px 24px #0008;
  touch-action: none; cursor: pointer;
}
#hoot span { font-size: 12px; letter-spacing: .1em; margin-top: 3px; }
#hoot.cool { filter: grayscale(.7) brightness(.75); }
#hoot.press { transform: translateY(4px); box-shadow: 0 2px 0 #b38a00, 0 6px 16px #0008; }

.screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #16171b88, #16171bee); padding: 16px; overflow-y: auto;
}
.card {
  width: 100%; max-width: 420px; background: #1e2026; border-radius: 22px; padding: 24px 22px;
  box-shadow: 0 20px 60px #000a; text-align: center; border: 1px solid #ffffff14;
}
.logo {
  font-family: "Lilita One", "Arial Black", Impact, system-ui, sans-serif; font-size: 52px; line-height: .95;
  color: var(--yellow); letter-spacing: -1px; text-shadow: 0 4px 0 #b38a00;
}
.logo span { display: block; color: #fff; text-shadow: 0 4px 0 var(--green); }
.logo.small { font-size: 34px; }
.tag { color: var(--muted); margin: 10px 0 16px; font-size: 14px; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.legend div {
  border: 2px solid; border-radius: 12px; padding: 6px 4px; font-size: 12px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px; background: #ffffff08;
}
.legend div b { font-size: 22px; }
.how { text-align: left; margin: 0 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.5; color: #d9d5cc; }
.play {
  width: 100%; border: 0; border-radius: 14px; padding: 15px; font-size: 19px; font-weight: 900;
  background: var(--green); color: #fff; box-shadow: 0 5px 0 #13703f; cursor: pointer; letter-spacing: .02em;
}
.play:active { transform: translateY(3px); box-shadow: 0 2px 0 #13703f; }
.best { color: var(--muted); font-size: 13px; margin: 12px 0 0; min-height: 1em; }
.stars { font-size: 40px; margin: 10px 0 2px; letter-spacing: 6px; }
.earn { font-size: 46px; font-weight: 900; color: var(--yellow); }
.rows { margin: 12px 0 6px; font-size: 15px; }
.rows div { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid #ffffff12; }
.rows div span:last-child { font-weight: 800; }

/* ---------- Round 2 additions ---------- */
#hud { flex-wrap: wrap; max-width: calc(100vw - 150px); }
.stat.warn span:last-child { color: var(--red); }
.stat.combo { position: relative; overflow: hidden; }
.stat.combo span:last-child { color: #ff8ad8; }
.stat.combo i { position: absolute; left: 0; bottom: 0; height: 3px; background: #ff8ad8; width: 100%; }
#riders { top: auto; bottom: calc(126px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); right: calc(10px + var(--safe-area-inset-right, env(safe-area-inset-right))); left: auto; max-width: 45vw; justify-content: flex-end; }

#banner {
  position: fixed; left: 50%; top: calc(72px + var(--safe-area-inset-top, env(safe-area-inset-top))); transform: translateX(-50%);
  background: linear-gradient(90deg, #ff3e3e, #ff8a00); color: #fff; font-weight: 900; font-size: 15px;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 20px #0007; animation: pop .35s ease-out;
}
#hint {
  position: fixed; left: 50%; bottom: calc(130px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); transform: translateX(-50%);
  width: min(86vw, 380px); background: #000c; border: 2px solid var(--yellow); color: #fff;
  border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 700; text-align: center;
  pointer-events: none; animation: pop .35s ease-out;
}
@keyframes pop { from { transform: translateX(-50%) scale(.85); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

#sidebtns { position: fixed; right: calc(12px + var(--safe-area-inset-right, env(safe-area-inset-right))); top: calc(142px + var(--safe-area-inset-top, env(safe-area-inset-top))); display: flex; flex-direction: column; gap: 8px; }
#sidebtns button {
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--panel); color: #fff; font-size: 18px; cursor: pointer;
}

.ghost {
  width: 100%; margin-top: 10px; border: 2px solid #ffffff26; border-radius: 14px; padding: 12px; font-size: 16px;
  font-weight: 800; background: transparent; color: var(--text); cursor: pointer;
}
.ghost:active { background: #ffffff10; }
.bankTag { color: var(--yellow); }
.screen .card .play + .ghost { margin-top: 12px; }
#pause .play { margin-top: 18px; }

#gPreview { width: 240px; height: 100px; display: block; margin: 6px auto 2px; }
.bank { font-size: 22px; font-weight: 900; color: var(--yellow); margin-bottom: 10px; }
.up { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #ffffff12; text-align: left; }
.up .ic { font-size: 24px; width: 32px; text-align: center; }
.up .nm { flex: 1; }
.up .nm b { display: block; font-size: 15px; }
.up .nm small { color: var(--muted); font-size: 12px; }
.pips { display: flex; gap: 3px; margin-top: 4px; }
.pips i { width: 16px; height: 5px; border-radius: 3px; background: #ffffff22; }
.pips i.on { background: var(--green); }
.buy {
  border: 0; border-radius: 10px; padding: 8px 12px; min-width: 76px; font-weight: 900; font-size: 14px;
  background: var(--yellow); color: #1b1b1b; cursor: pointer;
}
.buy:disabled { background: #ffffff1a; color: var(--muted); cursor: default; }
.card h4 { margin: 16px 0 8px; text-align: left; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.paints { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.paint {
  border: 2px solid #ffffff1f; border-radius: 12px; padding: 8px; background: #ffffff08; color: var(--text);
  font-weight: 800; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.paint.sel { border-color: var(--green); }
.paint .sw { width: 100%; height: 20px; border-radius: 6px; }
.paint small { color: var(--muted); font-weight: 700; }
.paint.sel small { color: var(--green); }
@media (max-width: 480px) {
  .stat { min-width: 0; padding: 4px 8px; }
  .stat span:last-child { font-size: 16px; }
  #banner { top: calc(150px + var(--safe-area-inset-top, env(safe-area-inset-top))); font-size: 13px; }
}

/* ---------- Round 3: career ---------- */
#goal {
  flex-basis: 100%; background: var(--panel); border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 700;
  border-left: 4px solid var(--yellow);
}
#goal.done { border-left-color: var(--green); }
.card.wide { max-width: 480px; }
.kicker { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.cityNav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cityHead { flex: 1; }
.cityHead small { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
#cityName { font-family: "Lilita One", "Arial Black", Impact, system-ui, sans-serif; font-size: 28px; line-height: 1.1; }
.navBtn {
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid #ffffff22; background: transparent; color: #fff;
  font-size: 26px; font-weight: 900; cursor: pointer; line-height: 1;
}
.navBtn:disabled { opacity: .25; cursor: default; }
.cityBand { border-radius: 14px; padding: 12px 14px; text-align: left; margin-bottom: 12px; color: #111; }
.cityBand b { display: block; font-size: 15px; }
.cityBand p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.cityStars { font-weight: 900; margin-top: 6px; font-size: 13px; }
.locked { padding: 26px 12px; border: 2px dashed #ffffff26; border-radius: 14px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.locked div { font-size: 36px; margin-bottom: 6px; }
.shiftGrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 12px; }
.shift {
  aspect-ratio: 1; border-radius: 12px; border: 2px solid #ffffff22; background: #ffffff0a; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 0;
}
.shift b { font-size: 20px; }
.shift small { font-size: 10px; color: var(--yellow); letter-spacing: 1px; }
.shift.boss { border-color: var(--yellow); }
.shift.next { border-color: var(--green); box-shadow: 0 0 0 3px #1fa46333; }
.shift:disabled { opacity: .35; cursor: default; }
.goalBox {
  background: #ffffff0d; border-radius: 12px; padding: 10px 12px; margin: 12px 0 8px; font-weight: 800; font-size: 15px;
}
.goalBox.ok { color: #7CFC8A; } .goalBox.bad { color: #ff8b8b; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 8px; }
.chips span { background: #ffffff10; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.chips span.rule { background: #ff4d4d26; color: #ffb3b3; }
.targets { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.targets b { color: var(--yellow); }
.reason { color: var(--muted); margin: 6px 0 0; font-size: 14px; min-height: 1em; }
.unlock { background: linear-gradient(90deg, #1fa463, #2ec4b6); color: #fff; border-radius: 12px; padding: 10px; font-weight: 900; margin: 10px 0; }

/* ---------- Round 4: route map + specials ---------- */
#routeMap { width: 100%; height: 200px; display: block; border-radius: 16px; margin: 8px 0 10px; touch-action: none; cursor: pointer; }
.mapMsg { background: #ff4d4d22; color: #ffb3b3; border: 1px solid #ff4d4d55; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.cityHead { margin-bottom: 10px; }
.missions { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.mission {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 10px; border-radius: 12px;
  border: 2px solid #ffcc2955; background: linear-gradient(90deg, #ffcc2914, #ffffff05); color: var(--text); cursor: pointer;
}
.mission .ic { font-size: 26px; width: 34px; text-align: center; }
.mission .nm { flex: 1; min-width: 0; }
.mission .nm b { display: block; font-size: 14px; }
.mission .nm small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission .ms { text-align: right; font-size: 11px; color: var(--yellow); font-weight: 800; white-space: nowrap; }

/* ---------- Round 5: shop ---------- */
.screen.overlay { z-index: 50; background: #000b; }
.offerIcon { font-size: 64px; line-height: 1; margin-bottom: 6px; }
.note { color: var(--muted); font-size: 12px; margin: 8px 0 14px; }
.linkBtn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; margin: 8px 0 14px; cursor: pointer; }
#toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); transform: translateX(-50%); z-index: 60;
  background: #111d; border: 1px solid #ffffff26; color: #fff; font-weight: 800; font-size: 14px;
  padding: 10px 16px; border-radius: 12px; max-width: 90vw; text-align: center; pointer-events: none;
}

/* ---------- Round 6: ads ---------- */
.adBtn {
  border: 0; border-radius: 12px; padding: 11px 14px; font-weight: 900; font-size: 15px; cursor: pointer;
  background: linear-gradient(90deg, #ffcc29, #ff9f1c); color: #1b1b1b; box-shadow: 0 4px 0 #b36b00;
}
.adBtn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b36b00; }
#doubleBtn { width: 100%; margin: 8px 0 4px; }
#adNow {
  position: fixed; left: calc(14px + var(--safe-area-inset-left, env(safe-area-inset-left)));
  bottom: calc(30px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); z-index: 5; max-width: 55vw;
}

/* ---------- Round 7: gates + daily ---------- */
.gateNote { color: var(--muted); font-size: 12px; margin: -4px 0 12px; text-align: left; }
.gateNote b { color: var(--yellow); }
.ghost.daily { border-color: #ffcc2966; }
#dailyTag { color: var(--yellow); }

/* ---------- Round 8: HUD layout, tappable chips, locked challenges ---------- */
#hint { bottom: auto; top: 120px; }
#riders { pointer-events: none; }
#riders .chip { pointer-events: auto; cursor: pointer; }
#riders .chip:active { transform: scale(.94); }
#hoot { width: 84px; height: 84px; }
.mission.lockedM { border-style: dashed; }
.mission:disabled { opacity: .45; cursor: default; }
#banner, #hint { animation: fadein .3s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Round 9: music ---------- */
#radio {
  position: fixed; left: calc(10px + var(--safe-area-inset-left, env(safe-area-inset-left)));
  bottom: calc(14px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); z-index: 4;
  max-width: calc(100vw - 130px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--panel); color: #fff; border: 1px solid #ffffff2a; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
#radio.flash { animation: radioFlash 1.6s ease-out; }
@keyframes radioFlash { 0% { border-color: var(--yellow); box-shadow: 0 0 0 3px #ffcc2955; } 100% { border-color: #ffffff2a; box-shadow: none; } }
#adNow { bottom: calc(58px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); }
.credits { text-align: left; margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.credits summary { cursor: pointer; font-weight: 800; }
.credits div { padding: 3px 0; }
.credits b { color: var(--text); }

/* ---------- Round 10 ---------- */
/* screens: scroll from the top (below the status bar) when content is taller than the phone */
.screen { align-items: flex-start; padding: calc(16px + var(--safe-area-inset-top, env(safe-area-inset-top))) 16px calc(16px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); }
.screen > .card { margin: auto; }

/* timer bottom-left above the radio; big pulsing final countdown */
#timer {
  position: fixed; left: calc(10px + var(--safe-area-inset-left, env(safe-area-inset-left)));
  bottom: calc(52px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); z-index: 4;
  background: var(--panel); border-radius: 14px; padding: 6px 14px; font-size: 26px; font-weight: 900;
  font-variant-numeric: tabular-nums; pointer-events: none; border: 2px solid #ffffff22;
}
#timer.low { color: var(--red); border-color: var(--red); animation: timerPulse 1s infinite; }
@keyframes timerPulse { 50% { transform: scale(1.08); } }
#adNow { bottom: calc(108px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); }
#countdown {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif; font-size: 140px; line-height: 1; color: #ff4d4d;
  text-shadow: 0 6px 0 #7a0000, 0 0 40px #ff4d4daa; opacity: .85;
}
#countdown.beat { animation: beat 1s ease-out; }
@keyframes beat { 0% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(.85); opacity: .35; } }
.stat.starsBox span:last-child { color: var(--yellow); letter-spacing: 1px; }

/* centre announcements that shrink away to the top */
#announce {
  position: fixed; left: 50%; top: 36%; z-index: 7; pointer-events: none; text-align: center; white-space: pre-line;
  transform: translate(-50%, -50%); max-width: 86vw; padding: 12px 20px; border-radius: 18px;
  background: #000000c4; border: 2px solid #ffffff30; font-size: 22px; font-weight: 900; line-height: 1.25;
  box-shadow: 0 10px 30px #0009; opacity: 0;
}
#announce.go { animation: announceIn 2.3s ease-in-out forwards; }
@keyframes announceIn {
  0%   { transform: translate(-50%, -50%) scale(.5); opacity: 0; }
  10%  { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  18%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  70%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -32vh) scale(.45); opacity: 0; }
}

/* garage tabs + items */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px;
  border: 2px solid #ffffff1f; border-radius: 12px; background: #ffffff08; color: var(--text); padding: 6px 8px;
  font-size: 18px; cursor: pointer;
}
.tab span { font-size: 11px; font-weight: 800; }
.tab.on { border-color: var(--yellow); background: #ffcc2914; }
.item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #ffffff12; text-align: left; }
.item.sel .nm b { color: var(--green); }
.item .ic { font-size: 22px; width: 44px; text-align: center; }
.item .sw { width: 44px; height: 26px; border-radius: 6px; flex: 0 0 auto; }
.item .sw.glow { box-shadow: 0 0 12px currentColor; }
.item .nm { flex: 1; }
.item .nm b { display: block; font-size: 15px; }
.item .nm small { color: var(--muted); font-size: 12px; }
.buy.owned { background: #1fa46333; color: #7CFC8A; }
.buy.equip { background: #ffffff22; color: #fff; }
.buy.locked { background: #ffffff10; color: var(--muted); font-size: 11px; }
#gItems { margin-bottom: 14px; }
#hud { align-items: flex-start; }
.stat span:last-child { line-height: 1.15; }
.stat.starsBox span:last-child { font-size: 16px; padding-top: 2px; }

/* ---------- Round 11: dashboard clock ---------- */
#timer {
  display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: linear-gradient(180deg, #2c2f37, #121318); border: 2px solid #ffcc2966;
  box-shadow: 0 6px 18px #0009, inset 0 1px 0 #ffffff1f; font-size: inherit;
}
#timer .dial {
  --p: 1; --c: var(--yellow);
  width: 40px; height: 40px; border-radius: 50%; position: relative; flex: 0 0 auto;
  background: conic-gradient(var(--c) calc(var(--p) * 1turn), #ffffff1c 0);
  box-shadow: 0 0 10px #ffcc2944;
}
#timer .dial::after { /* inner face */
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3d46, #15161b);
}
#timer .dial i { /* sweeping hand */
  position: absolute; left: 50%; top: 50%; width: 2px; height: 13px; margin-left: -1px; background: #fff; border-radius: 2px;
  transform-origin: 50% 0; transform: rotate(calc(180deg + var(--p) * 360deg)); z-index: 1;
}
#timer .tRead { display: flex; flex-direction: column; line-height: 1; }
#timer .tRead small { font-size: 9px; letter-spacing: .18em; color: var(--muted); font-weight: 800; }
#timer #hTime { font-family: "Lilita One", "Arial Black", Impact, sans-serif; font-size: 30px; color: #fff; letter-spacing: .02em; text-shadow: 0 2px 0 #000a; }
#timer.low { border-color: var(--red); animation: timerPulse 1s infinite; }
#timer.low .dial { --c: var(--red); box-shadow: 0 0 14px #ff4d4d88; }
#timer.low #hTime { color: #ff6b6b; }

#title .credits { text-align: center; margin: 2px 0 0; font-size: 12px; }
#title .credits div { padding: 2px 0; }

/* ---------- Round 13: briefing + reminders ---------- */
#brief .card { padding-top: 20px; }
.objectives { margin: 14px 0 10px; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.obj { display: flex; gap: 10px; align-items: flex-start; background: #ffffff0a; border-radius: 12px; padding: 9px 12px; font-size: 14px; line-height: 1.35; }
.obj span { font-size: 18px; line-height: 1.1; width: 22px; text-align: center; flex: 0 0 auto; }
.obj b { color: var(--yellow); }
.obj.main { background: linear-gradient(90deg, #ffcc2926, #ffcc290d); border: 2px solid #ffcc2966; font-size: 17px; font-weight: 800; }
.obj.main b { color: #fff; }
.btip { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.play.go { font-size: 22px; padding: 17px; animation: goPulse 1.6s ease-in-out infinite; }
@keyframes goPulse { 50% { transform: scale(1.03); box-shadow: 0 5px 0 #13703f, 0 0 0 6px #1fa46333; } }

/* website / dashboard embeds (?embed=, ?showcase=): only the canvas */
body.embed > *:not(#game) { display: none !important; }
body.embed #game { cursor: pointer; }

/* garage items as a 3-across grid of cards (room for more items and partner items) */
#gItems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
#gItems > .note, #gItems > .gsponsor { grid-column: 1 / -1; margin: 0 0 2px; }
#gItems .item { flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 6px 8px; text-align: center;
  border: 2px solid #ffffff14; border-bottom: 2px solid #ffffff14; border-radius: 12px; background: #ffffff08; min-width: 0; }
#gItems .item.sel { border-color: #1fa46399; background: #1fa46314; }
#gItems .item.sponsored { border-color: #ffcc2999; }
#gItems .item .ic { width: auto; font-size: 26px; line-height: 1.1; }
#gItems .item .sw { width: 100%; height: 30px; }
#gItems .item .nm { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
#gItems .item .nm b { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
#gItems .item .nm small { font-size: 11px; line-height: 1.25; margin-top: 2px; }
#gItems .buy { width: 100%; min-width: 0; padding: 7px 4px; font-size: 12px; }
.gsponsor { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  background: #ffffff0d; border: 1px dashed #ffffff26; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.gsponsor img { height: 26px; max-width: 120px; object-fit: contain; }
.gsponsor b { padding: 3px 10px; border-radius: 8px; border: 2px solid; font-family: "Lilita One", "Arial Black", sans-serif; font-weight: 400; font-size: 15px; letter-spacing: .02em; text-transform: none; }

/* browser demo */
.demoNote { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #ffcc2922; color: #f4f1ea; font-size: 14px; line-height: 1.5; text-align: center; }
.demoNote a { color: #ffcc29; font-weight: 800; text-decoration: none; }
a.play.storeBtn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.shift.demoLock { opacity: .55; }

/* pages of shifts: 1–10, 11–20, ... */
.pageTabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.pageTab { flex: 1 1 auto; min-width: 64px; padding: 7px 10px; border-radius: 999px; border: 2px solid #ffffff22; background: #ffffff0d; color: #f4f1ea; font: 800 13px system-ui, sans-serif; cursor: pointer; }
.pageTab.on { background: #ffcc29; border-color: #ffcc29; color: #16171b; }
