/* ==========================================================================
   NEXUS FORGE SUMMIT — STYLESHEET
   --------------------------------------------------------------------------
   How this file is organised (search for these headings):
   1. Fonts + reset
   2. Design tokens (:root)  <-- colors, fonts, spacing all live here
   3. Layout helpers
   4. Header / navigation
   5. Buttons
   6. Hero
   7. Section shared styles
   8. Individual sections (about, snapshot, timeline, workshops, hackathon,
      gaming, judging, participation, schedule, safety, contact, final CTA)
   9. Footer
   10. Register page
   11. Game detail pages
   12. Utilities + responsive

   TO CHANGE THE COLOR PALETTE: edit the variables inside :root and
   [data-theme="dark"] in section 2. Everything else references those
   variables, so a palette swap there updates the whole site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, li, figure, form, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* -- Light theme (default) -- */
  --color-bg: #F7F0E3;
  --color-bg-soft: #EFE3CF;
  --color-surface: #FFFDF8;
  --color-surface-raised: #FFFFFF;
  --color-text: #271B10;
  --color-text-soft: #5C4A3A;
  --color-text-faint: #8B7A68;
  --color-border: rgba(39, 27, 16, 0.12);
  --color-border-strong: rgba(39, 27, 16, 0.24);

  --color-accent: #6E473B;        /* dark clay — primary accent, links/icons */
  --color-accent-soft: rgba(110, 71, 59, 0.09);
  --color-gold: #8C7256;          /* taupe/bronze — secondary accent */
  --color-gold-soft: rgba(140, 114, 86, 0.14);
  --color-ember: #A8461F;         /* warm ember — used sparingly for CTAs + highlights */
  --color-ember-soft: rgba(168, 70, 31, 0.10);

  --color-on-accent: #FBF4E9;     /* text color placed on top of solid accent fills */

  /* -- Shared across themes -- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 100px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 18px 40px -22px rgba(39, 27, 16, 0.28);

  --max-width: 1160px;
}

[data-theme="dark"] {
  --color-bg: #1C140C;
  --color-bg-soft: #251B11;
  --color-surface: #2A1F15;
  --color-surface-raised: #322418;
  --color-text: #F3E9D9;
  --color-text-soft: #CBB8A2;
  --color-text-faint: #8F7C67;
  --color-border: rgba(243, 233, 217, 0.10);
  --color-border-strong: rgba(243, 233, 217, 0.20);

  --color-accent: #DCC0A0;
  --color-accent-soft: rgba(220, 192, 160, 0.10);
  --color-gold: #C7A47E;
  --color-gold-soft: rgba(199, 164, 126, 0.14);
  --color-ember: #E67A45;
  --color-ember-soft: rgba(230, 122, 69, 0.14);

  --color-on-accent: #241809;
  --shadow-soft: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/* subtle paper grain instead of a glossy AI gradient — keeps the warm,
   printed-programme feel without being loud */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { mix-blend-mode: overlay; opacity: .3; }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }
.section {
  padding: 108px 0;
  border-top: 1px solid var(--color-border);
}
@media (max-width: 720px) { .section { padding: 72px 0; } }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 620px;
}
.section-desc {
  font-size: 16px;
  color: var(--color-text-soft);
  max-width: 480px;
  line-height: 1.7;
}

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--color-text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--color-text); background: var(--color-gold-soft); }
.nav-links a.is-active { color: var(--color-ember); background: var(--color-ember-soft); font-weight: 600; }

.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-ember), var(--color-gold), transparent);
  opacity: 0;
  transition: opacity .4s ease;
}
.site-header.is-scrolled::after { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  transition: border-color .25s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--color-gold); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; stroke: var(--color-text); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  background: none;
}
.menu-btn span { height: 2px; background: var(--color-text); border-radius: 2px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 19px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav a:first-child { border-top: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-ember);
  color: var(--color-on-accent);
  border: 1px solid var(--color-ember);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost {
  border: 1px solid var(--color-border-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--color-gold); background: var(--color-gold-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 6. Hero ---------- */
.hero {
  padding: 76px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: end;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ember);
  margin-bottom: 24px;
  opacity: 0;
  animation: rise .7s var(--ease) forwards .05s;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-ember);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  opacity: 0;
  animation: rise .8s var(--ease) forwards .12s;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-gold);
}
.hero-desc {
  margin-top: 24px;
  font-size: 17px;
  color: var(--color-text-soft);
  max-width: 460px;
  line-height: 1.75;
  opacity: 0;
  animation: rise .8s var(--ease) forwards .2s;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise .8s var(--ease) forwards .28s;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  opacity: 0;
  animation: rise .8s var(--ease) forwards .32s;
}
.hero-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
}
.hero-panel-row:first-child { border-top: none; padding-top: 0; }
.hero-panel-row .k { font-size: 13.5px; color: var(--color-text-faint); }
.hero-panel-row .v { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; text-align: right; }

