/* =========================================
   RIVAL 8 — Football Tournament Series
   Palette from the brand board (Rondo Time LLC):
   Energía #FF7A00 · Fuerza #0A0A0A · Grafito #1F1F1F · Claridad #E5E5E5 · Premium #D4AF37
   Look: dark stadium grid — orange nav bar, thin column lines, framed hero,
   condensed headlines (Anton), monospaced labels (Space Mono).
   The wordmark stays in Unbounded (closest free match to Monument Extended).
   ========================================= */

:root {
  --orange: #FF7A00;
  --orange-hi: #FF9533;
  --black: #0A0A0A;
  --bg: #121212;
  --graphite: #1A1A1A;
  --graphite-2: #262626;
  --line: #333;
  --line-soft: rgba(255,255,255,.08);
  --light: #E5E5E5;
  --mute: #A3A3A3;
  --gold: #D4AF37;
  --green: #22C55E;
  --red: #F05252;
  --font-cond: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --radius: 2px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* The thin column lines behind everything, like a stadium seating grid. */
body::before {
  content: ''; position: fixed; top: 0; bottom: 0; left: 50%; z-index: 0; pointer-events: none;
  width: min(var(--wrap), 100%); transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 12.5%);
  border-right: 1px solid var(--line-soft);
}
main, .site-foot { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow, .kicker {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0;
}
.accent { color: var(--orange); }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--orange) 0 7px, transparent 7px 14px); }

