/* Steamify v2 — shared design system */

:root {
  --bg: #f5f8fe;
  --bg-2: #edf2fb;
  --surface: #ffffff;
  --surface-2: #f2f6fd;
  --surface-glass: rgba(255, 255, 255, .72);
  --line: #e1e8f4;
  --line-strong: #cdd7ea;
  --text: #0a1736;
  --text-2: #4a587d;
  --text-3: #7a87a8;
  --accent: #1d5ff5;
  --accent-2: #4b8dff;
  --accent-soft: rgba(29, 95, 245, .09);
  --accent-line: rgba(29, 95, 245, .28);
  --navy: #0b2265;
  --navy-deep: #06143d;
  --gold: #e9a825;
  --silver: #8ea0bf;
  --bronze: #c97a45;
  --success: #12a36b;
  --danger: #dc3b4b;
  --grid-line: rgba(29, 95, 245, .07);
  --particle: 29, 95, 245;
  --glow: 0 18px 50px -18px rgba(29, 95, 245, .55);
  --shadow-sm: 0 1px 2px rgba(10, 23, 54, .05), 0 2px 8px rgba(10, 23, 54, .04);
  --shadow: 0 1px 2px rgba(10, 23, 54, .04), 0 12px 32px -12px rgba(10, 23, 54, .16);
  --shadow-lg: 0 30px 80px -30px rgba(10, 23, 54, .35);

  --c-s: #0ea5c6;
  --c-t: #1d5ff5;
  --c-e: #6d5ef5;
  --c-m: #e09a12;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050a18;
  --bg-2: #081126;
  --surface: #0b1530;
  --surface-2: #101d3d;
  --surface-glass: rgba(8, 16, 36, .7);
  --line: rgba(138, 168, 255, .12);
  --line-strong: rgba(138, 168, 255, .22);
  --text: #edf2ff;
  --text-2: #a5b3d6;
  --text-3: #6f7fa8;
  --accent: #3b82ff;
  --accent-2: #74aeff;
  --accent-soft: rgba(59, 130, 255, .14);
  --accent-line: rgba(90, 150, 255, .4);
  --grid-line: rgba(120, 160, 255, .06);
  --particle: 110, 165, 255;
  --glow: 0 18px 60px -14px rgba(59, 130, 255, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);

  --c-s: #2cc8ea;
  --c-t: #4b8dff;
  --c-e: #8f83ff;
  --c-m: #f6bc45;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.1; letter-spacing: -.025em; font-weight: 750; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 650;
  transform: translateY(calc(-100% - 40px));
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-glass); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -16px rgba(255, 255, 255, .6); }
.btn-outline-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 650; font-size: 15px; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: var(--surface-glass);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 18px -6px rgba(11, 34, 101, .6); }
.brand-dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-size: 15px; font-weight: 550;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--text); background: var(--accent-soft); }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-glass); color: var(--text);
  transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.icon-btn .icon { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
.menu-open .menu-toggle .icon-menu { display: none; }

/* ---------- Sections ---------- */

.section { padding-block: 104px; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.section-head p { color: var(--text-2); font-size: 18px; max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, #5fb4ff 45%, var(--accent) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .55;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
[data-theme="dark"] .bg-glow { opacity: .45; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 56px 0 104px; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 56px); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.hero .bg-glow.g1 { width: 620px; height: 620px; top: -220px; right: -120px; }
.hero .bg-glow.g2 { width: 420px; height: 420px; bottom: -200px; left: -160px; opacity: .3; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; margin-bottom: 28px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-glass);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  backdrop-filter: blur(8px);
  transition: border-color .2s, color .2s;
}
.hero-badge:hover { border-color: var(--accent-line); color: var(--text); }
.hero-badge .tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.hero-badge .icon { width: 15px; height: 15px; color: var(--accent); }
.hero h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hero h1 .line { display: block; }
.hero h1 .grad-text { padding-bottom: .12em; margin-bottom: -.12em; }
.hero-lead { margin-top: 28px; max-width: 540px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 540px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-stat span { color: var(--text-3); font-size: 14px; }

/* Orbit visual */
.orbit { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto; }
.orbit-ring { position: absolute; inset: var(--inset); border-radius: 50%; border: 1px solid var(--line-strong); }
.orbit-ring.r1 { --inset: 0; border-style: dashed; opacity: .7; }
.orbit-ring.r2 { --inset: 13%; }
.orbit-ring.r3 { --inset: 26%; border-color: var(--accent-line); }
.orbit-core {
  position: absolute; inset: 31%; border-radius: 50%; overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 10px var(--accent-soft), 0 0 80px 10px rgba(59, 130, 255, .45), inset 0 0 40px rgba(0, 0, 0, .4);
  animation: corePulse 6s ease-in-out infinite;
}
.orbit-core img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
@keyframes corePulse { 50% { box-shadow: 0 0 0 16px var(--accent-soft), 0 0 110px 20px rgba(59, 130, 255, .55), inset 0 0 40px rgba(0, 0, 0, .4); } }
.orbit-track { position: absolute; inset: 0; animation: spin 60s linear infinite; }
/* Each node is a full-size layer rotated to its angle; the chip sits on ring 2 and is
   counter-rotated (static angle here, track spin in .chip-inner) so letters stay upright. */
.orbit-node { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.orbit-node .chip {
  position: absolute; left: 50%; top: 13%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  transform: rotate(calc(-1 * var(--a)));
}
.orbit-node .chip-inner {
  width: 100%; height: 100%;
  display: grid; place-items: center; align-content: center; gap: 2px;
  border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--surface-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: spin 60s linear infinite reverse;
}
.orbit-node b { font-family: var(--font-display); font-size: 26px; line-height: 1; font-weight: 800; color: var(--c); }
.orbit-node small { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); }
.orbit-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px 3px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sponsors strip ---------- */

.sponsors { border-block: 1px solid var(--line); background: var(--surface); padding-block: 26px; }
.sponsors-inner { display: flex; align-items: center; gap: 24px 48px; min-height: 116px; }
.sponsors-label {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font: 700 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.sponsors-label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.sponsor-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 56px; margin: 0 auto; padding: 0; list-style: none; }
.sponsor img { display: block; height: 116px; width: auto; }
.sponsor a { display: block; border-radius: 12px; transition: transform .25s var(--ease); }
.sponsor a:hover { transform: translateY(-2px); }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }
.sponsor-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 18px; border: 1px dashed var(--line-strong); border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 650;
  transition: border-color .2s, color .2s;
}
.sponsor-cta:hover { border-color: var(--accent-line); color: var(--accent); }
.sponsor-cta .icon { width: 16px; height: 16px; }

/* ---------- Featured event ---------- */

.event-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; border-radius: var(--radius-lg); }
.event-feature-media { position: relative; background: #01040f; min-height: 100%; display: grid; place-items: center; }
.event-feature-media img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1; }
.event-feature-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.event-feature-body h3 { font-size: clamp(26px, 3vw, 38px); }
.event-feature-body > p { color: var(--text-2); font-size: 17px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2); }
.meta-chip .icon { color: var(--accent); width: 16px; height: 16px; }
.countdown { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.countdown-num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown-label strong { display: block; font-size: 17px; }
.countdown-label span { color: var(--text-2); font-size: 14px; }
.countdown-live { display: grid; gap: 14px; padding: 18px; }
.cd-units { display: flex; align-items: stretch; gap: 6px; }
.cd-unit {
  flex: 1; min-width: 0; display: grid; justify-items: center; gap: 6px;
  padding: 14px 4px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.cd-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: cdTick .4s var(--ease); }
@keyframes cdTick { from { opacity: .35; transform: translateY(-5px); } }
.cd-lab { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.cd-sep { align-self: center; padding-bottom: 18px; font: 800 26px/1 var(--font-display); color: var(--accent-line); }
.cd-note { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 550; }
.cd-note .icon { color: var(--accent); width: 16px; height: 16px; }
.cd-started { display: flex; align-items: center; gap: 14px; }
.cd-started .icon { width: 28px; height: 28px; color: var(--accent); }
.cd-started strong { display: block; font-size: 20px; color: var(--text); }
.cd-started span { color: var(--text-2); font-size: 14px; }
.event-feature-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
.status-pill.muted { background: var(--surface-2); color: var(--text-3); }
.status-pill.muted::before { animation: none; }
.status-pill.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- STEM cards ---------- */

.stem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stem-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.stem-card::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  opacity: .5; transition: opacity .35s, transform .5s var(--ease);
}
.stem-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.stem-card:hover::before { opacity: 1; transform: scale(1.2); }
.stem-letter { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: .9; color: var(--c); letter-spacing: -.04em; }
.stem-icon { position: absolute; top: 24px; right: 22px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.stem-icon .icon { width: 22px; height: 22px; }
.stem-card h3 { font-size: 20px; margin-top: 6px; }
.stem-card .en { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; margin-top: -8px; }
.stem-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* ---------- Steps & points ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: var(--glow); margin-bottom: 22px; }
.step-num .icon { width: 22px; height: 22px; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }
.step::after { content: counter(step, decimal-leading-zero); counter-increment: step; position: absolute; top: 24px; right: 24px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text-3); letter-spacing: .05em; }
.points { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.point { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--line-strong); }
.point strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; min-width: 52px; }
.point span { font-size: 14px; color: var(--text-2); line-height: 1.35; }
.point span b { display: block; color: var(--text); font-size: 15px; }
.fine-print { margin-top: 14px; color: var(--text-3); font-size: 13px; }