.hero-strip {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.hero-strip div {
  padding: 20px 22px;
  border-left: 1px solid var(--color-border);
}
.hero-strip div:first-child { border-left: none; }
.hero-strip .num { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.hero-strip .lbl { font-size: 12.5px; color: var(--color-text-faint); margin-top: 4px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip div:nth-child(3) { border-left: none; }
}

/* ---------- 7. Reveal-on-scroll (single, quiet effect) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 8a. Flow / process ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.flow-step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  background: var(--color-surface);
}
.flow-step .n { font-family: var(--font-display); font-size: 22px; color: var(--color-gold); margin-bottom: 10px; }
.flow-step .t { font-weight: 600; font-size: 15px; }
@media (max-width: 780px) { .flow { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 8b. Snapshot stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-cell {
  padding: 34px 26px;
  border-left: 1px solid var(--color-border);
  background: var(--color-surface);
}
.stat-cell:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--color-ember); }
.stat-lbl { font-size: 13px; color: var(--color-text-faint); margin-top: 8px; line-height: 1.5; }
@media (max-width: 780px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; }
}

/* ---------- 8c. Timeline ---------- */
.timeline { border-top: 1px solid var(--color-border); margin-top: 8px; }
.tl-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}
.tl-row .stage { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.tl-row .stage-num { color: var(--color-gold); font-size: 13.5px; display: block; margin-bottom: 6px; }
.tl-row p { color: var(--color-text-soft); font-size: 15px; max-width: 520px; line-height: 1.7; margin-top: 6px; }
@media (max-width: 620px) { .tl-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- 8d. Workshops ---------- */
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ws-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--color-surface);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.ws-card:hover { border-color: var(--color-gold); transform: translateY(-4px); }
.ws-card .tag { font-size: 13px; color: var(--color-gold); font-weight: 600; margin-bottom: 14px; }
.ws-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.ws-card p { color: var(--color-text-soft); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 720px) { .ws-grid { grid-template-columns: 1fr; } }

/* ---------- 8e. Hackathon build block ---------- */
.build-flow { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 40px; }
.build-node {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
}
.value-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.value-chip {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-soft);
}
.callout {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-ember);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  background: var(--color-surface);
  font-size: 15px;
  color: var(--color-text-soft);
  line-height: 1.7;
}
.callout strong { color: var(--color-text); }

/* ---------- 8f. Gaming ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 30px 26px 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.game-card:hover { transform: translateY(-5px); border-color: var(--color-gold); }

/* Custom illustrated art per card — no external images, just an inline
   SVG icon tinted with the game's accent color and set behind the text. */
.game-card[data-game="freefire"] { --tint: var(--color-ember); }
.game-card[data-game="valorant"] { --tint: var(--color-accent); }
.game-card[data-game="minecraft"] { --tint: var(--color-gold); }

.game-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tint);
  opacity: .14;
  transition: opacity .35s ease, transform .5s var(--ease);
  pointer-events: none;
}
.game-card-art svg { width: 68%; height: 68%; }
.game-card:hover .game-card-art { opacity: .26; transform: scale(1.06); }
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 35%, var(--color-surface) 92%);
}

.game-card .game-index,
.game-card h3,
.game-card p,
.game-card .go { position: relative; z-index: 1; }

.game-card .game-index { position: absolute; top: 26px; left: 26px; font-family: var(--font-display); font-size: 15px; color: var(--color-text-faint); }
.game-card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin-bottom: 8px; }
.game-card p { font-size: 13.5px; color: var(--color-text-faint); }
.game-card .go {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--color-ember);
}
.game-note { margin-top: 30px; }

