/* propkill matchmaking web UI. One stylesheet, no external resources (CSP: default-src 'self'). */

:root {
  --bg: #07090b;
  --bg-raised: #0a0e11;
  --panel: #0d1215;
  --panel-2: #11181c;
  --border: #2a3439;
  --border-soft: #1c2428;
  --text: #f2f6f7;
  --muted: #a8b3b8;
  --faint: #7d898f;
  --accent: #33d6e6;
  --accent-strong: #5fe4f0;
  --accent-ink: #031417;
  --accent-soft: rgba(51, 214, 230, 0.12);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --info: #93c5fd;
  --info-soft: rgba(147, 197, 253, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(51, 214, 230, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.05rem; }
h3 { font-size: 0.95rem; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--panel-2); border: 1px solid var(--border-soft); padding: 0 4px; border-radius: 4px; }
strong, .strong { font-weight: 650; }

.muted { color: var(--muted); }
.hint { color: var(--faint); font-size: 0.85rem; margin-top: 4px; }
.note { margin: 12px 0; }
.sub { display: block; color: var(--faint); font-size: 0.8rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count { color: var(--faint); font-weight: 500; font-size: 0.85rem; margin-left: 6px; font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 9, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 60px;
  display: flex; align-items: center; gap: 24px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--text);
  white-space: nowrap;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1;
}
.wordmark:hover { color: var(--accent); text-decoration: none; }

.mainnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.mainnav a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-weight: 550;
  font-size: 0.92rem;
  white-space: nowrap;
}
.mainnav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.mainnav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 8px; }

.userbox { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 220px;
}
.userchip:hover, .userchip[aria-current="page"] { border-color: var(--accent); text-decoration: none; color: var(--text); }
.userchip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 0.9rem; }

@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; }
  .userbox { order: 2; }
  .mainnav {
    order: 3; flex-basis: 100%;
    overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  }
  .mainnav::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  flex: 1;
}
.container:focus { outline: none; }

.footer {
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  color: var(--faint); font-size: 0.8rem;
  display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
}

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-bottom: 22px;
}
.page-head .muted { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs { color: var(--faint); font-size: 0.85rem; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

.section { margin-top: 30px; }
.section-tight { margin-bottom: 22px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 16px; margin-bottom: 12px;
}
.link-more { font-size: 0.88rem; font-weight: 550; }

.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main-side { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 960px) {
  .grid-2, .grid-main-side { grid-template-columns: minmax(0, 1fr); }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.panel > h2 { margin-bottom: 6px; }
.panel > .muted { margin-bottom: 14px; font-size: 0.9rem; }
.panel-danger { border-color: rgba(248, 113, 113, 0.35); }

/* ---------------------------------------------------------------- tiles */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.tile-label { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.tile-value { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tile-sub { color: var(--faint); font-size: 0.8rem; }

/* ---------------------------------------------------------------- pills */

.pill {
  display: inline-flex; align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 650;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.6;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: middle;
}
.pill-ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(74, 222, 128, 0.28); }
.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.28); }
.pill-bad { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.3); }
.pill-info { color: var(--info); background: var(--info-soft); border-color: rgba(147, 197, 253, 0.28); }
.pill-accent { color: var(--accent); background: var(--accent-soft); border-color: rgba(51, 214, 230, 0.35); }
.pill-muted { color: var(--muted); background: rgba(168, 179, 184, 0.08); border-color: var(--border); }

/* ---------------------------------------------------------------- tables */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-soft); }
.table thead th {
  color: var(--muted);
  font-size: 0.72rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table thead th.num { text-align: right; }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: rgba(51, 214, 230, 0.035); }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .details { max-width: 340px; overflow-wrap: anywhere; color: var(--muted); }
.row-link { color: var(--text); font-weight: 600; }
.row-link:hover { color: var(--accent); }
tr.is-dim > * { opacity: 0.6; }
tr.is-winner { background: linear-gradient(90deg, rgba(51, 214, 230, 0.1), transparent 70%); }
tr.is-winner .player-name { color: var(--accent-strong); }
tr.is-me .player-name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.player { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.player-name { overflow-wrap: anywhere; }

/* Stacked rows on phones: every cell becomes "label: value" (no horizontal page scroll). */
@media (max-width: 720px) {
  .table-wrap { overflow-x: visible; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 4px 0; border: 0; text-align: right;
  }
  .table-stack th[data-label]::before, .table-stack td[data-label]::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 0.72rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em;
    text-align: left; flex: none;
  }
  .table-stack td.num { text-align: right; }
  .table-stack .sub { display: none; }
  .table-stack .actions { width: 100%; justify-content: flex-end; padding-top: 8px; }
  .table-stack .player { justify-content: flex-end; }
  .table .details { max-width: none; }
}

