:root {
  --bg: #0e0e12;
  --bg-2: #1a1622;
  --panel: #f6f1e7;        /* warm "screen" cream */
  --panel-2: #ece3d0;
  --gold: #e3b341;         /* marquee gold */
  --gold-dk: #b8902c;
  --red: #c8102e;          /* red-carpet crimson */
  --red-dk: #8f0a1f;
  --ink: #18161c;
  --navy: #241f30;         /* deep theater plum */
  --green: #2f8f5b;
  --line: rgba(36, 31, 48, 0.14);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 50% -8%, #2a2238 0%, var(--bg) 58%) fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 22px 18px 80px; }

/* ---------- Arcade cross-promo bar ---------- */
.arcade-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 7px; margin: 0 0 6px; padding: 7px 4px 12px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
}
.arcade-tag {
  font-family: var(--sans); font-size: 10.5px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
}
.arcade-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(246, 241, 231, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.15);
  color: #f6f1e7; text-decoration: none;
  font-family: var(--serif); font-weight: 800; font-size: 13px;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.arcade-link i {
  font-style: normal; font-family: var(--sans); font-weight: 700;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase; opacity: .55;
}
.arcade-link:hover {
  background: rgba(246, 241, 231, 0.13);
  border-color: var(--gold); transform: translateY(-1px);
}
.arcade-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 560px) {
  .arcade-tag { width: 100%; text-align: center; margin-bottom: 1px; }
  .arcade-link { font-size: 12px; padding: 4px 9px; }
  .arcade-link i { display: none; }
}

/* ---------- Masthead ---------- */
.masthead { text-align: center; padding: 14px 0 22px; }
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 800; letter-spacing: 2px;
  color: var(--gold);
}
.logo .bulb { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 14px rgba(227,179,65,.5)); }
.logo .score { font-size: 44px; line-height: 1; text-shadow: 0 0 22px rgba(227,179,65,.25); }
@media (max-width: 460px) {
  .logo { gap: 8px; letter-spacing: 1px; }
  .logo .bulb { font-size: 26px; }
  .logo .score { font-size: 32px; }
  .tagline { font-size: 10.5px; letter-spacing: 2px; }
}
.logo .dash { color: var(--panel); }
.tagline {
  color: rgba(246,241,231,.62); font-weight: 700; letter-spacing: 3px;
  font-size: 12px; text-transform: uppercase; margin-top: 8px;
}

/* ---------- Card surface ---------- */
.panel {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36,31,48,0.04) 1px, transparent 1px);
  background-size: 4px 4px; pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none; border: none; cursor: pointer; font-family: var(--sans);
  font-weight: 800; letter-spacing: .4px; border-radius: 999px;
  padding: 14px 28px; font-size: 15px; transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-dk); }