/* ---------- 8g. Judging accordion ---------- */
.judge-list { border-top: 1px solid var(--color-border); }
.judge-item { border-bottom: 1px solid var(--color-border); }
.judge-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  background: none; border: none; text-align: left;
}
.judge-trigger .name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.judge-trigger .pct { font-size: 14px; color: var(--color-gold); font-weight: 600; }
.judge-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.judge-item.is-open .judge-body { max-height: 120px; }
.judge-body p { padding-bottom: 22px; color: var(--color-text-soft); font-size: 14.5px; max-width: 560px; line-height: 1.7; }
.judge-total { text-align: right; padding-top: 16px; font-size: 13.5px; color: var(--color-text-faint); }

/* ---------- 8h. Participation ---------- */
.part-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.part-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: var(--color-surface);
}
.part-card .tag { font-size: 13px; color: var(--color-gold); font-weight: 600; margin-bottom: 16px; }
.part-card h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-bottom: 14px; }
.part-card p { color: var(--color-text-soft); font-size: 14.5px; line-height: 1.75; margin-bottom: 8px; }
@media (max-width: 720px) { .part-grid { grid-template-columns: 1fr; } }

/* ---------- 8i. Schedule (two days) ---------- */
.day-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.day-tab {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 14px; font-weight: 600;
}
.day-tab.is-active { background: var(--color-ember); border-color: var(--color-ember); color: var(--color-on-accent); }
.day-panel { display: none; }
.day-panel.is-active { display: block; }
.day-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  align-items: center;
}
.day-row:last-child { border-bottom: 1px solid var(--color-border); }
.day-row .time { font-size: 13.5px; color: var(--color-text-faint); }
.day-row .label { font-family: var(--font-display); font-size: 16.5px; font-weight: 500; }
.day-row.is-key .label { color: var(--color-ember); font-weight: 600; }
@media (max-width: 560px) { .day-row { grid-template-columns: 88px 1fr; } }

/* ---------- 8j. Safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safety-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px 22px; background: var(--color-surface); }
.safety-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.safety-card p { font-size: 13.5px; color: var(--color-text-soft); line-height: 1.6; }
@media (max-width: 780px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .safety-grid { grid-template-columns: 1fr; } }

/* ---------- 8k. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-info-item { padding: 20px 0; border-top: 1px solid var(--color-border); }
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item .k { font-size: 12.5px; color: var(--color-text-faint); margin-bottom: 6px; }
.contact-info-item .v { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.contact-info-item a.v:hover { color: var(--color-ember); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--color-text-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 14.5px;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-ember);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 13px; color: var(--color-text-faint); margin-top: 14px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  font-size: 14px;
}
.form-success.is-visible { display: block; }

/* ---------- 8l. Final CTA ---------- */
.final-cta { text-align: left; padding: 120px 0; }
.final-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0;
}
.final-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.08;
  max-width: 560px;
}
.final-meta { font-size: 14px; color: var(--color-text-faint); line-height: 1.9; }

/* ---------- 9. Footer ---------- */
.site-footer { padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-row p { font-size: 13px; color: var(--color-text-faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--color-text-faint); }
.footer-links a:hover { color: var(--color-text); }

/* ---------- 10. Register page ---------- */
.register-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 28px 130px;
  position: relative;
}
.register-shell::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  max-width: 100%;
  height: 340px;
  background: radial-gradient(ellipse at center, var(--color-ember-soft), transparent 72%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

.register-head { margin-bottom: 20px; text-align: center; }
.register-head .section-label { justify-content: center; }
.register-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.register-head p {
  color: var(--color-text-soft);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.7;
  margin: 0 auto;
}

.progress-track {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 420px;
  margin: 34px auto 46px;
}
.progress-track .seg { flex: 1; height: 3px; border-radius: 3px; background: var(--color-border-strong); }
.progress-track .seg.is-done { background: var(--color-ember); }

.prereq-note {
  display: flex;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-ember);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 44px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}
.prereq-note p { font-size: 14.5px; color: var(--color-text-soft); line-height: 1.65; }
.prereq-note strong { color: var(--color-text); }

.form-section {
  margin-bottom: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-soft);
  transition: border-color .3s ease;
}
.form-section:focus-within { border-color: var(--color-gold); }
.form-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 26px;
}
.step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-ember-soft);
  color: var(--color-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.field input, .field select, .field textarea {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-strong);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-ember-soft);
}

