*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0c1018;
  color: #f4efe6;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#game-root {
  position: relative;
  width: 100%;
  height: 100%;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: auto;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(124, 79, 191, 0.28), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(227, 106, 32, 0.22), transparent 46%),
    linear-gradient(180deg, #141a28 0%, #1a2436 55%, #121820 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 32px;
}

.screen.hidden { display: none; }

.screen-inner {
  width: min(1100px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: #e0b15a;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.03em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 0 0 22px;
  color: #c9c0b4;
  font-size: 15px;
}

.select-block { margin-bottom: 18px; }

.select-block h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa3b5;
}

.cards {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 16, 0.55);
  color: inherit;
  border-radius: 16px;
  padding: 10px 10px 12px;
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }

.card.selected {
  border-color: #e0b15a;
  box-shadow: 0 0 0 3px rgba(224, 177, 90, 0.25);
}

.rider-card {
  width: 168px;
  min-width: 0;
  padding-bottom: 14px;
}

.rider-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
}

.card-name {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
}

.card-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #a9b0bf;
}

.bike-card {
  width: 220px;
  text-align: left;
  padding: 14px 16px;
}

.bike-swatch {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.bike-swatch i {
  width: 22px;
  height: 10px;
  border-radius: 99px;
  display: block;
}

.bike-card .card-name { margin-top: 0; font-size: 18px; }
.bike-stats {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #b9c0ce;
  line-height: 1.45;
}

.btn-start, .btn-secondary {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 14px 36px;
  margin-top: 8px;
}

.btn-start {
  background: linear-gradient(180deg, #f0c56d, #d49a2c);
  color: #1a1408;
  box-shadow: 0 4px 0 #8a6110;
}

.btn-start:hover { filter: brightness(1.05); }
.btn-start:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a6110; }

.btn-secondary {
  background: transparent;
  color: #d5dbe8;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-left: 8px;
}

.best-line {
  margin: 14px 0 0;
  color: #e0b15a;
  font-size: 14px;
}

.controls-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 13px;
  color: #b7becb;
}

kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-family: inherit;
  font-size: 12px;
  text-align: center;
}

.finish-inner { padding-top: 12vh; }
.finish-stats {
  font-size: 20px;
  line-height: 1.6;
  color: #f4efe6;
  margin: 10px 0 24px;
}

.crash-flash {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff5a5a;
  text-shadow: 0 4px 0 #5a1010, 0 0 24px rgba(255, 40, 40, 0.6);
  pointer-events: none;
  animation: faultPop 0.9s ease-out;
}

.crash-flash.hidden { display: none; }

@keyframes faultPop {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  20% { transform: translateX(-50%) scale(1.08); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 0; }
}

.touch-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 6;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.touch-controls.visible { display: flex; }

