/* ==========================================================================
   DEFUNCTION STUDIOS — futuristic theme
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-alt: #0a0d15;
  --panel: rgba(18, 22, 34, 0.6);
  --panel-border: rgba(120, 170, 255, 0.15);
  --cyan: #4df3ff;
  --purple: #a45bff;
  --magenta: #ff4dd8;
  --text: #e9edf7;
  --text-dim: #8d96ad;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

::selection { background: var(--cyan); color: #04070d; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--purple)); border-radius: 10px; }

/* ---------------------------------------------------------------- utility */

.section { position: relative; padding: 130px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(77, 243, 255, 0.03) 30%, rgba(77, 243, 255, 0.03) 70%, transparent); }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

.section-header { max-width: 640px; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(77, 243, 255, 0.6);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 1px;
}
.section-desc { color: var(--text-dim); font-size: 19px; margin: 0; }

/* RGB-split glitch burst, triggered once via JS when a title scrolls into view */
.section-title.scroll-glitch { position: relative; }
.section-title.scroll-glitch::before, .section-title.scroll-glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.section-title.scroll-glitch.is-glitching::before {
  color: var(--cyan); opacity: 0.8; clip-path: inset(0 0 55% 0); animation: glitch-a 0.5s steps(2, end) 1;
}
.section-title.scroll-glitch.is-glitching::after {
  color: var(--magenta); opacity: 0.8; clip-path: inset(55% 0 0 0); animation: glitch-b 0.5s steps(2, end) 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  will-change: transform, opacity;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #030409;
  box-shadow: 0 0 25px rgba(77, 243, 255, 0.35), 0 0 60px rgba(164, 91, 255, 0.15);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 35px rgba(77, 243, 255, 0.55), 0 0 80px rgba(164, 91, 255, 0.3); }
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(120, 170, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 0 25px rgba(77, 243, 255, 0.2); }
.btn-lg { padding: 18px 38px; font-size: 14px; }
.btn { will-change: transform; }

/* ------------------------------------------------------------ preloader */

#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#preloader.hidden {
  animation: preloader-glitch-out 0.55s steps(6, end) forwards;
  pointer-events: none;
}
@keyframes preloader-glitch-out {
  0%   { clip-path: inset(0 0 0 0); opacity: 1; filter: none; }
  20%  { clip-path: inset(0 0 0 0); filter: hue-rotate(20deg); }
  32%  { clip-path: inset(12% 0 8% 0); transform: translateX(1.5%); }
  46%  { clip-path: inset(35% 0 42% 0); transform: translateX(-2%); }
  60%  { clip-path: inset(65% 0 4% 0); transform: translateX(2%); }
  75%  { clip-path: inset(4% 0 82% 0); transform: translateX(-1%); }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  #preloader.hidden { animation: none; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
}
.preloader-static {
  position: absolute; inset: -20%; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: static-flicker 0.12s steps(2) infinite;
}
@keyframes static-flicker {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -3%); }
}
.preloader-inner { position: relative; z-index: 1; text-align: center; }
.preloader-logo {
  position: relative;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: 6px;
  color: var(--cyan); text-shadow: 0 0 20px rgba(77, 243, 255, 0.8); margin-bottom: 14px;
}
.preloader-logo.glitch::before, .preloader-logo.glitch::after { animation-duration: 0.4s; }
.preloader-status {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3px; color: var(--text-dim);
  margin-bottom: 18px; min-height: 14px;
}
.preloader-bar { width: 220px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  animation: loadbar 1.4s var(--ease) forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ------------------------------------------------------------- backdrop */

#bg-canvas { position: fixed; inset: 0; z-index: 0; }
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}
.grain {
  position: fixed; inset: -100px; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, -1%); }
  50% { transform: translate(1%, 2%); }
  75% { transform: translate(-1%, 1%); }
}

