/* Shared look of timedboxfights.com (same tokens as the home page). */

/* Layout: one long scroll on the logo's royal-blue night sky; every band is a centred 1180px column. A single dark look by choice (the logo is dark blue), so there is no light theme. */
:root {
  --edge: #0A1438;      /* logo corner navy */
  --navy: #0D1C4A;      /* panels */
  --royal: #1A3797;     /* raised surfaces */
  --glow: #2449B8;      /* logo centre glow */
  --yellow: #FFE240;    /* crosshair */
  --yellow-ink: #1A1400;
  --white: #FFFFFF;
  --sky: #7CCBFF;
  --muted: #A7B6E4;
  --faint: #6E7FB8;
  --line: rgba(124, 160, 255, .18);
  --line-strong: rgba(124, 160, 255, .34);
  --green: #44E08E;
  --red: #FF6B7A;
  --font-display: "Archivo", "Arial Black", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--edge); color: var(--white); font: 400 16px/1.55 var(--font-body);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(36, 73, 184, .55), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(36, 73, 184, .25), transparent 70%);
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--edge); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-style: italic; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5.4vw, 58px); }
h3 { font-size: 22px; }
p { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer;
  font: 800 17px/1 var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 0 0 1px rgba(255,226,64,.4), 0 10px 30px -8px rgba(255,226,64,.55); }
.btn-yellow:hover { box-shadow: 0 0 0 1px rgba(255,226,64,.6), 0 14px 38px -8px rgba(255,226,64,.75); }
.btn-ghost { background: rgba(10, 20, 56, .6); color: var(--white); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--sky); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn img { width: 22px; height: 22px; border-radius: 6px; }
.eyebrow { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,226,64,.45); background: rgba(255,226,64,.08);
  color: var(--yellow); font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(10,20,56,.7);
  color: var(--green); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(68,224,142,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(68,224,142,.55); } 70% { box-shadow: 0 0 0 9px rgba(68,224,142,0); } 100% { box-shadow: 0 0 0 0 rgba(68,224,142,0); } }

/* ---------- header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(10, 20, 56, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { font: 900 20px/1 var(--font-display); font-style: italic; font-stretch: 112%; text-transform: uppercase; }
.brand b { color: var(--yellow); font-weight: 900; }
nav.links { display: flex; gap: 4px; margin-left: auto; }
nav.links a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
nav.links a:hover { color: var(--white); background: rgba(124,160,255,.08); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--royal); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; border: 2px solid var(--line-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--white); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 860px) {
  nav.links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--edge); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
  nav.links.open { display: flex; }
  .menu-btn { display: grid; place-items: center; }
  .top .who .btn span.long { display: none; }
}

/* ---------- preview banner */
.preview { background: var(--yellow); color: var(--yellow-ink); font-weight: 600; text-align: center; padding: 8px 16px; font-size: 14px; }

