/* BG Coach — laptop app. Tavern slate: chalk on green-black, brass for gold, gem colours for tiers. */
:root {
  --slate: #1d2724; --slate-2: #24302c; --slate-3: #2d3a35; --rule: #3b4a44; --bar: #162019;
  --chalk: #ece6d6; --chalk-dim: #a9b1a4; --brass: #d6a94a; --brass-ink: #2b1f08; --good: #7fc79a; --crimson: #d24a5c;
  --slab: "Zilla Slab", Rockwell, Georgia, serif; --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --head: 58px;
  --foot: 30px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--slate); color: var(--chalk); font: 15.5px/1.45 var(--body); overflow: hidden; }
a { color: var(--brass); text-underline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--slab); margin: 0; line-height: 1.15; }
h2 { font-size: 21px; } h3 { font-size: 17px; } h4 { font-size: 15px; }
p { margin: 5px 0; }
.dim { color: var(--chalk-dim); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
kbd { font: 11.5px var(--body); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--chalk-dim); }

/* ---------- header ---------- */
.bar { height: var(--head); display: flex; align-items: center; gap: 22px; padding: 0 20px; background: var(--bar); border-bottom: 1px solid var(--rule); }
.brand { font-family: var(--slab); font-weight: 700; font-size: 21px; color: var(--brass); white-space: nowrap; text-decoration: none; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav button { white-space: nowrap; background: none; border: 0; padding: 0 14px; color: var(--chalk-dim); font-weight: 700; border-bottom: 3px solid transparent; }
.nav button.on { color: var(--chalk); border-bottom-color: var(--brass); }
.nav a { white-space: nowrap; display: flex; align-items: center; padding: 0 14px; color: var(--chalk-dim); font-weight: 700; text-decoration: none; }
.bar .spacer { flex: 1; }
.fresh { font-size: 12.5px; color: var(--chalk-dim); white-space: nowrap; }
.fresh.stale { color: var(--crimson); font-weight: 700; }

/* ---------- shared controls ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid var(--rule); background: none; font-size: 13.5px; }
.chip[style*="--tc"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); margin-right: 6px; }
.chip.on { background: var(--chalk); color: #1b1712; border-color: var(--chalk); font-weight: 700; }
.seg { display: inline-flex; border: 1.5px solid var(--rule); border-radius: 7px; overflow: hidden; }
.seg button { min-height: 32px; padding: 0 12px; background: none; border: 0; border-left: 1.5px solid var(--rule); font-size: 13.5px; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--slate-3); color: var(--brass); font-weight: 700; }
.btn { min-height: 38px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--rule); background: var(--slate-3); font-weight: 700; }
.btn.brass { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.btn.link { background: none; border: 0; color: var(--brass); padding: 0; min-height: 0; }
.search { min-height: 34px; border-radius: 7px; border: 1.5px solid var(--rule); background: var(--slate-2); color: var(--chalk); padding: 0 10px; font: 14px var(--body); width: 220px; }
.empty { padding: 16px; border: 1.5px dashed var(--rule); border-radius: 8px; color: var(--chalk-dim); }

/* ---------- page shells: independent scrolling columns ---------- */
.page { height: calc(100vh - var(--head) - var(--foot)); display: grid; }
.col { overflow-y: auto; padding: 18px 20px 40px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.col + .col { border-left: 1px solid var(--rule); }
.col-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.col-head h2 { margin-right: auto; }
.play { grid-template-columns: 350px minmax(0, 1fr) 380px; }
.split { grid-template-columns: 380px minmax(0, 1fr); }
.section { margin-top: 22px; }
.section > h3 { margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; }
.section > h3 .dim { font: 13px var(--body); }

/* ---------- turn ticket ---------- */
.turnstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 12px; }
.tn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px 6px; min-height: 54px; border-radius: 8px; border: 1.5px solid var(--rule); background: none; color: var(--chalk-dim); }
.tn > b { font-family: var(--slab); font-size: 16px; line-height: 1; }
.tn.on { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.tn:hover:not(.on) { border-color: var(--chalk-dim); color: var(--chalk); }
.ais { display: flex; gap: 1px; justify-content: center; flex-wrap: wrap; }
.ai { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; }
.ai .ico { width: 15px; height: 15px; }
.ai.maybe { opacity: .45; }
.ai i, .act i { position: absolute; right: -3px; bottom: -3px; font: 700 9px/1 var(--slab); font-style: normal; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.act { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 6px; background: #2b2418; color: var(--chalk); font-size: 13.5px; }
.act .ico { width: 20px; height: 20px; color: var(--brass); }
.act i { right: auto; left: 20px; bottom: 2px; color: var(--brass); font-size: 10px; }
.act.maybe { background: none; color: #4a3f2c; border: 1.5px dashed #a89a7c; padding: 3px 9px 3px 6px; }
.act.maybe .ico { color: #8a7a58; }
.ticket { background: var(--chalk); color: #1b1712; border-radius: 3px; padding: 16px 18px 14px; position: relative; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6px 0, var(--chalk) 5px, transparent 5.5px) 0 0 / 12px 8px repeat-x; }
.ticket .t { display: flex; justify-content: space-between; font-family: var(--slab); font-weight: 700; color: #6b5a3c; }
.coins { display: inline-flex; align-items: center; gap: 6px; color: #6b4b06; }
.coins i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6d47e, #c08a1e 70%); box-shadow: inset 0 0 0 1.5px #8a5d0c; }
.ticket .do { font-family: var(--slab); font-weight: 700; font-size: 27px; line-height: 1.05; margin: 8px 0 8px; }
.ticket .tier { font-size: 13px; color: #5e5546; }
.ticket ul { list-style: none; margin: 8px 0 0; padding: 0; }
.ticket li { padding: 6px 0 6px 18px; border-top: 1px dashed #b9ae95; position: relative; font-size: 14.5px; }
.ticket li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 7px; height: 7px; transform: rotate(45deg); background: #6b5a3c; }
.ticket .note { margin-top: 8px; padding: 8px 10px; background: #e2d9c2; border-radius: 3px; font-size: 13.5px; }
.ticket .note.warn { background: #f2cfcf; color: #6d1220; }

/* ---------- ideas (pro tips) ---------- */
.idea { padding: 10px 0 10px 12px; border-left: 3px solid var(--brass); margin: 8px 0; background: linear-gradient(90deg, #d6a94a0d, transparent 60%); }
.idea p { margin: 2px 0; }
.idea .why { font-size: 13px; color: var(--chalk-dim); }
.src { display: inline-block; font-size: 12.5px; font-weight: 700; margin: 4px 10px 0 0; text-decoration: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--brass); color: var(--brass-ink); vertical-align: 2px; }
.tag.warn { background: var(--crimson); color: #fff; }
.tag.cat { background: var(--slate-3); color: var(--chalk-dim); }
.gift { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.gift p { margin: 2px 0; }
.lesson { padding: 10px 12px; border-radius: 6px; background: var(--slate-2); margin: 8px 0; font-size: 14px; }

/* ---------- cards ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 14px; }
.cardgrid.mini { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0 8px; }
.tile { position: relative; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; }
.tile img { width: 100%; height: auto; aspect-ratio: 256 / 388; display: block; margin-bottom: -15%; transition: transform .12s ease-out; }
.tile:hover img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }
.tile.mine img { filter: drop-shadow(0 0 9px #d6a94acc); }
.tile.dimmed { opacity: .4; }
.tile .badge { position: absolute; top: 2%; right: 2%; z-index: 1; }
.tile-score { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--chalk-dim); }
.tile-score i { font-style: normal; font-family: var(--slab); font-weight: 700; }
.tile-score b { font-family: var(--slab); font-size: 19px; color: var(--chalk); }
.tile-score.good b { color: var(--good); }

/* ---------- list rows (comps, heroes) ---------- */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 7px 8px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); }
.row:hover { background: var(--slate-2); }
.row.on { background: var(--slate-3); box-shadow: inset 3px 0 0 var(--brass); }
.row .nm { font-weight: 700; display: block; } .row .sub { display: block; font-size: 12.5px; color: var(--chalk-dim); }
.row .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 30% 20%; background: var(--slate-3); }
.row .rk { font-family: var(--slab); font-weight: 700; color: var(--chalk-dim); width: 20px; text-align: right; }
.row .lead { display: flex; align-items: center; gap: 10px; }
.score { text-align: right; } .score b { font-family: var(--slab); font-size: 19px; display: block; line-height: 1.1; } .score small { font-size: 11.5px; color: var(--chalk-dim); }
.score.good b { color: var(--good); }
.taps { display: inline-flex; gap: 2px; vertical-align: 0; }
.taps i { width: 5px; height: 11px; border-radius: 1px; background: var(--slate-3); }
.taps.c1 i:nth-child(-n+1) { background: var(--good); } .taps.c2 i:nth-child(-n+2) { background: var(--brass); } .taps.c3 i:nth-child(-n+3) { background: var(--crimson); }
.tribe { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 4px; background: var(--slate-3); }
.tribe::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc, var(--chalk-dim)); }

/* ---------- detail panes ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 8px; }
.detail-head h1 { font-size: 34px; }
.stats3 { display: flex; gap: 22px; margin: 6px 0 10px; color: var(--chalk-dim); font-size: 14px; }
.stats3 b { color: var(--chalk); font-family: var(--slab); font-size: 22px; }
.quote { border-left: 3px solid var(--brass); padding: 2px 0 2px 12px; margin: 10px 0; }
.quote .by { font-size: 12.5px; color: var(--chalk-dim); }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.hero-art { width: 220px; height: 220px; border-radius: 12px; object-fit: cover; object-position: 50% 22%; }
ul.plain { margin: 6px 0; padding-left: 20px; } ul.plain li { margin: 4px 0; }
.tipcols { columns: 2 360px; column-gap: 28px; }
.tipcols .idea { break-inside: avoid; }
.giftcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 26px; }
.giftcols h3 { border-bottom: 2px solid var(--brass); padding-bottom: 4px; margin-bottom: 4px; }

/* ---------- card sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: #000b; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet-box { position: relative; width: min(920px, 100%); max-height: 90vh; overflow: auto; background: var(--slate-2); border-radius: 12px; padding: 24px; }
.sheet-box .x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; color: var(--chalk-dim); }
.sheet-grid { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.sheet-card { width: 100%; height: auto; }
.sheet-grid h2 { font-size: 30px; margin-bottom: 6px; }
.turntable { border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.turntable th { text-align: left; font-weight: 400; color: var(--chalk-dim); padding: 4px 10px 4px 0; white-space: nowrap; }
.turntable td { padding: 4px 7px; text-align: center; border-left: 1px solid var(--rule); }
.turntable td.good { color: var(--good); font-weight: 700; } .turntable td.poor { color: var(--chalk-dim); }

@media (max-width: 1250px) { .play { grid-template-columns: 320px minmax(0, 1fr); } .play .col-right { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); } .page.game { height: auto; } body { overflow: auto; } .play .col { overflow: visible; } }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } .page { height: auto; } .col { overflow: visible; } .twocol { grid-template-columns: 1fr; } .sheet-grid { grid-template-columns: 1fr; } }

/* source icons + footer (disclaimer on every page) */
.sicon { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--sc); color: #fff; font: 700 10.5px/1 var(--body); text-decoration: none; vertical-align: 1px; margin: 0 2px; }
a.sicon:hover { filter: brightness(1.15); outline: 2px solid #fff3; }
.src .sicon { margin: 0 3px 0 0; }
.foot { height: var(--foot); display: flex; align-items: center; gap: 16px; padding: 0 20px; border-top: 1px solid var(--rule); background: var(--bar); font-size: 11.5px; color: var(--chalk-dim); white-space: nowrap; overflow: hidden; }
.foot { text-overflow: ellipsis; } .foot-src { margin-left: auto; display: flex; align-items: center; gap: 4px; }
/* contested flags */
.tag.open { background: var(--good); color: #10241a; }
.tile .badge.hard { background: var(--crimson); color: #fff; }
.tile .badge.easy { background: var(--good); color: #10241a; }
.seg.contest button { min-height: 26px; padding: 0 8px; font-size: 12px; }
.contest-row { grid-template-columns: 1fr 0 auto; min-height: 40px; }
/* pregame */
.gbody.pregame { display: block; overflow: auto; padding: 22px 28px; }
.pre-head h1 { margin: 0 0 4px; font-family: var(--slab); }
.pre-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 18px 0 22px; }
.pre-steps h2 { font-size: 18px; margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.pre-steps h2.gap { margin-top: 18px; }
.pre-steps .num { display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--brass); color: var(--brass-ink); font-size: 14px; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.offer { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--slate-2); }
.offer.best { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass) inset; }
.offer > .tag { justify-self: start; }
.offer .hero-art { width: 100%; height: 110px; object-fit: cover; object-position: 50% 25%; border-radius: 8px; }
.offer h3 { margin: 4px 0 0; font-family: var(--slab); font-size: 22px; }
.offer .btn { margin-top: 6px; }
/* my board (tracked by hand) */
.boardbox { background: var(--slate-2); border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px 10px; }
.boardbox .col-head { margin-bottom: 8px; }
.boardbox .col-head h2 { font-size: 19px; }
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 10px 6px 4px; border-radius: 10px; background: radial-gradient(ellipse at 50% 120%, #3a2e1c 0%, #2a2318 60%, #211c14 100%); }
.slot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.slot .face, .pv .face, .order .face { position: relative; display: block; width: 100%; max-width: 76px; aspect-ratio: 4 / 5; border-radius: 50%; overflow: visible; padding: 0; border: 2px solid #8b7a5c; background: var(--slate-3); }
.slot .face img, .pv .face img, .order .face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.slot.gold .face { border-color: #f2c94c; box-shadow: 0 0 0 2px #f2c94c88; }
.slot.key .face { box-shadow: 0 0 0 3px var(--brass); }
.slot.empty span { display: block; width: 100%; max-width: 76px; aspect-ratio: 4 / 5; border-radius: 50%; border: 2px dashed #5d5140; }
.gem { position: absolute; left: -4px; top: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--chalk); color: #1b1712; font: 700 11px/1 var(--slab); box-shadow: 0 0 0 1.5px #1b1712; }
.slot .nm, .pv .nm { font-size: 11px; line-height: 1.15; text-align: center; color: var(--chalk); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .ctl { display: flex; gap: 2px; }
.slot .ctl button { min-width: 22px; height: 20px; padding: 0 4px; border: 1px solid var(--rule); border-radius: 4px; background: var(--slate); font-size: 10.5px; color: var(--chalk-dim); }
.slot .ctl button:hover:not(:disabled) { color: var(--chalk); border-color: var(--chalk-dim); }
.slot .ctl button:disabled { opacity: .3; cursor: default; }
.hand { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule); }
.hand > .dim { align-self: center; margin-right: 4px; }
.hand .slot { width: 64px; }
.insights { margin-top: 8px; }
.ins { margin: 4px 0; padding: 3px 0 3px 10px; border-left: 3px solid var(--chalk-dim); font-size: 13.5px; }
.ins.warn { border-color: var(--crimson); } .ins.good { border-color: var(--good); }
.fits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.tile-wrap { position: relative; display: flex; flex-direction: column; }
.tile-wrap .add { position: absolute; left: 4%; top: 2%; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--brass-ink); background: var(--brass); color: var(--brass-ink); font: 700 19px/1 var(--body); }
.tile-wrap .add:hover { filter: brightness(1.1); }
/* comp preview */
.pvrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pv { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; min-width: 0; }
.pv.key .face { border-color: var(--brass); }
.pv.own .face img { filter: saturate(.55) brightness(.75); }
.pv.need .face { box-shadow: 0 0 0 3px var(--brass), 0 0 14px 2px #d6a94a99; }
.pv .ok { position: absolute; right: -4px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #10241a; font-weight: 700; font-size: 12px; }
.pv.any .face { border-style: dashed; background: none; }
.pv.any .nm { color: var(--chalk-dim); white-space: normal; }
.col-right .pvrow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; } .col-right .pv .nm { font-size: 11px; }
/* organizer */
.order { list-style: none; counter-reset: o; margin: 8px 0; padding: 0; }
.order li { display: grid; grid-template-columns: 28px 52px 1fr; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); counter-increment: o; }
.order li::before { content: counter(o); font-family: var(--slab); font-weight: 700; font-size: 20px; color: var(--brass); text-align: center; }
.order .face { width: 52px; }
.history { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.history li { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.history .t { display: inline-block; min-width: 34px; font-family: var(--slab); font-weight: 700; color: var(--brass); }
.note { margin: 8px 0; padding: 8px 10px; background: var(--slate-3); border-radius: 6px; font-size: 13.5px; }
.note.warn { box-shadow: inset 3px 0 0 var(--crimson); }
s.dim { text-decoration-thickness: 1px; }
/* hero x comp modifier */
.mod { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--slate-3); color: var(--chalk-dim); white-space: nowrap; }
.mod.better { background: #1f4a33; color: var(--good); } .mod.worse { background: #4a1f27; color: #f09aa6; }
.score .mod { display: block; margin-bottom: 2px; }
.rows.build .row { min-height: 46px; }
.rows.build .lead .tag { vertical-align: 0; }
/* pregame hero grid */
.herogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px 6px; max-height: 300px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--slate-2); overflow-y: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.hpick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0; border-radius: 8px; background: none; }
.hpick img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--rule); }
.hpick .nm { font-size: 11.5px; line-height: 1.15; text-align: center; }
.hpick .ev { font: 700 12px var(--slab); color: var(--chalk-dim); } .hpick .ev.good { color: var(--good); } .hpick .ev.poor { color: #f09aa6; }
.hpick:hover:not(:disabled) { background: var(--slate-3); }
.hpick.on { background: var(--slate-3); } .hpick.on img { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass); }
.hpick.on::after { content: "✓"; position: absolute; top: 2px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--brass); color: var(--brass-ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.hpick:disabled { opacity: .35; cursor: default; }
.offer h4 { font-family: var(--slab); margin: 6px 0 2px; }
.offer .x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--slate); color: var(--chalk); font-size: 18px; line-height: 1; }
.offers { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pre-steps { margin-bottom: 16px; } .pre-steps .col-head { margin-bottom: 8px; }
/* click a card to add it; i = details */
.tile-wrap .add { pointer-events: none; }
.tile-wrap .info { position: absolute; right: 4%; top: 12%; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--slate); color: var(--chalk); font: italic 700 14px/1 var(--slab); }
.tile-wrap .info:hover { border-color: var(--brass); color: var(--brass); }
.tile-wrap .tile .badge { right: auto; left: 18%; }
.pv { cursor: copy; }
/* minion finder */
.finder-in { width: 340px; flex: 1 1 260px; max-width: 420px; }
.finder { margin: 0 0 10px; padding: 8px; border-radius: 10px; background: var(--slate); border: 1.5px solid var(--brass); }
.frow { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
.fpick { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: start; padding: 6px; text-align: left; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--slate-2); }
.fpick:hover { border-color: var(--brass); }
.fpick.first { border-color: var(--brass); box-shadow: inset 3px 0 0 var(--brass); }
.fpick.dimmed { opacity: .5; }
.fpick .face { position: relative; display: block; width: 46px; aspect-ratio: 4 / 5; }
.fpick .face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #8b7a5c; }
.fpick b { display: block; font-size: 13.5px; } .fpick .tiny { display: block; }
.fpick .ftext { color: var(--chalk-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* toast */
.toast { position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 40; display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-radius: 10px; background: var(--chalk); color: #1b1712; font-weight: 700; box-shadow: 0 10px 30px -10px #000; }
.toast[hidden] { display: none; }
.toast .btn.link { color: #6b4b06; }
/* ---------- game dashboard: status bar on top, three columns under it ---------- */
.page.game { grid-template-rows: auto minmax(0, 1fr); }
.page.game:has(> .gbody.pregame:only-child) { grid-template-rows: minmax(0, 1fr); }
.gbody { min-height: 0; }
.gbody.play { display: grid; grid-template-columns: 340px minmax(0, 1fr) 400px; }
.gbody.play > .col { min-height: 0; }
.pre-head h1 { margin-right: auto; }
.hud { display: flex; align-items: stretch; flex-wrap: wrap; padding: 0 12px; background: var(--slate-2); border-bottom: 1px solid var(--rule); }
.hud-cell { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 16px; border-left: 1px solid var(--rule); }
.hud .lbl { font-size: 12px; color: var(--chalk-dim); white-space: nowrap; }
.hud .big { font: 700 30px/1 var(--slab); min-width: 38px; text-align: center; }
.hud .spacer { flex: 1; }
.hud-new { align-self: center; padding: 0 8px; }
.hud-hero { display: flex; align-items: center; gap: 10px; max-width: 290px; padding: 6px 16px 6px 4px; border: 0; background: none; text-align: left; }
.hud-hero img, .hud-hero .noav { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--brass); }
.hud-hero .noav { border-style: dashed; border-color: var(--rule); }
.hud-hero b { display: block; font-family: var(--slab); font-size: 18px; }
.hud-hero:hover b { color: var(--brass); }
.hud-lobby { display: block; font-size: 11.5px; line-height: 1.3; color: var(--chalk-dim); }
.hud-lobby i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--tc); }
.turnctl, .hpctl, .tiers { display: flex; align-items: center; gap: 6px; }
.turnctl > button:not(.btn), .hpctl button { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; border: 1.5px solid var(--rule); background: var(--slate); font-size: 13px; }
.turnctl > button:disabled { opacity: .3; cursor: default; }
.turnctl .btn { min-height: 32px; }
.tg { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--rule); background: none; color: var(--chalk-dim); font: 700 15px/1 var(--slab); }
.tg.past { background: #3a2e1c; border-color: #6b5a3c; color: var(--chalk); }
.tg.on { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); box-shadow: 0 0 0 3px #d6a94a44; }
.hp input { width: 66px; height: 36px; border-radius: 7px; border: 1.5px solid var(--good); background: var(--slate); color: var(--good); font: 700 26px/1 var(--slab); text-align: center; -moz-appearance: textfield; }
.hp input::-webkit-inner-spin-button, .hp input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hp.mid input { border-color: var(--brass); color: var(--brass); }
.hp.low input { border-color: var(--crimson); background: var(--crimson); color: #fff; }
.hud-plan { max-width: 340px; } .hud-plan b { font-family: var(--slab); font-size: 16px; }
.hud .tribe { font-size: 11.5px; }
/* what the others play */
.seen { display: grid; gap: 4px; }
.seenrow { display: grid; grid-template-columns: 1fr auto 74px; align-items: center; gap: 10px; padding: 3px 6px; border-radius: 6px; }
.seenrow.hot { background: #4a1f2766; } .seenrow.cold { background: #1f4a3366; }
.seenrow .step { display: flex; align-items: center; gap: 6px; }
.seenrow .step button { width: 28px; height: 28px; border-radius: 6px; border: 1.5px solid var(--rule); background: var(--slate); }
.seenrow .step button:disabled { opacity: .3; cursor: default; }
.seenrow .step b { min-width: 18px; text-align: center; font: 700 17px var(--slab); }
.small-chips { align-items: center; } .small-chips .chip { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.order .face { width: 44px; } .order li { grid-template-columns: 24px 44px 1fr; padding: 4px 0; }
@media (max-width: 1250px) { .hud { position: sticky; top: 0; z-index: 5; } }
.foot > span:first-child { min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.foot .ciy-extra { flex-wrap: nowrap; white-space: nowrap; gap: 12px; }

/* ---------- wide and narrow laptops (design review 2026-12-06) ----------
   Past --app-max the app stops growing and sits centred; the bars still span the screen, their content lines up
   with the frame. Above 1250 px: three columns, the side ones grow a little with the screen. 981–1250: two columns,
   the right one under the centre. Up to 980: one column (rules above). */
:root { --app-max: 1920px; --gutter: max(0px, calc((100vw - var(--app-max)) / 2)); --edge: #6b7d74; }
.bar, .foot { padding-left: calc(var(--gutter) + 20px); padding-right: calc(var(--gutter) + 20px); }
#main > .page { width: 100%; max-width: var(--app-max); margin: 0 auto; }
@media (min-width: 1921px) { #main > .page { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); } }
@media (min-width: 1251px) { .gbody.play { grid-template-columns: clamp(290px, 19vw, 360px) minmax(0, 1fr) clamp(330px, 22vw, 440px); } }
@media (max-width: 1250px) { .gbody.play { grid-template-columns: clamp(260px, 32vw, 320px) minmax(0, 1fr); } }
@media (min-width: 981px) {
  .split { grid-template-columns: clamp(340px, 24vw, 440px) minmax(0, 1fr); }
  .split.wide-aside { grid-template-columns: clamp(380px, 26vw, 480px) minmax(0, 1fr); }
}
/* reading width on wide screens: details stay together */
.split > section.col > * { max-width: 1240px; }
.preview .pvrow { grid-template-columns: repeat(7, minmax(0, 120px)); justify-content: start; }
.col-right .preview .pvrow, .col-right .pvrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cardgrid { grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 8.5vw, 170px), 1fr)); }
.col-right .cardgrid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
.board .slot .face, .board .slot.empty span { max-width: 88px; }
.stats3 { flex-wrap: wrap; gap: 6px 16px; } .stats3 > span { white-space: nowrap; }
.col-right .pv .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.finder-in { flex: 1 1 200px; min-width: 0; }
/* pre-game: the hero grid uses the screen */
.herogrid { max-height: max(300px, calc(100vh - 380px)); }
/* turn strip and ticket on a narrow left column */
.ai i, .act i { font-size: 10.5px; }
.ticket .do { font-size: clamp(21px, 1.6vw, 27px); }
@media (min-width: 1800px) { .turnstrip { grid-template-columns: repeat(12, 1fr); } }
/* controls: borders that can be seen (3:1); --rule stays for dividers */
.chip, .seg, .search, .btn:not(.brass):not(.link), .tg:not(.on):not(.past) { border-color: var(--edge); }
.seg button { border-left-color: var(--edge); }
.fresh.stale { color: #e8707f; }
/* status bar: one line on a 1251–1500 px laptop */
@media (min-width: 1251px) and (max-width: 1500px) {
  .hud { flex-wrap: nowrap; padding: 0 6px; }
  .hud-cell { padding: 6px 10px; }
  .hud-hero { max-width: 220px; padding-right: 10px; }
  .hud-hero { min-width: 0; overflow: hidden; } .hud-hero > span { min-width: 0; overflow: hidden; }
  .hud-hero b, .hud-lobby { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-hero b { font-size: 16px; }
  .hud .big { font-size: 26px; }
  .hud-plan { max-width: 220px; }
  .hud-plan b { font-size: 14px; }
}
/* footer: the disclaimer must show in full, so on narrower screens the footer takes two lines */
.foot > span:first-child { min-width: 0; }
.foot .ciy-extra { flex-wrap: nowrap; white-space: nowrap; gap: 12px; }
@media (max-width: 1700px) {
  :root { --foot: 50px; }
  .foot { flex-wrap: wrap; align-content: center; row-gap: 2px; white-space: normal; }
  .foot > span:first-child { flex: 1 1 100%; white-space: normal; overflow: visible; }
  .foot-src { margin-left: 0; }
}
@media (max-width: 980px) {
  .bar { overflow-x: auto; } .bar .fresh { display: none; }
  .foot { height: auto; padding-top: 8px; padding-bottom: 8px; }
  .foot .ciy-extra { flex-wrap: wrap; white-space: normal; }
}
/* touch screens: bigger targets */
@media (pointer: coarse) {
  .tg, .hud button, .info, .tn { min-width: 40px; min-height: 40px; }
  .seg.contest button { min-width: 24px; min-height: 24px; }
}