/* ---------------------------------------------------------- custom cursor */

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 10px rgba(77,243,255,0.9);
}
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(77,243,255,0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.is-active {
  width: 54px; height: 54px; border-color: var(--purple); background: rgba(164,91,255,0.08);
}
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ------------------------------------------------------- page transition wipe */

#page-wipe {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  background: var(--bg); transform: scaleX(0); transform-origin: left;
}
#page-wipe::after {
  content: ''; position: absolute; top: 0; right: -2px; bottom: 0; width: 3px;
  background: linear-gradient(var(--cyan), var(--purple), var(--magenta));
  box-shadow: 0 0 20px rgba(77, 243, 255, 0.8), 0 0 40px rgba(164, 91, 255, 0.5);
}
#page-wipe.is-active { animation: page-wipe-in 0.45s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
@keyframes page-wipe-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  #page-wipe.is-active { animation: none; opacity: 0; }
}

/* ------------------------------------------------------------ consent modal */

.consent-overlay {
  position: fixed; inset: 0; z-index: 9997;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 5, 9, 0.78); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.consent-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }

.consent-modal {
  position: relative;
  width: 420px; max-width: 100%; padding: 38px 38px 32px;
  background: rgba(10, 13, 21, 0.9); backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 40px rgba(77, 243, 255, 0.12);
  opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease);
}
.consent-overlay.is-visible .consent-modal { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* corner-bracket HUD accents */
.consent-modal::before, .consent-modal::after {
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.consent-modal::before {
  top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan);
  border-radius: var(--radius) 0 0 0;
}
.consent-modal::after {
  bottom: -1px; right: -1px; border-bottom: 2px solid var(--purple); border-right: 2px solid var(--purple);
  border-radius: 0 0 var(--radius) 0;
}

.consent-modal-eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 11px; letter-spacing: 3px;
  color: var(--cyan); text-shadow: 0 0 12px rgba(77, 243, 255, 0.7); margin-bottom: 14px;
}
.consent-modal h3 {
  margin: 0 0 14px; font-family: var(--font-display); font-size: 22px; letter-spacing: 0.5px;
}
.consent-modal p { margin: 0 0 24px; font-size: 15.5px; color: var(--text-dim); line-height: 1.6; }
.consent-modal p a { color: var(--text); border-bottom: 1px solid rgba(120, 170, 255, 0.4); }
.consent-modal p a:hover { color: var(--cyan); border-color: var(--cyan); }
.consent-modal-actions { display: flex; gap: 12px; }
.consent-modal-actions button {
  flex: 1; font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  padding: 14px 16px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
#consent-accept {
  background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #030409;
  box-shadow: 0 0 20px rgba(77, 243, 255, 0.35);
}
#consent-accept:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(77, 243, 255, 0.55); }
#consent-deny {
  background: rgba(255, 255, 255, 0.02); color: var(--text-dim); border-color: rgba(120, 170, 255, 0.3);
}
#consent-deny:hover { color: var(--text); border-color: var(--text-dim); transform: translateY(-2px); }
@media (max-width: 480px) {
  .consent-modal { padding: 30px 26px 26px; }
  .consent-modal-actions { flex-direction: column; }
}

/* --------------------------------------------------------- ambient audio */