/* ---------- hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 56px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%237CA0FF' stroke-opacity='.10' stroke-width='2'%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3Cpath d='M60 36v14M60 70v14M36 60h14M70 60h14'/%3E%3C/g%3E%3C/svg%3E") repeat; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: clamp(54px, 11vw, 132px); text-shadow: 0 6px 0 rgba(4,10,30,.65), 0 0 60px rgba(36,73,184,.8); }
.hero h1 .y { color: var(--yellow); }
.hero .tag { font: 800 clamp(22px, 3.6vw, 34px)/1.1 var(--font-display); font-style: italic; text-transform: uppercase; }
.hero .tag .y { color: var(--yellow); } .hero .tag .s { color: var(--sky); }
.hero .lead { max-width: 60ch; color: var(--muted); font-size: 18px; }
.hero .lead strong { color: var(--white); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.stat { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.stat svg { width: 26px; height: 26px; color: var(--yellow); flex: none; }
.stat b { color: var(--white); font: 800 22px/1 var(--font-display); font-style: italic; font-variant-numeric: tabular-nums; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.crosshair-hero { position: absolute; right: -90px; top: 40px; width: 360px; opacity: .14; pointer-events: none; }
@media (max-width: 700px) { .crosshair-hero { display: none; } }

/* ---------- sections */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: 30px; }
.head p { max-width: 62ch; color: var(--muted); font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.card { background: linear-gradient(180deg, rgba(26,55,151,.35), rgba(13,28,74,.85)); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- play panel */
.play { padding: 22px; display: grid; gap: 18px; }
.play-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.play-top .name { font-weight: 700; font-size: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.chip.ok { color: var(--green); border-color: rgba(68,224,142,.45); }
.chip.warn { color: var(--yellow); border-color: rgba(255,226,64,.45); }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(10,20,56,.7); border: 1px solid var(--line); overflow-x: auto; }
.tab { flex: 1; min-width: 72px; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; font: 800 16px/1 var(--font-display); font-style: italic; text-transform: uppercase; white-space: nowrap; }
.tab small { display: block; margin-top: 4px; font: 600 12px/1 var(--font-body); font-style: normal; text-transform: none; color: var(--faint); }
.tab[aria-selected="true"] { background: var(--yellow); color: var(--yellow-ink); }
.tab[aria-selected="true"] small { color: rgba(26,20,0,.7); }
.regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.region { padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(10,20,56,.55); color: var(--white); cursor: pointer; text-align: center; }
.region b { display: block; font: 800 17px/1 var(--font-display); font-style: italic; }
.region span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.region.has span { color: var(--green); font-weight: 700; }
.region[aria-pressed="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); background: rgba(255,226,64,.08); }
.status { padding: 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(10,20,56,.6); display: grid; gap: 12px; }
.status.live { border-color: rgba(68,224,142,.6); box-shadow: 0 0 0 1px rgba(68,224,142,.25), 0 0 40px -10px rgba(68,224,142,.5); }
.status.searching { border-color: rgba(255,226,64,.55); }
.status .big { font: 900 34px/1 var(--font-display); font-style: italic; font-variant-numeric: tabular-nums; }
.status .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.vs .side { font-weight: 700; overflow-wrap: anywhere; }
.vs .x { font: 900 24px/1 var(--font-display); font-style: italic; color: var(--yellow); }
.code { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(10,20,56,.8); border: 1px dashed var(--line-strong); font: 700 15px/1 var(--font-mono); color: var(--white); cursor: pointer; }
.code:hover { border-color: var(--yellow); }
.rankcard { display: grid; gap: 10px; }
.rankline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rankline .r { font: 900 26px/1 var(--font-display); font-style: italic; text-transform: uppercase; color: var(--yellow); }
.bar { height: 10px; border-radius: 999px; background: rgba(10,20,56,.9); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--yellow)); border-radius: inherit; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kv div { padding: 10px; border-radius: 10px; background: rgba(10,20,56,.55); border: 1px solid var(--line); }
.kv b { display: block; font: 800 20px/1.1 var(--font-display); font-style: italic; font-variant-numeric: tabular-nums; }
.kv span { font-size: 12px; color: var(--muted); }
@media (max-width: 460px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps-mini { display: grid; gap: 10px; color: var(--muted); }
.steps-mini li { margin-left: 18px; }

/* ---------- mode cards */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .modes { grid-template-columns: minmax(0, 1fr); } }
.mode { overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .15s ease, box-shadow .15s ease; }
.mode:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(255,226,64,.45); }
.mode .art { aspect-ratio: 16 / 9; max-width: 100%; position: relative; background: var(--navy); }
.mode .art img { width: 100%; height: 100%; object-fit: cover; }
.mode .live { position: absolute; left: 10px; bottom: 10px; background: rgba(10,20,56,.85); }
.mode .body { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mode .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mode .tags span { font-size: 12px; font-weight: 600; color: var(--sky); padding: 3px 8px; border-radius: 6px; background: rgba(124,203,255,.1); }
.mode .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pill.small { padding: 5px 10px; font-size: 13px; }
.pill.off { color: var(--muted); }
.pill.off .dot { background: var(--faint); animation: none; }

/* ---------- tournaments */
.tlist { display: grid; gap: 14px; }
.tcard { padding: 18px; display: grid; gap: 12px; cursor: pointer; text-align: left; color: inherit; width: 100%; }
.tcard[aria-pressed="true"] { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.tcard .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tcard .title { display: flex; align-items: center; gap: 12px; }
.mbadge { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,226,64,.12); color: var(--yellow); font: 900 15px/1 var(--font-display); font-style: italic; flex: none; }
.state { padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.state.SIGNUPS { background: rgba(124,203,255,.14); color: var(--sky); }
.state.RUNNING { background: rgba(68,224,142,.15); color: var(--green); }
.state.FINISHED { background: rgba(255,226,64,.14); color: var(--yellow); }
.state.CANCELLED { background: rgba(255,107,122,.14); color: var(--red); }
.fill { height: 8px; border-radius: 999px; background: rgba(10,20,56,.9); overflow: hidden; }
.fill i { display: block; height: 100%; background: var(--yellow); }
.prize { color: var(--yellow); font-weight: 700; }
.bracket-card { padding: 20px; display: grid; gap: 16px; margin-top: 18px; }
.bracket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.search { flex: 1 1 220px; max-width: 320px; position: relative; }
.search input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(10,20,56,.7); color: var(--white); font: inherit; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.bracket-scroll { overflow-x: auto; padding-bottom: 8px; }
.bracket { display: flex; gap: 34px; min-width: max-content; }
.round { display: flex; flex-direction: column; width: 230px; }
.round h4 { margin: 0 0 12px; padding: 10px; text-align: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--yellow); font: 800 15px/1 var(--font-display); font-style: italic; text-transform: uppercase; }
.round .slots { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bm { position: relative; border-radius: 10px; border: 1px solid var(--line); background: rgba(10,20,56,.75); }
.bm.LIVE { border-color: var(--green); box-shadow: 0 0 22px -8px rgba(68,224,142,.7); }
.bm.DONE, .bm.BYE { border-color: var(--line-strong); }
.bm.STUCK { border-color: var(--red); }
.round:not(:last-child) .bm::after { content: ""; position: absolute; right: -18px; top: 50%; width: 18px; border-top: 2px solid var(--line-strong); }
.bm .p { display: flex; align-items: center; gap: 8px; padding: 9px 10px; min-height: 42px; }
.bm .p + .p { border-top: 1px solid var(--line); }
.bm .p .s { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,226,64,.12); color: var(--yellow); font: 700 11px/22px var(--font-mono); text-align: center; flex: none; }
.bm .p .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm .p.tbd { color: var(--faint); }
.bm .p.win .n { color: var(--yellow); font-weight: 700; }
.bm .p.lose .n { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(167,182,228,.5); }
.bm .p.hit { background: rgba(124,203,255,.14); }
.bm .meta { display: flex; justify-content: space-between; padding: 4px 10px 6px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); }
.bm .meta a { color: var(--green); font-weight: 700; text-decoration: none; }
.champ { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,226,64,.1); border: 1px solid rgba(255,226,64,.5); }
.champ b { font: 900 22px/1 var(--font-display); font-style: italic; color: var(--yellow); }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; }

