/**
 * CRASH X — Premium Casino UI
 * Dark luxury theme: deep black + gold + amber
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ── Backgrounds ── */
  --bg:         #06060a;
  --bg-card:    #0c0c14;
  --bg-surface: #12121e;
  --bg-hover:   #1a1a2e;
  --bg-input:   #0a0a12;

  /* ── Brand ── */
  --gold:       #f5c842;
  --gold-dim:   #8a6a1e;
  --gold-deep:  #3d2f0a;
  --amber:      #ff9f1c;
  --amber-dim:  #664000;

  /* ── Semantic ── */
  --win:        #00d26a;
  --win-dim:    rgba(0, 210, 106, 0.12);
  --lose:       #ff3b3b;
  --lose-dim:   rgba(255, 59, 59, 0.10);

  /* ── Text ── */
  --text:       #eae4d8;
  --text-dim:   #6b6575;
  --text-faint: #3a3845;

  /* ── Borders / Glow ── */
  --border:     rgba(245, 200, 66, 0.08);
  --border-h:   rgba(245, 200, 66, 0.20);
  --glow:       rgba(245, 200, 66, 0.06);
  --glow-gold:  rgba(245, 200, 66, 0.10);

  /* ── Radius ── */
  --r:    12px;
  --r-sm: 8px;
  --r-xs: 6px;
}

/* ═══════════════════════════════════════
 *  RESET & BASE
 * ═══════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
 *  LAYOUT
 * ═══════════════════════════════════════ */

.app {
  max-width: 840px;
  margin: 0 auto;
  padding: 10px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ═══════════════════════════════════════
 *  HEADER
 * ═══════════════════════════════════════ */

.hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
}

.hdr::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 2px;
}

.logo-x {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(245, 200, 66, 0.35);
}

.logo small {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  display: block;
  color: var(--gold-dim);
  margin-top: 2px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hdr-right { text-align: right; }

.bal-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.bal-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(245, 200, 66, 0.15);
  margin-top: 1px;
}

.session-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 3px;
}

/* ═══════════════════════════════════════
 *  GAME CANVAS
 * ═══════════════════════════════════════ */

.game-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  box-shadow:
    0 2px 20px rgba(0,0,0,0.6),
    inset 0 0 40px rgba(0,0,0,0.3);
}

canvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
}

/* ═══════════════════════════════════════
 *  INFO BAR
 * ═══════════════════════════════════════ */

.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-size: 11px;
  gap: 6px;
  flex-wrap: wrap;
}

.tag { padding: 3px 8px; border-radius: 12px; font-weight: 500; }

.tag-round {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

.tag-hash {
  color: var(--text-faint);
  cursor: pointer;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  transition: color .2s;
}
.tag-hash:hover { color: var(--gold); }

.tag-timer {
  color: var(--lose);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.tag-phase {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--amber);
}
.tag-phase.betting  { color: var(--amber); }
.tag-phase.flight   { color: var(--gold); }
.tag-phase.eject    { color: var(--lose); }
.tag-phase.freefall { color: var(--amber); }
.tag-phase.chute    { color: var(--lose); }
.tag-phase.ended    { color: var(--text-faint); }

.tag-rtp {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
}

/* ═══════════════════════════════════════
 *  CONTROLS
 * ═══════════════════════════════════════ */

.ctrls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pnl {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  background: var(--bg-card);
}

.pnl-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.bet-row {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.bet-in {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  color: var(--gold);
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  outline: none;
  text-align: center;
  min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.bet-in:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--glow-gold);
}

/* Kill spinners */
.bet-in::-webkit-inner-spin-button,
.bet-in::-webkit-outer-spin-button,
.auto-in::-webkit-inner-spin-button,
.auto-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bet-in, .auto-in { -moz-appearance: textfield; }

.btn-s {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all .15s;
}
.btn-s:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
  box-shadow: 0 0 10px var(--glow);
}
.btn-s:active { transform: scale(0.96); }

.qbets {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.qb {
  flex: 1;
  padding: 8px 2px;
  background: var(--bg-input);
  border: 1px solid rgba(245,200,66,0.06);
  border-radius: var(--r-xs);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  transition: all .15s;
}
.qb:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-deep);
}
.qb:active { transform: scale(0.96); }

/* ═══════════════════════════════════════
 *  MAIN BUTTONS
 * ═══════════════════════════════════════ */

.mbtn {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  background: var(--bg-input);
  color: var(--gold);
  letter-spacing: 2px;
  transition: all .2s;
}

.mbtn:disabled { opacity: 0.25; cursor: not-allowed; }

