/* Look: matchday paper. Warm off-white ground, charcoal ink, hairline rules, one vivid orange accent on actions and live signals.
   Archivo throughout: expanded and heavy for names and numbers, normal width for text. Red only for urgency, green only for sold.
   Dark mode (theme.js toggle) swaps the ground to near-black and keeps the same orange. */
:root {
  --bg: #ebe9e3; --bg-2: #f6f5f1; --bg-3: #dedbd3; --bg-4: #d4d1c8; --text: #1c1c1f; --muted: #67655f;
  --line: rgba(28, 28, 31, .12); --line-2: rgba(28, 28, 31, .24); --line-3: rgba(28, 28, 31, .42);
  --ink: #1c1c1f; /* text on the orange */
  --inv: #1c1c1f; --on-inv: #f6f5f1; /* inverted chips: toasts, button hover */
  --go: #1e9a5f; --bad: #e0362a;
  --fog: linear-gradient(180deg, #fbfaf7 0%, #f3f2ed 100%);
  --fog-soft: linear-gradient(180deg, #f9f8f4 0%, #f1f0ea 100%);
  --edge: inset 0 0 0 1px rgba(28, 28, 31, .1);
  --accent: #ff5a1f; --accent-d: #e2470f; --accent-hi: #ff7640;
  --accent-text: #c2410c; /* orange dark enough for small text on paper */
  --accent-ring: rgba(255, 90, 31, .22); --accent-tint: rgba(255, 90, 31, .1);
  --g-accent: var(--accent); --g-accent-text: var(--accent-text); --metal: var(--g-accent-text);
  --lead: #3f3e3a; --placeholder: #8f8c85; --row-hover: rgba(28, 28, 31, .04); --row-hover-2: rgba(28, 28, 31, .07); --scrim: rgba(20, 20, 22, .55);
  --topo: invert(1); /* topo.svg is drawn white */
  --r: 6px; --r-lg: 10px;
  --f-display: 'Archivo', 'Arial Black', sans-serif; --f-text: 'Archivo', system-ui, sans-serif;
  --wide: 125%;
  --gut: clamp(16px, 3vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0c0d; --bg-2: #141618; --bg-3: #1c1f22; --bg-4: #23272b; --text: #f1f2f3; --muted: #9ba1a7;
  --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .26); --line-3: rgba(255, 255, 255, .45);
  --inv: #f1f2f3; --on-inv: #0b0c0d;
  --go: #3fd093; --bad: #ff5a4e;
  --fog: linear-gradient(180deg, #1d2024 0%, #141619 100%);
  --fog-soft: linear-gradient(180deg, #1a1d20 0%, #131518 100%);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, .1);
  --accent-text: #ff7a45; --accent-ring: rgba(255, 90, 31, .28); --accent-tint: rgba(255, 90, 31, .14);
  --lead: #c4c9ce; --placeholder: #6d737a; --row-hover: rgba(255, 255, 255, .03); --row-hover-2: rgba(255, 255, 255, .06); --scrim: rgba(0, 0, 0, .7);
  --topo: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--f-text); color: var(--text); min-height: 100vh; overflow-x: clip;
  background: var(--bg); }
/* contour lines on their own fixed, GPU-composited layer: background-attachment: fixed repaints the whole SVG on every scroll frame */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url(topo.svg) center / cover; pointer-events: none; transform: translateZ(0); filter: var(--topo); }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
code { font-size: 13px; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* header: thin masthead with a wide wordmark */
header { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px 22px; align-items: center; flex-wrap: wrap;
  padding: 12px var(--gut); background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; font: 800 18px/1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .01em; }
.brand .page { font: 500 14px/1 var(--f-text); font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-2); }
.mark { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--g-accent); }
.mark svg { stroke: var(--ink); }
.mark svg { width: 14px; height: 14px; }
header nav { display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; font-size: 14px; }
header nav a { text-decoration: none; padding: 10px 0; color: var(--muted); }
header nav a:hover { color: var(--text); }
header nav button { min-height: 36px; padding: 8px 14px; font-size: 14px; }
.who { color: var(--muted); font-size: 13px; }
#meetLink { background: var(--g-accent); color: var(--ink); border-radius: 99px; padding: 8px 16px; font-weight: 600; }
#meetLink:hover { color: var(--ink); filter: brightness(1.08); }

/* status: a small printed label with a dot */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.badge:empty { display: none; }
.badge.live { color: var(--accent-text); }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s infinite; }
.badge.paused { color: var(--bad); }
@keyframes blink { 50% { opacity: .25; } }

