/* SLUG Night homepage.
   Layout: a fight bill (headline stacked like a poster, the next card's clock
   beside it, the fist logo in the corner), ring ropes underneath, then the
   five belts as a row, the steps, and the download.
   Deliberately one dark look: fight night happens under the lights. */
:root {
  --ink: #0E0F11;        /* arena */
  --mat: #16171B;        /* canvas panels */
  --mat-2: #1D1F24;
  --line: #2A2C33;
  --text: #EDEDEA;
  --muted: #A0A4AC;
  --gold: #F5B800;       /* belt gold, the app's accent */
  --gold-ink: #1A1400;
  --red: #D9402B;        /* red corner */
  --blue: #3B7DD8;       /* blue corner */
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 13px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--red); }
.gold { color: var(--gold); }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  background: rgba(14, 15, 17, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a { text-decoration: none; font: 600 15px var(--body); color: var(--muted); padding: 8px 12px; border-radius: 6px; }
.topnav a:hover { color: var(--text); }
.topnav .topnav-cta { color: var(--gold-ink); background: var(--gold); }
.topnav .topnav-cta:hover { color: var(--gold-ink); background: #FFC929; }
@media (max-width: 560px) { .topnav a:not(.topnav-cta) { display: none; } }

/* The bill */
.bill { position: relative; overflow: hidden; background:
  radial-gradient(1200px 520px at 78% -10%, rgba(245, 184, 0, .10), transparent 60%),
  radial-gradient(900px 600px at -10% 120%, rgba(217, 64, 43, .10), transparent 60%), var(--ink); }
.bill-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: end;
  padding-block: clamp(48px, 8vw, 104px) 64px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.bill-copy { position: relative; z-index: 2; min-width: 0; }
.bill h1 { font-size: clamp(56px, 9.2vw, 128px); margin: 18px 0 24px; }
.bill h1 span { display: block; }
.bill h1 .gold { font-style: italic; }
.lede { max-width: 34em; color: #C9CCD2; font-size: 19px; }
.bill-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 8px; text-decoration: none;
  font: 800 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: transform .12s ease, background .12s ease; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #FFC929; transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line); color: var(--text); }
.btn-line:hover { border-color: #4A4D56; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-gold:hover { transform: none; } }

.next-card { position: relative; z-index: 2; background: rgba(22, 23, 27, .9); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 22px; }
.next-date { font: 800 clamp(34px, 3.6vw, 46px)/1 var(--display); text-transform: uppercase; margin-top: 10px; }
.next-lock { color: var(--muted); margin-top: 8px; font-size: 15px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.countdown div { background: var(--mat-2); border-radius: 8px; padding: 10px 4px 8px; text-align: center; }
.countdown b { display: block; font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.bill-fist { position: absolute; z-index: 1; right: -60px; top: -40px; width: min(520px, 46vw); height: auto; opacity: .07; transform: rotate(-12deg); pointer-events: none; }

/* Ring ropes: red corner, white, blue corner. */
.ropes { display: grid; gap: 5px; padding-bottom: 6px; }
.ropes i { display: block; height: 5px; border-radius: 3px; }
.ropes i:nth-child(1) { background: var(--red); }
.ropes i:nth-child(2) { background: #E9E7E1; }
.ropes i:nth-child(3) { background: var(--blue); }

/* Sections */
section.belts, section.how { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(40px, 5.4vw, 64px); }
.section-note { color: var(--muted); max-width: 36em; }

/* Belts */
.belt-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.belt { position: relative; min-width: 0; background: var(--mat); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; display: grid; gap: 6px; align-content: start; }
.belt::before { content: ""; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #8C6A00, var(--gold) 30%, #FFE07A 50%, var(--gold) 70%, #8C6A00); margin-bottom: 8px; }
.belt.vacant::before { background: repeating-linear-gradient(90deg, #3A3D45 0 10px, transparent 10px 16px); }
.belt-class { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.belt-name { font: 800 26px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.belt.vacant .belt-name { color: #6E727B; }
.belt-gym { font-size: 15px; color: #C9CCD2; overflow-wrap: anywhere; }
.belt-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .belt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .belt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .belt-row { grid-template-columns: minmax(0, 1fr); } }

.title-bouts { margin-top: 44px; }
.title-bouts h3 { font-size: 30px; margin-bottom: 14px; }
.bouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bouts-empty { color: var(--muted); padding: 18px 20px; border: 1px dashed var(--line); border-radius: 12px; }
.bout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; background: var(--mat); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.bout-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.corner { min-width: 0; display: grid; gap: 2px; padding-left: 12px; border-left: 4px solid var(--red); }
.corner.blue { text-align: right; padding-left: 0; padding-right: 12px; border-left: 0; border-right: 4px solid var(--blue); }
.corner b { font: 800 24px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.corner span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.corner.won b::after { content: " · W"; color: var(--gold); }
.vs { font: 800 italic 22px var(--display); color: var(--muted); }
@media (max-width: 560px) { .bout { grid-template-columns: minmax(0, 1fr); } .vs { justify-self: start; } .corner.blue { text-align: left; padding-right: 0; padding-left: 12px; border-right: 0; border-left: 4px solid var(--blue); } }
.feed-state { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Steps: a real sequence, so they are numbered. */
.how { background: var(--mat); border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before { content: "Round " counter(step); display: block; font: 600 13px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-size: 30px; margin-bottom: 10px; }
.steps p { color: #C9CCD2; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Download */
.download { padding-block: clamp(56px, 8vw, 96px); }
.download-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.download h2 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 14px; }
.download-req { color: #C9CCD2; max-width: 34em; }
.download-box { display: grid; gap: 10px; justify-items: start; }
.btn-big { min-height: 60px; padding: 0 34px; font-size: 22px; }
.dl-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .download-inner { grid-template-columns: minmax(0, 1fr); } }

.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-inner p { display: flex; align-items: center; gap: 10px; }
.foot img { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .bill-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bill-fist { width: 70vw; right: -20vw; top: -10px; }
}

/* 404 */
.notfound { padding-block: 96px; }
.notfound h1 { font-size: clamp(48px, 8vw, 96px); margin: 12px 0 20px; }