/* ---------------------------------------------------------------- forms & buttons */

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="password"], input[type="search"], select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  min-height: 40px;
}
input::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: #3a474d; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input:disabled, select:disabled { opacity: 0.5; cursor: not-allowed; }
select { appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.radios { border: 0; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.inline-form { display: inline-flex; margin: 0; }
.form-row { gap: 8px; align-items: center; }
.form-row select { width: auto; min-width: 140px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; border-color: var(--border); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-danger { background: #b91c1c; border-color: #dc2626; color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: var(--bad); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--bad); border-color: rgba(248, 113, 113, 0.4); }
.btn-danger-ghost:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 5px 11px; min-height: 32px; font-size: 0.84rem; }
.btn-block { width: 100%; }

.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 16px;
}
.filters .field { flex: 1 1 200px; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.action-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--border-soft);
}
.action-row:first-of-type { border-top: 0; padding-top: 8px; }
.action-row .muted { font-size: 0.85rem; margin-top: 2px; }

/* ---------------------------------------------------------------- flashes & secrets */

.flash {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--panel);
}
.flash-message { font-weight: 550; }
.flash-success { border-color: rgba(74, 222, 128, 0.35); border-left-color: var(--ok); background: linear-gradient(90deg, var(--ok-soft), var(--panel) 60%); }
.flash-error { border-color: rgba(248, 113, 113, 0.35); border-left-color: var(--bad); background: linear-gradient(90deg, var(--bad-soft), var(--panel) 60%); }
.flash-info { border-color: rgba(147, 197, 253, 0.3); border-left-color: var(--info); background: linear-gradient(90deg, var(--info-soft), var(--panel) 60%); }

.secret { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.secret-label { font-size: 0.78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.secret-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.secret-value {
  flex: 1 1 260px; min-width: 0;
  display: block;
  font-size: 0.95rem;
  color: var(--accent-strong);
  background: var(--bg);
  border: 1px dashed rgba(51, 214, 230, 0.5);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  overflow-wrap: anywhere;
  user-select: all;
}
.secret-hint { color: var(--muted); font-size: 0.85rem; }

/* ---------------------------------------------------------------- empty states */

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  background: rgba(13, 18, 21, 0.5);
}
.empty-sm { padding: 18px; }
.empty-title { font-weight: 650; margin-bottom: 4px; }
.empty-text { color: var(--muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- key/values */

.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 0.88rem; }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.facts {
  margin: 0 0 22px;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--panel); padding: 12px 16px; min-width: 0; }
.fact dt { color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; }
.fact dd { margin: 2px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- match detail */

.winner-badge {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 10px 16px;
  border: 1px solid rgba(51, 214, 230, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
}
.winner-label { color: var(--accent); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.winner-name { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }

.teams { display: grid; gap: 18px; }
.teams-multi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.team { min-width: 0; }
.team-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.team-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.team-empty { border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 14px 16px; }
.team-score { display: flex; align-items: baseline; gap: 6px; }
.team-score-value { font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.team-score-label { color: var(--faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.team-winner .team-head { border-color: rgba(51, 214, 230, 0.55); box-shadow: inset 3px 0 0 var(--accent); }
.team-winner .table-wrap { border-color: rgba(51, 214, 230, 0.55); }
.team-winner .team-score-value { color: var(--accent); }

/* ---------------------------------------------------------------- live */

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.live-dot.is-down { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
[data-refresh].is-refreshing .live-dot { opacity: 0.5; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card-title { font-size: 0.98rem; }
.card-sub { color: var(--faint); font-size: 0.78rem; margin-top: 2px; overflow-wrap: anywhere; }
.card-phase { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.timer { color: var(--text); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.card-meta { color: var(--muted); font-size: 0.85rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; background: var(--bg-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.chip-name { font-weight: 600; margin-right: auto; overflow-wrap: anywhere; }
.chip-detail { color: var(--faint); font-size: 0.8rem; flex-basis: 100%; }

.queue { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: q; }
.queue li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); counter-increment: q; }
.queue li::before { content: counter(q); color: var(--faint); width: 1.6em; font-variant-numeric: tabular-nums; }
.queue li a { margin-right: auto; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.queue li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- pager */

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; text-align: center; flex: 1; }

/* ---------------------------------------------------------------- auth & errors */

.auth { display: flex; justify-content: center; padding: 6vh 0 4vh; }
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(51, 214, 230, 0.04);
}
.auth-card h1 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-card > .muted { margin-bottom: 20px; }
.auth-card .form { margin-top: 18px; }
.auth-mark { color: var(--accent); font-weight: 800; letter-spacing: 0.32em; font-size: 0.8rem; margin-bottom: 18px; }
.auth-foot { margin-top: 20px; font-size: 0.85rem; text-align: center; }

.error-page { text-align: center; padding: 10vh 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; line-height: 1; font-variant-numeric: tabular-nums; }
.lead { color: var(--muted); max-width: 520px; margin-bottom: 12px; }

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  .container { padding-top: 20px; }
  .auth-card { padding: 24px 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-value { font-size: 1.45rem; }
  .wordmark { letter-spacing: 0.2em; font-size: 0.95rem; padding-left: 9px; }
  .topbar-inner { column-gap: 10px; }
  .userchip { max-width: 140px; padding: 4px 10px; }
  .userchip .pill { display: none; }
  .winner-badge { align-items: flex-start; width: 100%; }
}

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