/* ── Play ── */
.mbtn-play {
  background: linear-gradient(180deg, rgba(245,200,66,0.08) 0%, var(--bg-input) 100%);
  border-color: var(--gold);
  color: var(--gold);
}
.mbtn-play:not(:disabled):hover {
  background: linear-gradient(180deg, rgba(245,200,66,0.15) 0%, rgba(245,200,66,0.03) 100%);
  box-shadow: 0 0 28px var(--glow-gold), 0 2px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.mbtn-play:not(:disabled):active { transform: translateY(0); }

/* ── Placed ── */
.mbtn-placed {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
  background: var(--bg-input);
}

/* ── Cash out ── */
.mbtn-cash {
  border-color: var(--win);
  color: var(--win);
  background: linear-gradient(180deg, rgba(0,210,106,0.08) 0%, var(--bg-input) 100%);
  animation: pulse-cash 1.1s ease-in-out infinite;
}

@keyframes pulse-cash {
  0%, 100% { box-shadow: 0 0 8px var(--win-dim); }
  50%      { box-shadow: 0 0 28px var(--win-dim), 0 0 60px rgba(0,210,106,0.04); }
}

/* ── Won ── */
.mbtn-won {
  border-color: var(--win);
  color: var(--win);
  cursor: default;
  background: rgba(0,210,106,0.05);
}

/* ── Lost ── */
.mbtn-lost {
  border-color: var(--lose);
  color: var(--lose);
  cursor: default;
  background: var(--lose-dim);
}

/* ── Wait ── */
.mbtn-wait {
  border-color: rgba(245,200,66,0.08);
  color: var(--text-faint);
  cursor: default;
}

/* ── Auto-cashout ── */
.auto-r {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.auto-r label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 1px;
}

.auto-in {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 8px;
  color: var(--gold);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  outline: none;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.auto-in:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--glow);
}

/* ═══════════════════════════════════════
 *  SCOREBOARD
 * ═══════════════════════════════════════ */

.board {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-card);
}

.board-hdr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 10px 16px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--bg-surface);
  z-index: 2;
}

.brow {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 16px;
  font-size: 12px;
  border-bottom: 1px solid rgba(245,200,66,0.03);
  align-items: center;
  transition: background .25s;
}

.brow.me { color: var(--gold); background: rgba(245,200,66,0.03); }
.brow.flash-green { background: rgba(0,210,106,0.05); }
.brow.flash-red   { background: rgba(255,59,59,0.04); }

.bname {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 11px;
}

.bavatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800;
  color: var(--bg);
  background: var(--amber);
  flex-shrink: 0;
}

.bav-me { background: var(--gold); }

.bbet {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.bcash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}
.bcash.win     { color: var(--win); }
.bcash.lost    { color: var(--lose); }
.bcash.pending { color: var(--text-dim); }
.bcash.waiting { color: var(--text-faint); }

/* ═══════════════════════════════════════
 *  HISTORY
 * ═══════════════════════════════════════ */

.hist {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  background: var(--bg-card);
}

.hrow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.hi {
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid;
  border-radius: 16px;
  white-space: nowrap;
  transition: transform .12s;
}
.hi:hover { transform: scale(1.06); }

.hi.hcrash { border-color: var(--lose); color: var(--lose); background: var(--lose-dim); }
.hi.hlow   { border-color: rgba(245,200,66,0.10); color: var(--text-dim); }
.hi.hmid   { border-color: rgba(245,200,66,0.25); color: var(--amber); }
.hi.hhigh  {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--glow-gold);
  box-shadow: 0 0 6px rgba(245,200,66,0.08);
}

/* ═══════════════════════════════════════
 *  MY BETS
 * ═══════════════════════════════════════ */

.mybets {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  background: var(--bg-card);
}

.mbrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 11px;
  margin-bottom: 1px;
  border-radius: var(--r-xs);
  transition: background .2s;
}
.mbrow:hover { background: rgba(245,200,66,0.02); }
.mbrow.mwin  { color: var(--win); }
.mbrow.mloss { color: var(--lose); }

.mres {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}
.mres.mwin  { color: var(--win); }
.mres.mloss { color: var(--lose); }

.empty-msg {
  color: var(--text-faint);
  font-size: 11px;
  text-align: center;
  padding: 14px;
}

.hint {
  font-size: 9px;
  color: var(--text-faint);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
 *  SCROLLBAR
 * ═══════════════════════════════════════ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ═══════════════════════════════════════
 *  RESPONSIVE
 * ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
 *  WELCOME SCREEN
 * ═══════════════════════════════════════ */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  width: 340px;
  max-width: 90vw;
  box-shadow: 0 4px 60px rgba(0,0,0,.6), 0 0 80px rgba(245,200,66,.04);
}