/* ---------- leaderboard */
.bullets { display: grid; gap: 14px; margin: 6px 0 26px; padding: 0; list-style: none; }
.bullets li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 17px; }
.bullets i { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,226,64,.1); border: 1px solid rgba(255,226,64,.35); color: var(--yellow); flex: none; }
.bullets svg { width: 22px; height: 22px; }
.board { overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-head h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.board-head h3 svg { width: 24px; height: 24px; color: var(--yellow); }
.board .tabs { margin: 14px 20px 6px; }
.lrow { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow.first { background: linear-gradient(90deg, rgba(255,226,64,.14), transparent 70%); }
.pos { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--muted); background: rgba(10,20,56,.8); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pos.p1 { background: var(--yellow); color: var(--yellow-ink); border: 0; }
.pos.p1 svg { width: 20px; height: 20px; }
.pos.p2 { border-color: #C9D3EA; color: #E6ECF8; }
.pos.p3 { border-color: #D98B4A; color: #F0A867; }
.lrow .nm { min-width: 0; }
.lrow .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow.first .nm b { color: var(--yellow); }
.lrow .nm span { font-size: 13px; color: var(--muted); }
.lrow .pts { text-align: right; font: 800 20px/1 var(--font-display); font-style: italic; color: var(--yellow); font-variant-numeric: tabular-nums; }
.lrow .pts small { display: block; margin-top: 4px; font: 600 12px/1 var(--font-body); font-style: normal; color: var(--muted); }

/* ---------- feed, steps */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.feed { padding: 6px 0; }
.frow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow .m { font: 800 13px/1 var(--font-display); font-style: italic; color: var(--yellow); padding: 6px 8px; border-radius: 6px; background: rgba(255,226,64,.1); }
.frow .t { min-width: 0; overflow-wrap: anywhere; }
.frow .t b { color: var(--white); }
.frow .when { font-size: 13px; color: var(--faint); white-space: nowrap; text-align: right; }
.queues { padding: 18px; display: grid; gap: 14px; }
.qline { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; }
.qline .m { font: 900 18px/1 var(--font-display); font-style: italic; }
.qregs { display: flex; flex-wrap: wrap; gap: 6px; }
.qregs span { padding: 5px 9px; border-radius: 8px; font-size: 13px; background: rgba(10,20,56,.7); border: 1px solid var(--line); color: var(--faint); font-variant-numeric: tabular-nums; }
.qregs span.on { color: var(--green); border-color: rgba(68,224,142,.45); font-weight: 700; }
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .howto { grid-template-columns: minmax(0, 1fr); } }
.howto li { list-style: none; padding: 20px; display: grid; gap: 10px; align-content: start; }
.howto li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow); color: var(--yellow-ink); font: 900 20px/1 var(--font-display); font-style: italic; }
.howto h3 { font-size: 20px; }
.howto p { color: var(--muted); }
.final { text-align: center; display: grid; justify-items: center; gap: 18px; }
.final p { color: var(--muted); font-size: 18px; max-width: 52ch; }
footer { border-top: 1px solid var(--line); padding-block: 34px 50px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--white); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 60; max-width: min(520px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px; background: var(--navy); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); display: grid; gap: 4px; }
.toast.ok { border-color: rgba(68,224,142,.6); } .toast.bad { border-color: rgba(255,107,122,.6); }
.toast b { font-weight: 700; }
.skel { color: var(--faint); }