.btn-red:hover { background: #d51a38; }
.btn-red:active { box-shadow: 0 2px 0 var(--red-dk); }
.btn-navy { background: var(--navy); color: var(--panel); }
.btn-navy:hover { background: #322a44; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { background: rgba(36,31,48,.05); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* ---------- Intro ---------- */
.intro { padding: 34px 30px 36px; text-align: center; }
.intro h2 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-bottom: 8px; }
.intro p { color: #3a3a3a; max-width: 560px; margin: 0 auto 10px; line-height: 1.55; }
.rules { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 26px 0; text-align: left; }
@media (max-width: 460px) { .rules { grid-template-columns: 1fr; gap: 10px; } .rule { display: flex; align-items: baseline; gap: 10px; } .rule .num { font-size: 18px; } .rule h4 { margin: 0; } .rule p { display: inline; } }
.rule { background: var(--panel-2); border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.rule .num { font-family: var(--serif); font-weight: 800; color: var(--red); font-size: 20px; }
.rule h4 { color: var(--navy); margin: 6px 0 4px; font-size: 15px; }
.rule p { font-size: 13px; color: #555; margin: 0; }
.mode-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #7a6b45; margin-bottom: 8px; }
.mode-toggle { display: inline-flex; flex-wrap: wrap; justify-content: center; background: var(--panel-2); border-radius: 16px; padding: 5px; gap: 4px; margin: 0 0 24px; border: 1px solid var(--line); }
.mode-toggle button { border: none; background: transparent; padding: 10px 24px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--navy); font-size: 14px; }
.mode-toggle button.on { background: var(--navy); color: var(--gold); }
.load-note { margin-top: 14px; color: #7a6b45; font-size: 13px; }

/* ---------- Game layout ---------- */
.gamebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { background: rgba(246,241,231,.08); color: var(--panel); border: 1px solid rgba(246,241,231,.16); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill b { color: var(--gold); }

/* ---------- Slate board ---------- */
.lineup { display: grid; grid-template-columns: repeat(1, 1fr); gap: 8px; padding: 16px; margin-bottom: 16px; }
@media (min-width: 620px) { .lineup { grid-template-columns: repeat(2, 1fr); } }
.slot {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px dashed var(--line); min-height: 54px;
}
.slot.filled { border-style: solid; background: #fff; border-color: rgba(36,31,48,.18); }
.slot.target { outline: 2px solid var(--gold); outline-offset: 1px; }
.slot .pos { font-size: 22px; width: 30px; text-align: center; flex: none; }
.slot .gname { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #7a6b45; font-weight: 800; }
.slot .empty { color: #7a6b45; font-size: 12.5px; }
.slot .nm { font-weight: 800; font-size: 14px; color: var(--ink); line-height: 1.15; }
.slot .meta { font-size: 11px; color: #6a6a6a; }

/* ---------- Slot machine ---------- */
.machine { padding: 22px 18px 24px; text-align: center; margin-bottom: 16px; }
.mode-indicator { display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; color: var(--navy); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 15px; margin-bottom: 4px; }
.mode-goal { font-size: 12px; color: #666; margin-top: 3px; letter-spacing: .2px; text-align: center; }
.mode-goal:empty { display: none; }
.reels { display: flex; justify-content: center; gap: 12px; margin: 12px 0 18px; }
.reel { flex: 1; max-width: 300px; background: var(--navy); border-radius: 14px; padding: 16px 14px; color: var(--panel); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); position: relative; overflow: hidden; }
.reel .label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.reel .val { font-family: var(--serif); font-weight: 800; font-size: 21px; margin-top: 5px; min-height: 27px; }
.reel.spin .val { animation: blur .4s linear infinite; }
@keyframes blur { 0%,100%{ filter: blur(0); opacity:1 } 50%{ filter: blur(1.5px); opacity:.7 } }
.controls { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Candidate cards ---------- */
.cands { padding: 4px 16px 20px; }
.cands h3 { text-align: center; font-family: var(--serif); color: var(--navy); margin: 6px 0 14px; font-size: 18px; }
.sortbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; }
.sortbar .sortchip { border: 1px solid var(--line); background: var(--panel-2); color: var(--navy); font-family: var(--sans); font-weight: 800; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.sortbar .sortchip:hover { border-color: var(--gold); }
.sortbar .sortchip.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.sortbar .sortchip .caret { font-size: 10px; opacity: .9; }
/* --- Row-list cards --- */
.cards { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cands-count { font-size: 12px; color: #6f6347; margin: 0 0 8px; letter-spacing: .2px; text-align: center; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; transition: background .1s; position: relative; appearance: none; border-left: none; border-right: none; border-top: none; font-family: var(--sans); }
.pcard:last-child { border-bottom: none; }
.pcard:hover { background: rgba(227,179,65,.08); }
.pcard .stripe { display: none; }
.pcard .fills { display: none; }
.pcard .pos-tag { display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--panel); font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 6px; letter-spacing: .8px; min-width: 34px; flex-shrink: 0; margin-top: 0; white-space: nowrap; }
.pcard .pcard-info { flex: 1; min-width: 0; }
.pcard .nm { font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.15; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .yr { font-size: 11px; color: #666; margin-top: 1px; }
.pcard .stat-row { display: flex; gap: 10px; flex-shrink: 0; }
.pcard .stat-cell { text-align: center; min-width: 32px; }
.pcard .stat-cell .sv { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1; }
.pcard .stat-cell .sl { font-size: 9px; color: #6b6b6b; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.pcard .pcost { margin: 0 0 0 10px; padding: 0 0 0 10px; border-left: 1px solid var(--line); border-top: none; text-align: right; font-family: var(--serif); font-weight: 800; color: var(--green); font-size: 15px; flex-shrink: 0; }
.pcard.hidden-stats .stat-row { filter: blur(5px); user-select: none; }
.pcard .stat { display: none; }
/* --- Stats stacked beneath the name (grid layout) — name keeps full row width --- */
.pcard { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "tag info cost" "tag stats cost"; column-gap: 12px; row-gap: 5px; align-items: center; }
.pcard .pos-tag { grid-area: tag; align-self: center; }
.pcard .pcard-info { grid-area: info; align-self: center; }
.pcard .stat-row { grid-area: stats; align-self: center; justify-content: flex-start; }
.pcard .pcost { grid-area: cost; align-self: center; }
.pcard .nm { white-space: normal; overflow: visible; text-overflow: clip; }

/* --- Sticky roster dock --- */
.roster-dock { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(245,237,216,.15); padding: 10px 12px env(safe-area-inset-bottom, 8px); display: flex; gap: 6px; overflow-x: auto; z-index: 40; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: center; }
.roster-dock::-webkit-scrollbar { display: none; }
.roster-dock.hidden { display: none; }
.rd-slot { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 44px; padding: 4px 6px; border-radius: 8px; border: 1px solid rgba(245,237,216,.18); background: rgba(245,237,216,.06); cursor: default; }
.rd-slot.filled { background: rgba(227,179,65,.18); border-color: rgba(227,179,65,.45); }
.rd-slot.target { outline: 2px solid var(--gold); outline-offset: 1px; }
.rd-slot .rd-pos { font-size: 9px; font-weight: 800; letter-spacing: .8px; color: var(--gold); text-transform: uppercase; line-height: 1; text-align: center; }
.rd-slot .rd-name { font-size: 9px; color: rgba(245,237,216,.7); margin-top: 2px; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.rd-slot.filled .rd-name { color: var(--panel); }
body.has-dock { padding-bottom: 72px; }
body.has-dock .wrap { padding-bottom: 80px; }

/* ---------- Results ---------- */
.result { padding: 30px 24px 34px; text-align: center; }
.record { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: 76px; line-height: 1; letter-spacing: -2px; }
.record small { display:block; font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #7a6b45; margin-top: 6px; }
.vtag { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; letter-spacing: 3px; padding: 7px 20px; border-radius: 999px; margin: 16px 0 8px; font-size: 13px; }
.vtag.perfect { background: var(--red); color: #fff; }
.vtag.razzie { background: #7a1d1d; color: #ffd9d9; }
.vtag.heaven { background: var(--navy); color: var(--gold); }
.weak.ringer { background: rgba(47,143,91,.12); border-color: rgba(47,143,91,.4); color: #1f5f3b; }
.weak.heaven { background: rgba(36,31,48,.07); border-color: rgba(36,31,48,.25); color: var(--navy); }
.mode-indicator.worst { background: #7a1d1d; color: #ffd9d9; border-color: #7a1d1d; }
.vline { color: #444; max-width: 480px; margin: 0 auto 18px; line-height: 1.5; }
.boxscore { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }
.bs { background: var(--panel-2); border-radius: 12px; padding: 14px 8px; border: 1px solid var(--line); }
.bs .k { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #7a6b45; }
.bs .v { font-family: var(--serif); font-weight: 800; font-size: 24px; color: var(--navy); margin-top: 3px; }
.weak { background: rgba(227,179,65,.13); border: 1px solid rgba(227,179,65,.4); border-radius: 10px; padding: 11px 14px; font-size: 13px; color: #6b5418; margin: 6px auto 20px; max-width: 520px; }
.weak.bad { background: rgba(200,16,46,.08); border-color: rgba(200,16,46,.25); color: var(--red-dk); }
.roster-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px; margin: 18px 0; }
.rs-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px; text-align: left; }
.rs-card .p { font-size: 14px; }
.rs-card .n { font-size: 12.5px; font-weight: 800; line-height: 1.15; margin: 3px 0; }
.rs-card .m { font-size: 10.5px; color: #777; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Head-to-head ---------- */
.challenge-card { padding: 20px 24px 22px; text-align: center; border-top: 4px solid var(--red); margin-bottom: 16px; }
.challenge-card .cc-tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 800; }
.challenge-card .cc-text { color: var(--navy); font-size: 16px; line-height: 1.5; max-width: 520px; margin: 8px auto 16px; }
.challenge-card .cc-text b { color: var(--red); }
.vs { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 20px; margin: 2px auto 14px; }
.vs b { color: var(--navy); font-size: 16px; display: block; }
.vs span { font-size: 13px; color: #555; }

.again-label { text-align: center; margin-top: 22px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #7a6b45; }
.again-modes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.again-modes .amode { border: 2px solid var(--line); background: transparent; color: var(--navy); border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 13px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.again-modes .amode:hover { background: rgba(36,31,48,.06); }
.again-modes .amode.cur { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ---------- Daily Greenlight ---------- */
.daily-card { padding: 20px 22px 22px; text-align: center; border-top: 4px solid var(--gold); margin-bottom: 16px; }
.daily-card .dc-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.daily-card .dc-badge { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dk); font-weight: 800; }
.daily-card .dc-num { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: 14px; }
.daily-card .dc-name { font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 800; margin: 6px 0 4px; }
.daily-card .dc-desc { color: #555; font-size: 13.5px; line-height: 1.5; max-width: 520px; margin: 0 auto 14px; }
.daily-card .dc-result { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 13px; color: var(--navy); margin: 0 auto 14px; max-width: 460px; }
.daily-card .dc-result .rk { color: var(--gold-dk); }
.dc-share { margin-left: 8px; border: 1px solid var(--line); background: transparent; color: var(--navy); font-family: var(--sans); font-weight: 800; font-size: 11px; padding: 4px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.dc-share:hover { border-color: var(--gold); }

/* ---------- Constraint banner (in-game) ---------- */
.constraint-banner { padding: 12px 16px; margin-bottom: 14px; text-align: center; color: #3a3a3a; font-size: 13px; line-height: 1.45; border-left: 4px solid var(--gold); }
.constraint-banner b { color: var(--navy); }

/* ---------- Leaderboard ---------- */
.lb { margin: 20px auto 4px; max-width: 520px; text-align: left; }
.lb-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #7a6b45; font-weight: 800; text-align: center; margin-bottom: 10px; }
.lb-you { text-align: center; color: var(--navy); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.lb-you b { color: var(--gold-dk); }
.lb-list { display: flex; flex-direction: column; gap: 4px; }
.lb-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 7px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.lb-row.me { background: rgba(227,179,65,.16); border-color: rgba(227,179,65,.5); }
.lb-rank { font-family: var(--serif); font-weight: 800; color: var(--navy); }
.lb-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-family: var(--serif); font-weight: 800; color: var(--navy); }
.lb-join { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lb-join input { padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-family: var(--sans); min-width: 200px; }
.lb-note { text-align: center; color: #7a6b45; font-size: 11.5px; margin-top: 10px; }
.lb-loading, .lb-err { text-align: center; color: #7a6b45; font-size: 13px; padding: 8px; }
.lb-err { color: var(--red-dk); }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--gold); padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ---------- Intro note ---------- */
.intro-note { color: #6b5418; background: rgba(227,179,65,.13); border: 1px solid rgba(227,179,65,.4); border-radius: 10px; padding: 11px 15px; max-width: 545px; margin: 4px auto 20px; font-size: 13.5px; line-height: 1.5; }
.intro-note b { color: var(--navy); }
.intro-note i { color: var(--navy); font-style: italic; }

/* ---------- Budget meter ---------- */
.budgetbar { padding: 14px 18px; margin-bottom: 14px; }
.budgetbar .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.budgetbar .lbl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #7a6b45; }
.budgetbar .amt { font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--navy); }
.budgetbar .amt.over { color: var(--red); }
.meter { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line); }
.meter .fill { height: 100%; background: linear-gradient(90deg, var(--green), #49b074); transition: width .25s, background .25s; }
.meter .fill.warn { background: linear-gradient(90deg, var(--gold), var(--red)); }

/* ---------- Card cost + afford ---------- */
.afford { font-size: 12px; color: #7a6b45; font-weight: 600; letter-spacing: 0; }

.hidden { display: none !important; }
.foot { text-align: center; color: rgba(246,241,231,.4); font-size: 12px; margin-top: 26px; line-height: 1.6; }
.foot a { color: rgba(246,241,231,.7); }

/* ---------- Keyboard focus visibility ---------- */
button:focus-visible, input:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Result score explainer ---------- */
.score-note { font-size: 12.5px; color: #7a6b45; max-width: 520px; margin: 12px auto 0; line-height: 1.45; }

/* ---------- Two-column desktop board (82-0 layout: slate beside the machine) ---------- */
@media (min-width: 860px) {
  #game { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  #game > .gamebar, #game > .constraint-banner, #game > .budgetbar { grid-column: 1 / -1; }
  #game > .machine { grid-column: 2; grid-row: 4; }
  #game > .cands { grid-column: 2; grid-row: 5; }
  #game > .lineup { grid-column: 1; grid-row: 4 / span 2; grid-template-columns: 1fr; position: sticky; top: 14px; }
  /* The slate is always on screen in the sidebar — the bottom dock is redundant */
  .roster-dock { display: none; }
  body.has-dock { padding-bottom: 0; }
}