.wl-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.wl-logo span { color: var(--gold); text-shadow: 0 0 20px rgba(245,200,66,.35); }

.wl-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.wl-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  outline: none;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.wl-input:focus { border-color: var(--gold); }
.wl-input::placeholder { color: var(--text-faint); }

.wl-country {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.wl-arrow {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  flex-shrink: 0;
}
.wl-arrow:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--glow-gold);
}
.wl-arrow:active { transform: scale(.92); }

.wl-flag-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

#wlFlagCv {
  border: 2px solid rgba(245,200,66,.2);
  border-radius: 4px;
  image-rendering: pixelated;
}

.wl-country-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.wl-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, var(--gold) 0%, #d4a830 100%);
  border: none;
  border-radius: var(--r-sm);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  transition: .2s;
}
.wl-btn:hover {
  background: linear-gradient(180deg, #ffe066 0%, var(--gold) 100%);
  box-shadow: 0 0 30px rgba(245,200,66,.2);
  transform: translateY(-1px);
}
.wl-btn:active { transform: translateY(0); }

.wl-demo {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 12px;
}

/* ═══════════════════════════════════════
 *  PLAYER INFO IN HEADER
 * ═══════════════════════════════════════ */

.player-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.player-info canvas {
  border-radius: 2px;
  image-rendering: pixelated;
}

.player-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
 *  WELCOME TIPS
 * ═══════════════════════════════════════ */

.wl-tip {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 16px;
  min-height: 2em;
  line-height: 1.5;
  transition: opacity 0.4s ease;
}

/* ═══════════════════════════════════════
 *  HEADER LEFT (back + logo)
 * ═══════════════════════════════════════ */

.hdr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ═══════════════════════════════════════
 *  BACK BUTTON
 * ═══════════════════════════════════════ */

.back-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .15s;
  white-space: nowrap;
}
.back-btn:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
  box-shadow: 0 0 12px var(--glow-gold);
}
.back-btn:active { transform: scale(0.96); }

/* ═══════════════════════════════════════
 *  GAME HUB
 * ═══════════════════════════════════════ */

.hub {
  max-width: 840px;
  margin: 0 auto;
  padding: 10px 12px 24px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.hub-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px var(--glow-gold), 0 4px 20px rgba(0,0,0,.4);
  transform: translateY(-2px);
}
.hub-card:active { transform: translateY(0); }

.hub-card-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.hub-card-preview canvas {
  image-rendering: pixelated;
  max-width: 100%;
  max-height: 100%;
}

.hub-card-preview--soon {
  background: linear-gradient(135deg, #0a0a12 0%, #12121e 100%);
  position: relative;
}
.hub-card-preview--soon::after {
  content: '\1F512';
  font-size: 28px;
  position: absolute;
  opacity: 0.15;
}

.hub-card-info {
  padding: 12px 14px;
}

.hub-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.hub-card-sub {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ── Coming Soon ── */
.hub-card--soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.hub-card--soon .hub-card-title { color: var(--text-dim); }

/* ═══════════════════════════════════════
 *  LOTTERY
 * ═══════════════════════════════════════ */

.lottery-wrap .game-wrap {
  cursor: crosshair;
}

.lot-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.lot-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 10px 12px;
  text-align: center;
}

.lot-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.lot-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.lot-value--gold { color: var(--gold); }
.lot-value--win  { color: var(--win); }

.lot-controls {
  margin-top: 6px;
}

.lot-prices {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.lot-qp {
  flex: 1;
  padding: 8px 4px;
  background: var(--bg-input);
  border: 1px solid rgba(245,200,66,0.06);
  border-radius: var(--r-xs);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  transition: all .15s;
}
.lot-qp:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-deep);
}
.lot-qp.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245,200,66,0.08);
}

.lot-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lot-row-btns {
  display: flex;
  gap: 6px;
}

.lot-sec-btn {
  flex: 1;
  font-size: 10px !important;
  padding: 10px 8px !important;
}

/* ═══════════════════════════════════════
 *  RESPONSIVE
 * ═══════════════════════════════════════ */

@media (max-width: 600px) {
  .app { padding: 6px 8px 16px; gap: 5px; }
  .ctrls { grid-template-columns: 1fr; }
  .logo { font-size: 18px; }
  .bal-val { font-size: 18px; }
  .hdr { padding: 12px 16px; }
  .pnl { padding: 12px; }
  .mbtn { padding: 13px; font-size: 12px; }
  .wl-card { padding: 24px 20px; }
  .wl-logo { font-size: 28px; }
  .player-name { display: none; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hub-card-preview { height: 80px; }
  .lot-info { grid-template-columns: repeat(2, 1fr); }
  .back-btn { font-size: 10px; padding: 6px 10px; }
}
