/* ============================================================
   Gaming Guild — gamingguild.tech
   Dark cinematic theme · Montserrat + Figtree
   ============================================================ */

/* Tokens live in assets/tokens.css — loaded before this file. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
a { color: inherit; }
::selection { background: #ff2fa655; color: #fff; }

/* ---------- Ambient layers ---------- */

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%; filter: blur(100px); will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, #2fd8f6 0%, transparent 62%); left: -24vmax; top: -28vmax; opacity: .22; animation: drift1 30s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, #ff2fa6 0%, transparent 62%); right: -28vmax; top: 8vh; opacity: .22; animation: drift2 38s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, #7a5cff 0%, transparent 62%); left: 8vw; bottom: -42vmax; opacity: .18; animation: drift3 34s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 9vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-11vmax, 12vmax) scale(1.08); } }
@keyframes drift3 { to { transform: translate(9vmax, -10vmax) scale(1.15); } }

.gridlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 15%, transparent 72%);
  opacity: .5;
}

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--accent), var(--amber)); }

#cursor {
  position: fixed; left: 0; top: 0; z-index: 50; width: 340px; height: 340px; margin: -170px 0 0 -170px;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, #2fd8f622 0%, #ff2fa612 40%, transparent 68%);
  transition: opacity .6s;
}
body.cursor-on #cursor { opacity: 1; }

/* ---------- Reveal ---------- */