.ambient-toggle {
  position: fixed; bottom: 24px; left: 24px; z-index: 9996;
  width: 52px; height: 52px; border-radius: 50%; padding: 0;
  background: rgba(10, 13, 21, 0.8); backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.ambient-toggle:hover { transform: translateY(-2px); border-color: var(--cyan); }
.ambient-toggle span { display: block; width: 3px; height: 7px; border-radius: 2px; background: var(--text-dim); transition: background 0.3s; }
.ambient-toggle.is-on { border-color: var(--cyan); box-shadow: 0 0 20px rgba(77, 243, 255, 0.35); }
.ambient-toggle.is-on span { background: var(--cyan); animation: eq-bar 0.9s ease-in-out infinite; }
.ambient-toggle span:nth-child(2) { height: 13px; animation-delay: 0.15s; }
.ambient-toggle span:nth-child(3) { animation-delay: 0.3s; }
@keyframes eq-bar { 0%, 100% { height: 6px; } 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .ambient-toggle.is-on span { animation: none; height: 14px; }
}
@media (max-width: 480px) {
  .ambient-toggle { bottom: 16px; left: 16px; width: 46px; height: 46px; }
}

/* ---------------------------------------------------------------- navbar */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-color: var(--panel-border);
}
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.brand-mark {
  display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px;
  filter: drop-shadow(0 0 7px rgba(77, 243, 255, 0.45));
}
.brand-mark img { width: 100%; height: 100%; }
.brand-text { font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.brand-accent { color: var(--cyan); margin-left: 6px; }

.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.nav-links a:not(.nav-cta) {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 1.5px; color: var(--text-dim);
  position: relative; transition: color 0.3s; white-space: nowrap;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--cyan); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 10px 22px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #030409;
  box-shadow: 0 0 20px rgba(77, 243, 255, 0.3);
  transition: transform 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 80px; text-align: center; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: -10%; z-index: 1;
  background-image:
    linear-gradient(rgba(77, 243, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 243, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent 70%);
  animation: gridmove 14s linear infinite;
}
@keyframes gridmove { from { background-position: 0 0; } to { background-position: 0 46px; } }

#hero-3d {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.75; mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 75%);
}

/* parallax depth layers — decorative glow orbs drifting at different scroll speeds */
.parallax-orb {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(60px); will-change: transform;
}
.parallax-orb--cyan { background: radial-gradient(circle, rgba(77,243,255,0.35), transparent 70%); }
.parallax-orb--purple { background: radial-gradient(circle, rgba(164,91,255,0.32), transparent 70%); }
.parallax-orb--magenta { background: radial-gradient(circle, rgba(255,77,216,0.28), transparent 70%); }

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-tag {
  display: inline-block; font-family: var(--font-display); font-size: 12px; letter-spacing: 3px;
  color: var(--purple); margin-bottom: 26px; padding: 8px 18px; border: 1px solid rgba(164, 91, 255, 0.35);
  border-radius: 999px; background: rgba(164, 91, 255, 0.06);
}
.hero-title { font-family: var(--font-display); font-weight: 900; line-height: 1; margin: 0 0 24px; }
.hero-title .glitch {
  display: block; font-size: clamp(48px, 9vw, 104px); letter-spacing: 4px;
  color: var(--text); position: relative;
  text-shadow: 0 0 30px rgba(77, 243, 255, 0.35);
}
.hero-title-sub {
  display: block; font-size: clamp(20px, 3vw, 30px); letter-spacing: 12px; margin-top: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glitch { animation: flicker 6s infinite; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0.8;
}
.glitch::before { color: var(--cyan); animation: glitch-a 3.5s infinite linear; clip-path: inset(0 0 55% 0); }
.glitch::after { color: var(--magenta); animation: glitch-b 4.5s infinite linear; clip-path: inset(55% 0 0 0); }
@keyframes glitch-a { 0%, 92%, 100% { transform: translate(0,0); } 93% { transform: translate(-3px, 1px); } 95% { transform: translate(3px, -1px); } 97% { transform: translate(-2px,0); } }
@keyframes glitch-b { 0%, 92%, 100% { transform: translate(0,0); } 93% { transform: translate(3px, -1px); } 95% { transform: translate(-3px, 1px); } 97% { transform: translate(2px,0); } }
@keyframes flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.82; } 98% { opacity: 1; } }

.hero-subtitle { font-size: 20px; color: var(--text-dim); margin: 0 0 40px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 16px rgba(77, 243, 255, 0.5); }
.stat-label { font-size: 13px; letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase; }

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.25); border-radius: 20px;
}
.scroll-indicator span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--cyan);
  animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* --------------------------------------------------------------- countdown */