/* ---------- header: orange bar with a white call-to-action block ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--black); padding: 10px 0; }
.bar { position: relative; display: flex; align-items: stretch; background: var(--orange); height: 62px; }
.brand { display: flex; align-items: center; padding: 0 22px; margin-right: auto; text-decoration: none; }
.brand svg { height: 28px; width: auto; }
.bar .brand path, .bar .brand text { fill: var(--black); }
.bar .brand text:last-of-type { fill: #fff; }
.nav { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.nav a {
  font-family: var(--font-cond); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--black); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--black); }
.lang { display: flex; align-self: center; margin-right: 18px; border: 1.5px solid rgba(10,10,10,.5); }
.lang button {
  background: none; border: 0; color: var(--black); padding: 5px 9px; cursor: pointer;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
}
.lang button[aria-pressed="true"] { background: var(--black); color: var(--orange); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; background: none; border: 0; border-left: 1.5px solid rgba(10,10,10,.25); cursor: pointer;
}
.nav-toggle i { display: block; width: 22px; height: 2.5px; background: var(--black); transition: transform .15s, opacity .15s; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7.5px) rotate(-45deg); }
.bar-cta {
  display: flex; align-items: center; gap: 10px; padding: 0 26px;
  background: #fff; color: var(--black); text-decoration: none;
  font-family: var(--font-cond); font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase;
}
.bar-cta svg { width: 20px; height: 20px; }
.bar-cta:hover { background: var(--light); }
.bar-cta .short { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: var(--black);
  font-family: var(--font-cond); font-weight: 400; font-size: 1.05rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-hi); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid var(--line); }
.btn--ghost:hover { background: var(--graphite-2); }
.btn--dark { background: var(--graphite-2); color: #fff; border: 1px solid #3a3a3a; }
.btn--dark:hover { background: #303030; }
.btn--line { background: transparent; color: var(--orange); border: 1.5px solid var(--orange); }
.btn--line:hover { background: rgba(255,122,0,.1); }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- hero: one framed photo with corner marks ---------- */
.hero { padding: 26px 0 0; }
.frame { position: relative; padding: 12px; }
.frame > i { position: absolute; width: 16px; height: 16px; border: 0 solid #fff; }
.frame > i:nth-of-type(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame > i:nth-of-type(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame > i:nth-of-type(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame > i:nth-of-type(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(700px, 86vh); padding: 30px 30px 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #000 url(../assets/hero-wide.jpg) 50% 30% / cover no-repeat;
}
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(34% 40% at 94% 22%, rgba(10,10,10,.92) 40%, transparent 100%),
    linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.4) 40%, rgba(10,10,10,0) 70%),
    linear-gradient(0deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.55) 26%, transparent 52%);
}
.stage-mark { position: absolute; top: 30px; left: 30px; }
.stage-mark p { margin: 0 0 10px; }
.stage-mark svg { width: min(250px, 50vw); height: auto; }
.panel {
  position: absolute; top: 0; right: 0; width: min(420px, 44%);
  background: rgba(10,10,10,.9); border-left: 6px solid var(--orange); padding: 22px 26px;
}
.panel p { margin: 0; }
.panel .kicker { display: flex; align-items: center; gap: 8px; color: #fff; }
.panel .kicker svg { width: 16px; height: 16px; color: var(--orange); }
.panel h2 { font-family: var(--font-cond); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; text-transform: uppercase; color: #fff; margin: 10px 0 8px; }
.panel a { color: var(--orange); text-decoration: none; font-weight: 600; font-size: .9rem; }
.panel a:hover { text-decoration: underline; }

.tag {
  align-self: flex-start; display: inline-block; border: 1.5px solid var(--orange); border-radius: 99px; padding: 4px 12px;
  font-family: var(--font-cond); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.stage h1 {
  font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .98; margin: 16px 0 14px; max-width: 900px;
}
.stage-sub { margin: 0; max-width: 560px; color: #d6d6d6; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 26px; }
.spots { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }
.spots b { color: var(--orange); }

/* the four "headline" tiles along the bottom of the hero */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tiles li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: rgba(10,10,10,.82); border: 1px solid #2c2c2c;
}
.tiles li:first-child { border-left: 3px solid var(--orange); background: rgba(38,38,38,.9); }
.tiles svg { flex: none; width: 40px; height: 40px; padding: 8px; background: var(--graphite-2); color: var(--orange); }
.tiles small { display: block; font-family: var(--font-mono); font-size: .62rem; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.tiles b { display: block; font-size: .86rem; color: #fff; line-height: 1.25; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.mega, .section h2, .page-head h1 {
  font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; margin: 12px 0 0; max-width: 820px;
}
.lead { color: var(--mute); max-width: 560px; margin: 16px 0 0; }

/* countdown */
.count-wrap { text-align: center; margin: 80px 0 0; }
.count-wrap h3 { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin: 8px 0 18px; }
.countdown { display: inline-flex; align-items: flex-start; gap: 6px; }
.countdown div { min-width: 1.6em; }
.countdown b { display: block; font-family: var(--font-cond); font-weight: 400; font-size: clamp(3.4rem, 10vw, 5.6rem); line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
.countdown .sep { font-family: var(--font-cond); font-size: clamp(2.6rem, 8vw, 4.4rem); color: var(--orange); line-height: 1.1; min-width: 0; }

/* the three date bars under the countdown */
.fixtures { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fixtures li { position: relative; display: grid; grid-template-columns: 56px 1fr; min-height: 112px; background: var(--graphite); border: 1px solid #2c2c2c; }
.fixtures li.is-next { border-color: var(--orange); }
.fixtures .side { background: var(--orange); display: flex; align-items: center; justify-content: center; color: var(--black); }
.fixtures .side svg { width: 26px; height: 26px; }
.fixtures .body { padding: 16px 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.fixtures small { font-family: var(--font-mono); font-size: .7rem; color: var(--mute); text-transform: uppercase; }
.fixtures strong { display: block; font-family: var(--font-cond); font-weight: 400; font-size: 1.6rem; color: #fff; text-transform: uppercase; line-height: 1.15; margin: 4px 0; }
.fixtures .body span { font-size: .8rem; color: var(--mute); }
.fixtures .flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: var(--black); padding: 1px 10px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700; text-transform: uppercase; white-space: nowrap;
}

/* prize / entry cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 44px 0 0; }
.tcard { display: flex; flex-direction: column; background: var(--graphite); border: 1px solid #2c2c2c; }
.tcard header { display: flex; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid #2c2c2c; }
.tcard header b { display: block; font-family: var(--font-mono); font-size: .78rem; color: #fff; text-transform: uppercase; }
.tcard header span { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--mute); margin-top: 2px; }
.tcard header em {
  flex: none; align-self: flex-start; white-space: nowrap; font-style: normal; background: var(--orange); color: var(--black);
  font-family: var(--font-cond); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; text-align: center;
}
.tcard .tc-body { flex: 1; padding: 30px 16px 26px; text-align: center; border-bottom: 1px solid #2c2c2c; }
.tcard .tc-body svg { width: 76px; height: 76px; margin: 0 auto 18px; color: #fff; }
.tcard h3 { font-family: var(--font-cond); font-weight: 400; font-size: 2.6rem; line-height: 1; color: #fff; margin: 0; }
.tcard .tc-body p { font-family: var(--font-cond); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--light); margin: 8px 0 0; }
.tcard dl { display: flex; justify-content: space-between; margin: 0; padding: 14px 16px; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; }
.tcard dt { color: var(--orange); }
.tcard dd { margin: 0; color: #fff; text-align: right; }
.tcard .tc-actions { display: grid; gap: 8px; padding: 0 16px 16px; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--graphite); border: 1px solid #2c2c2c; border-top: 3px solid var(--orange); padding: 26px; }
.steps .n { font-family: var(--font-mono); font-weight: 700; color: var(--orange); font-size: .8rem; }
.steps h3 { font-family: var(--font-cond); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; margin: 8px 0 8px; color: #fff; }
.steps p { margin: 0; color: var(--mute); font-size: .93rem; }

/* closing call-to-action band */
.cta-band { background: var(--orange); color: var(--black); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; margin: 0; }
.cta-band .btn { background: var(--black); color: #fff; }
.cta-band .btn:hover { background: #222; }

/* ---------- inner pages ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head p { color: var(--mute); max-width: 640px; }
.page-head .eyebrow, .page-head .spots { color: var(--orange); }
.card {
  background: var(--graphite); border: 1px solid #2c2c2c; border-radius: var(--radius);
  padding: 26px; margin: 22px 0;
}
.card h2 { font-family: var(--font-cond); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 18px; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--black); color: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px 14px; font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.2); }
.field-hint { margin: 6px 0 0; font-size: .8rem; line-height: 1.4; }
.field .err { color: var(--red); font-size: .83rem; margin-top: 6px; }
.field.bad input { border-color: var(--red); }
.hint { color: var(--mute); font-size: .88rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.check a { color: var(--orange); }
.form-msg { border-radius: var(--radius); padding: 12px 14px; font-size: .93rem; margin: 14px 0 0; }
.form-msg.bad { background: rgba(240,82,82,.12); color: #ffb4b4; }
.form-msg.ok { background: rgba(34,197,94,.12); color: #a7f3c0; }

/* player rows */
.players { display: grid; gap: 12px; }
.player {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center;
  background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.player .ph {
  width: 76px; height: 92px; border-radius: var(--radius); background: var(--graphite-2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: var(--mute);
  font-size: .7rem; text-align: center; cursor: pointer; border: 1.5px dashed var(--line); overflow: hidden;
}
.player .ph.has { border-style: solid; border-color: transparent; }
.player .ph input { display: none; }
.player .fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; min-width: 0; }
.player .fields input {
  width: 100%; min-width: 0; background: var(--graphite); color: #fff; color-scheme: dark;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 1rem;
}
.player .fields input:focus { outline: none; border-color: var(--orange); }
.player .x {
  background: none; border: 0; color: var(--mute); font-size: 1.4rem; cursor: pointer; padding: 6px 10px; line-height: 1;
}
.player .x:hover { color: var(--red); }
.player.bad { border-color: var(--red); }
.player .perr { grid-column: 1 / -1; color: var(--red); font-size: .83rem; }
.player.saved .ph { border-style: solid; }
.add-row { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* status pill */
.pill { display: inline-block; padding: 5px 12px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill--wait { background: rgba(212,175,55,.15); color: var(--gold); }
.pill--paid { background: rgba(34,197,94,.15); color: var(--green); }

.link-box {
  display: flex; gap: 10px; align-items: center; background: var(--black);
  border: 1.5px solid var(--orange); border-radius: var(--radius); padding: 10px 10px 10px 14px; margin: 14px 0;
}
.link-box code { flex: 1; overflow-wrap: anywhere; font-size: .85rem; color: #fff; }

/* legal */
.legal h2 { font-family: var(--font-cond); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; color: #fff; margin: 34px 0 10px; }
.legal p, .legal li { color: #cfcfcf; }

/* sub-headings inside a form card */
.sub-h { font-family: var(--font-cond); font-weight: 400; font-size: 1.15rem; text-transform: uppercase; color: #fff; margin: 26px 0 4px; }
.roster--adm span a { text-decoration: underline; }

/* admin: add a player in person */
.adm-sheet-panel small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--mute); }
.add-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.add-photos .upload { margin-top: 6px; gap: 10px; flex-wrap: wrap; }
.roster--adm .by-admin { color: var(--gold); font-size: .75rem; }
@media (max-width: 760px) { .add-photos { grid-template-columns: 1fr; } }

/* terms and privacy */
.legal-date { font-family: var(--font-mono); font-size: .76rem; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.legal-short { background: var(--graphite); border: 1px solid #2c2c2c; border-left: 4px solid var(--orange); padding: 16px 20px; margin: 18px 0 8px; }
.legal-short p { margin: 0 0 6px; color: #fff; }
.legal-short ul { margin: 0; padding-left: 18px; }
.legal a { color: var(--orange); }
.legal li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 0; background: var(--black); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 30px; padding-bottom: 40px; font-family: var(--font-mono); font-size: .72rem; color: var(--mute); text-transform: uppercase; }
.site-foot svg { height: 24px; width: auto; }
.site-foot .grow { flex: 1; height: 1px; background: var(--line); min-width: 40px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; }
main.wrap + .site-foot { margin-top: 60px; }

/* ---------- admin ---------- */
.adm-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.adm-count { font-family: var(--font-cond); font-size: 1.6rem; color: #fff; text-transform: uppercase; }
.adm-count b { color: var(--orange); font-weight: 400; }
.team { background: var(--graphite); border: 1px solid #2c2c2c; border-radius: var(--radius); margin: 14px 0; }
.team > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.team > summary::-webkit-details-marker { display: none; }
.team-name { font-family: var(--font-cond); font-size: 1.3rem; color: #fff; text-transform: uppercase; }
.team-meta { grid-column: 1 / -1; color: var(--mute); font-size: .85rem; }
.team-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.roster { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.roster li { background: var(--black); overflow: hidden; font-size: .85rem; }
.roster img, .roster .noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--graphite-2); }
.roster div { padding: 8px 10px; }
.roster b { display: block; color: #fff; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0;
    background: var(--black); border: 1.5px solid var(--orange); border-top: 0;
  }
  .nav.open { display: flex; }
  .nav a { color: #fff; font-size: 1.1rem; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { border-bottom-color: rgba(255,255,255,.12); color: var(--orange); }
  .nav a.active { border-bottom-color: rgba(255,255,255,.12); color: var(--orange); }
  .nav-toggle { display: flex; }
  .bar-cta { order: 1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .site-head { padding: 8px 0; }
  .bar { height: 54px; }
  .brand { padding: 0 14px; }
  .brand svg { height: 22px; }
  .lang { margin-right: 10px; }
  .bar-cta { padding: 0 14px; font-size: .95rem; }
  .bar-cta svg { display: none; }
  .bar-cta .long { display: none; }
  .bar-cta .short { display: inline; }
  .nav-toggle { width: 44px; }

  .hero { padding-top: 14px; }
  .frame { padding: 8px; }
  .frame > i { width: 12px; height: 12px; }
  .stage { min-height: 0; padding: 0 16px 16px; background-position: 42% 0; background-size: auto 520px; background-color: var(--black); }
  .stage::before {
    background: linear-gradient(180deg, rgba(10,10,10,.15) 0, rgba(10,10,10,.35) 260px, var(--black) 470px, var(--black) 100%);
  }
  .panel { position: relative; width: auto; margin: 0 -16px; }
  .stage-mark { position: relative; top: auto; left: auto; margin: 26px 0 190px; }
  .stage-mark svg { width: 170px; }
  .stage h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .stage-actions .btn { width: 100%; }
  .tiles { gap: 8px; }
  .tiles li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tiles svg { width: 34px; height: 34px; padding: 7px; }

  .section { padding: 64px 0; }
  .count-wrap { margin-top: 56px; }
  .fixtures { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard header { padding: 10px; }
  .tcard header span, .tcard .tc-actions { display: none; }
  .tcard header em { font-size: .7rem; padding: 3px 6px; }
  .tcard header b { font-size: .66rem; }
  .tcard .tc-body { padding: 20px 8px 16px; }
  .tcard .tc-body svg { width: 48px; height: 48px; margin-bottom: 12px; }
  .tcard h3 { font-size: 2rem; }
  .tcard .tc-body p { font-size: .95rem; }
  .tcard dl { padding: 10px; font-size: .64rem; }
  .steps { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }

  .grid2 { grid-template-columns: 1fr; }
  .player { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .player .ph { width: 64px; height: 80px; }
  .player .x { padding: 6px 4px; }
  .player .fields { grid-template-columns: 1fr; }
}

/* ---------- Winter Cup additions (2026-10-29) ---------- */

/* format facts on the home page */
.facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2c2c2c; border: 1px solid #2c2c2c; }
.facts li { background: var(--graphite); padding: 22px 22px 20px; }
.facts b { display: block; font-family: var(--font-cond); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; color: #fff; line-height: 1.05; }
.facts span { display: block; color: var(--mute); font-size: .88rem; margin-top: 6px; }
.facts li:nth-child(-n+3) b { color: var(--orange); }
.tcard--gold header em { background: var(--gold); }
.stage-actions .btn--ghost { border-color: rgba(255,255,255,.5); }

/* category picker on the team form */
.cat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-opt { position: relative; cursor: pointer; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-opt > span { display: block; height: 100%; padding: 18px; background: var(--black); border: 1.5px solid var(--line); border-top: 4px solid var(--orange); }
.cat-opt:nth-child(2) > span { border-top-color: var(--gold); }
.cat-opt b { display: block; font-family: var(--font-cond); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; color: #fff; line-height: 1; }
.cat-opt small { display: block; color: var(--mute); margin-top: 6px; }
.cat-opt em { display: block; font-style: normal; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.cat-opt em b { display: inline; font: inherit; color: var(--orange); }
.cat-opt input:checked + span { border-color: var(--orange); background: rgba(255,122,0,.08); }
.cat-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,122,0,.35); }
.cat-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.field[data-f="category"] .err, .field[data-f="waiver"] .err { margin-top: 10px; }

/* selects and full-width fields */
.field select {
  width: 100%; background: var(--black); color: #fff; color-scheme: dark;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px 14px; font-size: 1rem;
}
.field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,.2); }
.field select:disabled { opacity: .55; }
.field.bad select { border-color: var(--red); }
.field input[type=date] { color-scheme: dark; }
.field.full { grid-column: 1 / -1; }
.vh { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.upload > div { position: relative; }

/* photo uploads on the player form */
.upload { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.up-prev {
  flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--black) center/cover no-repeat; border: 1.5px dashed var(--line);
  color: var(--mute); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase;
}
.up-prev--face { width: 96px; height: 120px; }
.up-prev--id { width: 168px; height: 106px; }
.up-prev.has { border-style: solid; border-color: var(--orange); }
.up-prev.has span { display: none; }
.upload label.btn { cursor: pointer; }
.upload .err { margin-top: 10px; }
.upload.bad .up-prev { border-color: var(--red); }

/* how to pay (team's own pages) */
.pay-box { margin: 16px 0; padding: 18px 20px; background: var(--black); border: 1.5px solid var(--orange); border-left-width: 6px; }
.pay-box h3 { font-family: var(--font-cond); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.pay-box ul { margin: 0; padding-left: 18px; }
.pay-box li { margin: 0 0 6px; color: #d6d6d6; }
.pay-box li::marker { color: var(--orange); }
.pay-box b { color: #fff; }
.pay-box p { margin: 10px 0 0; color: var(--mute); font-size: .9rem; }

/* team logo */
.logo-field { margin-top: 18px; }
.up-prev--logo { width: 96px; height: 96px; background-size: contain; background-color: var(--graphite-2); }
.logo-field .linkish { display: block; margin-top: 8px; }
.team-title { display: flex; align-items: center; gap: 18px; }
.team-title img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.tm-logo { display: inline-block; width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-right: 12px; }
.tm-logo--none { border: 1px dashed #3a3a3a; border-radius: 50%; }
.adm-logo { display: inline-block; width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 10px; }

/* captain's roster: faces and names */
.roster--cap div { display: flex; flex-direction: column; gap: 4px; }
.linkish { background: none; border: 0; padding: 0; color: var(--mute); font-size: .8rem; text-decoration: underline; cursor: pointer; text-align: left; }
.linkish:hover { color: #fff; }
.linkish.danger:hover { color: var(--red); }

/* confirmed teams */
.tm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 0; }
.tm-col { background: var(--graphite); border: 1px solid #2c2c2c; border-top: 4px solid var(--orange); }
.tm-col--gold { border-top-color: var(--gold); }
.tm-col header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #2c2c2c; }
.tm-col h2 { font-family: var(--font-cond); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; color: #fff; margin: 0; line-height: 1; }
.tm-col h2 small { font-family: var(--font-body); font-size: .8rem; text-transform: none; color: var(--mute); margin-left: 6px; }
.tm-n { font-family: var(--font-mono); font-size: .8rem; color: var(--orange); white-space: nowrap; }
.tm-col ol { margin: 0; padding: 6px 20px 14px 52px; }
.tm-col li { padding: 9px 0; border-bottom: 1px solid #262626; color: #fff; font-weight: 600; }
.tm-col li::marker { font-family: var(--font-mono); color: var(--mute); font-size: .8rem; }
.tm-col li.open { color: #5a5a5a; font-weight: 400; font-style: italic; }
.tm-col li:last-child { border-bottom: 0; }

/* schedule page */
.hr-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.hr-top .card { margin: 22px 0 0; }
.card h2 small { font-family: var(--font-body); font-size: .8rem; color: var(--mute); text-transform: none; letter-spacing: 0; }
.dots { margin: 0; padding-left: 18px; }
.dots li { margin: 0 0 8px; color: #d6d6d6; font-size: .93rem; }
.dots li::marker { color: var(--orange); }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grp-col h3, .fm-h { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; padding: 4px 8px; background: var(--orange); color: var(--black); text-align: center; }
.grp-col--veteranos h3, .fm-h--veteranos { background: var(--gold); }
.grp { border: 1px solid var(--line); margin-bottom: 8px; text-align: center; }
.grp b { display: block; font-family: var(--font-cond); font-weight: 400; color: var(--orange); text-transform: uppercase; padding: 4px; border-bottom: 1px solid var(--line); }
.grp-col--veteranos .grp b { color: var(--gold); }
.grp span { display: block; padding: 6px 4px; font-family: var(--font-mono); font-size: .8rem; word-spacing: 4px; }
.fm-h { margin-top: 0; }
.fm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; text-align: center; }
.fm svg { width: 100%; max-width: 64px; height: auto; color: var(--green); display: block; margin: 0 auto 4px; }
.fm b { display: block; font-size: .8rem; color: #fff; }
.fm span { display: block; font-size: .72rem; color: var(--mute); }
.day { margin: 48px 0 0; }
.day header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; border-bottom: 3px solid var(--orange); padding-bottom: 10px; }
.day h2 { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; line-height: 1; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sched { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.sched--sun { min-width: 0; max-width: 760px; }
.sched th, .sched td { padding: 11px 12px; border-bottom: 1px solid #2c2c2c; text-align: center; white-space: nowrap; }
.sched th { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); background: var(--graphite); }
.sched th small { display: block; font-size: .64rem; margin-top: 2px; }
.sched th.c-libre { color: var(--orange); }
.sched th.c-veteranos { color: var(--gold); }
.sched td.n { font-family: var(--font-cond); font-size: 1.2rem; color: #fff; }
.sched td.tm { font-family: var(--font-mono); font-size: .8rem; color: var(--light); }
.sched tbody tr:nth-child(odd):not(.margin) { background: rgba(255,255,255,.02); }
.sched tr.margin td { color: var(--orange); font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; }
.sched tr.margin td:first-child { background: var(--orange); color: var(--black); font-weight: 700; }
.sched--sun td:last-child { text-align: left; white-space: normal; }
.sched--sun td small { color: var(--mute); }
.sched tr.final td { color: #fff; }
.sched tr.final b { color: var(--orange); font-weight: 600; }

/* admin */
.adm-count small { font-family: var(--font-body); font-size: .85rem; color: var(--mute); text-transform: none; }
.adm-tabs { display: flex; gap: 0; margin: 18px 0 4px; border: 1.5px solid var(--line); width: max-content; max-width: 100%; }
.adm-tabs button { background: none; border: 0; color: var(--mute); padding: 8px 16px; cursor: pointer; font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; }
.adm-tabs button[aria-selected="true"] { background: var(--orange); color: var(--black); }
.cat { font-weight: 700; color: var(--orange); }
.cat--veteranos { color: var(--gold); }
.roster--adm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.roster--adm span { display: block; color: var(--mute); font-size: .8rem; overflow-wrap: anywhere; }
.roster--adm span a { color: var(--light); }
.roster--adm .pl-acts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.roster--adm .pl-acts a { color: var(--orange); font-size: .8rem; }
.roster--adm .pl-acts em { color: var(--red); font-style: normal; }
.team-body code { color: var(--light); overflow-wrap: anywhere; }

.adm-sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.adm-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.adm-sheet-panel { position: relative; width: min(640px, 100%); max-height: 92vh; overflow: auto; background: var(--graphite); border: 1px solid var(--line); border-top: 4px solid var(--orange); padding: 26px; }
.adm-sheet-panel h2 { font-family: var(--font-cond); font-weight: 400; text-transform: uppercase; color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.adm-sheet-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--mute); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.pr-preview { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; margin: 14px 0 4px; }
.pr-preview .cred { flex: none; border-radius: .125in; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.pr-choices { display: grid; gap: 10px; margin: 18px 0 16px; }
.pr-choice { display: grid; gap: 3px; text-align: left; font: inherit; padding: 14px 16px; background: var(--black); color: var(--light); border: 1px solid var(--line); cursor: pointer; }
.pr-choice strong { font-size: 1rem; color: #fff; }
.pr-choice span { font-size: .85rem; color: var(--mute); }
.pr-choice:hover:not(:disabled) { border-color: var(--orange); }
.pr-choice:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- printable credential: horizontal CR80 (3.375 x 2.125in) ---------- */
.cred-sheet { display: none; }
.cred-sheet.measuring { display: block; position: absolute; left: -9999px; top: 0; }
.cred {
  position: relative; box-sizing: border-box; width: 3.375in; height: 2.125in;
  display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #0A0A0A;
  font-family: var(--font-body); break-inside: avoid; page-break-inside: avoid;
}
.cred-band { position: absolute; left: 0; width: 100%; z-index: 0; display: block; }
.cred-band--top { top: 0; height: .52in; }
.cred-band--foot { bottom: 0; height: .22in; }
.cred-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 7pt; height: .52in; padding: 0 .14in .04in; }
/* Same as the LVSL card: the left of the band is punched for the lanyard ring
   (coach, 2026-10-26), so only the small crest is there and the wordmark sits right. */
.cred-crest { width: 24pt; height: 24pt; flex: none; }
.cred-mark { margin-left: auto; height: .3in; width: auto; }
/* fixed height (card minus both bands), so a card can tell when its text no longer fits */
.cred-body { position: relative; z-index: 1; flex: none; height: 1.385in; box-sizing: border-box; display: flex; align-items: stretch; gap: .14in; padding: .08in .14in; }
.cred-body .cred-photo { align-self: center; }
.cred-photo { flex: none; width: 1.02in; height: 1.24in; object-fit: cover; border-radius: 3pt; border: .8pt solid #0A0A0A; }
.cred-info { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; padding-top: 3pt; box-sizing: border-box; } /* room for accents on capitals */
.cred-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6pt; }
.cred-event { font-family: var(--font-cond); font-size: 9.5pt; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: #FF7A00; white-space: nowrap; }
.cred-name { font-family: var(--font-cond); font-size: 16pt; line-height: 1.12; text-transform: uppercase; overflow-wrap: anywhere; }
.cred-name--long { font-size: 13.5pt; }
.cred-name--xl { font-size: 11.5pt; }
.cred-dob { font-size: 7.5pt; font-weight: 600; margin-top: 3pt; }
.cred-dob span { color: #555; text-transform: uppercase; letter-spacing: .04em; font-size: 6pt; font-weight: 400; }
.cred-team { display: flex; align-items: center; gap: 4pt; font-size: 9pt; font-weight: 700; line-height: 1.2; margin-top: 3pt; overflow-wrap: anywhere; }
.cred-logo { width: 16pt; height: 16pt; object-fit: contain; flex: none; }
.cred-team--long { font-size: 7.5pt; }
.cred-cat { flex: none; margin-top: 2pt; padding: 1pt 5pt; font-family: var(--font-cond); font-size: 9pt; letter-spacing: .06em; text-transform: uppercase; color: #0A0A0A; border: 1pt solid #FF7A00; }
.cred-cat--veteranos { border-color: #D4AF37; }
.cred-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: .22in; padding: 0 .14in; font-size: 6.5pt; color: #555; }

@media print {
  .admin-body { background: #fff; }
  .admin-body::before, .admin-body > main, .adm-sheet { display: none !important; }
  .cred-sheet, .cred-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cred-sheet { display: grid; grid-template-columns: repeat(2, 3.375in); gap: .22in; padding: .3in; }
  body[data-print="sheet"] .cred { outline: .5pt solid #B8BEC6; }
  body[data-print="card"] .cred-sheet { display: block; padding: 0; }
  body[data-print="card"] .cred { break-after: page; page-break-after: always; }
  body[data-print="card"] .cred:last-child { break-after: auto; page-break-after: auto; }
}

/* ---------- small phones: everything still fits on the bar ---------- */
@media (max-width: 390px) {
  .wrap { padding: 0 10px; }
  .brand { padding: 0 10px; }
  .brand svg { height: 17px; }
  .lang { margin-right: 6px; }
  .lang button { padding: 5px 6px; }
  .nav-toggle { width: 38px; }
  .bar-cta { padding: 0 8px; font-size: .84rem; }
}

@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hr-top { grid-template-columns: 1fr 1fr; }
  .hr-top .card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 16px 14px; }
  .facts b { font-size: 1.3rem; }
  .cat-pick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-opt > span { padding: 14px 12px; }
  .cat-opt b { font-size: 1.4rem; }
  .tm-cols { grid-template-columns: 1fr; }
  .hr-top { grid-template-columns: 1fr; }
  .upload { gap: 14px; }
  .up-prev--id { width: 132px; height: 84px; }
  .stage-actions .btn--ghost { width: 100%; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team-title img { width: 56px; height: 56px; }
}