/* sections: open, hairline-ruled, with a small technical label (✕ marker, like the reference's catalogue tags) */
main { padding: 0 var(--gut) 56px; display: grid; gap: 0 40px; max-width: 1440px; margin: 0 auto; }
section { min-width: 0; padding: 22px 0 30px; border-top: 1px solid var(--line); }
section > h2 { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
section > h2::before { content: '✕'; font-size: 9px; color: var(--accent); }
h3 { font-size: 18px; }

/* controls: one family. Outline on dark, solid white for the main action. */
button, .btn { font: 600 15px/1 var(--f-text); padding: 11px 18px; min-height: 44px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: transparent; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s ease, background-color .15s, color .15s, border-color .15s; }
button:hover:not(:disabled), .btn:hover { background: var(--inv); color: var(--on-inv); border-color: var(--inv); }
button:active:not(:disabled) { transform: scale(.97); }
button.primary { background: var(--g-accent); color: var(--ink); border-color: transparent; }
button.primary:hover:not(:disabled) { background: var(--g-accent); color: var(--ink); border-color: transparent; filter: brightness(1.08); }
button.danger { color: var(--bad); border-color: rgba(255, 90, 78, .5); }
button.danger:hover:not(:disabled) { background: var(--bad); color: #fff; border-color: var(--bad); }
button:disabled { opacity: .35; cursor: not-allowed; }
.linkish { border: 0; background: none; padding: 8px 0; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover:not(:disabled) { background: none; color: var(--text); }
input, select, textarea { font: inherit; padding: 10px 12px; min-height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); max-width: 100%; }
input::placeholder { color: var(--placeholder); }
input:hover, select:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
input:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
input[type=checkbox] { min-height: 0; width: 18px; height: 18px; accent-color: var(--accent); }
label { display: inline-flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.chip { display: inline-block; border-bottom: 1px solid var(--line-2); padding: 2px 0; margin: 2px 12px 2px 0; font-size: 14px; }
.tier { display: inline-block; font: 600 11px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: currentColor; border: 1px solid currentColor; padding: 4px 7px; border-radius: 3px; }
.tier.cap { background: var(--g-accent); color: var(--ink); border-color: transparent; }
.tag { font: 600 10px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; background: var(--g-accent); color: var(--ink); padding: 5px 7px; border-radius: 3px; }
.tag.me { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--inv); color: var(--on-inv); padding: 12px 18px; border-radius: var(--r);
  z-index: 20; max-width: calc(100% - 32px); font-weight: 500; animation: rise .2s ease; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0; }

/* ---------- live page ---------- */
.live { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.live .wide, .live #mine { grid-column: 1 / -1; }
@media (max-width: 960px) { .live { grid-template-columns: minmax(0, 1fr); } }

/* the stage: a misty silver panel with the football photo in the fog. The only light block on the page, so the eye lands here. */
.block { position: relative; overflow: hidden; }
.live .block { margin: 18px 0 0; padding: 26px clamp(18px, 3vw, 36px) 30px; border-top: 0; border-radius: var(--r-lg); background: var(--fog); color: var(--text); isolation: isolate; box-shadow: var(--edge); }
/* contour lines inside the panel, a little denser than the page */
/* before the first lot: the card fills its row and centres the waiting line */
.live .block:has(.waiting) { align-self: stretch; display: flex; flex-direction: column; }
.live .block:has(.waiting) #lot { flex: 1; display: grid; }
.live .block::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(topo.svg) 70% 20% / 1400px auto no-repeat; }

.pcard { display: flex; gap: 24px; align-items: flex-start; }
.pcard img, .pcard .nophoto { width: 180px; height: 180px; object-fit: cover; border-radius: var(--r); background: var(--bg); flex: none; }
.pcard .nophoto { display: grid; place-items: center; font: 800 88px/1 var(--f-display); font-stretch: var(--wide); color: var(--text); box-shadow: var(--edge); }
.pcard > div { flex: 1; min-width: 0; }
.pcard h3 { overflow-wrap: anywhere; margin: 12px 0 8px; font: 800 clamp(36px, 5vw, 68px)/.95 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -.01em; }
.pcard .base b { font-weight: 700; color: inherit; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 14px 0 0; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.stats dd { margin: 0; font: 800 24px/1.15 var(--f-display); font-stretch: var(--wide); }
.waiting { display: grid; place-items: center; min-height: 180px; text-align: center; font: 800 26px/1.2 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }

.bidline { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.bidline .label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.bigbid { font: 800 clamp(72px, 10vw, 136px)/.85 var(--f-display); font-stretch: var(--wide); font-variant-numeric: tabular-nums; letter-spacing: -.03em; background: var(--g-accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.bigbid.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1.05); } 100% { transform: none; } }
.leader { font-weight: 600; font-size: 17px; min-height: 1.5em; margin-top: 10px; color: var(--accent-text); }
.clock { position: relative; width: 108px; height: 108px; margin-left: auto; flex: none; color: var(--accent); }
.clock span { color: var(--text); }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 4; }
.clock .track { stroke: rgba(128, 128, 128, .3); }
.clock .prog { stroke: currentColor; stroke-dasharray: 100; transition: stroke-dashoffset .25s linear; }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 36px/1 var(--f-display); font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.clock.urgent, .clock.urgent span { color: var(--bad); }

/* the call to action: big white buttons, first thing under the bid */
.bidbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: stretch; }
.bidbar:empty { display: none; }
.bidbar button { flex-direction: column; gap: 7px; font: 800 24px/1 var(--f-display); font-stretch: var(--wide); padding: 15px 26px; min-height: 72px; text-transform: uppercase; }
.live .bidbar button:disabled { opacity: .4; }
.bidbar button small { font: 500 12px/1 var(--f-text); font-stretch: 100%; letter-spacing: .02em; text-transform: none; opacity: .7; }
.holding { flex: 1 0 100%; margin: 0; font-weight: 600; color: var(--accent-text); }
.wallet { flex: 1 0 100%; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wallet > div { display: flex; flex-direction: column; }
.live .wallet > div { padding: 10px 16px; border-radius: var(--r); background: var(--bg); box-shadow: var(--edge); }
.wallet .label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.wallet b.num { font: 800 24px/1.15 var(--f-display); font-stretch: var(--wide); }
.wallet b.num.low { color: var(--bad); }
.rule { flex: 1 0 100%; font-size: 14px; }
.rule summary { cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; padding: 6px 0; width: max-content; max-width: 100%; }
.rule-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; max-width: 520px; }
.rule p { margin: 4px 0 0; max-width: 520px; }
.history { list-style: none; max-height: 132px; overflow: auto; margin: 18px 0 0; padding: 0; font-size: 14px; max-width: 520px; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); opacity: .7; }
.history li:first-child { opacity: 1; font-weight: 700; }
.history li b { font-variant-numeric: tabular-nums; }