.countdown { position: relative; padding: 80px 24px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--panel-border); }
.countdown::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(164,91,255,0.14), transparent 65%); }
.countdown-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.countdown-inner h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 14px 0 8px; }
.countdown-inner p { color: var(--text-dim); margin: 0 0 34px; }
.countdown-timer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 84px; padding: 18px 10px; border-radius: var(--radius);
  border: 1px solid var(--panel-border); background: var(--panel); backdrop-filter: blur(10px);
}
.cd-unit span { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--cyan); text-shadow: 0 0 16px rgba(77,243,255,0.5); }
.cd-unit small { font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase; }

/* -------------------------------------------------------------------- merch */

.merch-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px; background: rgba(10,13,21,0.7);
  border: 1px solid rgba(164,91,255,0.4); color: var(--purple);
}

/* --------------------------------------------------------------------- codes */

.codes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.code-card {
  padding: 24px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.code-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.code-card.is-expired { opacity: 0.55; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-value {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 2px; color: var(--cyan);
  text-shadow: 0 0 10px rgba(77,243,255,0.4); background: rgba(77,243,255,0.06);
  border: 1px dashed rgba(77,243,255,0.35); border-radius: 8px; padding: 8px 14px;
  flex: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word;
}
.code-reward { margin: 0; color: var(--text-dim); font-size: 15px; }
.code-status {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 1px; padding: 6px 14px;
  border-radius: 999px; white-space: nowrap;
}
.code-status.status-active { color: #7dff9e; border: 1px solid rgba(125,255,158,0.4); }
.code-status.status-expired { color: var(--text-dim); border: 1px solid rgba(120,170,255,0.25); }
.code-copy {
  background: none; border: 1px solid rgba(120,170,255,0.3); color: var(--text);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 1px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.code-copy:hover { border-color: var(--cyan); color: var(--cyan); }
.code-copy.copied { border-color: #7dff9e; color: #7dff9e; }

/* ---------------------------------------------------------------- changelog */

.changelog-list { display: flex; flex-direction: column; gap: 22px; }
.changelog-entry { padding: 26px 28px; }
.changelog-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.changelog-version { font-family: var(--font-display); font-size: 18px; color: var(--cyan); text-shadow: 0 0 10px rgba(77,243,255,0.4); }
.changelog-game { font-size: 15px; color: var(--text-dim); }
.changelog-date { margin-left: auto; font-size: 13px; color: var(--text-dim); letter-spacing: 0.5px; }
.changelog-notes { margin: 0; padding-left: 20px; }
.changelog-notes li { color: var(--text-dim); font-size: 16px; margin-bottom: 6px; }
.changelog-notes li::marker { color: var(--cyan); }

/* -------------------------------------------------------------- legal pages */

.legal-body { padding: 40px 44px; max-width: 860px; }
.legal-body h3 { font-family: var(--font-display); font-size: 18px; color: var(--cyan); margin: 32px 0 12px; letter-spacing: 0.5px; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--text-dim); font-size: 16px; margin: 0 0 4px; }
.legal-body ul { margin: 10px 0; padding-left: 22px; }
.legal-body li { color: var(--text-dim); font-size: 16px; margin-bottom: 8px; }
.legal-body li::marker { color: var(--cyan); }


/* --------------------------------------------------------- glass panels */

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

/* cursor-follow spotlight + tilt, applied via JS to .glass/.peek-card/.staff-card */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(77, 243, 255, 0.16), transparent 70%);
}
.tilt-card:hover::after { opacity: 1; }

/* holographic glitch-flicker, briefly triggered on hover-in via JS */
.tilt-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 0, 90, 0.55) 0 2px, rgba(77, 243, 255, 0.55) 2px 4px, transparent 4px 7px);
  mix-blend-mode: screen;
}
.tilt-card.is-glitching { animation: holo-jitter 0.4s steps(2, end) 1; }
.tilt-card.is-glitching::before { animation: holo-scan 0.4s steps(6, end) 1; }
@keyframes holo-jitter {
  0%, 100% { filter: none; }
  10% { transform: translate(-2px, 1px) scale(1.002); filter: hue-rotate(15deg); }
  30% { transform: translate(2px, -1px) scale(0.998); filter: hue-rotate(-12deg); }
  50% { transform: translate(-1px, 0); filter: hue-rotate(10deg); }
  70% { transform: translate(1px, 1px); filter: hue-rotate(-6deg); }
  90% { transform: translate(0, -1px); filter: none; }
}
@keyframes holo-scan {
  0%, 100% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.5; transform: translateY(-6px); }
  35% { opacity: 0.3; transform: translateY(4px); }
  55% { opacity: 0.45; transform: translateY(-3px); }
  75% { opacity: 0.2; transform: translateY(5px); }
  90% { opacity: 0.35; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .tilt-card.is-glitching, .tilt-card.is-glitching::before { animation: none; }
}