/* ---------- Leaderboard ---------- */

.board-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.board-layout .section-head { margin-bottom: 28px; }
.board { padding: 10px; border-radius: var(--radius-lg); }
.board-row {
  display: grid; grid-template-columns: 44px 44px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px;
  transition: background-color .2s;
}
.board-row { position: relative; }
.board-row + .board-row::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--line); }
.board-row:hover { background: var(--surface-2); }
.rank { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--surface-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.rank.r1 { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.rank.r2 { background: color-mix(in srgb, var(--silver) 20%, transparent); color: var(--silver); }
.rank.r3 { background: color-mix(in srgb, var(--bronze) 18%, transparent); color: var(--bronze); }
.avatar {
  --size: 44px;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--a1, #3b82ff), var(--a2, #22d3ee));
  color: #fff; font-weight: 750; font-size: calc(var(--size) * .36); letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.board-name { min-width: 0; }
.board-name strong { display: block; font-size: 16px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name span { color: var(--text-3); font-size: 13px; }
.board-score { font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.board-score small { color: var(--text-3); font-weight: 600; font-size: 12px; margin-left: 3px; }
.board-note { display: flex; gap: 12px; align-items: flex-start; margin: 4px 4px 10px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--text-2); font-size: 14px; }
.board-note .icon { color: var(--accent); margin-top: 2px; }

.empty {
  display: grid; place-items: center; gap: 10px; text-align: center;
  padding: 48px 24px; color: var(--text-2);
}
.empty .icon { width: 36px; height: 36px; color: var(--text-3); }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: sk 1.4s infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.sk-row { height: 64px; margin: 6px 0; border-radius: 16px; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.team-grid.compact { grid-template-columns: repeat(4, 1fr); }
.member {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.member:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.member-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--a1), var(--a2));
}
.member-photo::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.member-photo span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 6vw, 84px); letter-spacing: -.03em; color: rgba(255, 255, 255, .92); text-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.member-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member-info { display: grid; justify-items: start; gap: 10px; padding: 18px 20px 20px; }
.member h3 { font-size: 18px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.member .role-tag { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }

/* ---------- Partners / CTA band ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-lg { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; color: var(--text-2); }
.chip-lg .icon { color: var(--accent); }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(120% 140% at 100% 0%, #1b4fd8 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  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: 44px 44px;
  mask-image: linear-gradient(110deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000 100%);
}
.cta-band .eyebrow { color: #8fc0ff; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0; }
.cta-band p { color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 520px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.support-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-item { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.support-item .icon { width: 22px; height: 22px; color: #8fc0ff; margin-bottom: 12px; }
.support-item strong { display: block; font-size: 15px; }
.support-item span { font-size: 13px; color: rgba(255, 255, 255, .65); }

/* ---------- FAQ ---------- */

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 650; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--text-2); transition: transform .3s var(--ease); }
.faq-item summary .plus::after { transform: rotate(90deg); }
.faq-item[open] summary .plus { background: var(--accent); }
.faq-item[open] summary .plus::before, .faq-item[open] summary .plus::after { background: #fff; }
.faq-item[open] summary .plus::after { transform: rotate(0); }
.faq-item .answer { padding: 0 24px 22px; color: var(--text-2); }

/* ---------- Final CTA ---------- */

.final-cta { position: relative; overflow: hidden; text-align: center; }
.final-cta .bg-glow { width: 700px; height: 500px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .35; }
.final-cta h2 { position: relative; font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -.04em; max-width: 900px; margin: 18px auto 0; }
.final-cta p { position: relative; margin: 22px auto 0; max-width: 560px; color: var(--text-2); font-size: 18px; }
.final-cta .actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 72px) 0 104px; border-bottom: 1px solid var(--line); }
.page-hero .bg-glow { width: 560px; height: 560px; top: -300px; right: -100px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.04em; font-weight: 800; margin-top: 18px; max-width: 860px; }
.page-hero p { margin-top: 22px; color: var(--text-2); font-size: 19px; max-width: 640px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Toolbar, tabs, forms ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.tabs .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); color: var(--text-2); }
.tabs button[aria-selected="true"] .count { background: rgba(255, 255, 255, .22); color: #fff; }

.input-wrap { position: relative; flex: 1 1 260px; }
.input-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--text); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap .input { padding-left: 46px; }
.textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a87a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.select-wrap { flex: 0 1 260px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 650; }
.field .hint { color: var(--text-3); font-size: 13px; font-weight: 400; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; min-height: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* ---------- Event cards ---------- */

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.event-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
  text-align: left; padding: 0; color: inherit;
}
.event-card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.event-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050b1c; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-media img { transform: scale(1.04); }
.event-card { cursor: pointer; }
/* Posters carry text up to their edges, so they are shown whole over a blurred copy of themselves. */
.event-media.is-poster::before { content: ""; position: absolute; inset: -20px; background: var(--img) center / cover; filter: blur(24px) brightness(.6); }
.event-media.is-poster img { position: relative; object-fit: contain; }
.event-media .status-pill { position: absolute; z-index: 1; left: 16px; top: 16px; backdrop-filter: blur(8px); background: rgba(5, 10, 24, .7); color: #fff; }
.event-media .status-pill.ok { color: #4ee0a5; }
.event-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #2d6cf6 0%, var(--navy) 50%, var(--navy-deep) 100%); color: #fff; }
.event-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 32px 32px; }
.event-art span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 72px; letter-spacing: -.04em; opacity: .9; }
.event-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.event-date { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--accent); }
.event-date .icon { width: 16px; height: 16px; }
.event-body h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.event-body p { color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.event-foot .loc { display: inline-flex; align-items: center; gap: 6px; }
.event-foot .loc .icon { width: 16px; height: 16px; }
.event-foot .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: background-color .2s, color .2s; }
.event-card:hover .go { background: var(--accent); color: #fff; }
.event-points { display: flex; flex-wrap: wrap; gap: 6px; }
.event-points span { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }

/* ---------- Ranking page ---------- */

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: 40px; }
.podium-place {
  position: relative; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 28px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.podium-place.p1 { order: 2; padding-block: 40px; border-color: color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--gold) 50%, transparent); }
