/* =====================================================================
   VANILLA SCRIMS — weekend Crystal PvP battle royales
   Look: retro-futurism — neon purple/magenta, pixel-art, blocky/brutalist,
   CRT scanlines, glitch + neon glow.
   Fonts: Russo One (display) · Chakra Petch (body) · Press Start 2P (pixel)
   ===================================================================== */

:root {
  --bg:        #0A0712;
  --bg-2:      #120A1F;
  --surface:   #181030;
  --surface-2: #221643;
  --ink:       #04020A;   /* hard offset shadow */

  --violet:        #8B5CF6;
  --violet-bright: #A855F7;
  --magenta:       #D946EF;
  --pink:          #EC4899;
  --cyan:          #38BDF8;
  --gold:          #FBBF24;
  --rose:          #F43F5E;
  --green:         #34D399;
  --discord:       #5865F2;
  --discord-hi:    #6f79f6;

  --text:  #ECEAF6;
  --muted: #ADAACB;
  --white: #FFFFFF;

  --line:      #2E2150;
  --line-hi:   #5B2A7A;
  --magenta-d: #7A1E86;

  --grad: linear-gradient(100deg, #8B5CF6, #D946EF 60%, #EC4899);
  --grad-cm: linear-gradient(100deg, #38BDF8, #D946EF 70%);

  --z-crt: 5;
  --z-nav: 50;
  --z-toast: 80;
  --maxw: 1180px;
  --r: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 86px; }
body {
  font-family: "Chakra Petch", system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(168,139,250,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,139,250,0.035) 1px, transparent 1px),
    radial-gradient(70vw 55vh at 88% -8%, rgba(217,70,239,0.16), transparent 60%),
    radial-gradient(60vw 45vh at -8% 6%, rgba(139,92,246,0.13), transparent 60%),
    radial-gradient(50vw 50vh at 50% 120%, rgba(56,189,248,0.08), transparent 60%);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--magenta); color: #fff; }

h1, h2, h3, h4 { font-family: "Russo One", sans-serif; font-weight: 400; line-height: 1.04; }

/* ---------- Helpers ---------- */
.pixel { font-family: "Press Start 2P", "Chakra Petch", monospace; text-transform: uppercase; letter-spacing: .5px; line-height: 1.7; }
.mono { font-family: ui-monospace, "Cascadia Code", "Courier New", monospace; letter-spacing: -.3px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--magenta); }
.brand__mark, .step__icon, .float-crystal, .podium__crown, .finalcta__gem, .scene__float, .drop__crate, .drop__loot img { image-rendering: pixelated; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 12px; }

/* ---------- CRT / scanline overlay ---------- */
.crt { position: fixed; inset: 0; z-index: var(--z-crt); pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.16) 2px 3px),
    radial-gradient(120% 120% at 50% 50%, transparent 62%, rgba(4,2,10,0.45) 100%);
  mix-blend-mode: multiply; opacity: .55; animation: crtFlicker 5s steps(60) infinite; }
@keyframes crtFlicker { 0%,100% { opacity: .5; } 48% { opacity: .58; } 50% { opacity: .42; } 52% { opacity: .57; } }

/* ---------- Section + headers ---------- */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section--alt { max-width: none; background: var(--bg-2); border-block: 2px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }

.shead { max-width: 760px; margin-bottom: 52px; }
.shead--left { margin-left: 0; }
.shead__tag { display: inline-block; font-size: .62rem; color: var(--magenta); border: 2px solid var(--magenta-d); padding: 7px 11px 5px; margin-bottom: 18px; background: rgba(217,70,239,0.08); border-radius: 2px; box-shadow: 0 0 18px rgba(217,70,239,0.18); }
.shead__title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); color: var(--white); margin-bottom: 16px; }
.shead__sub { color: var(--muted); font-size: 1.04rem; max-width: 62ch; }
.shead__sub code { color: var(--violet-bright); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .3px; padding: 13px 22px; border-radius: var(--r); border: 2px solid var(--ink); cursor: pointer; color: #fff; background: var(--surface-2); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background-color .18s ease, border-color .18s; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.btn--solid { background: var(--grad); box-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(217,70,239,.3); }
.btn--discord { background: var(--discord); }
.btn--discord:hover { background: var(--discord-hi); }
.btn--ip { background: var(--surface); border-color: var(--line-hi); gap: 8px; }
.btn--ip:hover { border-color: var(--magenta); background: var(--surface-2); }
.btn__ipchip { font-size: .55rem; background: var(--grad); color: #fff; padding: 5px 7px 3px; border-radius: 2px; }
.btn__copyhint { font-size: .78rem; color: var(--muted); font-weight: 500; }
.btn--ip .mono { color: var(--text); font-weight: 700; }
.btn--sm { padding: 9px 14px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { padding: 16px 26px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); transition: background-color .25s, border-color .25s; border-bottom: 2px solid transparent; }
.nav--scrolled { background: rgba(10,7,18,0.9); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(217,70,239,.6)); }
.brand__name { font-family: "Russo One", sans-serif; font-size: 1.22rem; color: var(--white); letter-spacing: .5px; }
.brand__name-accent { color: var(--magenta); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .15s; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; background: var(--magenta); transition: right .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn):hover::after { right: 0; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: 150px 24px 70px; position: relative; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero__copy { text-align: left; }
.tag { display: inline-block; font-size: .62rem; color: var(--text); background: var(--surface-2); border: 2px solid var(--line-hi); padding: 8px 12px 6px; border-radius: 2px; margin-bottom: 22px; box-shadow: 3px 3px 0 var(--ink); }

.hero__title { font-size: clamp(3.2rem, 8.6vw, 6.4rem); color: var(--white); letter-spacing: 1px; margin-bottom: 20px; text-shadow: 4px 4px 0 #2A0E3A, 0 0 38px rgba(217,70,239,.4); }
.glitch { position: relative; animation: glitchShadow 7s infinite; }
@keyframes glitchShadow {
  0%, 90%, 100% { text-shadow: 4px 4px 0 #2A0E3A, 0 0 38px rgba(217,70,239,.4); }
  91% { text-shadow: -3px 0 0 var(--cyan), 3px 0 0 var(--pink), 4px 4px 0 #2A0E3A; transform: translate(2px,0); }
  93% { text-shadow: 3px 0 0 var(--cyan), -3px 0 0 var(--pink), 4px 4px 0 #2A0E3A; transform: translate(-2px,0); }
  95% { text-shadow: -2px 0 0 var(--cyan), 2px 0 0 var(--pink), 4px 4px 0 #2A0E3A; transform: translate(1px,0); }
  97% { text-shadow: 4px 4px 0 #2A0E3A, 0 0 38px rgba(217,70,239,.4); transform: none; }
}

.hero__tagline { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 48ch; margin-bottom: 28px; }
.hero__tagline strong { color: var(--magenta); }

/* Countdown */
.countdown { display: inline-block; margin-bottom: 26px; }
.countdown__label { display: block; font-size: .58rem; color: var(--magenta); margin-bottom: 10px; }
.countdown__clock { display: flex; gap: 8px; align-items: center; }
.countdown__sep { font-family: "Russo One", sans-serif; font-size: 1.8rem; color: var(--line-hi); align-self: flex-start; margin-top: 6px; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 10px 6px; background: var(--surface); border: 2px solid var(--line-hi); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); }
.countdown__unit b { font-family: "Russo One", sans-serif; font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(217,70,239,.5); }
.countdown__unit span { font-size: .62rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-top: 6px; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--muted); }
.hero__trust svg { color: var(--green); flex-shrink: 0; }

/* Hero scene — animated arena */
.hero__media { margin: 0; }
.scene { position: relative; aspect-ratio: 4/3.5; overflow: hidden; border: 2px solid var(--line-hi); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink), 0 0 50px rgba(217,70,239,.18); background: radial-gradient(80% 80% at 50% 38%, #1a0f33 0%, #0a0817 70%); display: grid; place-items: center; }
.scene__tag { position: absolute; top: 12px; left: 12px; z-index: 6; font-size: .5rem; color: #fff; background: rgba(4,2,10,.8); border: 1px solid var(--line-hi); padding: 6px 9px 4px; border-radius: 2px; display: inline-flex; align-items: center; gap: 6px; }
.scene__tag i { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 8px var(--green); display: inline-block; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.scene__grid { position: absolute; left: -25%; right: -25%; bottom: -10%; height: 70%; background-image: linear-gradient(rgba(56,189,248,.18) 2px, transparent 2px), linear-gradient(90deg, rgba(217,70,239,.16) 2px, transparent 2px); background-size: 40px 40px; transform: perspective(360px) rotateX(62deg); transform-origin: bottom; animation: gridrun 3.4s linear infinite; opacity: .8; }
@keyframes gridrun { to { background-position: 0 40px; } }
.scene__ring { position: absolute; border: 2px solid var(--magenta); border-radius: 3px; box-shadow: 0 0 22px rgba(217,70,239,.55), inset 0 0 22px rgba(217,70,239,.25); }
.scene__ring--1 { width: 66%; height: 66%; animation: close1 6s ease-in-out infinite; }
.scene__ring--2 { width: 40%; height: 40%; border-color: var(--cyan); box-shadow: 0 0 18px rgba(56,189,248,.5), inset 0 0 18px rgba(56,189,248,.2); animation: close2 6s ease-in-out infinite; }
@keyframes close1 { 0%,100% { width: 70%; height: 70%; opacity: .9; } 50% { width: 50%; height: 50%; opacity: 1; } }
@keyframes close2 { 0%,100% { width: 44%; height: 44%; opacity: .55; } 50% { width: 26%; height: 26%; opacity: .9; } }
.scene__core { position: absolute; width: 12px; height: 12px; background: var(--gold); box-shadow: 0 0 18px var(--gold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .7; } }
.scene__float { position: absolute; width: 30px; filter: drop-shadow(0 0 8px rgba(217,70,239,.6)); animation: bob 4s ease-in-out infinite; z-index: 4; }
.sf-1 { top: 24%; left: 18%; width: 28px; animation-delay: -.2s; }
.sf-2 { top: 58%; left: 72%; width: 24px; animation-delay: -1.4s; }
.sf-3 { top: 34%; left: 66%; width: 30px; animation-delay: -.8s; }
.sf-4 { top: 66%; left: 26%; width: 26px; animation-delay: -2s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
.scene__pod { position: absolute; top: -14%; width: 2px; height: 22px; background: linear-gradient(var(--cyan), transparent); opacity: 0; animation: pod 3.2s linear infinite; z-index: 3; }
.sp-1 { left: 32%; animation-delay: 0s; }
.sp-2 { left: 54%; animation-delay: 1.1s; }
.sp-3 { left: 70%; animation-delay: 2.2s; }
@keyframes pod { 0% { top: -14%; opacity: 0; } 10% { opacity: .9; } 80% { opacity: .9; } 100% { top: 64%; opacity: 0; } }
.scene__caption { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 6; font-size: .5rem; color: var(--muted); background: rgba(4,2,10,.6); border: 1px solid var(--line); padding: 6px 10px 4px; border-radius: 2px; white-space: nowrap; }

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee { overflow: hidden; border-block: 2px solid var(--line); background: linear-gradient(90deg, rgba(139,92,246,.12), rgba(217,70,239,.12)); padding: 12px 0; }
.marquee__track { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; animation: marquee 26s linear infinite; will-change: transform; }
.marquee__track span { font-family: "Press Start 2P", monospace; font-size: .72rem; color: var(--white); text-transform: uppercase; }
.marquee__track i { color: var(--magenta); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   STAT BAR
   ===================================================================== */
.stats { border-block: 2px solid var(--line); background: var(--bg-2); }
.stats__inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px; display: grid; grid-template-columns: repeat(4,1fr); }
.stat { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 8px; border-right: 2px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: "Russo One", sans-serif; font-size: clamp(1.8rem, 5vw, 2.7rem); color: var(--white); text-shadow: 0 0 18px rgba(217,70,239,.4); }
.stat__num.pixel-sm { font-family: "Press Start 2P", monospace; font-size: clamp(1.1rem,3.4vw,1.7rem); color: var(--magenta); }
.stat__label { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

/* =====================================================================
   FORMAT — steps
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { position: relative; padding: 30px 26px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); transition: transform .14s, box-shadow .14s, border-color .14s; overflow: hidden; }
.step::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.13) 3px 4px); opacity: 0; transition: opacity .2s; pointer-events: none; }
.step:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); border-color: var(--magenta-d); }
.step:hover::before { opacity: .5; }
.step__no { position: absolute; top: 16px; right: 18px; font-size: 1.1rem; color: var(--line-hi); }
.step__icon { width: 46px; height: 46px; margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(217,70,239,.6)); }
.step h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.step p { color: var(--muted); }
.step p strong { color: var(--text); }

/* =====================================================================
   SIGNATURE MODE + arena
   ===================================================================== */
.mode__feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.arena { display: flex; flex-direction: column; gap: 14px; }
.arena__field { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; border-radius: var(--r); border: 2px solid var(--line-hi); box-shadow: 6px 6px 0 var(--ink), 0 0 40px rgba(217,70,239,.15); overflow: hidden; background-color: #0a0817; background-image: linear-gradient(rgba(168,139,250,.06) 1px,transparent 1px), linear-gradient(90deg, rgba(168,139,250,.06) 1px, transparent 1px); background-size: 22px 22px, 22px 22px; }
#arenaCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arena__count { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: .5rem; color: #fff; background: rgba(4,2,10,.72); border: 1px solid var(--line-hi); padding: 5px 7px 3px; border-radius: 2px; }
.arena__caption { font-size: .56rem; color: var(--muted); }
.mode__lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li em { color: var(--cyan); font-style: normal; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--magenta); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }

/* =====================================================================
   SUPPLY DROP
   ===================================================================== */
.supply__feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.drop { position: relative; width: 100%; max-width: 380px; aspect-ratio: 3/4; margin-left: auto; border: 2px solid var(--line-hi); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink), 0 0 44px rgba(56,189,248,.16); overflow: hidden; background: linear-gradient(180deg, #160c2b 0%, #0a0817 100%); }
.drop__sky { position: absolute; inset: 0; }
.drop__ground { position: absolute; left: 0; right: 0; bottom: 16%; height: 2px; background: var(--line-hi); box-shadow: 0 0 14px rgba(217,70,239,.4); }
.drop__ground::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -40px; background: repeating-linear-gradient(90deg, rgba(168,139,250,.07) 0 1px, transparent 1px 22px); }
.drop__beam { position: absolute; left: 50%; top: 0; width: 56px; transform: translateX(-50%); height: 84%; background: linear-gradient(180deg, rgba(56,189,248,.35), rgba(217,70,239,.12) 70%, transparent); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); animation: beamPulse 5s ease-in-out infinite; }
@keyframes beamPulse { 0%,100% { opacity: .35; } 35% { opacity: .85; } 60% { opacity: .15; } }
.drop__crate { position: absolute; left: 50%; top: 0; width: 76px; transform: translate(-50%, -130%); filter: drop-shadow(0 0 14px rgba(217,70,239,.7)); animation: crateFall 5s cubic-bezier(.5,0,.7,1) infinite; }
@keyframes crateFall { 0% { transform: translate(-50%, -130%); } 32% { transform: translate(-50%, 150%); } 36% { transform: translate(-50%, 138%); } 40%,100% { transform: translate(-50%, 142%); } }
.drop__loot { position: absolute; left: 50%; top: 70%; opacity: 0; }
.drop__loot img { width: 24px; }
.drop__loot.dl-1 { animation: loot1 5s ease-out infinite; }
.drop__loot.dl-2 { animation: loot2 5s ease-out infinite; }
.drop__loot.dl-3 { animation: loot3 5s ease-out infinite; }
@keyframes loot1 { 0%,36% { transform: translate(-50%,0); opacity: 0; } 44% { opacity: 1; } 60% { transform: translate(-180%,-40px); opacity: .9; } 90%,100% { transform: translate(-180%,-30px); opacity: 0; } }
@keyframes loot2 { 0%,36% { transform: translate(-50%,0); opacity: 0; } 44% { opacity: 1; } 60% { transform: translate(40%,-54px); opacity: .9; } 90%,100% { transform: translate(40%,-44px); opacity: 0; } }
@keyframes loot3 { 0%,36% { transform: translate(-50%,0); opacity: 0; } 44% { opacity: 1; } 60% { transform: translate(90%,-30px); opacity: .9; } 90%,100% { transform: translate(90%,-22px); opacity: 0; } }
.drop__label { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); font-size: .5rem; color: var(--gold); background: rgba(4,2,10,.7); border: 1px solid var(--magenta-d); padding: 6px 10px 4px; border-radius: 2px; opacity: 0; animation: dropLabel 5s ease-out infinite; white-space: nowrap; }
@keyframes dropLabel { 0%,36% { opacity: 0; transform: translateX(-50%) translateY(6px); } 46% { opacity: 1; transform: translateX(-50%) translateY(0); } 92%,100% { opacity: 0; } }

/* =====================================================================
   FEATURE BENTO
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 64px; }
.bcard { position: relative; padding: 26px 24px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); transition: transform .14s, box-shadow .14s, border-color .14s; overflow: hidden; }
.bcard--wide { grid-column: span 2; }
.bcard:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); border-color: var(--magenta-d); }
.bcard__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; color: var(--magenta); background: var(--surface-2); border: 2px solid var(--line-hi); border-radius: var(--r); box-shadow: 0 0 18px rgba(217,70,239,.2); }
.bcard h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 9px; }
.bcard p { color: var(--muted); font-size: .94rem; }

/* Modifiers */
.mods__title { font-size: clamp(1.4rem,3.4vw,2rem); color: var(--white); }
.mods__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mod { padding: 22px 18px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); transition: transform .14s, box-shadow .14s, border-color .14s; }
.mod:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); border-color: var(--line-hi); }
.mod--live { border-color: var(--magenta-d); box-shadow: 5px 5px 0 var(--ink), 0 0 26px rgba(217,70,239,.18); }
.mod__tag { display: inline-block; font-size: .5rem; color: var(--muted); border: 1px solid var(--line-hi); padding: 5px 7px 3px; border-radius: 2px; margin-bottom: 12px; }
.mod--live .mod__tag { background: var(--grad); color: #fff; border-color: transparent; }
.mod h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 7px; }
.mod p { font-size: .88rem; color: var(--muted); }
.mods__foot { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.mods { margin-top: 8px; }

/* =====================================================================
   LEADERBOARD
   ===================================================================== */
.lb { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lb__card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.lb__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-2); border-bottom: 2px solid var(--line); }
.lb__head .pixel { font-size: .56rem; color: var(--magenta); }
.lb__live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); }
.lb__live i { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.4s steps(2) infinite; }
.lb__list { list-style: none; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.lb__row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; background: var(--bg-2); border: 2px solid transparent; border-radius: var(--r); }
.lb__rank { font-size: .8rem; color: var(--muted); text-align: center; }
.lb__name { color: var(--text); font-weight: 600; }
.lb__val { font-family: "Russo One", sans-serif; color: var(--white); }
.lb__row--1 { border-color: var(--gold); box-shadow: inset 0 0 18px rgba(251,191,36,.1); }
.lb__row--1 .lb__rank { color: var(--gold); }
.lb__row--2 { border-color: #c0c4d8; }
.lb__row--2 .lb__rank { color: #c0c4d8; }
.lb__row--3 { border-color: #cd7f4d; }
.lb__row--3 .lb__rank { color: #cd7f4d; }
.lb__note { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.lb__note code { color: var(--violet-bright); }

/* =====================================================================
   PRIZES — podium
   ===================================================================== */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; max-width: 600px; margin: 0 auto 26px; }
.podium__place { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 0; background: var(--surface); border: 2px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.podium__place--1 { border-color: var(--magenta-d); box-shadow: 0 0 30px rgba(217,70,239,.2); }
.podium__bar { width: 100%; margin-top: 12px; background: var(--grad); }
.podium__place--1 .podium__bar { height: 110px; }
.podium__place--2 .podium__bar { height: 72px; }
.podium__place--3 .podium__bar { height: 50px; }
.podium__medal { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1rem; color: #fff; background: var(--surface-2); border: 2px solid var(--line-hi); border-radius: var(--r); }
.podium__place--1 .podium__medal { background: var(--grad); border-color: transparent; }
.podium__amt { font-family: "Russo One", sans-serif; font-size: 1.7rem; color: var(--white); }
.podium__place--1 .podium__amt { font-size: 2.1rem; text-shadow: 0 0 18px rgba(251,191,36,.5); }
.podium__role { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); text-align: center; }
.podium__crown { position: absolute; top: -30px; width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(217,70,239,.8)); animation: bob 3s ease-in-out infinite; }
.prizes__note { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto; font-size: .94rem; }

/* =====================================================================
   SCHEDULE
   ===================================================================== */
.sched__list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.sched-card { position: relative; display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); transition: transform .14s, box-shadow .14s, border-color .14s; }
.sched-card:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); border-color: var(--line-hi); }
.sched-card--next { border-color: var(--magenta-d); box-shadow: 4px 4px 0 var(--ink), 0 0 26px rgba(217,70,239,.16); }
.sched-card__badge { position: absolute; top: -11px; left: 18px; font-size: .5rem; color: #fff; background: var(--grad); padding: 5px 9px 3px; border-radius: 2px; }
.sched-card__date { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px; background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r); }
.sched-card__date span { font-size: .6rem; letter-spacing: 1.5px; color: var(--magenta); }
.sched-card__date b { font-family: "Russo One", sans-serif; font-weight: 400; font-size: 1.7rem; color: var(--white); line-height: 1; }
.sched-card__body { flex: 1; }
.sched-card__body h3 { font-size: 1.12rem; color: var(--white); margin-bottom: 3px; }
.sched-card__body p { font-size: .88rem; color: var(--muted); }
.sched-card__pool { font-size: .8rem; color: #fff; background: var(--surface-2); border: 2px solid var(--line-hi); padding: 9px 12px 7px; border-radius: var(--r); white-space: nowrap; }
.sched-card--next .sched-card__pool { background: var(--grad); border-color: transparent; }

/* =====================================================================
   JOIN
   ===================================================================== */
.join__panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.join__steps { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 24px 0 28px; }
.join__steps li { display: flex; gap: 16px; align-items: flex-start; }
.join__steps span { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--grad); border-radius: var(--r); }
.join__steps strong { color: var(--white); display: block; margin-bottom: 2px; }
.join__steps p { color: var(--muted); font-size: .9rem; }
.rules { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.rules li { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); background: var(--surface); border: 2px solid var(--line); padding: 8px 12px; border-radius: var(--r); }
.rules .pixel { font-size: .6rem; color: var(--magenta); }
.join__right { display: flex; flex-direction: column; gap: 16px; }
.ip-card { padding: 22px; background: var(--bg-2); border: 2px dashed var(--line-hi); border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; }
.ip-card__label { font-size: .58rem; color: var(--magenta); }
.ip-card__copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; background: var(--surface); border: 2px solid var(--line-hi); border-radius: var(--r); padding: 14px 16px; font-size: clamp(1rem,3.2vw,1.35rem); color: #fff; transition: border-color .15s, background-color .15s; box-shadow: 3px 3px 0 var(--ink); }
.ip-card__copy:hover { border-color: var(--magenta); }
.ip-card__copy:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.ip-card__copy svg { color: var(--magenta); flex-shrink: 0; }
.ip-card__hint { font-size: .8rem; color: var(--muted); }
.dc-widget { padding: 18px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); }
.dc-widget__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--discord); }
.dc-widget__head strong { display: block; color: var(--white); font-size: 1rem; }
.dc-widget__head span { font-size: .8rem; color: var(--muted); }
.dc-widget__blurb { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__list { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s; }
.faq__item[open] { border-color: var(--line-hi); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--white); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 3px solid var(--magenta); outline-offset: -3px; }
.faq__chev { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__chev::before, .faq__chev::after { content: ""; position: absolute; top: 50%; width: 10px; height: 2px; background: var(--magenta); transition: transform .2s; }
.faq__chev::before { left: 0; transform: rotate(45deg); }
.faq__chev::after { right: 0; transform: rotate(-45deg); }
.faq__item[open] .faq__chev::before { transform: rotate(-45deg); }
.faq__item[open] .faq__chev::after { transform: rotate(45deg); }
.faq__answer { padding: 0 20px 18px; color: var(--muted); }

/* =====================================================================
   FINAL CTA
   ===================================================================== */
.finalcta { text-align: center; padding: 90px 24px; border-top: 2px solid var(--line); background: var(--bg-2); }
.finalcta__inner { max-width: 640px; margin: 0 auto; }
.finalcta__gem { width: 48px; height: 48px; margin: 0 auto 20px; filter: drop-shadow(0 0 14px rgba(217,70,239,.8)); animation: bob 3s ease-in-out infinite; }
.finalcta h2 { font-size: clamp(1.9rem,5vw,3rem); color: var(--white); margin-bottom: 14px; }
.finalcta p { color: var(--muted); font-size: 1.06rem; margin-bottom: 28px; }
.finalcta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 2px solid var(--line); background: var(--bg); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 54px 24px 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__tag { color: var(--muted); margin-top: 14px; max-width: 36ch; font-size: .92rem; }
.footer__col h4 { font-size: .62rem; color: var(--magenta); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-bottom: 16px; }
.social { width: 42px; height: 42px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); transition: color .15s, border-color .15s, transform .12s; }
.social:hover { color: #fff; border-color: var(--magenta); transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.footer__ip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 9px 12px; font-weight: 700; transition: border-color .15s; }
.footer__ip:hover { border-color: var(--magenta); }
.footer__ip-label { font-size: .5rem; background: var(--grad); color: #fff; padding: 4px 6px 2px; border-radius: 2px; }
.footer__bar { border-top: 2px solid var(--line); max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }

/* =====================================================================
   TOAST
   ===================================================================== */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(160%); z-index: var(--z-toast); padding: 13px 22px; color: #fff; font-weight: 700; background: var(--grad); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); transition: transform .3s cubic-bezier(.2,.9,.3,1.3); pointer-events: none; }
.toast--show { transform: translateX(-50%) translateY(0); }

/* =====================================================================
   SCROLL REVEAL (staggered)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.steps .step:nth-child(2), .bento .bcard:nth-child(2), .mods__grid .mod:nth-child(2), .lb__card:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3), .bento .bcard:nth-child(3), .mods__grid .mod:nth-child(3) { transition-delay: .16s; }
.bento .bcard:nth-child(4), .mods__grid .mod:nth-child(4) { transition-delay: .24s; }
.bento .bcard:nth-child(5) { transition-delay: .32s; }
.bento .bcard:nth-child(6) { transition-delay: .40s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .nav__links { position: fixed; inset: 0 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 88px 24px 26px; background: rgba(10,7,18,.98); border-bottom: 2px solid var(--line); transform: translateY(-100%); transition: transform .3s ease; }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 14px 6px; border-bottom: 2px solid var(--line); font-size: 1.05rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 12px; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .hero__media { order: -1; max-width: 460px; }
  .mode__feature, .supply__feature { grid-template-columns: 1fr; gap: 30px; }
  .supply__feature .mode__copy { order: 2; }
  .drop { order: 1; margin: 0 auto; max-width: 320px; }
  .arena { align-items: center; }
  .join__panel { grid-template-columns: 1fr; gap: 32px; }
  .steps, .mods__grid, .bento { grid-template-columns: 1fr 1fr; }
  .bcard--wide { grid-column: span 2; }
  .lb { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 70px 18px; }
  .hero { padding-top: 116px; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 2px solid var(--line); padding-bottom: 16px; }
  .steps, .mods__grid, .bento { grid-template-columns: 1fr; }
  .bcard--wide { grid-column: span 1; }
  .countdown__unit { min-width: 0; flex: 1; }
  .countdown__sep { display: none; }
  .sched-card { flex-wrap: wrap; }
  .sched-card__pool { margin-left: 84px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bar { flex-direction: column; text-align: center; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .crt { animation: none; }
  .drop__crate { transform: translate(-50%, 142%); }
  .drop__label { opacity: 1; }
  .marquee__track { animation: none; }
}

/* =====================================================================
   PATCH — GIF arena · how-it-runs pillars · payout methods · secret twists
   ===================================================================== */
/* Hero scene sized for gameplay footage; GIF covers the animated backdrop */
.scene { aspect-ratio: 16/10; }
.scene__gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; }

/* How-it-runs pillars (reuse .bcard, stacked) */
.pillars { display: flex; flex-direction: column; gap: 14px; }
.pillars .bcard { box-shadow: 4px 4px 0 var(--ink); }
.pillars .bcard__icon { width: 42px; height: 42px; margin-bottom: 12px; }
.pillars .bcard h3 { font-size: 1.12rem; }

/* Payout methods */
.pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 760px; margin: 0 auto 18px; }
.pay__label { font-size: .56rem; color: var(--magenta); }
.pay__methods { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pay__methods li { font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface); border: 2px solid var(--line-hi); border-radius: var(--r); padding: 7px 12px; box-shadow: 3px 3px 0 var(--ink); }
.pay__note { width: 100%; text-align: center; color: var(--muted); font-size: .9rem; }

/* Weekly twist — locked/secret cards (no spoilers) */
.mods__sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.mod--secret { position: relative; overflow: hidden; }
.mod--secret .mod__secret { filter: blur(6px); opacity: .5; user-select: none; pointer-events: none; }
.mod--secret .mod__secret h4 { color: var(--white); }
.mod--secret::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(56,189,248,.05) 8px 16px); pointer-events: none; }
.mod__lock { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .5rem; color: var(--cyan); text-shadow: 0 0 10px rgba(56,189,248,.5); }

/* Schedule — unrevealed weeks */
.sched-card--secret { border-style: dashed; }
.sched-card--secret .sched-card__body h3 { color: var(--muted); }

