/* ============================================================================
   Hold'em Lab — design system
   A dark "poker at night" theme: charcoal-green ground, emerald felt, warm gold
   accent, four-colour cards. Everything is CSS-drawn (no image assets).
   ========================================================================== */

:root {
  --bg: #0c1310;
  --bg-2: #111d17;
  --panel: #16241d;
  --panel-2: #1b2c23;
  --line: #26382e;
  --line-soft: #1e2e26;

  --text: #e9f1ea;
  --muted: #8ca698;
  --faint: #5f7568;

  --gold: #e7c079;
  --gold-dim: #b7965a;
  --emerald: #34c281;
  --emerald-deep: #1c7d53;
  --danger: #e0685a;
  --danger-deep: #8f3a31;
  --blue: #4f9ae0;

  --felt: #1f6b49;
  --felt-2: #124d33;
  --felt-rail: #0c2c1e;

  --card-bg: #f6f4ec;
  --suit-clubs: #2c9c63;
  --suit-diamonds: #2f7fd0;
  --suit-hearts: #d5454f;
  --suit-spades: #232c33;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 8px 24px -14px rgba(0, 0, 0, 0.7);

  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(52, 194, 129, 0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(231, 192, 121, 0.06), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
button { font-family: inherit; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ----- app shell ---------------------------------------------------------- */

#app { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 12px clamp(14px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(12, 19, 16, 0.92), rgba(12, 19, 16, 0.62));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.brand__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; font-size: 18px;
  background: radial-gradient(circle at 30% 25%, #2a4335, #0f2018);
  border: 1px solid var(--line); color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand__name { font-weight: 680; letter-spacing: -0.01em; }
.brand__name b { color: var(--gold); font-weight: 680; }
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; }
.topbar__spacer { flex: 1; }
.topbar__crumbs { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.topbar__crumbs b { color: var(--text); font-weight: 600; }

.screen { flex: 1; padding: clamp(16px, 3.5vw, 40px); max-width: 1180px; width: 100%; margin: 0 auto; }
.screen--wide { max-width: 1400px; }

/* ----- buttons ------------------------------------------------------------ */

.btn {
  --b: var(--panel-2);
  appearance: none; border: 1px solid var(--line); background: var(--b);
  color: var(--text); padding: 10px 16px; border-radius: 11px; font-size: 14px;
  font-weight: 580; cursor: pointer; transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn--primary { background: linear-gradient(180deg, #3ad08b, var(--emerald-deep)); border-color: #2c9c67; color: #06170f; font-weight: 680; }
.btn--gold { background: linear-gradient(180deg, #f0cd86, var(--gold-dim)); border-color: #c9a45f; color: #241a08; font-weight: 680; }
.btn--danger { background: linear-gradient(180deg, #e0685a, var(--danger-deep)); border-color: #b24b40; color: #220906; }
.btn--ghost { background: transparent; }
.btn--lg { padding: 13px 22px; font-size: 15px; border-radius: 13px; }
.btn--block { width: 100%; }
.btn--sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }

/* ----- cards & panels ----------------------------------------------------- */

.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.panel--pad { padding: clamp(16px, 2.5vw, 24px); }
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 22px; } .gap-6 { gap: 30px; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.center { justify-content: center; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11.5px; color: var(--gold-dim); font-weight: 640; }
.lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); line-height: 1.55; max-width: 62ch; }

/* Big choice tiles on the home screen. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  padding: 26px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel-2), var(--bg-2));
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s;
}
.tile:hover { transform: translateY(-3px); border-color: #35624a; box-shadow: var(--shadow); }
.tile__icon { font-size: 30px; margin-bottom: 14px; }
.tile__title { font-size: 21px; font-weight: 680; }
.tile__desc { color: var(--muted); margin-top: 8px; font-size: 14px; line-height: 1.5; }
.tile__glow { position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 194, 129, 0.18), transparent 70%); pointer-events: none; }
.tile--gold .tile__glow { background: radial-gradient(circle, rgba(231, 192, 121, 0.16), transparent 70%); }

/* Menu list rows (mode pickers). */
.menu { display: grid; gap: 12px; }
.menu-row {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 13px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); transition: border-color 0.15s, transform 0.1s;
}
.menu-row:hover { border-color: #35624a; transform: translateX(2px); }
.menu-row__badge { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
  background: #12241b; border: 1px solid var(--line); flex: none; }
.menu-row__title { font-weight: 640; font-size: 15.5px; }
.menu-row__desc { color: var(--muted); font-size: 13px; margin-top: 3px; }
.menu-row__meta { margin-left: auto; text-align: right; color: var(--muted); font-size: 12.5px; }

/* ----- form controls ------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 9px; }
.field__label { font-weight: 600; font-size: 13.5px; }
.field__hint { color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg__opt { padding: 9px 15px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 560; color: var(--muted); border: 1px solid transparent; user-select: none; }
.seg__opt:hover { color: var(--text); }
.seg__opt.is-active { background: var(--panel-2); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-soft); }
.seg__opt.is-active[data-tone="easy"] { color: #7fe3b0; }
.seg__opt.is-active[data-tone="medium"] { color: var(--gold); }
.seg__opt.is-active[data-tone="hard"] { color: #f0a08e; }

input[type="range"] { width: 100%; accent-color: var(--emerald); }
input[type="number"], input[type="text"] {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-family: var(--font-num); font-size: 15px; width: 100%;
}

.chip-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-num); font-weight: 600; }
.chip-badge::before { content: ""; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffe6a8, var(--gold-dim)); border: 1.5px solid #fff3d6; box-shadow: 0 0 0 2px rgba(0,0,0,0.25) inset; flex: none; }

.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); font-weight: 600; letter-spacing: 0.02em; }
.tag--easy { color: #7fe3b0; border-color: #2c6e4d; }
.tag--medium { color: var(--gold); border-color: #7d6733; }
.tag--hard { color: #f0a08e; border-color: #8f4a3f; }
.tag--live { color: #ff8f7d; border-color: #8f4a3f; }

/* ============================================================================
   Playing cards
   ========================================================================== */

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

.card {
  --w: 58px; --h: 82px;
  width: var(--w); height: var(--h); border-radius: 8px; position: relative; flex: none;
  background: linear-gradient(180deg, #fefdf8, var(--card-bg));
  border: 1px solid #d9d5c4; box-shadow: 0 4px 10px -4px rgba(0,0,0,0.55), inset 0 1px 0 #fff;
  color: var(--suit-spades); overflow: hidden; user-select: none;
}
.card--sm { --w: 34px; --h: 48px; border-radius: 6px; }
.card--md { --w: 58px; --h: 82px; }
.card--lg { --w: 74px; --h: 104px; border-radius: 10px; }
.card--xl { --w: 92px; --h: 130px; border-radius: 11px; }

.card__idx { position: absolute; top: 5px; left: 6px; display: flex; flex-direction: column; align-items: center; line-height: 0.92; z-index: 1; }
.card__rank { font-weight: 760; font-size: calc(var(--h) * 0.26); letter-spacing: -0.03em; }
.card__suitmini { font-size: calc(var(--h) * 0.18); margin-top: 1px; }
.card__pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--h) * 0.46); opacity: 0.9; line-height: 1; }
.card--sm .card__pip { font-size: calc(var(--h) * 0.42); }
.card--sm .card__idx { top: 3px; left: 4px; }

.suit-clubs { color: var(--suit-clubs); }
.suit-diamonds { color: var(--suit-diamonds); }
.suit-hearts { color: var(--suit-hearts); }
.suit-spades { color: var(--suit-spades); }

.card--back {
  background:
    repeating-linear-gradient(45deg, #123f2b 0 7px, #0e3323 7px 14px),
    linear-gradient(180deg, #14472f, #0d2c1e);
  border: 1px solid #0a241a; color: rgba(231, 192, 121, 0.5);
  display: grid; place-items: center;
}
.card--back .card__motif { font-size: calc(var(--h) * 0.4); }
.card--slot { background: rgba(255,255,255,0.03); border: 1.5px dashed rgba(255,255,255,0.14); box-shadow: none; }
.card--dim { opacity: 0.42; }
.card--hl { outline: 2.5px solid var(--gold); outline-offset: 1px; box-shadow: 0 0 18px -2px rgba(231,192,121,0.6); }

.card-enter { animation: cardIn 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-10px) rotateX(35deg) scale(0.9); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Poker table
   ========================================================================== */

.table-wrap { position: relative; width: 100%; max-width: 880px; margin: 0 auto; }
.felt {
  position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 56vh; margin: 0 auto;
  border-radius: 50% / 46%;
  background:
    radial-gradient(120% 130% at 50% 22%, var(--felt), var(--felt-2) 62%, #0c3a26 100%);
  border: 12px solid #08251a;
  box-shadow: 0 0 0 3px #1a3a2b, 0 40px 80px -40px rgba(0,0,0,0.9), inset 0 4px 30px rgba(0,0,0,0.45);
}
.felt::after { /* inner rail line */
  content: ""; position: absolute; inset: 7%; border-radius: 50% / 46%;
  border: 2px solid rgba(255,255,255,0.06);
}
.felt__logo { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.felt__logo span { font-size: clamp(20px, 4vw, 44px); font-weight: 720; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.05); text-transform: uppercase; }

.board { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; gap: 7px; z-index: 5; }
.pot-display { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); z-index: 5;
  background: rgba(6, 20, 14, 0.7); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px;
  padding: 6px 15px; font-size: 14px; display: flex; gap: 8px; align-items: center; backdrop-filter: blur(4px); }
.pot-display .num { color: var(--gold); font-weight: 680; }

/* seats */
.seat {
  position: absolute; transform: translate(-50%, -50%); z-index: 10;
  width: 148px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.seat__cards { display: flex; gap: 4px; height: 50px; align-items: flex-end; }
.seat__plate {
  width: 100%; background: linear-gradient(180deg, rgba(20,34,27,0.96), rgba(12,22,17,0.96));
  border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px; text-align: center;
  box-shadow: var(--shadow-soft); position: relative;
}
.seat__name { font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; justify-content: center; }
.seat__stack { font-family: var(--font-num); font-size: 13.5px; color: var(--gold); font-weight: 620; margin-top: 1px; }
.seat__diff { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.seat__diff--easy { background: var(--emerald); }
.seat__diff--medium { background: var(--gold); }
.seat__diff--hard { background: var(--danger); }
.seat.is-turn .seat__plate { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px -4px rgba(231,192,121,0.55); }
.seat.is-folded { opacity: 0.44; filter: grayscale(0.5); }
.seat.is-hero .seat__plate { border-color: #2f6f4c; }
.seat__status { font-size: 11px; color: var(--muted); min-height: 14px; }
.seat__status.is-win { color: var(--gold); font-weight: 680; }

.seat__bet { position: absolute; font-family: var(--font-num); font-size: 12.5px; font-weight: 620; color: var(--text);
  background: rgba(6,18,13,0.85); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; display: flex; align-items: center; gap: 5px; z-index: 8; }
.seat__bet::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ffe6a8, var(--gold-dim)); border: 1px solid #fff3d6; }

.dealer-btn { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d7d2c0);
  color: #23303a; font-weight: 800; font-size: 11px; display: grid; place-items: center; border: 1px solid #b9b4a0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5); position: absolute; z-index: 16; }

.timer-ring { position: absolute; inset: -3px; border-radius: 12px; pointer-events: none; }

/* action bar */
.actionbar {
  margin-top: 4px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-soft);
}
.actionbar__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actionbar__sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.raise-box { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.raise-box output { font-family: var(--font-num); font-weight: 680; color: var(--gold); font-size: 16px; min-width: 66px; text-align: right; }
.msgline { min-height: 20px; color: var(--muted); font-size: 13.5px; }

.table-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table-top .hud { flex: 1 1 auto; }
.speedbar { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.speedbar__lbl { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.speedbar input[type="range"] { width: 104px; }

/* log / sidebar */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.hud { display: flex; gap: 8px; flex-wrap: wrap; }
.hud__item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; flex: 1; min-width: 92px; }
.hud__k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hud__v { font-family: var(--font-num); font-size: 15.5px; font-weight: 660; margin-top: 1px; }
.log { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; height: 148px; overflow-y: auto; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.log b { color: var(--text); font-weight: 600; }
.log-head { color: var(--gold-dim); font-weight: 640; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line-soft); }
.log-head:first-child { border-top: 0; margin-top: 0; }
.log-result { color: var(--gold); font-weight: 620; }

/* ============================================================================
   Training
   ========================================================================== */

.trainer { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.trainer__main { display: flex; flex-direction: column; gap: 18px; }
.prompt-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); box-shadow: var(--shadow-soft); }
.prompt-scene { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 0 6px; }
.scene-felt { background: radial-gradient(120% 120% at 50% 0%, var(--felt), var(--felt-2)); border: 8px solid #08251a; border-radius: 20px; padding: 22px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; box-shadow: inset 0 2px 20px rgba(0,0,0,0.4); }
.scene-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.14em; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.choice {
  padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  cursor: pointer; font-weight: 620; font-size: 15px; text-align: center; transition: border-color 0.12s, transform 0.08s;
}
.choice:hover { border-color: #35624a; }
.choice:active { transform: translateY(1px); }
.choice.is-correct { border-color: var(--emerald); background: rgba(52,194,129,0.14); color: #a5edc6; }
.choice.is-wrong { border-color: var(--danger); background: rgba(224,104,90,0.14); color: #f2b3a8; }
.choice.is-dim { opacity: 0.5; }

.feedback { border-radius: 13px; padding: 16px 18px; border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.feedback--correct { border-color: #2c7d55; background: rgba(52,194,129,0.10); }
.feedback--wrong { border-color: #8f4a3f; background: rgba(224,104,90,0.09); }
.feedback__head { font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feedback--correct .feedback__head { color: #78e3ab; }
.feedback--wrong .feedback__head { color: #f0a08e; }
.feedback b { color: var(--text); }

.statbox { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.statbox__title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.stat-line:last-child { border-bottom: 0; }
.stat-line__v { font-family: var(--font-num); font-weight: 680; }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); margin-top: 10px; }
.meter__fill { height: 100%; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); }

/* hand grid (13x13) */
.handgrid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; width: 100%; max-width: 420px; }
.handgrid__cell { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(7px, 1.1vw, 10px); font-weight: 640;
  border-radius: 3px; background: #16221b; color: var(--faint); border: 1px solid transparent; }
.handgrid__cell.in-range { background: rgba(52,194,129,0.24); color: #cff3e0; }
.handgrid__cell.is-pair { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.handgrid__cell.is-current { outline: 2px solid var(--gold); outline-offset: -1px; color: #fff; z-index: 2; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.big-num { font-family: var(--font-num); font-weight: 720; font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; color: var(--gold); line-height: 1; }
.progress-dots { display: flex; gap: 5px; }
.progress-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.progress-dots span.hit { background: var(--emerald); }
.progress-dots span.miss { background: var(--danger); }

/* modal / result overlay */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 10, 7, 0.66); backdrop-filter: blur(3px); animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; max-width: 460px; width: 100%; box-shadow: var(--shadow); text-align: center; }
.modal h2 { font-size: 22px; margin-bottom: 6px; }

.result-toast { position: absolute; left: 50%; top: 17%; transform: translateX(-50%); z-index: 30;
  background: rgba(6,20,14,0.94); border: 1px solid var(--gold); color: var(--gold); font-weight: 680;
  padding: 8px 18px; border-radius: 16px; font-size: 14.5px; box-shadow: var(--shadow); animation: pop 0.25s ease;
  max-width: 82%; text-align: center; white-space: normal; line-height: 1.35; }
@keyframes pop { from { transform: translate(-50%, 6px) scale(0.9); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* ----- misc --------------------------------------------------------------- */

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 4px 0; }
.kbd { font-family: var(--font-num); font-size: 11px; background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.link { color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.footer-note { color: var(--faint); font-size: 12px; text-align: center; padding: 26px 0 8px; }

@media (max-width: 860px) {
  .trainer { grid-template-columns: 1fr; }
  .seat { width: 112px; }
  .seat__cards { height: 42px; }
}
@media (max-width: 620px) {
  .card { --w: 46px; --h: 66px; }
  .seat { width: 92px; }
}