/* ---------- shared by the Matches and Tournaments pages */
.page { padding-block: 34px 80px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--sky); text-decoration: none; }
.pagehead { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pagehead h1 { font-size: clamp(36px, 6vw, 60px); }
.pagehead p { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 62ch; }
nav.links a[aria-current="page"] { color: var(--white); background: rgba(124,160,255,.12); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.mcard { padding: 18px; display: grid; gap: 14px; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.mcard:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.mcard .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mvs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.mvs .s { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.mvs .s b { overflow-wrap: anywhere; }
.mvs .s.win b { color: var(--yellow); }
.mvs .x { font: 900 22px/1 var(--font-display); font-style: italic; color: var(--yellow); }
.faces { display: flex; }
.faces .avatar { width: 44px; height: 44px; margin-left: -8px; border: 2px solid var(--navy); }
.faces .avatar:first-child { margin-left: 0; }
.st { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(124,203,255,.14); color: var(--sky); white-space: nowrap; }
.st.IN_PROGRESS { background: rgba(68,224,142,.15); color: var(--green); }
.st.AWAITING_RESULT, .st.UNDER_REVIEW, .st.DISPUTED { background: rgba(255,226,64,.14); color: var(--yellow); }
.st.COMPLETED { background: rgba(167,182,228,.12); color: var(--muted); }
.st.CANCELLED, .st.EXPIRED { background: rgba(255,107,122,.14); color: var(--red); }
.timer { font: 800 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--white); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 34px 0 14px; }
.section-title h2 { font-size: 26px; }
.reslist .frow { grid-template-columns: auto minmax(0, 1fr) auto; }
.empty.big { padding: 40px 20px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--yellow); animation: sp .8s linear infinite; margin: 30px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hide-sm { } @media (max-width: 560px) { .hide-sm { display: none; } }