/* ------------------------------------------------------- announcements */

.announcements-feed { display: flex; flex-direction: column; gap: 18px; }
.feed-links { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.feed-links a { color: var(--cyan); border-bottom: 1px solid transparent; letter-spacing: 0.5px; }
.feed-links a:hover { border-color: var(--cyan); }
.announcement-card {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 26px; position: relative; overflow: hidden;
}
.announcement-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--cyan), var(--purple));
}
.ann-date { font-family: var(--font-display); font-size: 12px; color: var(--cyan); letter-spacing: 1px; }
.ann-body h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.ann-body p { margin: 0; color: var(--text-dim); font-size: 16px; }
.ann-tag {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 1px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgba(120,170,255,0.3); color: var(--text-dim); white-space: nowrap; height: fit-content;
}
.ann-tag.tag-update { color: var(--cyan); border-color: rgba(77,243,255,0.4); }
.ann-tag.tag-event { color: var(--magenta); border-color: rgba(255,77,216,0.4); }
.ann-tag.tag-release { color: #7dff9e; border-color: rgba(125,255,158,0.4); }

/* -------------------------------------------------------------- peeks */

.peeks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.peek-card {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(77,243,255,0.08), rgba(164,91,255,0.08));
  display: flex; align-items: flex-end; padding: 22px; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.peek-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.peek-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
  backdrop-filter: blur(8px);
}
.peek-lock {
  position: absolute; top: 18px; right: 18px; font-family: var(--font-display); font-size: 10px;
  letter-spacing: 1px; color: var(--purple); border: 1px solid rgba(164,91,255,0.4); padding: 5px 12px; border-radius: 999px;
  background: rgba(10,13,21,0.6); z-index: 2;
}
.peek-body { position: relative; z-index: 2; }
.peek-body h3 { margin: 0 0 6px; font-size: 20px; font-family: var(--font-display); letter-spacing: 1px; }
.peek-body p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* -------------------------------------------------------------- games */