.touch-cluster {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.touch-btn {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 18, 0.55);
  color: #fff;
  font: 700 20px/1 "Trebuchet MS", "Segoe UI", sans-serif;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.touch-btn.pressed, .touch-btn:active {
  background: rgba(224, 177, 90, 0.45);
  border-color: #e0b15a;
}

.touch-wide { width: 96px; }
.touch-small { width: 56px; height: 56px; font-size: 16px; }
.touch-gas { background: rgba(46, 140, 70, 0.45); }
.touch-brake { background: rgba(160, 50, 50, 0.45); }

@media (pointer: coarse) {
  .touch-controls { display: flex; }
}

@media (max-width: 640px) {
  .rider-card { width: 46vw; min-width: 140px; }
  .rider-card img { height: 38vh; max-height: 220px; }
  .touch-btn { width: 64px; height: 64px; }
}

/* ---- level select ------------------------------------------------------------------- */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
  text-align: left;
}
.level-card {
  appearance: none; position: relative; cursor: pointer; font: inherit; color: inherit;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 16, 0.55);
  border-radius: 14px; padding: 10px 12px 11px;
  display: flex; flex-direction: column; gap: 3px; min-height: 124px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.level-card:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.level-card.selected { border-color: #e0b15a; box-shadow: 0 0 0 3px rgba(224, 177, 90, 0.25); }
.level-card.locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.6); }
.lc-top { display: flex; align-items: center; justify-content: space-between; }
.lc-num {
  width: 24px; height: 24px; border-radius: 50%; background: #e0b15a; color: #1a1408;
  font-weight: 800; font-size: 13px; display: grid; place-items: center;
}
.level-card.locked .lc-num { background: #596070; color: #cfd5e2; }
.lc-pips { display: inline-flex; gap: 3px; }
.lc-pips i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); display: block; }
.lc-pips i.on { background: #6fcf6f; }
.lc-pips i.on.d2 { background: #b4d95a; }
.lc-pips i.on.d3 { background: #f0c040; }
.lc-pips i.on.d4 { background: #f08a30; }
.lc-pips i.on.d5 { background: #e64a3a; }
.lc-name { font-weight: 700; font-size: 16px; margin-top: 4px; line-height: 1.15; }
.lc-blurb { font-size: 12px; color: #a9b0bf; line-height: 1.3; flex: 1; }
.lc-best { font-size: 12px; color: #e0b15a; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lc-tick { position: absolute; right: 10px; bottom: 9px; color: #6fcf6f; font-weight: 800; }
.lc-lock { position: absolute; right: 10px; bottom: 7px; font-size: 14px; }

.start-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 4px; }
.start-row .btn-secondary { margin: 8px 0 0; }

/* ---- finish screen ------------------------------------------------------------------ */
.finish-inner { max-width: 640px; }
.finish-stats { display: flex; gap: 14px; justify-content: center; margin: 6px 0 4px; font-size: 14px; }
.finish-stats .stat { background: rgba(8, 10, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 8px 18px; min-width: 96px; }
.finish-stats small { display: block; color: #a9b0bf; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.finish-stats strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.unlock-note { color: #6fcf6f; font-weight: 700; margin: 6px 0; }
.score-form { margin: 14px auto 6px; max-width: 420px; text-align: left; }
.score-form label, #fb-form label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #a9b0bf; margin: 10px 0 4px; }
.score-row { display: flex; gap: 8px; }
.finish-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.finish-buttons .btn-secondary, .finish-buttons .btn-start { margin: 0; padding: 12px 22px; }

input[type="text"], textarea, select {
  font: inherit; color: #f4efe6; background: rgba(8, 10, 16, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 9px 11px;
  width: 100%; user-select: text; -webkit-user-select: text; touch-action: auto;
}
input[type="text"]:focus, textarea:focus, select:focus { outline: none; border-color: #e0b15a; }
textarea { resize: vertical; min-height: 96px; }
select option { background: #141a28; }
.btn-mini {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px;
  background: #e0b15a; color: #1a1408; border-radius: 10px; padding: 9px 14px; white-space: nowrap;
}
.btn-mini:disabled { opacity: 0.5; cursor: default; }
.btn-small { padding: 10px 20px !important; font-size: 13px; margin-left: 0 !important; margin-top: 0 !important; }
.form-status { min-height: 18px; font-size: 13px; color: #8dda7a; margin: 8px 0 0; }
.hidden { display: none !important; }

/* ---- boards ------------------------------------------------------------------------- */
.board { margin: 10px auto 0; max-width: 560px; min-height: 40px; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.board-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #a9b0bf; padding: 6px 8px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.board-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.board-table .left { text-align: left; }
.board-table td.rank { color: #e0b15a; font-weight: 800; width: 34px; text-align: center; }
.board-table td.key { color: #f4efe6; font-weight: 700; }
.board-table td.dim, .board-table small { color: #8d95a6; }
.board-table tr.me td { background: rgba(224, 177, 90, 0.16); }
.board-empty, .board-loading { color: #a9b0bf; text-align: center; padding: 14px 0; margin: 0; }
.board-finish { max-width: 520px; }

/* ---- modals + in-run bar ------------------------------------------------------------- */
.modal { position: absolute; inset: 0; z-index: 40; background: rgba(6, 8, 14, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.modal-card { position: relative; width: min(600px, 100%); max-height: 100%; overflow: auto; background: #151c2c; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 22px 24px 20px; text-align: left; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.modal-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 0.02em; text-transform: none; color: #f4efe6; }
.modal-x { position: absolute; right: 12px; top: 8px; appearance: none; border: 0; background: none; color: #a9b0bf; font-size: 28px; line-height: 1; cursor: pointer; }
.modal-note { color: #a9b0bf; font-size: 13px; margin: 4px 0 8px; }
.lb-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.lb-controls select { flex: 1 1 200px; width: auto; }
.seg { display: inline-flex; border: 2px solid rgba(255, 255, 255, 0.16); border-radius: 10px; overflow: hidden; }
.seg button { appearance: none; border: 0; background: transparent; color: #cfd5e2; font: inherit; font-size: 13px; padding: 9px 12px; cursor: pointer; }
.seg button.on { background: #e0b15a; color: #1a1408; font-weight: 700; }
.count { float: right; text-transform: none; letter-spacing: 0; color: #7d8598; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fb-saved { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #a9b0bf; }
.fb-saved span { flex: 1 1 100%; }
#fb-form em { text-transform: none; letter-spacing: 0; font-style: normal; color: #7d8598; }

.game-bar { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; gap: 6px; }
.gb-btn { appearance: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #e8ecf5; background: rgba(10, 12, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 7px 12px; }
.gb-btn:hover { background: rgba(10, 12, 18, 0.8); }
@media (max-width: 720px) {
  .game-bar { top: 104px; left: 16px; transform: none; }
  .level-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.board-src { margin: 8px 0 0; font-size: 11px; color: #8b93a5; text-align: center; letter-spacing: 0.04em; }

/* ---- settings modal ---- */
.modal-wide { max-width: 560px; }
.set-h { margin: 14px 0 6px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb0d0; }
.set-grid { display: grid; grid-template-columns: minmax(130px, 1.2fr) 2fr 56px; gap: 8px 12px; align-items: center; }
.set-grid label { font-size: 14px; }
.set-grid label small { display: block; font-size: 10.5px; color: #8b93a5; }
.set-grid output { font-variant-numeric: tabular-nums; font-size: 12px; color: #cdd5e6; text-align: right; }
.set-grid input[type=range] { width: 100%; accent-color: #e9a23b; }
.set-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; font-size: 14px; }
.set-checks .check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.set-checks kbd { font-size: 11px; }
.net-line { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0 10px; flex-wrap: wrap; }
.net-dot { width: 10px; height: 10px; border-radius: 50%; background: #777; flex: none; }
.net-dot.on { background: #58d37a; box-shadow: 0 0 8px #58d37a; }
.net-dot.bad { background: #e8a23a; }
.net-dot.off { background: #777; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: rgba(10,12,18,0.85); color: #f4efe6; padding: 8px 16px; border-radius: 999px; font-size: 14px; z-index: 60; pointer-events: none; }
/* ---- finish-line speech bubble ---- */
.rider-bubble { position: fixed; z-index: 35; transform: translate(-50%, -100%); pointer-events: none; max-width: 260px;
  background: #fffdf6; color: #1b1d24; border: 3px solid #1b1d24; border-radius: 18px; padding: 8px 16px;
  font: 800 22px/1.15 "Trebuchet MS", "Segoe UI", sans-serif; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.35); transition: opacity 0.4s; }
.rider-bubble::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 16px; height: 16px; background: #fffdf6;
  border-right: 3px solid #1b1d24; border-bottom: 3px solid #1b1d24; transform: translateX(-50%) rotate(45deg); }
.rider-bubble.fade { opacity: 0; }
.rider-bubble.pop { animation: bubble-pop 0.28s ease-out; }
.rider-bubble.zzz { background: #eaf3ff; font-size: 30px; letter-spacing: 0.08em; color: #3a5a9a; animation: zzz-bob 1.6s ease-in-out infinite; }
.rider-bubble.zzz::after { background: #eaf3ff; }
@keyframes bubble-pop { from { transform: translate(-50%, -90%) scale(0.5); opacity: 0; } to { transform: translate(-50%, -100%) scale(1); opacity: 1; } }
@keyframes zzz-bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }
.hidden { display: none !important; }

.modal-wide { max-height: 94vh; overflow-y: auto; }

/* ---- Zack slot (Snapback + Fire Zack share one picker card) ----
   Sequential fade: one look is fully gone before the other starts to appear,
   so the different silhouettes (cap vs helmet, tails) never overlap. */
.rider-slot { overflow: hidden; }
.slot-portraits {
  position: relative;
  display: block;
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-radius: 10px;
}
.slot-portraits img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
}
/* Default (no version chosen yet): Snapback visible, Fire hidden, then they take turns. */
.slot-portraits .slot-a { z-index: 1; opacity: 1; }
.slot-portraits .slot-b { z-index: 2; opacity: 0; }
.rider-slot:not(.chosen-zack):not(.chosen-firezack) .slot-a {
  animation: zack-fade-a 8s ease-in-out infinite;
}
.rider-slot:not(.chosen-zack):not(.chosen-firezack) .slot-b {
  animation: zack-fade-b 8s ease-in-out infinite;
}
/* 0-3.2s A on; 3.2-3.6s A fades out (B still 0); 3.6-4.0s B fades in (A already 0);
   4.0-7.2s B on; 7.2-7.6s B fades out; 7.6-8.0s A fades in. */
@keyframes zack-fade-a {
  0%, 40% { opacity: 1; }
  45%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes zack-fade-b {
  0%, 45% { opacity: 0; }
  50%, 90% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
/* Once a version is picked, freeze on that look (no rotation). */
.rider-slot.chosen-zack .slot-a { animation: none; opacity: 1; }
.rider-slot.chosen-zack .slot-b { animation: none; opacity: 0; }
.rider-slot.chosen-firezack .slot-a { animation: none; opacity: 0; }
.rider-slot.chosen-firezack .slot-b { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .rider-slot:not(.chosen-zack):not(.chosen-firezack) .slot-a { animation: none; opacity: 1; }
  .rider-slot:not(.chosen-zack):not(.chosen-firezack) .slot-b { animation: none; opacity: 0; }
}
.zack-choices { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.zack-choice { width: 200px; padding-bottom: 14px; }
.zack-choice img { display: block; width: 100%; height: 220px; object-fit: contain; object-position: center top; pointer-events: none; }
@media (max-width: 700px) {
  .slot-portraits, .slot-portraits img { height: 38vh; max-height: 220px; }
  .zack-choice { width: 46vw; min-width: 140px; }
  .zack-choice img { height: 36vh; max-height: 200px; }
}

/* ---- Modes ---- */
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode-card {
  appearance: none; cursor: pointer; font: inherit; color: inherit; text-align: left;
  border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(8, 10, 16, 0.55);
  border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.mode-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.mode-card.selected { border-color: #e0b15a; box-shadow: 0 0 0 3px rgba(224, 177, 90, 0.25); }
.mc-name { font-weight: 800; font-size: 18px; }
.mc-blurb { font-size: 12px; color: #a9b0bf; line-height: 1.3; flex: 1; }
.mc-count { font-size: 12px; color: #e0b15a; }
.tech-help { font-size: 13px; color: #c9c0b4; max-width: 760px; margin: 8px auto 0; line-height: 1.4; }
.pad-help { grid-column: 1 / -1; font-size: 12px; color: #a9b0bf; }
.lb-modes { margin: 0 0 10px; }
.pad-status { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; color: #a9b0bf; margin-left: 8px; }
.pad-status.on { color: #8dda7a; }
.pad-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.pad-map button { appearance: none; font: inherit; font-size: 12px; color: #e8e4dc; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 7px 9px; text-align: left; cursor: pointer; }
.pad-map button b { color: #e0b15a; font-weight: 700; float: right; }
.pad-map button.listening { border-color: #e0b15a; background: rgba(224,177,90,0.18); }
.pad-focus { outline: 3px solid #e0b15a !important; outline-offset: 2px; }
@media (max-width: 720px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---- Look slots (round 10: Mac, Rus, Lamb, Starter) ----
   One image at a time: fade out, short gap, fade in (driven by js/looks-ui.js). */
.look-slot .slot-portraits img { transition: opacity 0.4s ease-in-out; opacity: 1; }
.look-slot .slot-portraits img.lk-out { opacity: 0; }
.modal-looks { width: min(980px, 100%); }
.look-choices .look-choice { width: 160px; }
.look-choices .look-choice img { height: 190px; }
.look-choice.selected, .look-colour.selected { outline: 2px solid #f2b950; outline-offset: 2px; }
.look-colours { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 10px; }
.look-colour { appearance: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); background: #1d2538; color: #e9e4da; font: 600 13px/1 "Segoe UI", sans-serif; cursor: pointer; }
.look-colour i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); display: inline-block; }
.look-colour.pad-focus, .look-choice.pad-focus { outline: 3px solid #7fc7ff; }
@media (max-width: 700px) {
  .look-choices .look-choice { width: 44vw; min-width: 130px; }
  .look-choices .look-choice img { height: 30vh; max-height: 170px; }
}

/* ---- Garage (round 10) ---- */
.coin-pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #f2b950; color: #1b1d24; font: 800 12px/1.4 "Segoe UI", sans-serif; letter-spacing: 0; vertical-align: middle; }
.garage-list { display: grid; gap: 8px; margin: 8px 0 4px; }
.garage-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.garage-info strong { display: block; color: #f4efe6; font-size: 14px; }
.garage-info small { color: #a9b0bf; font-size: 12px; }
.garage-pips i { display: inline-block; width: 14px; height: 8px; margin-right: 3px; border-radius: 3px; background: rgba(255,255,255,0.15); }
.garage-pips i.on { background: #f2b950; }
.garage-paints { display: flex; flex-wrap: wrap; gap: 8px; }
.garage-paint { appearance: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: #1d2538; color: #e9e4da; font: 600 13px/1 "Segoe UI", sans-serif; cursor: pointer; }
.garage-paint.selected { outline: 2px solid #f2b950; }
.garage-paint:disabled, .garage-row .btn-mini:disabled { opacity: 0.45; cursor: default; }
.save-status { color: #a9b0bf; font-size: 13px; }
