/* auction200 · the auction game. One dark stylesheet for the play pages: create, join, lobby, live room, results.
   The room is a stadium at night: near-black panels, gold for money and the paddle, red for live and danger,
   teal for your own squad, each team's colour for its chips. */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders-display.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500 600; font-display: swap; }

:root {
  --bg: #0B0E13; --bar: #0E1218; --panel: #12161D; --panel2: #141920; --tile: #171C24; --well: #0E1218;
  --line: #222A35; --line2: #2A3340; --edge: #3A4656; --btn: #1A2029;
  --ink: #F2F4F7; --sub: #C4CCD6; --muted: #9AA5B4; --dim: #7E8794;
  --red: #F2555A; --red-bg: #2A1416; --red-line: #5A2226; --red-ink: #FFB3B5;
  --gold: #F5C451; --gold-deep: #A57E23; --gold-bg: #2E2715; --gold-ink: #1A1405;
  --green: #5FD39A; --green-bg: #13281F; --green-line: #2D6A4C; --green-ink: #A9F0C8;
  --blue: #8CCBFF;
  --teal-bg: #101C1B; --teal-line: #1F4A45; --teal-well: #0C1615; --teal-label: #8FB7B1; --teal-slot: #16302C; --teal-ring: #235650;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
a:hover { color: #B8DEFF; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.disp { font-family: var(--display); font-weight: 800; }
.chip { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 6px; color: #0B0E13; font-weight: 800; font-size: 11px; width: 26px; height: 26px; }
.chip.lg { width: 48px; height: 48px; border-radius: 12px; font-size: 17px; }
.chip.md { width: 34px; height: 34px; border-radius: 8px; font-size: 13px; }
.chip.sm { width: 22px; height: 22px; border-radius: 5px; font-size: 10px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { color: var(--ink); border-color: #4A586B; }
.btn.ghost { background: transparent; color: var(--sub); }
.btn.gold { border: 0; background: var(--gold); color: var(--gold-ink); box-shadow: 0 5px 0 var(--gold-deep); font-family: var(--display); font-weight: 900; font-size: 22px; height: 56px; border-radius: 14px; }
.btn.gold:hover { color: var(--gold-ink); filter: brightness(1.05); }
.btn.gold:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-deep); }
.btn.gold:disabled { background: #3A3320; color: #BFA868; box-shadow: none; }
.btn.teal { border: 0; background: #2CC4B0; color: #06231F; font-weight: 800; }
.btn.teal:hover { color: #06231F; filter: brightness(1.06); }
.btn.sm { height: 38px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }

/* ---- the play header (create, join, my leagues) */
.pbar { border-bottom: 1px solid var(--line); background: var(--bar); }
.pbar .in { max-width: 1160px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.mark { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.mark:hover { color: var(--ink); }
.mark b { color: var(--red); font-weight: 800; }
.pnav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.pnav a { color: var(--sub); text-decoration: none; padding: 6px 0 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.pnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.pbar .back { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; }
.pbar .back:hover { color: var(--ink); }
.pmain { max-width: 1160px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left, 0px)) 56px; }
.pmain h1 { margin: 6px 0 8px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 56px); line-height: 1; }
.lede { margin: 0 0 26px; max-width: 660px; font-size: 16px; color: var(--sub); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.note { font-size: 13px; color: var(--muted); }
.err { color: #FF9EA1; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); font-size: 14px; }
.notice.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }

/* ---- landing */
.hero-play { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn.gold { padding: 0 26px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.steps b { font-family: var(--display); font-size: 21px; font-weight: 800; }
.steps span { font-size: 13.5px; color: var(--sub); }
.steps .n { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .08em; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rule { background: var(--tile); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rule .eyebrow { font-size: 11px; }
.mylist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.myrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.myrow:hover { color: var(--ink); border-color: var(--edge); }
.myrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.myrow .t b { font-size: 15.5px; }
.myrow .t span { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--tile); color: var(--sub); border: 1px solid var(--line2); white-space: nowrap; }
.pill.live { background: var(--red-bg); border-color: var(--red-line); color: var(--red-ink); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: livepulse 1.2s ease-in-out infinite; }
.pill.done { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.pill.wait { background: var(--gold-bg); border-color: #5B4A22; color: var(--gold); }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- create form */
.create { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.create .form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.create .form .card { display: flex; flex-direction: column; gap: 14px; }
.create aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); flex: 1 1 220px; min-width: 0; }
.field input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); font-size: 16px; width: 100%; }
.field input:focus { border-color: var(--blue); outline: none; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 40px; height: 40px; border-radius: 10px; border: 3px solid transparent; }
.swatch input:checked + span { border-color: var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.swatch input:disabled + span { opacity: .18; }
.seg { display: grid; gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg .opt { height: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; font-weight: 700; font-size: 16px; text-align: center; }
.seg input:checked + .opt { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.seg input:focus-visible + .opt { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg input:disabled + .opt { opacity: .45; cursor: not-allowed; }
.seg.teams { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 460px; }
.seg.teams .opt { font-family: var(--display); font-weight: 900; font-size: 28px; min-height: 56px; }
.seg.purse { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
.seg.clock { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.seg.clock .opt { min-height: 64px; }
.seg.clock .opt b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; }
.seg.clock .opt small { font-size: 12px; font-weight: 600; opacity: .85; }
.seg.pool { grid-template-columns: 1fr; }
.seg.pool .opt { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 12px; text-align: left; padding: 12px 14px; font-size: 15px; }
.seg.pool .opt .radio { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; border: 2px solid var(--edge); display: flex; align-items: center; justify-content: center; }
.seg.pool input:checked + .opt .radio { border-color: var(--gold); }
.seg.pool input:checked + .opt .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.seg.pool .opt span { display: flex; flex-direction: column; gap: 2px; }
.seg.pool .opt small { font-size: 13.5px; font-weight: 400; color: var(--sub); }
.seg.pool input:checked + .opt { color: var(--ink); }
.seg.pool .soon { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--gold); }
.toggle { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #1E2530; cursor: pointer; }
.toggle span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toggle span b { font-size: 15px; font-weight: 600; }
.toggle span small { font-size: 13px; color: var(--muted); }
.toggle input { appearance: none; -webkit-appearance: none; margin: 0; width: 52px; height: 30px; flex: none; border-radius: 999px; background: var(--edge); position: relative; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.toggle input:checked { background: #2D9C6A; }
.toggle input:checked::after { transform: translateX(22px); }
.summary { background: var(--panel2); border: 1px solid var(--edge); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.est-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--muted); }
.est-line b { color: var(--gold); }

/* ---- join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 980px; }
.code-in { display: flex; gap: 10px; max-width: 420px; }
.code-in input { flex: 1; height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--edge); background: var(--well); font-family: var(--mono); font-size: 22px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); min-width: 0; }
.mgrs { display: flex; flex-direction: column; gap: 6px; }
.mgr { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); }
.mgr.me { background: #122522; border-color: #1F5A53; }
.mgr.empty { background: transparent; border-style: dashed; border-color: var(--edge); color: var(--muted); }
.mgr .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.mgr .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mgr .st { font-size: 12px; color: var(--muted); }
.mgr.empty .chip { background: #2A3340; color: var(--muted); }

/* ---- lobby */
.lobby { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.lobby .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.starts { display: flex; align-items: center; gap: 12px; }
.starts .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.starts .t b { font-size: 16px; }
.starts .t span { font-size: 13px; color: var(--muted); }
.invite { background: #12201E; border: 1px solid #1F5A53; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.invite .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.invite .code { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .14em; color: #9FE3D8; }
.invite .link { font-family: var(--mono); font-size: 12.5px; color: #C4E9E3; word-break: break-all; }
.invite .acts { display: flex; gap: 8px; }
.invite .acts .btn { flex: 1; }
.invite .acts .btn.ghost { flex: none; border-color: #2C6F67; color: #9FE3D8; }
.meter { height: 6px; border-radius: 3px; background: #232B36; overflow: hidden; }
.meter i { display: block; height: 100%; background: #2CC4B0; border-radius: 3px; }
.hostbar { display: flex; flex-direction: column; gap: 8px; }
.poolhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.poolhead h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { flex: 1 1 200px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--edge); background: var(--well); color: var(--ink); min-width: 0; }
.fchip { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edge); background: var(--btn); color: var(--sub); font-weight: 600; font-size: 13px; }
.fchip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; font-weight: 500; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 7px 8px; border-bottom: 1px solid #1A212B; vertical-align: middle; }
.ptable td.num, .ptable th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ptable .pn { font-weight: 600; }
.ptable .pm { display: block; font-size: 12px; color: var(--muted); }
.ptable tr.starred td { background: #1B1A12; }
.star { width: 32px; height: 32px; border: 0; background: transparent; color: #4A5462; font-size: 18px; line-height: 1; border-radius: 8px; padding: 0; }
.star[aria-pressed="true"] { color: var(--gold); }
.star:hover { color: var(--gold); }
.os { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: #1F2A3A; color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; vertical-align: 1px; }
.more-row { display: flex; justify-content: center; padding-top: 12px; }

/* ---- the live room */
body.room-page { overflow-x: hidden; }
.room { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.rbar { height: 60px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bar); position: sticky; top: 0; z-index: 6; }
.rbar .sep { width: 1px; height: 28px; background: var(--line2); }
.rbar .lg { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rbar .lg b { font-size: 15px; font-weight: 600; }
.rbar .lg span { font-size: 12px; color: var(--muted); }
.rbar .lot { font-family: var(--mono); font-size: 13px; color: var(--sub); white-space: nowrap; }
.rbar .ping { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.rbar .icon { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); display: flex; align-items: center; justify-content: center; flex: none; }
.rbar .icon[aria-pressed="false"] { color: var(--dim); }
.rbar .hostbtn { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--sub); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rbar .grow { flex: 1; }
.conn { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); z-index: 20; padding: 8px 14px; border-radius: 999px; background: #3A1D10; border: 1px solid #8A4A22; color: #FFD9C2; font-size: 13.5px; font-weight: 600; }

.rgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; gap: 16px; padding: 14px 20px 0; }
.rcol { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }

/* your squad */
.squad { background: var(--teal-bg); border: 1px solid var(--teal-line); border-radius: 12px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.squad .head { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #1F3936; }
.squad .who { display: flex; align-items: center; gap: 10px; }
.squad .who > span:not(.chip) { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.squad .who b { font-family: var(--display); font-weight: 800; font-size: 21px; }
.squad .who small { font-size: 12px; color: #9FE3D8; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stats3 div { background: var(--teal-well); border-radius: 8px; padding: 6px 8px; }
.stats3 .k { font-family: var(--mono); font-size: 10px; color: var(--teal-label); }
.stats3 .v { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.slots { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.slotgrp { display: flex; flex-direction: column; gap: 3px; }
.slotgrp .gl { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--teal-label); padding: 2px 2px 0; }
.slotgrp .gl .full { color: var(--green); }
.slot { height: 25px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 6px; background: var(--teal-slot); border: 1px solid var(--teal-ring); }
.slot .nm { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .pr { font-family: var(--mono); font-size: 12px; color: #C4E9E3; }
.slot.empty { background: transparent; border-style: dashed; border-color: #2C4643; }
.slot.empty .nm { font-weight: 400; color: var(--teal-label); }
.slot.empty .pr { color: #5E807B; }
.slot.fresh { background: #2E2715; border-color: var(--gold); animation: glow 1.4s ease-out 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(245, 196, 81, .25); } }
.gaps { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--teal-well); display: flex; flex-direction: column; gap: 5px; }
.gaps .g { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.gaps .g .r { width: 36px; font-family: var(--mono); font-size: 10.5px; color: var(--teal-label); flex: none; }
.gaps .g .n { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gaps .g .w { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.watching { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--sub); }

/* the player on the block */
.block { flex: 1; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.pid { display: flex; align-items: flex-start; gap: 18px; }
.pav { width: 80px; height: 80px; flex: none; border-radius: 16px; background: #1A2330; border: 1px solid #2E3A49; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--blue); }
.pid .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pid h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.2vw, 56px); line-height: .95; overflow-wrap: anywhere; }
.pid .meta { font-size: 14.5px; color: var(--sub); }
.pid .rt { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pid .rt b { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--green); }
.pid .rt span { font-size: 13px; color: var(--sub); white-space: nowrap; }
.pid .rt .star { margin-top: 4px; }
.binfo { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; min-height: 0; }
.seasons { background: var(--tile); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.seasons .sr { display: grid; grid-template-columns: 44px 44px 30px 46px 38px minmax(0, 1fr) 50px; gap: 8px; align-items: center; height: 25px; font-size: 13px; }
.seasons .sr.h { height: auto; padding-bottom: 4px; border-bottom: 1px solid #252D38; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.seasons .sr.off { color: var(--dim); }
.seasons .y { font-family: var(--mono); font-weight: 600; }
.seasons .n { text-align: right; font-family: var(--mono); }
.seasons .pts { display: flex; align-items: center; gap: 8px; }
.seasons .bar { flex: 1; height: 6px; border-radius: 3px; background: #232B36; overflow: hidden; }
.seasons .bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.seasons .pv { width: 36px; text-align: right; font-family: var(--display); font-weight: 800; font-size: 17px; }
.seasons .rk { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.seasons .dnp { grid-column: 2 / -1; font-size: 12.5px; }
.seasons .foot { margin-top: 4px; font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.tile { background: var(--tile); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tile .v { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.15; white-space: nowrap; }
.tile .v small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* bidding */
.bidp { flex: none; min-height: 282px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1.1fr) 120px minmax(0, 1.15fr); gap: 20px; position: relative; }
.bidp.lead { border-color: var(--green-line); }
.bidp.out { border-color: var(--red-line); }
.cur { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cur .amt { font-family: var(--display); font-weight: 900; font-size: 68px; line-height: .95; white-space: nowrap; }
.cur .amt small { font-size: 26px; font-weight: 800; color: var(--sub); }
.cur .amt.none { font-size: 40px; color: var(--sub); }
.leader { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.leader > span:not(.chip) { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.leader b { font-weight: 700; font-size: 16px; }
.leader small { font-size: 13px; color: var(--muted); }
.status { margin-top: auto; padding: 9px 12px; border-radius: 10px; background: var(--tile); color: var(--sub); font-weight: 600; font-size: 14.5px; }
.status.lead { background: var(--green-bg); color: var(--green-ink); }
.status.out { background: var(--red-bg); color: var(--red-ink); }
.status.warn { background: var(--gold-bg); color: var(--gold); }
.bclock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ring { position: relative; width: 116px; height: 116px; }
.ring svg { display: block; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; }
.ring .num small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ring.hot .num b { color: var(--red); }
.bclock .hint { font-size: 12px; color: var(--muted); text-align: center; }
.bacts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#b-toast { display: contents; }
.paddle { height: 80px; border-radius: 14px; border: 0; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; gap: 14px; box-shadow: 0 6px 0 var(--gold-deep); padding: 0 12px; transition: transform .05s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.paddle:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-deep); }
.paddle span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; min-width: 0; }
.paddle b { font-family: var(--display); font-weight: 900; font-size: 32px; white-space: nowrap; }
.paddle small { font-size: 13px; font-weight: 600; opacity: .8; }
.paddle.leading { background: #1E2A24; color: var(--green-ink); box-shadow: 0 6px 0 #14201A; }
.paddle:disabled:not(.leading) { background: #2A2A24; color: #8F8A70; box-shadow: 0 6px 0 #1C1C18; }
.paddle.sending { opacity: .75; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick button { height: 44px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 0 4px; }
.quick button:disabled { opacity: .4; }
.autorow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.autorow .on { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--green-bg); border: 1px solid var(--green-line); color: var(--green-ink); font-size: 13px; font-weight: 600; }
.autorow .on button { border: 0; background: none; color: var(--green-ink); text-decoration: underline; font-size: 13px; padding: 0; }
.autorow .open { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--sub); font-weight: 600; font-size: 13.5px; }
.autorow .open:disabled { opacity: .4; }
.autorow .mx { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.autorow .mx b { color: var(--ink); }
.sheet { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.sheet .sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sheet .sh b { font-family: var(--display); font-weight: 800; font-size: 24px; }
.sheet .sh span, .sheet p { font-size: 12.5px; color: var(--muted); margin: 0; }
.sheet .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sheet .chips button { height: 42px; border-radius: 10px; border: 1px solid var(--edge); background: var(--btn); color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 0 4px; }
.sheet .chips button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-bg); }
.sheet.auto .chips button[aria-pressed="true"] { border-color: var(--green); background: #15291F; }
.amount { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--edge); }
.amount span { font-size: 13px; color: var(--muted); }
.amount i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 24px; }
.amount input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 24px; outline: none; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount input[type=number] { -moz-appearance: textfield; }
.sheet .serr { font-size: 12.5px; color: #FF9EA1; min-height: 1em; }
.sheet .go { display: flex; gap: 8px; margin-top: auto; }
.sheet .go .cancel { height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--sub); font-weight: 600; }
.sheet .go .ok { flex: 1; height: 46px; border-radius: 10px; border: 0; background: var(--gold); color: #0B0E13; font-weight: 800; font-size: 16px; }
.sheet.auto .go .ok { background: var(--green); }
.sheet .go .ok:disabled { opacity: .45; }
.toast { position: absolute; left: 20px; right: 20px; top: -22px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #3A1D10; border: 1px solid #8A4A22; color: #FFD9C2; font-size: 14px; animation: slidein .25s ease-out both; }
.toast.ok { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.ltoast .toast { position: fixed; top: auto; bottom: 20px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; z-index: 25; }
@keyframes slidein { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* bids and the set */
.feed { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.feed .ph, .setp .ph { padding: 12px 16px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.feed ol { list-style: none; margin: 0; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.feed li:first-child { background: #1B222C; }
.feed li .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li .tag { padding: 1px 6px; border-radius: 4px; color: #0B0E13; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; }
.feed li .am { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.feed li .ago { width: 52px; text-align: right; font-size: 11.5px; color: var(--muted); }
.feed .empty { padding: 4px 16px 14px; font-size: 13.5px; color: var(--muted); }
.setp { flex: none; padding-bottom: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 50%; overflow-y: auto; }
.setp .sub { padding: 0 16px; display: flex; flex-direction: column; }
.setp .sub .label { display: flex; justify-content: space-between; margin: 2px 0; }
.un { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid #1E2530; }
.un .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.un .t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un .t small { font-size: 12px; color: var(--muted); }
.un .p { font-family: var(--mono); font-size: 12.5px; color: var(--blue); }
.un .v { width: 66px; text-align: right; font-family: var(--mono); font-size: 12.5px; }
.un .st { color: var(--gold); margin-right: 2px; }
.sold { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.sold .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sold .t small { color: var(--muted); font-size: 13px; }
.sold .p { font-family: var(--mono); font-size: 12.5px; }
.sold .p.uns { color: #FF9EA1; }

/* teams strip */
.teams { flex: none; margin: 14px 20px 16px; display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 8px; }
.team { min-height: 84px; border-radius: 10px; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team.me { background: #122522; border-color: #1F5A53; }
.team .a { display: flex; align-items: center; gap: 7px; min-width: 0; }
.team .a .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .a .sq { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.team .b { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 12px; }
.team .b span:last-child { color: var(--muted); }
.team .c { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: #AEB8C5; }
.team .c .nd { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .c .nd.warn { color: var(--gold); }
.team .c .ld { padding: 1px 5px; border-radius: 4px; color: #0B0E13; font-weight: 600; }

/* mobile tabs */
.rtabs { display: none; }
/* on a tall enough desktop the room fills the screen exactly and panels scroll inside it */
@media (min-width: 901px) and (min-height: 760px) {
  .room { height: 100vh; height: 100dvh; overflow: hidden; }
}

/* the hammer */
.hammer { position: fixed; inset: 0; z-index: 30; background: rgba(6, 8, 11, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hammer .box { width: min(640px, 100%); border-radius: 20px; background: var(--panel2); border: 2px solid var(--c, var(--edge)); padding: 34px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: pop .55s cubic-bezier(.2, .8, .2, 1) both; }
.hammer .word { font-family: var(--display); font-weight: 900; font-size: clamp(72px, 16vw, 120px); line-height: .85; letter-spacing: .02em; color: var(--gold); }
.hammer .word.uns { color: var(--muted); }
.hammer .to { font-size: 18px; color: var(--sub); }
.hammer .tm { display: flex; align-items: center; gap: 12px; }
.hammer .tm b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6vw, 40px); }
.hammer .pr { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 11vw, 72px); line-height: 1; }
.hammer .ln { font-size: 15px; color: var(--sub); }
.hammer .nx { font-size: 13px; color: var(--muted); }
@keyframes pop { 0% { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* room: lobby and results share the page frame */
.rpage { max-width: 1240px; width: 100%; margin: 0 auto; padding: 22px 20px 56px; }
.rpage h1 { margin: 4px 0 6px; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 52px); line-height: 1; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rteam { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rteam.me { border-color: #1F5A53; background: #0F1B1A; }
.rteam .a { display: flex; align-items: center; gap: 10px; }
.rteam .a > span:not(.chip) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rteam .a b { font-size: 15px; }
.rteam .a small { font-size: 12px; color: var(--muted); }
.rteam .tot { font-family: var(--mono); font-size: 12.5px; color: var(--sub); display: flex; justify-content: space-between; }
.rteam ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rteam li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid #1A212B; font-size: 13px; }
.rteam li .r { width: 34px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); flex: none; }
.rteam li .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rteam li .p { font-family: var(--mono); font-size: 12px; }
.topbuys { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.topbuys div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.topbuys b { font-family: var(--display); font-size: 26px; font-weight: 800; }
.topbuys span { font-size: 13px; color: var(--sub); }

/* ---- smaller screens */
@media (max-width: 1400px) {
  .binfo { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile .v { font-size: 24px; }
}
@media (max-width: 1180px) {
  .rgrid { grid-template-columns: 270px minmax(0, 1fr) 300px; gap: 12px; padding: 12px 14px 0; }
  .teams { margin: 12px 14px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .bidp { grid-template-columns: minmax(0, 1fr) 110px; }
  .bidp .bacts { grid-column: 1 / -1; }
  .binfo { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-play, .join, .lobby { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .rbar { height: 52px; gap: 10px; padding: 0 12px; }
  .rbar .mark { font-size: 22px; }
  .rbar .sep, .rbar .lg span, .rbar .ping { display: none; }
  .rbar .lg { display: none; }
  .rbar .lot { font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rbar .icon { width: 36px; height: 36px; }
  .rbar .hostbtn { height: 36px; padding: 0 10px; }
  .rgrid { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 0; }
  .rgrid > .rcol { display: contents; }
  .block { display: contents; }
  .pid { order: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .binfo { order: 4; display: none; }
  .room[data-tab="player"] .binfo { display: grid; }
  .bidp { order: 2; }
  .rtabs { order: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: #12161D; border: 1px solid var(--line); }
  .rtabs button { height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--sub); font-weight: 600; font-size: 13px; }
  .rtabs button[aria-selected="true"] { background: var(--ink); color: #0B0E13; font-weight: 700; }
  .feed, .setp, .squad, .teams { order: 4; display: none; }
  .room[data-tab="bids"] .feed, .room[data-tab="set"] .setp, .room[data-tab="squad"] .squad, .room[data-tab="teams"] .teams { display: flex; }
  .room[data-tab="teams"] .teams { display: grid; }
  .feed, .setp { max-height: none; }
  .teams { margin: 0 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room .tail { order: 5; height: 24px; }
  .pid { gap: 12px; }
  .pav { width: 52px; height: 52px; border-radius: 12px; font-size: 22px; }
  .pid h1 { font-size: 32px; }
  .pid .meta { font-size: 13px; }
  .pid .rt b { font-size: 36px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile .v { font-size: 22px; }
  .seasons { padding: 8px 10px; }
  .seasons .sr { grid-template-columns: 38px 40px 24px minmax(0, 1fr) 40px; gap: 6px; }
  .seasons .sr .rw, .seasons .sr .wk { display: none; }
  .bidp { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; padding: 12px 14px; min-height: 0; }
  .cur .amt { font-size: 48px; }
  .cur .amt small { font-size: 20px; }
  .cur .amt.none { font-size: 30px; }
  .ring, .ring svg { width: 88px; height: 88px; }
  .ring .num b { font-size: 36px; }
  .bclock .hint { display: none; }
  .paddle { height: 68px; }
  .paddle b { font-size: 28px; }
  .toast { left: 10px; right: 10px; top: auto; bottom: calc(100% + 6px); }
}
@media (max-width: 560px) {
  .pbar .back { display: none; }
  .card { padding: 16px; }
  .seg.teams .opt { font-size: 24px; }
  .quick button { font-size: 13px; }
  .hammer .box { padding: 26px 18px; }
  .ptable .hide-s { display: none; }
  .invite .acts { flex-direction: column; }
  .invite .acts .btn.ghost { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