.radio-grid, .check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-soft);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}
.radio-pill input:checked + span {
  background: var(--color-ember);
  border-color: var(--color-ember);
  color: var(--color-on-accent);
  font-weight: 600;
  box-shadow: 0 8px 18px -10px var(--color-ember);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--color-ember); outline-offset: 2px; }

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  margin-top: 10px;
}
.checkbox-line input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--color-ember);
  flex-shrink: 0;
}
.checkbox-line label { font-size: 14px; color: var(--color-text-soft); line-height: 1.6; }

.form-submit {
  margin-top: 14px;
  font-size: 15.5px;
  padding: 17px 26px;
}


/* ---------- 11. Game detail pages ---------- */
.game-hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--color-border);
}
.game-hero .back-link { font-size: 14px; color: var(--color-text-faint); margin-bottom: 30px; display: inline-block; }
.game-hero .back-link:hover { color: var(--color-text); }
.game-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 64px); font-weight: 600; }
.game-hero .sub { margin-top: 14px; color: var(--color-text-soft); font-size: 16px; max-width: 480px; }

.tba-block {
  padding: 90px 0;
  text-align: left;
}
.tba-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 54px 40px;
  background: var(--color-surface);
  max-width: 620px;
}
.tba-card .flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--color-ember);
  margin-bottom: 18px;
}
.tba-card .flag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-ember); }
.tba-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-bottom: 14px; }
.tba-card p { color: var(--color-text-soft); font-size: 15px; line-height: 1.75; margin-bottom: 26px; }

/* ---------- 8m. Floating brand badges (hero corners) ---------- */
.hero { position: relative; }
.floating-badge {
  position: absolute;
  top: 6px;
  width: 210px;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(39, 27, 16, 0.18));
}
.floating-badge img { width: 100%; display: block; }
.floating-badge.badge-left { left: 0; animation: badgeWave 6s ease-in-out infinite; }
.floating-badge.badge-right { right: 0; width: 200px; animation: badgeFloat 5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes badgeWave {
  0%, 100% { transform: translateY(-4px) rotate(-6deg); }
  50% { transform: translateY(8px) rotate(4deg); }
}
@media (max-width: 720px) {
  .floating-badge { width: 52px; top: -4px; }
  .floating-badge.badge-right { width: 46px; }
}
@media (max-width: 520px) {
  .floating-badge { display: none; }
}

/* ---------- 8n. Team section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.team-card {
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px 30px 36px;
  background: var(--color-surface);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--color-gold); box-shadow: var(--shadow-soft); }
.team-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--avatar-bg, var(--color-accent));
  color: var(--color-on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  border: 1px solid var(--color-border);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.team-role { font-size: 13.5px; color: var(--color-gold); font-weight: 600; letter-spacing: .01em; margin-top: 7px; }
.team-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-soft);
  transition: all .25s ease;
}
.team-email:hover { border-color: var(--color-ember); color: var(--color-ember); background: var(--color-ember-soft); }

@media (max-width: 780px) { .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* ---------- 9. Rich footer ---------- */
.site-footer-rich {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: var(--color-text-soft);
  max-width: 260px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  transition: border-color .25s ease, transform .2s ease, background .25s ease;
}
.social-btn:hover { border-color: var(--color-ember); background: var(--color-ember-soft); transform: translateY(-2px); }
.social-btn svg { width: 17px; height: 17px; stroke: var(--color-text); fill: none; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text-soft);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--color-ember); }

.hackclub-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--color-surface);
  transition: border-color .25s ease, transform .25s ease;
}
.hackclub-badge:hover { border-color: var(--color-gold); transform: translateY(-2px); }
.hackclub-badge img { width: 44px; flex-shrink: 0; }
.hackclub-badge span { font-size: 13px; color: var(--color-text-soft); line-height: 1.4; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--color-border);
}
.footer-bottom p { font-size: 13px; color: var(--color-text-faint); }
.footer-bottom a { font-size: 13px; color: var(--color-text-soft); }
.footer-bottom a:hover { color: var(--color-ember); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 12. Utilities ---------- */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }

:focus-visible { outline: 2px solid var(--color-ember); outline-offset: 3px; }