.r { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.in .r, .r.in { opacity: 1; transform: none; filter: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(20px, 4.5vw, 52px);
  transition: padding .5s var(--ease), background .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding-top: var(--sp-3); padding-bottom: var(--sp-3); background: var(--surface); backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: var(--r-sm); }
.brand-word { font: 700 15px var(--font-display); letter-spacing: .01em; }
.brand-word b { background: linear-gradient(90deg, #ff2fa6, #2fd8f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font: 600 12.5px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

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

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r-pill); text-decoration: none;
  font: 700 13.5px var(--font-display); letter-spacing: .04em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, background .4s;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-nav { padding: 10px 20px; color: var(--ink); border: 1px solid var(--line-strong); background: var(--hover-bg); backdrop-filter: blur(10px); }
.btn-nav:hover { border-color: var(--line-strong); box-shadow: 0 0 26px #2fd8f633; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #a55cff 55%, var(--cyan));
  box-shadow: 0 8px 34px #ff2fa644, inset 0 1px 0 #ffffff33;
  overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, #ffffff40 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 12px 44px #ff2fa666, inset 0 1px 0 #ffffff44; }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-lg { padding: 17px 34px; font-size: 15px; }

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

.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 110px 24px 0; position: relative; }
.hero-inner { flex: 1; width: 100%; max-width: 1240px; display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); padding: 24px 0 40px; text-align: left; }
.hero-left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  margin: 0 0 26px; font: 700 12px var(--font-display); letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: var(--sp-3);
}
.tick { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 #ff2fa688; animation: tickpulse 2.4s var(--ease) infinite; }
@keyframes tickpulse { 0% { box-shadow: 0 0 0 0 #ff2fa677; } 100% { box-shadow: 0 0 0 14px #ff2fa600; } }

.hero-title { font-size: var(--fs-display); font-weight: 900; line-height: .92; letter-spacing: -.045em; }
.hero-title .line { display: block; }
.hero-title .line:last-child { background: var(--hero-line-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .dot { font-style: normal; color: var(--amber); -webkit-text-fill-color: var(--amber); }

.hero-sub { margin: 24px 0 0; max-width: 560px; font-size: var(--fs-lead); line-height: 1.55; color: var(--soft); }
.hero-sub b { color: var(--amber); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-top: 28px; max-width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 23px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(12px);
  font: 600 15px var(--font-body); color: var(--ink);
  box-shadow: 0 6px 24px #0000004d;
}
.chip svg { width: 17px; height: 17px; color: var(--amber); }

.hero-cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-note { margin: 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; }

.cd-label {
  margin: 0; text-align: center;
  font: 700 var(--fs-kicker) var(--font-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.cd-label b { color: var(--amber); font-weight: 700; }
.hero-side .countdown { margin: 16px auto 0; font-size: clamp(30px, 3.5vw, 56px); padding: clamp(14px, 1.8vw, 22px) clamp(18px, 2.4vw, 30px); }
.hero-side .chips { justify-content: center; margin-top: 18px; }
.hero-side .chip { padding: 10px 16px; font-size: var(--fs-small); }

.countdown {
  position: relative; display: flex; align-items: flex-start; justify-content: center; gap: clamp(10px, 2vw, 20px);
  margin: 0 auto 46px; padding: clamp(16px, 2.4vw, 26px) clamp(20px, 3vw, 38px);
  border-radius: var(--r-lg); border: 1px solid var(--card-border);
  background: var(--card-bg); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  font-size: clamp(44px, 6.8vw, 78px); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.countdown::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, var(--accent), var(--cyan), transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-a 8s linear infinite; pointer-events: none;
}
.countdown .cd {
  display: flex; flex-direction: column; align-items: center;
  padding: .2em .22em .32em; border-radius: var(--r-md);
  background: var(--cd-inner); border: 1px solid var(--line);
  box-shadow: inset 0 2px 0 #ffffff08, inset 0 -20px 34px #2fd8f614;
}
.countdown .cd.pulse { animation: cdpulse .55s var(--ease); }
@keyframes cdpulse {
  0% { box-shadow: inset 0 0 0 2px #ffc23d77, inset 0 -20px 34px #ffc23d30, 0 0 34px #ffc23d40; }
  100% { box-shadow: inset 0 2px 0 #ffffff08, inset 0 -20px 34px #2fd8f614; }
}
.countdown .dg { position: relative; display: block; height: 1em; width: 1.66em; overflow: hidden; }
.countdown .dgn { display: block; }
.countdown .dgn.in { animation: cd-in .5s var(--ease); }
.countdown .dgn.out { position: absolute; inset: 0; animation: cd-out .5s var(--ease) forwards; }
@keyframes cd-in { 0% { transform: translateY(104%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes cd-out { 0% { transform: none; opacity: 1; } 100% { transform: translateY(-104%); opacity: 0; } }
.countdown b {
  display: block; font: 800 1em/1 var(--font-num); text-align: center;
  background: var(--num-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.countdown small { margin-top: 10px; font: 700 10px var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.countdown i { display: flex; flex-direction: column; gap: 10px; margin-top: calc(.7em - 8px); }
.countdown i s { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px #ffc23daa; animation: colpulse 1s ease-in-out infinite alternate; }
.countdown i s:last-child { animation-delay: .5s; }
@keyframes colpulse { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1.15); } }

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto 30px; text-decoration: none;
  font: 600 10px var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; opacity: 1; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--surface); backdrop-filter: blur(6px); }
.marquee-track { display: flex; width: max-content; animation: marq 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; font: 800 clamp(15px, 1.9vw, 21px) var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--marquee-ink); padding-right: .5em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); margin: 0 .55em; }
@keyframes marq { to { transform: translateX(-50%); } }

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

.section { max-width: 1180px; margin: 0 auto; padding: clamp(90px, 13vh, 160px) clamp(22px, 5vw, 48px) 0; }
.kicker { margin: 0 0 18px; font: 700 12px var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(32px, 4.6vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; max-width: 900px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--cyan) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 26px 0 0; max-width: 640px; font-size: clamp(16px, 1.6vw, 19.5px); line-height: 1.6; color: var(--soft); }
.dim { color: var(--muted); font-weight: 500; }

.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--sp-7); margin-top: 44px; align-items: start; }
.pillars { display: grid; gap: 14px; }
.pillar {
  padding: 24px 26px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--card-bg); backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), border-color .5s;
}
.pillar:hover { transform: translateX(6px); border-color: var(--line-strong); }
.pillar b { display: block; font: 800 17px var(--font-display); letter-spacing: -.01em; margin-bottom: 6px; }
.pillar b::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); margin-right: 10px; vertical-align: 4px; }
.pillar span { color: var(--soft); font-size: 15px; line-height: 1.55; }
.pillar-link { color: var(--amber); text-decoration: none; border-bottom: 1px solid #ffc23d55; transition: color .3s, border-color .3s; }
.pillar-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card {
  position: relative; padding: 30px; border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--line); backdrop-filter: blur(14px);
  transition: border-color .5s, box-shadow .5s;
  transform-style: preserve-3d; will-change: transform;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 68%, var(--accent), var(--cyan), transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s; pointer-events: none;
  animation: spin-a 5s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-a { to { --a: 360deg; } }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 10px; }
.card p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.55; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--hover-bg); border: 1px solid var(--line);
  color: var(--amber); transition: color .4s, border-color .4s, transform .5s var(--ease);
}
.icon svg { width: 22px; height: 22px; }
.card:hover .icon { color: var(--accent); border-color: #ff2fa655; transform: translateZ(20px); }

/* ---------- Event panel ---------- */

.event-panel {
  position: relative; margin-top: 52px; padding: clamp(30px, 4.5vw, 52px);
  border-radius: 28px; border: 1px solid #ff2fa63d; overflow: hidden;
  background: var(--card-bg);
  display: flex; flex-wrap: wrap; align-items: center; gap: 36px; justify-content: space-between;
}
.event-panel::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 62%, var(--accent), var(--cyan), transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-a 7s linear infinite; pointer-events: none;
}
.event-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 8% 0%, #ff2fa61f, transparent 60%), radial-gradient(50% 70% at 100% 100%, #2fd8f61a, transparent 60%); }
.event-rows { display: grid; gap: 0; min-width: min(480px, 100%); }
.erow { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.erow:last-child { border-bottom: 0; }
.erow small { font: 700 11px var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.erow b { font: 700 clamp(16px, 1.8vw, 20px) var(--font-display); letter-spacing: -.01em; }
.event-next { margin: 34px 0 0; font: 700 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.venue-link { display: inline-flex; align-items: baseline; gap: var(--sp-2); color: var(--amber); text-decoration: none; border-bottom: 1px solid #ffc23d55; transition: color .3s, border-color .3s; }
.venue-link:hover { color: #ffd08a; border-color: #ffd08a; }
.venue-link svg { width: 13px; height: 13px; transform: translateY(1px); }

/* ---------- Hosts ---------- */

.hosts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.host {
  display: flex; gap: 22px; align-items: center; padding: 30px; border-radius: 24px;
  border: 1px solid var(--card-border); background: var(--card-bg);
  backdrop-filter: blur(14px); transition: transform .5s var(--ease), border-color .5s;
}
.host:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.host img { width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.host h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.host-title { margin: 4px 0 10px; font: 700 12px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.host-bio { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; }

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

.final { text-align: center; padding: clamp(120px, 20vh, 220px) 24px; position: relative; }
.final .lead { margin-left: auto; margin-right: auto; }
.final h2 { font-size: clamp(44px, 7.5vw, 96px); font-weight: 900; letter-spacing: -.04em; line-height: .95; }
.final .btn { margin-top: 44px; }

/* ---------- Insights ---------- */

.insights { margin-top: 56px; border-top: 1px solid var(--line); }
.insight {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: 26px 10px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .35s, padding-left .45s var(--ease);
}
.insight small {
  flex: 0 0 104px;
  font: 700 11px var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
}
.insight h3 { margin: 0; font-size: clamp(17px, 2vw, 20px); font-weight: 700; letter-spacing: -.01em; transition: color .3s; }
.insight p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.insight svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.insight:hover { background: var(--hover-bg); padding-left: 20px; }
.insight:hover h3 { color: var(--amber); }
.insight:hover svg { transform: translate(3px, -3px); color: var(--amber); }

@media (max-width: 640px) {
  .insight { flex-wrap: wrap; gap: 6px 14px; }
  .insight small { flex-basis: 100%; }
  .insight svg { display: none; }
}

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

.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 30px clamp(22px, 4.5vw, 52px); border-top: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px);
}
.foot-note { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.foot-note a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .3s; }
.foot-note a:hover { color: var(--amber); }
.foot-copy { margin: 0; font-size: 13px; color: #6b7397; }

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

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .hero-left { align-items: center; }
  .hero-side { order: -1; margin: 8px 0 28px; }
  .hero-sub { margin: 24px auto 0; }
  .chips { justify-content: center; }
  .hero-cta { align-items: center; }
  .cta-note { text-align: center; }
  .hero-side .countdown { font-size: clamp(26px, 7vw, 46px); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hosts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: var(--sp-9); }
  .countdown { margin: 34px auto 40px; gap: 6px; padding: 12px; font-size: clamp(22px, 6vw, 40px); max-width: calc(100vw - 32px); }
  .countdown .cd { border-radius: 13px; padding: .2em .16em .3em; }
  .countdown small { font-size: 8px; letter-spacing: .18em; margin-top: 7px; }
  .countdown i { gap: 7px; margin-top: calc(.7em - 8px); }
  .countdown i s { width: 4px; height: 4px; }
  .scroll-cue { margin-bottom: 22px; }
  .scroll-cue { display: none; }
  .cards { grid-template-columns: 1fr; }
  .event-panel { flex-direction: column; align-items: stretch; }
  .event-panel .btn { align-self: center; }
  .host { flex-direction: column; align-items: flex-start; }
  #cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .r { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   Theme toggle + light-theme ambient overrides.
   Token re-maps live in tokens.css (body.light); only
   component-level literals are adjusted here.
   ============================================================ */

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--hover-bg);
  color: var(--muted); cursor: pointer;
  transition: color .3s, border-color .3s, transform .4s var(--ease);
}
.theme-toggle:hover { color: var(--ink); transform: rotate(15deg); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .tt-moon { display: none; }
body.light .theme-toggle .tt-sun { display: none; }
body.light .theme-toggle .tt-moon { display: block; }

body.light .aurora i { opacity: .12; }
body.light #field { filter: invert(1) hue-rotate(180deg); opacity: .7; }
body.light #cursor { display: none; }
body.light .gridlines { opacity: .8; }
body.light .btn-nav { border-color: var(--line); background: #ffffff80; }
body.light .countdown .cd { box-shadow: inset 0 2px 0 #ffffff, inset 0 -20px 34px #2fd8f60f; }
body.light .countdown i s { box-shadow: 0 0 10px #ffc23d66; }
body.light .event-glow { opacity: .55; }
body.light .pillar:hover, body.light .card:hover, body.light .host:hover { box-shadow: var(--shadow-card); }
body.light .countdown .dg { } /* digit gradient handled via --num-grad */
body.light .hero-title .dot { color: var(--amber); -webkit-text-fill-color: var(--amber); }

/* ---------- Icons (data-icon → assets/icons.js) ---------- */
i[data-icon] { display: contents; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.cat-card:focus-visible, .insight:focus-visible, .pillar:focus-visible, .host:focus-visible { outline-offset: 5px; border-radius: var(--r-md); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .r { opacity: 1; transform: none; filter: none; }
  .countdown .dg { overflow: visible; }
}
