/* ==========================================================
   JOSK — motyw oparty na identyfikacji wizualnej
   Ink #0B0F1A · Electric #3B5BFF · Lime #C6F432 · Paper #FFFFFF
   Space Grotesk (500/700) · JetBrains Mono (400/500)
   ========================================================== */
:root {
  /* paleta marki */
  --ink: #0B0F1A;
  --electric: #3B5BFF;
  --lime: #C6F432;
  --paper: #FFFFFF;
  --mist: #EEF0F6;
  --line: #DDE1EC;
  --slate: #4A5163;

  /* tokeny semantyczne — motyw jasny */
  --bg: var(--mist);
  --surface: var(--paper);
  --surface-2: #F6F7FB;
  --border: var(--line);
  --text: var(--ink);
  --muted: var(--slate);
  --accent: var(--electric);
  --accent-text: var(--electric);
  --on-accent: #FFFFFF;
  --highlight: var(--lime);
  --on-highlight: var(--ink);
  --inverse-bg: var(--ink);
  --inverse-text: #FFFFFF;
  --inverse-muted: #A3AABD;
  --inverse-border: #222A3D;
  --danger: #E5484D;
  --success: #2F9E62;
  --shadow: 0 1px 2px rgba(11, 15, 26, .04), 0 12px 32px -16px rgba(11, 15, 26, .18);

  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

/* motyw ciemny — tło Ink, akcenty jak na wariancie logo na ciemnym tle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070A12;
    --surface: #0F1424;
    --surface-2: #141A2D;
    --border: #1F273B;
    --text: #F2F4FA;
    --muted: #9AA2B8;
    --accent-text: #8A9DFF;
    --inverse-bg: #141A2D;
    --inverse-border: #263049;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070A12;
  --surface: #0F1424;
  --surface-2: #141A2D;
  --border: #1F273B;
  --text: #F2F4FA;
  --muted: #9AA2B8;
  --accent-text: #8A9DFF;
  --inverse-bg: #141A2D;
  --inverse-border: #263049;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
[id] { scroll-margin-top: 88px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); max-width: 14ch; }
.section-head p { max-width: 44ch; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px rgba(11,15,26,.12); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-word { display: flex; flex-direction: column; gap: 3px; }
.logo-word b { font-size: 26px; line-height: .9; letter-spacing: -0.045em; }
.logo-word small {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 7.5px; font-weight: 500; text-transform: uppercase; color: var(--accent-text);
  margin-right: -2px;
}

/* wariant logo na ciemne tło (z identyfikacji): znak na Electric, napis biały, podpis Lime */
:root[data-theme="dark"] .logo .mark-bg,
.footer .logo .mark-bg, .side .logo .mark-bg { fill: var(--electric); }
:root[data-theme="dark"] .logo-word b,
.footer .logo-word b, .side .logo-word b { color: #FFFFFF; }
:root[data-theme="dark"] .logo-word small,
.footer .logo-word small, .side .logo-word small { color: var(--lime); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .mark-bg { fill: var(--electric); }
  :root:not([data-theme="light"]) .logo-word b { color: #FFFFFF; }
  :root:not([data-theme="light"]) .logo-word small { color: var(--lime); }
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 10px 28px -10px rgba(198, 244, 50, .8); }
.btn-electric { background: var(--electric); color: #fff; }
.btn-electric:hover { box-shadow: 0 10px 28px -10px rgba(59, 91, 255, .8); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-inv:hover { border-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-links a.sports-link { color: var(--text); }
.nav-links a.sports-link::after {
  content: 'NEW'; margin-left: 6px; padding: 2px 6px; border-radius: 6px;
  background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 10px; vertical-align: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text);
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 18px; }
  .nav-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 24px 0 0; }
.hero-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: var(--r-xl);
  padding: clamp(36px, 7vw, 96px) clamp(24px, 6vw, 80px);
  isolation: isolate;
}
.hero-card::before { /* siatka */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%);
}
.hero-card .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(44px, 8vw, 112px); max-width: 13ch; letter-spacing: -0.045em; line-height: .95; }
.hero h1 .hl { color: var(--lime); display: block; }
.hero-sub { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: #C3C9D9; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { position: absolute; right: clamp(-60px, -2vw, 0px); bottom: clamp(-60px, -4vw, -20px); width: clamp(220px, 30vw, 420px); opacity: .95; z-index: -1; }
.hero-mark .ring { transform-origin: 68px 48px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mark .ring { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 700px) { .hero-mark { opacity: .25; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.stat b { display: block; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- karty / usługi ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 32px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime); margin-bottom: 28px;
}
:root[data-theme="dark"] .service-icon { background: var(--electric); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service-icon { background: var(--electric); color: #fff; } }
.service-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card:nth-child(3n+2) .service-icon { background: var(--electric); color: #fff; }
.card:nth-child(3n+3) .service-icon { background: var(--lime); color: var(--ink); }

/* ---------- proces ---------- */
.process { background: var(--inverse-bg); color: var(--inverse-text); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); }
.process .section-head p { color: var(--inverse-muted); }
.process .eyebrow { color: var(--lime); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid var(--inverse-border); padding-top: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 24px;
  font-family: var(--mono); font-size: 13px; color: var(--lime);
}
.steps h3 { font-size: 26px; margin-bottom: 10px; }
.steps p { color: var(--inverse-muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- realizacje ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }
.project { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-visual { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; }
.project-visual.ink { background: var(--ink); color: var(--lime); }
.project-visual.electric { background: var(--electric); color: #fff; }
.project-visual.lime { background: var(--lime); color: var(--ink); }
.project-visual .browser {
  width: 74%; height: 70%; border-radius: 14px 14px 0 0; align-self: end;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-bottom: 0;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.project-visual .dots { display: flex; gap: 6px; }
.project-visual .dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.project-visual .ph { font-size: clamp(26px, 4vw, 44px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: auto; margin-bottom: auto; }
.project-visual .bar { height: 8px; border-radius: 4px; background: currentColor; opacity: .25; }
.project-visual .bar.s { width: 40%; }
.project-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.project-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.project h3 { font-size: 28px; }
.project p { color: var(--muted); }

/* ---------- o nas ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.about-text { padding: clamp(32px, 5vw, 56px); }
.about-text h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 24px; }
.about-text p { font-size: 19px; color: var(--muted); }
.about-brand { background: var(--electric); color: #fff; border-radius: var(--r-xl); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 320px; }
.about-brand .big { font-size: clamp(64px, 10vw, 140px); font-weight: 700; letter-spacing: -0.05em; line-height: .85; }
.about-brand .tag { display: flex; justify-content: space-between; font-family: var(--mono); text-transform: uppercase; font-size: 14px; color: var(--lime); max-width: 9.8em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info { background: var(--lime); color: var(--ink); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.contact-info .eyebrow { color: var(--ink); }
.contact-info .eyebrow::before { background: var(--electric); }
.contact-info h2 { font-size: clamp(34px, 4.4vw, 56px); }
.contact-info p { font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 12px; }
.contact-list a, .contact-list span { text-decoration: none; font-weight: 700; font-size: 20px; }
.contact-list small { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; font-weight: 500; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px color-mix(in srgb, var(--electric) 18%, transparent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; }

/* ---------- stopka ---------- */
.footer { background: var(--ink); color: #fff; margin-top: clamp(64px, 9vw, 120px); padding: 64px 0 32px; }
.footer .logo { color: #fff; }
.footer .logo-word small { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid #222A3D; }
.footer p { color: #A3AABD; margin-top: 20px; max-width: 36ch; }
.footer h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #DDE1EC; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-family: var(--mono); font-size: 12px; color: #7D859A; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   JOSK SPORTS
   ========================================================== */
.sports-hero .hero-card { background: var(--ink); }
.sports-hero .hero-card::after { /* tor / linie mety */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 120px, rgba(198,244,50,.12) 120px 122px);
  mask-image: linear-gradient(to top, #000, transparent); -webkit-mask-image: linear-gradient(to top, #000, transparent);
}
.sports-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(198,244,50,.12); border: 1px solid rgba(198,244,50,.35); color: var(--lime);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 28px;
}
.sports-badge svg { width: 26px; height: 26px; }

.mission { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--lime); color: var(--ink); border-radius: var(--r-xl); }
.mission .q { font-size: 96px; line-height: .6; font-weight: 700; color: var(--electric); }
.mission p { font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 600px) { .mission { grid-template-columns: 1fr; gap: 8px; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.athletes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .athletes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .athletes { grid-template-columns: 1fr; } }
.athlete { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.athlete-photo { aspect-ratio: 4 / 3; position: relative; background: var(--ink); overflow: hidden; }
.athlete-photo img { width: 100%; height: 100%; object-fit: cover; }
.athlete-photo .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 96px; font-weight: 700; letter-spacing: -0.05em; color: var(--lime);
  background:
    radial-gradient(circle at 75% 30%, rgba(59,91,255,.55), transparent 55%),
    var(--ink);
}
.athlete:nth-child(3n+2) .initials { color: #fff; background: radial-gradient(circle at 25% 70%, rgba(198,244,50,.35), transparent 55%), var(--electric); }
.athlete-tag {
  position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
}
.athlete-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.athlete h3 { font-size: 28px; }
.athlete .meta { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.athlete .bio { color: var(--muted); font-size: 16px; }
.medals { display: flex; gap: 8px; flex-wrap: wrap; }
.medal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; }
.medal i { width: 10px; height: 10px; border-radius: 50%; }
.medal.g i { background: #E8B931; } .medal.s i { background: #B5BCCB; } .medal.b i { background: #C47A45; }
.results-mini { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); margin-top: auto; }
.results-mini li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.results-mini .pl { font-family: var(--mono); font-weight: 500; font-size: 13px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.results-mini .pl.p1 { background: var(--lime); color: var(--ink); }
.results-mini .pl.p2, .results-mini .pl.p3 { background: var(--electric); color: #fff; }
.results-mini .ev { line-height: 1.3; }
.results-mini .ev small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.results-mini .rs { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

.sports-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 800px) { .sports-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow-x: auto; }
table.results { width: 100%; border-collapse: collapse; min-width: 640px; }
table.results th, table.results td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); }
table.results th { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface-2); }
table.results tr:last-child td { border-bottom: 0; }
table.results td.num { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.place-badge { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 8px; font-family: var(--mono); font-size: 13px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); }
.place-badge.p1 { background: var(--lime); color: var(--ink); border-color: transparent; }
.place-badge.p2, .place-badge.p3 { background: var(--electric); color: #fff; border-color: transparent; }
.empty { padding: 48px; text-align: center; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(80px, 18vw, 200px); }