.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.game-card { padding: 0; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.game-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(77, 243, 255, 0.12); }
.game-thumb {
  height: 170px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(77,243,255,0.18), rgba(164,91,255,0.18));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 40px; color: rgba(255,255,255,0.35);
}
.game-thumb::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(5,6,10,0.15), rgba(5,6,10,0.7)),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 20px);
}
.game-body { padding: 24px 24px 26px; }
.game-body h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; letter-spacing: 0.5px; }
.game-body p { margin: 0 0 16px; color: var(--text-dim); font-size: 15px; }
.game-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.game-tag {
  font-size: 11px; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(120,170,255,0.25); color: var(--text-dim);
}
.game-play {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12px;
  letter-spacing: 1px; color: var(--cyan); border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.game-play:hover { border-color: var(--cyan); }

/* ----------------------------------------------------------- roadmap */

.roadmap-timeline { position: relative; padding-top: 10px; }
.timeline-line {
  position: absolute; top: 74px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  opacity: 0.3;
}
.timeline-track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 20px 6px 30px; scrollbar-width: thin;
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--purple)); border-radius: 10px; }
.timeline-item { flex: 0 0 300px; padding: 0 16px; scroll-snap-align: center; }
.timeline-dot {
  position: relative; z-index: 2; width: 20px; height: 20px; border-radius: 50%; margin: 44px auto 22px;
  background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px rgba(77,243,255,0.6);
}
.timeline-item.status-done .timeline-dot { border-color: #7dff9e; box-shadow: 0 0 14px rgba(125,255,158,0.6); }
.timeline-item.status-progress .timeline-dot { border-color: var(--purple); box-shadow: 0 0 14px rgba(164,91,255,0.6); }
.timeline-item.status-planned .timeline-dot { border-color: var(--text-dim); box-shadow: none; }
.timeline-card { padding: 22px 24px; text-align: center; }
.timeline-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 17px; }
.timeline-card p { margin: 0 0 18px; color: var(--text-dim); font-size: 14.5px; }
.timeline-card-meta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.roadmap-status {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; padding: 7px 16px;
  border-radius: 999px; white-space: nowrap;
}
.status-done .roadmap-status { color: #7dff9e; border: 1px solid rgba(125,255,158,0.4); }
.status-progress .roadmap-status { color: var(--purple); border: 1px solid rgba(164,91,255,0.4); }
.status-planned .roadmap-status { color: var(--text-dim); border: 1px solid rgba(120,170,255,0.25); }
.roadmap-bar { width: 160px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.roadmap-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 999px; }

.timeline-scrubber {
  display: block; width: 100%; margin-top: 6px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.1); outline: none; -webkit-appearance: none; appearance: none;
}
.timeline-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); box-shadow: 0 0 14px rgba(77,243,255,0.6);
}
.timeline-scrubber::-moz-range-thumb {
  width: 16px; height: 16px; border: none; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); box-shadow: 0 0 14px rgba(77,243,255,0.6);
}

/* ------------------------------------------------------------- staff */

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.staff-card { padding: 30px 24px; text-align: center; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.staff-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.staff-avatar {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700; color: #030409;
}
.staff-card h3 { margin: 0 0 6px; font-size: 19px; }
.staff-role {
  display: inline-block; font-family: var(--font-display); font-size: 11px; letter-spacing: 1px;
  color: var(--cyan); margin-bottom: 12px;
}
.staff-card a.staff-profile { font-size: 14px; color: var(--text-dim); border-bottom: 1px solid transparent; }
.staff-card a.staff-profile:hover { color: var(--text); border-color: var(--text-dim); }

/* ----------------------------------------------------------- join cta */

.join-cta { position: relative; padding: 140px 24px; text-align: center; overflow: hidden; }
.join-cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(77,243,255,0.12), transparent 60%);
}
.join-cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.join-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); margin: 16px 0; }
.join-desc { color: var(--text-dim); font-size: 19px; margin-bottom: 36px; }

/* -------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--panel-border); padding: 70px 24px 30px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap;
  padding-bottom: 50px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-text { display: block; margin: 14px 0 10px; }
.footer-brand p { color: var(--text-dim); font-size: 15px; margin: 0; }
.footer-links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 1.5px; color: var(--text); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--panel-border);
  text-align: center; color: var(--text-dim); font-size: 13px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(75vw, 320px);
    background: rgba(6,8,14,0.97); backdrop-filter: blur(20px); flex-direction: column;
    justify-content: center; align-items: flex-start; padding: 40px; gap: 28px;
    transform: translateX(100%); transition: transform 0.4s var(--ease); border-left: 1px solid var(--panel-border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .announcement-card { grid-template-columns: 1fr; }
  .ann-tag { justify-self: start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 90px 0; }
  .hero { padding-top: 160px; }
  .timeline-item { flex-basis: 260px; }
}