.podium-place.p2 { order: 1; }
.podium-place.p3 { order: 3; }
.podium-place .avatar { --size: 72px; }
.podium-place.p1 .avatar { --size: 92px; }
.podium-medal { position: absolute; top: -16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--m); box-shadow: 0 6px 16px -4px var(--m); }
.p1 .podium-medal { --m: var(--gold); }
.p2 .podium-medal { --m: var(--silver); }
.p3 .podium-medal { --m: var(--bronze); }
.podium-place strong { font-size: 17px; }
.podium-place .reg { color: var(--text-3); font-size: 14px; }
.podium-place .pts { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); }

.rank-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.rank-table { border-radius: var(--radius-lg); overflow: hidden; }
.rank-table-head, .rank-row { display: grid; grid-template-columns: 64px 1fr 180px 90px; align-items: center; gap: 12px; padding: 14px 22px; }
.rank-table-head { background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rank-row { border-top: 1px solid var(--line); transition: background-color .2s; }
.rank-row:hover { background: var(--surface-2); }
.rank-row .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rank-row .who .avatar { --size: 40px; }
.rank-row .who strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .region { color: var(--text-2); font-size: 14px; }
.rank-row .score { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.rank-table-head span:last-child { text-align: right; }
.rank-more { display: flex; justify-content: center; padding: 18px; border-top: 1px solid var(--line); }
.aside-card { padding: 26px; border-radius: var(--radius-lg); position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card h3 { font-size: 20px; margin-bottom: 8px; }
.aside-card > p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.score-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.score-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.score-list b { color: var(--accent); font-family: var(--font-display); font-size: 17px; }
.aside-card .btn { width: 100%; margin-top: 20px; }

/* ---------- Sponsor page ---------- */

.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.help-grid.three { grid-template-columns: repeat(3, 1fr); }
.help-card { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.help-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.help-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.help-card .ic .icon { width: 24px; height: 24px; }
.help-card small { display: block; color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.help-card h3 { font-size: 19px; margin-bottom: 10px; }
.help-card p { color: var(--text-2); font-size: 15px; }
.benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.benefits .tick { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.benefits .tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.note-box { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--text-2); font-size: 14px; }
.note-box .icon { color: var(--accent); margin-top: 2px; }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-result { padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.form-result.ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.form-result.error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.success-panel { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 10px; }
.success-panel .tick-xl { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.success-panel .tick-xl .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.success-panel h3 { font-size: 26px; }
.success-panel p { color: var(--text-2); max-width: 420px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about p { color: var(--text-2); margin-top: 18px; max-width: 340px; font-size: 15px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col button { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 0; border: 0; background: none; color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-col .icon { width: 17px; height: 17px; }
.tg-card { display: flex; align-items: center; gap: 14px; margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); transition: transform .25s var(--ease); }
.tg-card:hover { transform: translateY(-2px); }
.tg-card .tg-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #229ed9; color: #fff; flex: none; }
.tg-card .tg-ic .icon { width: 20px; height: 20px; }
.tg-card strong { display: block; font-size: 15px; }
.tg-card span { color: var(--text-2); font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom button, .footer-bottom a { border: 0; background: none; color: var(--text-3); font-size: 14px; padding: 0; transition: color .2s; }
.footer-bottom button:hover, .footer-bottom a:hover { color: var(--accent); }

/* ---------- Dialog ---------- */

.modal {
  width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: auto;
}
.modal::backdrop { background: rgba(3, 8, 20, .6); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-media img { width: 100%; max-height: 340px; object-fit: cover; }
.modal-body { padding: 28px 30px 30px; display: grid; gap: 16px; }
.modal-body h2 { font-size: 28px; padding-right: 40px; }
.modal-body p { color: var(--text-2); }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 2; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550;
  box-shadow: var(--shadow-lg);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .stem-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid, .steps, .points { grid-template-columns: repeat(2, 1fr); }
  .team-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rank-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: grid; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .header-actions { margin-left: auto; }
  .hero-grid, .board-layout, .faq-layout, .two-col, .cta-band, .event-feature, .help-grid.three { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { display: none; }
  .board-layout, .faq-layout, .two-col { gap: 32px; }
  .event-feature-media img { aspect-ratio: 16 / 11; }
  .section { padding-block: 80px; }
  .section-head.split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .hero { padding-bottom: 64px; padding-top: calc(var(--header-h) + 28px); }
  .sponsors { padding-block: 24px 28px; }
  .sponsors-inner { flex-direction: column; gap: 18px; }
  .sponsor img { height: 100px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 14px 28px; margin-top: 40px; }
  .hero-stat strong { font-size: 24px; }
  .stem-grid, .help-grid, .steps, .points, .form-grid, .support-list { grid-template-columns: 1fr; }
  .team-grid, .team-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member-info { padding: 12px 12px 14px; gap: 8px; }
  .member h3 { font-size: 15px; }
  .member .role-tag { font-size: 11.5px; padding: 4px 10px; }
  .event-grid { grid-template-columns: 1fr; }
  .countdown-num { font-size: 44px; }
  .countdown-live { padding: 14px; }
  .cd-units { gap: 6px; }
  .cd-sep { display: none; }
  .cd-unit { padding: 12px 2px 10px; }
  .cd-num { font-size: 30px; }
  .cd-lab { font-size: 10.5px; letter-spacing: .06em; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-about, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .brand span.word { font-size: 17px; }
  .account-btn .account-label { display: none; }
  .account-btn { padding: 0 14px; }
  .podium { gap: 8px; }
  .podium-place { padding: 22px 8px 16px; }
  .podium-place.p1 { padding-block: 28px 18px; }
  .podium-place .avatar { --size: 52px; }
  .podium-place.p1 .avatar { --size: 64px; }
  .podium-place strong { font-size: 14px; }
  .podium-place .pts { font-size: 20px; }
  .rank-table-head { display: none; }
  .rank-row { grid-template-columns: 44px 1fr auto; padding: 12px 14px; }
  .rank-row .region { display: none; }
  .rank-row .who span.sub { display: block; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { flex: 1 0 auto; padding: 0 14px; }
  .select-wrap { flex: 1 1 100%; }
  .modal-body { padding: 22px 20px 24px; }
  .board-row { grid-template-columns: 36px 40px 1fr auto; gap: 10px; padding: 10px; }
  .board-row .avatar { --size: 40px; }
  .rank { width: 32px; height: 32px; }
}

.rank-row .who span.sub { display: none; color: var(--text-3); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- First screen ---------- */
/* The opening section of every page fills the viewport; the next section starts below the fold. */
.hero, .page-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; z-index: 2; transform: translateX(-50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-glass); color: var(--text-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: cueBob 2.4s var(--ease) infinite; transition: color .2s, border-color .2s;
}
.scroll-cue:hover { color: var(--accent); border-color: var(--accent-line); }
.scroll-cue .icon { width: 20px; height: 20px; }
@keyframes cueBob { 50% { transform: translate(-50%, 7px); } }
@media (max-height: 560px) { .scroll-cue { display: none; } }