/* sold / unsold stamp */
.stamp { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: rgba(11, 12, 13, .86); backdrop-filter: blur(6px); color: #fff; z-index: 2; animation: fade .2s ease; }
.stamp strong { font: 800 clamp(64px, 11vw, 132px)/1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; color: var(--ink); background: var(--g-accent); border-radius: var(--r); padding: 6px 30px 2px; box-shadow: 0 20px 60px -20px rgba(92, 184, 242, .8); animation: slam .35s cubic-bezier(.2, 1.4, .4, 1); }
.stamp.unsold strong { color: var(--muted); background: none; box-shadow: inset 0 0 0 3px var(--muted); }
.stamp span { font-size: 18px; font-weight: 500; margin-top: 14px; }
@keyframes slam { from { transform: scale(1.6); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* chat: plain lines on the dark */
.chat { display: flex; flex-direction: column; height: 560px; }
@media (max-width: 960px) { .chat { height: 420px; } }
.chat .msgs { flex: 1; overflow: auto; display: flex; flex-direction: column; padding-right: 4px; }
.chat .msgs:empty::before { content: 'No comments yet. Be the first to call it.'; margin: auto; color: var(--muted); font-size: 14px; }
.chat form { display: flex; gap: 8px; margin-top: 12px; }
.chat input { flex: 1; min-width: 0; }
.msg { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.msg b { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.msg button { float: right; padding: 2px 8px; min-height: 28px; font-size: 12px; margin-left: 6px; }
.msg.sys b { color: var(--accent-text); }
.msg.sys { background: var(--fog-soft); box-shadow: var(--edge), inset 3px 0 0 var(--accent); border-radius: var(--r); padding: 10px 12px 10px 15px; border-bottom: 0; margin: 6px 0; }
.meme { display: block; max-width: 100%; max-height: 220px; margin-top: 6px; border-radius: var(--r); }
.meme-btn { padding: 0 12px; flex: none; display: inline-grid; place-items: center; }

/* my team */
#mine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 40px; align-items: start; }
#mine > h2 { grid-column: 1 / -1; }
@media (max-width: 760px) { #mine { grid-template-columns: minmax(0, 1fr); } }
.mine-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mine-head h3 { font: 800 34px/1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }
.mine-money { margin: 8px 0; color: var(--muted); }
.mine-money b { font: 800 28px/1 var(--f-display); font-stretch: var(--wide); background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
#mine h3 { margin: 20px 0 10px; }
.targets { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.targets li { padding: 9px 0; border-top: 1px solid var(--line); }
.targets li > b { display: inline-block; min-width: 46px; }

/* teams: silver cards, like the reference's catalogue tiles */
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.team { padding: 18px 18px 12px; border-radius: var(--r-lg); background: var(--fog-soft); box-shadow: var(--edge); }
.team.leading { background: var(--fog-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.team.leading .money { background: var(--g-accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 800 20px/1.15 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }
.team .money { font: 800 46px/1 var(--f-display); font-stretch: var(--wide); margin: 14px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bar { height: 3px; background: var(--line); overflow: hidden; margin: 8px 0; border-radius: 3px; }
.bar i { display: block; height: 100%; background: var(--g-accent); border-radius: inherit; transition: width .4s ease; }
.team .bar i { background: var(--g-accent); }
.team ul, .list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.team li, .list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.team li b, .list li b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* still available: a printed list */
.avail-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.avail-row:first-child { border-top: 0; padding-top: 0; }
.avail-row h3 { font: 800 18px/1.15 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }
.avail-row h3 .muted { font: 400 13px/1 var(--f-text); font-stretch: 100%; text-transform: none; display: block; margin-top: 4px; }
.avail-row p { margin: 0; }
.avail-row p > span { display: inline-block; margin: 2px 22px 2px 0; }
@media (max-width: 600px) { .avail-row { grid-template-columns: minmax(0, 1fr); } }

/* lineup: a graphite pitch, white lines */
.pitch { background: #16191c repeating-linear-gradient(transparent 0 48px, rgba(255, 255, 255, .03) 48px 96px); border-radius: var(--r-lg); padding: 16px 6px; display: grid; gap: 14px; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.pitch::before { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; border-top: 1px solid var(--line); pointer-events: none; }
.pitch .line { display: flex; justify-content: space-around; gap: 4px; position: relative; }
.slot { all: unset; position: relative; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; width: 80px; text-align: center; font-size: 12px; color: #fff; gap: 2px; padding: 4px; border-radius: var(--r); }
.slot img, .slot .nophoto { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; }
.slot .nophoto { display: grid; place-items: center; background: #2a2e33; color: #fff; font-weight: 700; }
.slot.empty .nophoto { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.slot.empty { opacity: .7; cursor: default; }
.slot.sel { outline: 2px solid var(--accent); background: var(--accent-tint); }
.slot:focus-visible { outline: 2px solid #fff; }
.slot small { opacity: .75; }
.bench { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bench .slot { border: 1px solid var(--line); }
/* hover card: mouse hover or keyboard focus only, so taps on touch still just select for a swap */
.peek { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 10; width: 230px; padding: 10px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); text-align: left; pointer-events: none; animation: fade .15s ease; box-shadow: 0 24px 50px -20px #000; }
.line > .slot:first-child .peek, .bench > .slot:first-child .peek { left: 0; transform: none; }
.line > .slot:last-child .peek { left: auto; right: 0; transform: none; }
.pitch .line:first-child .peek { bottom: auto; top: calc(100% + 8px); }
@media (hover: hover) { .slot:hover .peek { display: block; } }
.slot:focus-visible .peek { display: block; }
.slot .peek img, .slot .peek .nophoto { display: grid; width: 100%; height: 200px; border-radius: var(--r); border: 0; background: var(--bg); color: var(--text); font: 800 72px/1 var(--f-display); font-stretch: var(--wide); box-shadow: var(--edge); }
.peek b { display: block; margin: 10px 0 6px; font: 800 20px/1.1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }
.peek .stats { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.peek .stats b { font-weight: 700; color: var(--text); }

/* ---------- admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.kpi { padding: 16px 18px; border-radius: var(--r-lg); background: var(--fog-soft); box-shadow: var(--edge); }
.kpi .label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font: 800 44px/1 var(--f-display); font-stretch: var(--wide); margin-top: 6px; font-variant-numeric: tabular-nums; background: var(--g-accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi.unsold b { background: none; }
.kpi.unsold b { color: var(--bad); }
.alert { background: rgba(255, 90, 78, .12); border-left: 3px solid var(--bad); border-radius: var(--r); padding: 10px 14px; margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.connbar { position: sticky; top: 0; z-index: 50; background: var(--bad); color: #fff; text-align: center; padding: 8px 12px; font-weight: 600; }
.offline-dot { color: var(--bad); }
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid > .wide { grid-column: 1 / -1; }
@media (max-width: 1000px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
.admin-grid .bigbid { font-size: clamp(56px, 7vw, 92px); }
.controls { display: grid; margin-top: 22px; }
.controls .group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.controls .group > .label { width: 100%; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: var(--row-hover); }
td input[type=number] { width: 84px; }
td .row { flex-wrap: nowrap; }
.scroll { overflow-x: auto; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.status-dot.sold, .status-dot.assigned, .status-dot.retained { background: var(--go); }
.status-dot.unsold { background: var(--bad); }
.status-dot.captain { background: var(--accent); }
.plan { margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.plan:empty { display: none; }
.audit { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow: auto; font-size: 14px; }
.audit li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.audit time { font-size: 12px; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.photo-cell { white-space: nowrap; }
.photo-cell img { width: 33px; height: 44px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; }
.photo-cell .btn { padding: 8px 10px; min-height: 36px; font-size: 13px; vertical-align: middle; }
/* 40+ accounts: scroll inside the card instead of leaving a page of empty space beside it */
.users-scroll { max-height: 600px; overflow: auto; }
.users-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--bg); }
.btn.small { padding: 8px 10px; min-height: 36px; font-size: 13px; margin-left: 8px; }

/* ---------- tournament: fixtures, table, bracket (Scores + Matches pages) ---------- */
.logo { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 8px; border-radius: 3px; }
.team h3 .logo { width: 28px; height: 28px; }
.team .capline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { display: grid; justify-items: start; gap: 16px; padding: clamp(40px, 8vw, 96px) 0; }
.empty h2 { font: 800 clamp(32px, 4.4vw, 56px)/1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; margin: 0; }
.empty h2::before { display: none; }
.empty p { margin: 0; max-width: 48ch; color: var(--lead); font-size: 17px; }
.fixtures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.admin-fx { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
.fx { padding: 14px 16px; border-radius: var(--r-lg); background: var(--fog-soft); box-shadow: var(--edge); min-width: 0; }
.fx.is-live { box-shadow: inset 0 0 0 2px var(--accent); }
.fx-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 10px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; font-weight: 700; }
.fx-team { overflow-wrap: anywhere; }
.fx-team.away { text-align: right; }
.fx-score { font: 800 26px/1 var(--f-display); font-stretch: var(--wide); white-space: nowrap; }
.fx-pens { text-align: center; margin-top: 4px; }
.fx-goals { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.fx-goals li.a { text-align: right; }
.fx form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.x { min-height: 28px; padding: 2px 8px; font-size: 12px; margin-left: 6px; }
fieldset.plain { border: 0; padding: 0; margin: 14px 0; }
fieldset.plain legend { padding: 0; margin-bottom: 6px; width: 100%; }
.tbl-title { font: 700 14px/1.2 var(--f-text); margin: 18px 0 8px; }
.tbl-title:first-child { margin-top: 0; }
.standings td:nth-child(n+3), .standings th:nth-child(n+3) { text-align: right; }
.bracket { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; }
.br-col { flex: 0 0 220px; display: flex; flex-direction: column; }
.br-pairs { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.br-pair { border-radius: var(--r); box-shadow: var(--edge); background: var(--fog-soft); }
.br-team { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 14px; }
.br-team + .br-team { border-top: 1px solid var(--line); }
.br-team.win { font-weight: 700; }

/* ---------- sign-in: what it is, who it is for, why, what next, all above the fold ---------- */
/* left: the pitch over the contour lines, with one live lot as the moment. right: the form on a quiet raised panel */
.auth { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 40%); max-width: none; padding: 0; gap: 0; }
.auth-hero { padding: 32px clamp(20px, 5vw, 72px) 40px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-hero .brand { flex: none; margin-bottom: auto; padding-bottom: 32px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.eyebrow::before { content: '✕'; font-size: 10px; }
.auth h1 { font: 600 clamp(36px, 3.8vw, 60px)/1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -.01em; max-width: 16ch; margin: 0 0 20px; }
.lead { max-width: 56ch; margin: 0 0 32px; font-size: clamp(16px, 1.2vw, 18px); color: var(--lead); }

/* the moment: one auction lot as it looks on auction day */
.lot { margin: 0 0 32px; max-width: 720px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--edge); }
.lot p { margin: 0; }
.lot-main { display: flex; align-items: center; gap: 20px; }
.lot-photo { width: 72px; height: 88px; flex: none; display: grid; place-items: center; border-radius: var(--r); background: var(--bg-3); color: var(--muted); font: 600 24px/1 var(--f-display); font-stretch: var(--wide); }
.lot-player { flex: 1; min-width: 0; }
.lot-meta, .lot-label { font-size: 13px; color: var(--muted); }
.lot .lot-name { margin: 4px 0; font: 600 24px/1.1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }
.lot-base { font-size: 14px; color: var(--muted); }
.lot-base b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.lot-bid { text-align: right; }
.lot .lot-figure { font: 600 48px/1 var(--f-display); font-stretch: var(--wide); font-variant-numeric: tabular-nums; color: var(--accent); margin: 4px 0; }
.lot-leader { font-size: 14px; color: var(--text); }
.lot .clock { width: 64px; height: 64px; margin: 0; }
.lot .clock span { font-size: 20px; font-weight: 600; }
.lot-teams { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lot-teams li { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; color: var(--muted); }
.lot-teams b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.lot-teams i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.lot-teams i::before { content: ''; display: block; height: 100%; width: var(--w); background: var(--muted); }
.lot-teams .leading i::before { background: var(--accent); }

.steps { list-style: none; counter-reset: s; margin: 0 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); max-width: 720px; }
.steps li { counter-increment: s; padding: 16px 16px 0 0; font-size: 14px; color: var(--muted); }
.steps li + li { border-left: 1px solid var(--line); padding-left: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 16px/1 var(--f-display); font-stretch: var(--wide); font-variant-numeric: tabular-nums; color: var(--text); margin-bottom: 8px; }
.steps b { color: var(--text); font-weight: 500; }

/* the form: a raised panel the full height of the screen, form centred in it */
.auth-card { border: 0; padding: 40px clamp(24px, 4vw, 64px); display: grid; align-content: center; justify-items: center; background: var(--bg-2); box-shadow: inset 1px 0 0 var(--line); }
.auth-card > * { width: min(380px, 100%); }
.auth-card h2 { font: 600 24px/1 var(--f-display); font-stretch: var(--wide); letter-spacing: 0; text-transform: uppercase; color: var(--text); margin: 0 0 28px; }
.auth-card h2::before { display: none; }
.auth-card h2.swap { animation: swap .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } }
.auth form { display: grid; gap: 4px; }

/* field: floating label, filled ground, an underline that draws in on focus */
.field { position: relative; }
.field input { display: block; width: 100%; height: 56px; padding: 22px 40px 6px 16px; border: 0; border-radius: var(--r) var(--r) 0 0; background: var(--bg-3); color: var(--text); font-size: 16px; transition: background-color .15s; }
.field input:hover { background: var(--bg-4); }
.field input:focus { outline: none; box-shadow: none; border: 0; background: var(--bg-4); }
.field label { position: absolute; left: 16px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .2s cubic-bezier(.2, .8, .2, 1), color .15s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--accent-text); }
.field input:not(:focus):not(:placeholder-shown) + label { color: var(--muted); }
.field .line { position: absolute; left: 0; right: 0; top: 55px; height: 1px; background: var(--line-2); }
.field .line::after { content: ''; position: absolute; inset: -1px 0 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.field input:focus ~ .line::after { transform: scaleX(1); }
.field input:focus { caret-color: var(--accent); }
/* live check mark while typing a valid value */
.field .ok { position: absolute; right: 16px; top: 19px; width: 18px; height: 18px; color: var(--accent); opacity: 0; transition: opacity .15s; pointer-events: none; }
.field.good .ok { opacity: 1; }
.field .hint { display: block; min-height: 20px; padding: 4px 2px 0; font-size: 12px; color: var(--muted); }
.field.bad .line, .field.bad .line::after { background: var(--bad); transform: none; }
.field.bad label { color: var(--bad) !important; }
.field.bad .hint { color: var(--bad); }
.field.bad .ok { opacity: 0; }
.field .peekpw { position: absolute; right: 8px; top: 10px; min-height: 36px; padding: 6px 8px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.field .peekpw:hover:not(:disabled) { background: none; color: var(--text); }
.field .peekpw:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.field:has(.peekpw) input { padding-right: 64px; }
.field:has(.peekpw) .ok { right: 64px; }
/* sign-up only: the name field slides open */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.reveal > div { min-height: 0; overflow: hidden; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; }

/* submit: idle, busy (spinner), done; the form shakes once on an error */
.auth button.primary { position: relative; width: 100%; min-height: 52px; margin-top: 8px; font-size: 15px; }
.auth button.primary:hover:not(:disabled) { filter: none; background: var(--accent-hi); }
.auth button.primary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.auth button.primary.busy { color: transparent; pointer-events: none; }
.auth button.primary.busy::before { content: ''; position: absolute; width: 20px; height: 20px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth button.primary.done { background: var(--go); color: var(--ink); }
.auth form.shake { animation: shake .32s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.form-msg { min-height: 24px; margin: 12px 0 0; font-size: 14px; }
.form-msg.err { color: var(--bad); }
.form-msg.info { color: var(--accent-text); }
.form-msg:not(:empty) { animation: swap .25s cubic-bezier(.2, .8, .2, 1); }
.auth .linkish { justify-self: start; margin-top: 4px; text-decoration: none; }
.auth .linkish b { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

@media (max-width: 900px) {
  /* one column: say what it is, then the form, then the lot and the steps */
  .auth { grid-template-columns: minmax(0, 1fr); align-content: start; padding: 20px 16px 40px; }
  .auth-hero { display: contents; }
  .auth-hero .brand { margin: 0; padding-bottom: 28px; }
  .auth h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .lead { margin-bottom: 24px; }
  .auth-card { order: 1; padding: 0; background: none; box-shadow: none; justify-items: stretch; }
  .auth-card > * { width: 100%; }
  .lot { order: 2; margin: 32px 0 0; padding: 16px; }
  .lot-main { flex-wrap: wrap; gap: 16px; }
  .lot-player { flex-basis: calc(100% - 88px); }
  .lot-bid { text-align: left; flex: 1; }
  .lot .lot-figure { font-size: 36px; }
  .lot-teams { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps { order: 3; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
  .steps li { padding: 12px 0; } .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- players page + dialog ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 16px; margin-top: 22px; }
.ptile { all: unset; box-sizing: border-box; min-width: 0; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; content-visibility: auto; contain-intrinsic-size: auto 330px; transition: transform .2s ease; }
.ptile:hover { transform: translateY(-2px); }
/* these are reset buttons: keep the global button hover fill off them */
.ptile:hover:not(:disabled) { background: none; color: inherit; border-color: transparent; }
.slot:not(.sel):hover:not(:disabled) { background: none; color: #fff; border-color: transparent; }
.ptile img, .ptile .nophoto { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--fog); box-shadow: var(--edge); border-radius: var(--r-lg); transition: transform .2s ease; }
.ptile:hover img, .ptile:hover .nophoto { transform: scale(1.02); }
.ptile:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ptile:hover .nophoto { box-shadow: var(--edge), inset 0 0 0 1px var(--accent); }
.ptile .nophoto { display: grid; place-items: center; font: 800 64px/1 var(--f-display); font-stretch: var(--wide); color: var(--text); }
/* every name takes exactly two lines so tiles line up; longer names end in an ellipsis (full name in the title tooltip) */
.ptile > b { width: 100%; min-height: 2.3em; font: 800 15px/1.15 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tabs { display: flex; }
.tabs button { border-radius: 0; margin-left: -1px; }
.tabs button:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; }
.tabs button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.tabs button.on { background: var(--g-accent); color: var(--ink); border-color: transparent; }
dialog { width: min(780px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
dialog form { display: grid; gap: 14px; }
dialog h3 { font-size: 26px; }
dialog textarea { width: 100%; }
dialog label { display: flex; }
dialog .pcard { gap: 26px; }
dialog .pcard img, dialog .pcard .nophoto { width: 260px; height: auto; aspect-ratio: 3 / 4; background: var(--fog); }
#count { margin-left: auto; line-height: 44px; }
dialog .pcard h3 { font-size: clamp(28px, 4vw, 46px); }
dialog .stats dt { color: var(--muted); opacity: 1; }
.photo-btn { width: max-content; cursor: pointer; }
#players tr[data-player] { cursor: pointer; }
#players tr[data-player]:hover { background: var(--row-hover-2); }
@media (max-width: 560px) {
  .pcard { flex-direction: column; gap: 14px; }
  .pcard img, .pcard .nophoto, dialog .pcard img, dialog .pcard .nophoto { width: 100%; height: 280px; }
  .pcard .nophoto, dialog .pcard .nophoto { height: 120px; font-size: 64px; }
  dialog .pcard img { width: min(100%, 240px); height: auto; }
}

/* GIF picker */
.gifpanel { position: fixed; z-index: 30; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100% - 24px)); max-height: 86vh;
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 0 0 100vmax var(--scrim); }
.gifhead { display: flex; gap: 8px; }
.gifhead input { flex: 1; min-width: 0; font-size: 16px; }
.gifgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; overflow: auto; min-height: 0; max-height: 62vh; }
.gif { padding: 0; min-height: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--bg-3); line-height: 0; }
.gif img { width: 100%; height: 150px; object-fit: cover; }
.gif:hover:not(:disabled) { outline: 2px solid var(--text); background: var(--bg-3); }

/* phones */
@media (max-width: 600px) {
  .who { display: none; }
  .brand { font-size: 16px; white-space: nowrap; }
  header nav { gap: 4px 14px; flex: 1 0 100%; }
  .bidline { gap: 16px; }
  .clock { width: 84px; height: 84px; } .clock span { font-size: 28px; }
  .bidbar button { flex: 1 1 28%; padding: 12px 4px; font-size: 16px; min-height: 64px; white-space: nowrap; }
}

/* theme toggle (theme.js): a round icon button, moon in light mode, sun in dark */
.themebtn { display: inline-grid; place-items: center; width: 36px; min-height: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); flex: none; }
.themebtn svg { width: 18px; height: 18px; }
.themebtn .sun, :root[data-theme="dark"] .themebtn .moon { display: none; }
:root[data-theme="dark"] .themebtn .sun { display: inline; }
.themebtn-corner { position: absolute; top: 20px; right: 20px; z-index: 2; }

/* ---------- landing page: the reference layout (thin nav, one big photo, the name across the width), then the pitch ---------- */
.lp-body::before { display: none; }
.lp-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: var(--bg); border: 0; }
.lp-brand { font: 900 17px/1 var(--f-display); font-stretch: var(--wide); letter-spacing: .01em; color: var(--text); text-decoration: none; }
.lp-nav nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 6vw, 96px); font-size: 14px; font-weight: 600; }
.lp-nav nav a { padding: 8px 0; color: var(--text); text-decoration: none; }
.lp-nav nav a:hover { color: var(--accent-text); }
.lp-nav .lp-signin { padding: 9px 16px; border-radius: 99px; background: var(--accent); color: var(--ink); }
.lp-nav .lp-signin:hover { color: var(--ink); background: var(--accent-hi); }
.lp { display: block; max-width: none; padding: 0; }
.lp section > h2 { display: block; font: inherit; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0; }
.lp section > h2::before { content: none; }
.lp-hero { height: calc(100svh - 60px); min-height: 440px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(8px, 1.4vw, 18px); padding: 0 14px 10px; }
.lp-photo { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: 4px; background: #222; }
.lp-photo picture { display: contents; }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.lp-photo figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: rgba(20, 20, 22, .6); backdrop-filter: blur(6px); color: #f6f5f1; font-size: 13px; font-weight: 600; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .3); animation: blink 1.6s infinite; }
.lp-word { margin: 0; line-height: 0; }
.lp-word svg { display: block; width: 100%; height: auto; overflow: visible; }
.lp-word text { font: 900 200px/1 var(--f-display); font-stretch: var(--wide); letter-spacing: -.02em; fill: var(--text); }

.lp > section:not(.lp-hero) { padding: clamp(64px, 10vw, 140px) clamp(16px, 5vw, 72px); border-top: 1px solid var(--line); }
.lp-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lp-eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--accent); }
.lp .lp-h { font: 800 clamp(32px, 4.4vw, 64px)/1.02 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -.01em; max-width: 18ch; margin: 0 0 clamp(32px, 4vw, 56px); }
.lp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 99px; background: var(--accent); color: var(--ink); font: 700 15px/1 var(--f-text); text-decoration: none; }
.lp-btn::after { content: '→'; transition: transform .2s; }
.lp-btn:hover { background: var(--accent-hi); }
.lp-btn:hover::after { transform: translateX(4px); }

.lp-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.lp-intro .lp-eyebrow { grid-column: 1 / -1; margin: 0; }
.lp .lp-intro h2 { font: 600 clamp(26px, 3.2vw, 46px)/1.15 var(--f-text); letter-spacing: -.015em; }
.lp-intro em { font-style: normal; color: var(--accent-text); }
.lp-intro-side p { margin: 0 0 24px; color: var(--lead); font-size: 17px; max-width: 42ch; }
.lp-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0 0; border-top: 1px solid var(--line-2); }
.lp-stats div { padding: 24px 24px 0 0; }
.lp-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.lp-stats dt { font: 800 clamp(24px, 2.6vw, 38px)/1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; }
.lp-stats dd { margin: 8px 0 0; color: var(--muted); }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { padding: 28px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--edge); }
.lp-num { display: block; font: 900 clamp(56px, 6vw, 88px)/1 var(--f-display); font-stretch: var(--wide); color: var(--accent); margin-bottom: 40px; }
.lp-steps h3, .lp-cards h3 { font: 800 22px/1.1 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; margin: 0 0 10px; }
.lp-steps p, .lp-cards p { margin: 0; color: var(--lead); }

.lp-auction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lp-auction-copy > p { color: var(--lead); max-width: 52ch; }
.lp-rules { list-style: none; margin: 20px 0; padding: 0; border-top: 1px solid var(--line); }
.lp-rules li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.lp-rules li::before { content: '✕'; color: var(--accent-text); font-weight: 800; }
.lp .lp-note { font-size: 14px; color: var(--muted); }
.lp-auction .lot { margin: 0; max-width: none; }
.lp-ticks li::before { content: '✓'; }
.lp-note a { color: var(--accent-text); }

/* tournament: example scoreboard */
.board { margin: 0; padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: var(--edge); font-variant-numeric: tabular-nums; }
.board-games { list-style: none; margin: 0; padding: 0; }
.board-games li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board-games b { font: 600 28px/1 var(--f-display); font-stretch: var(--wide); }
.board-when { font-size: 13px; color: var(--muted); }
.board-games .live .board-when { color: var(--accent-text); font-weight: 600; }
.board-games .live b { color: var(--accent); }
.board-home { text-align: right; }
.board-table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.board-table th, .board-table td { padding: 8px 0; text-align: right; border-bottom: 1px solid var(--line); }
.board-table th:first-child { text-align: left; }
.board-table tbody th { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.board-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.board-table td:last-child { font-weight: 700; }
.board .board-scorer { margin: 0; font-size: 14px; color: var(--muted); }
.board-scorer b { color: var(--text); font-weight: 500; margin-left: 6px; }

/* matchday: an inverted band, the same in both themes */
.lp > .lp-match { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: #151517; color: #f1f0eb; border: 0; }
.lp-match .lp-h { color: #f1f0eb; }
.lp-match .lp-eyebrow { color: #a3a19b; }
.lp-match-copy p { color: #c9c7c0; font-size: 17px; max-width: 52ch; }
.lp-pitch { width: min(100%, 360px); justify-self: center; color: #f1f0eb; }
.lp-players circle { fill: #f1f0eb; }
.lp-players .lp-star { fill: var(--accent); }

.lp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.lp-cards li { padding: 28px 24px 0 0; }
.lp-cards li + li { padding-left: 24px; border-left: 1px solid var(--line); }

.lp > .lp-cta { display: grid; justify-items: start; gap: 32px; }
.lp .lp-cta h2 { font: 900 clamp(44px, 9vw, 150px)/.95 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; letter-spacing: -.02em; }
.lp-btn-big { font-size: 17px; padding: 20px 30px; }
.lp-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px clamp(16px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* footer: a ruled grid of cells, an outlined wordmark between tick rulers, then the legal bar */
.ft { --ft-pad: clamp(16px, 5vw, 72px); border-top: 1px solid var(--line-2); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); margin: 0 var(--ft-pad); border-left: 1px solid var(--line); }
.ft-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 28px 24px 36px; border-right: 1px solid var(--line); min-width: 0; }
.ft-cell p { margin: 0; color: var(--lead); max-width: 30ch; }
.ft-h { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 14px !important; }
.ft-h2 { margin-top: 24px !important; }
.ft-cell > a:not(.lp-btn) { position: relative; padding: 6px 0; color: var(--text); text-decoration: none; }
.ft-cell > a:not(.lp-btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ft-cell > a:not(.lp-btn):hover::after, .ft-cell > a:not(.lp-btn):focus-visible::after { transform: scaleX(1); }
.ft-lead { justify-content: space-between; gap: 32px; }
.ft-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ft-contact .ft-h { margin-bottom: 2px !important; }
.ft-mail { color: var(--lead); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.ft-mail:hover { color: var(--text); }
.ft .ft-tag { font: 800 clamp(24px, 2.4vw, 34px)/1.05 var(--f-display); font-stretch: var(--wide); text-transform: uppercase; color: var(--text); max-width: 16ch; }
.ft-word { position: relative; padding: clamp(24px, 4vw, 56px) var(--ft-pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); line-height: 0; }
/* tick rulers along the top and bottom edges, like a drawing sheet */
.ft-word::before, .ft-word::after { content: ''; position: absolute; left: var(--ft-pad); right: var(--ft-pad); height: 8px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 12px); }
.ft-word::before { top: 10px; } .ft-word::after { bottom: 10px; }
.ft-word svg { display: block; width: 100%; height: auto; overflow: visible; }
.ft-word text { font: 900 200px/1 var(--f-display); font-stretch: var(--wide); letter-spacing: -.02em; fill: none; stroke: var(--text); stroke-width: 1.2; transition: fill .4s ease; }
.ft-word:hover text { fill: var(--accent); stroke: var(--accent); }
.ft-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 var(--ft-pad); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ft-bar > * { padding: 16px 0; }
.ft-bar a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ft-bar a:hover { color: var(--accent-text); }
@media (max-width: 1000px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .ft-cell:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-cell, .ft-cell:last-child { grid-column: auto; border-top: 0; border-bottom: 1px solid var(--line); }
  .ft-cell:last-child { border-bottom: 0; }
}

@media (max-width: 1100px) { .lp-auction { grid-template-columns: minmax(0, 1fr); } .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .lp-intro, .lp > .lp-match { grid-template-columns: minmax(0, 1fr); }
  .lp-steps, .lp-cards { grid-template-columns: minmax(0, 1fr); }
  .lp-cards li, .lp-cards li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .lp-num { margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .lp-nav { padding: 10px 12px; }
  .lp-nav nav { flex: none; gap: 10px; }
  .lp-nav nav a:not(.lp-signin) { display: none; }
  .lp-hero { height: calc(100svh - 58px); padding: 0 10px 8px; }
  .lp-stats { grid-template-columns: minmax(0, 1fr); }
  .lp-stats div, .lp-stats div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .board { padding: 16px; }
  .board-games li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .board-when { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
