:root {
  --bg: #08080f;
  --bg2: #0e0a1c;
  --fg: #f5f5ff;
  --dim: rgba(245, 245, 255, 0.55);
  --accent: #b6ff3d;
  --accent2: #ff3ec9;
  --accent3: #3ef0ff;
  --accent4: #ffd23e;
  --discord: #5865F2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- no selection / drag ---------- */
* {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
}
img { -webkit-user-drag: none; user-drag: none; }
::selection { background: transparent; }
::-moz-selection { background: transparent; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(182,255,61,0.12) 0 1px, transparent 2px 14vmin),
    radial-gradient(ellipse at 50% 35%, rgba(62,240,255,0.18) 0%, rgba(14,10,28,0.68) 34%, transparent 68%),
    radial-gradient(ellipse at 18% 18%, rgba(255,62,201,0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 82% 78%, rgba(255,210,62,0.12) 0%, transparent 38%),
    linear-gradient(135deg, #05060d 0%, var(--bg2) 48%, var(--bg) 100%);
  color: var(--fg);
  font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  cursor: crosshair;
}

/* ---------- scanlines ---------- */
.scanlines {
  position: fixed; inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 0 46%, rgba(0,0,0,0.45) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

/* ---------- background grid ---------- */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(182,255,61,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62,240,255,0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent 0 14vmin, rgba(182,255,61,0.16) 14.1vmin 14.25vmin, transparent 14.4vmin 26vmin, rgba(255,62,201,0.13) 26.1vmin 26.25vmin, transparent 26.4vmin 38vmin, rgba(62,240,255,0.12) 38.1vmin 38.2vmin, transparent 38.4vmin);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  mask-image: radial-gradient(ellipse at center, black 18%, rgba(0,0,0,0.75) 46%, transparent 86%);
  animation: gridShift 28s linear infinite;
  z-index: 0;
}
@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 72px 72px, -72px 72px, 0 0; }
}

/* ---------- color blobs ---------- */
.bg-blob {
  position: fixed;
  width: 44vmax; height: 44vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.blob1 { background: var(--accent);  top: -20%; left: -14%; animation: float1 20s ease-in-out infinite; }
.blob2 { background: var(--accent2); bottom: -18%; right: -14%; animation: float2 24s ease-in-out infinite; }
.blob3 { background: var(--accent3); top: 38%; left: 44%; animation: float3 30s ease-in-out infinite; opacity: 0.22; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(15vw, 10vh) scale(1.2); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-12vw, -10vh) scale(1.1); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-30%,-70%) scale(1.3); } }

/* ---------- token field ---------- */
.token-field {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.token {
  position: absolute;
  min-width: 84px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.018));
  box-shadow: 0 10px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
  color: rgba(245,245,255,0.46);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: tokenDrift var(--dur, 18s) ease-in-out infinite;
  transform: translate3d(0,0,0) rotate(var(--rot, 0deg));
}
.token.gold { color: rgba(255,210,62,0.64); border-color: rgba(255,210,62,0.18); }
.token.cyan { color: rgba(62,240,255,0.58); border-color: rgba(62,240,255,0.16); }
.token.pink { color: rgba(255,62,201,0.58); border-color: rgba(255,62,201,0.16); }
@keyframes tokenDrift {
  0%,100% { translate: 0 0; opacity: var(--op, 0.42); }
  50% { translate: var(--dx, 26px) var(--dy, -34px); opacity: calc(var(--op, 0.42) + 0.18); }
}

/* ---------- ambient particles ---------- */
.ambient-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

/* ---------- center stage ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 32px 24px 72px;
}

.logo-wrap {
  position: relative;
  width: min(38vmin, 320px);
  height: min(38vmin, 320px);
  display: grid;
  place-items: center;
  animation: logoDrift 18s ease-in-out infinite;
  will-change: transform;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}
.logo-spin {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  animation: logoTilt 13s ease-in-out infinite;
  will-change: transform;
}
.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(182, 255, 61, 0.55))
    drop-shadow(0 0 40px rgba(62, 240, 255, 0.35));
  transform: translate3d(0,0,0);
}
@keyframes logoDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25%      { transform: translate3d(10px, -14px, 0); }
  50%      { transform: translate3d(-8px, -8px, 0); }
  75%      { transform: translate3d(6px, 12px, 0); }
}
@keyframes logoTilt {
  0%, 100% { rotate: -2deg; }
  50%      { rotate:  2deg; }
}
@keyframes spinSlow {
  0%   { rotate: 0deg; }
  100% { rotate: 360deg; }
}
.logo-ring, .ring2 {
  position: absolute;
  inset: -14%;
  border: 2px dashed rgba(182, 255, 61, 0.55);
  border-radius: 50%;
  animation: spinRev 16s linear infinite;
  pointer-events: none;
}
.ring2 {
  inset: -26%;
  border-color: rgba(255, 62, 201, 0.45);
  border-style: dotted;
  animation: spinSlow 30s linear infinite;
}
@keyframes spinRev {
  0% { rotate: 360deg; }
  100% { rotate: 0deg; }
}

/* ---------- motto ---------- */
.motto {
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.05em;
  color: var(--dim);
  max-width: 36ch;
  line-height: 1.4;
  text-shadow: 0 0 12px rgba(182, 255, 61, 0.15);
}

/* ---------- loader ---------- */
.loader {
  width: min(520px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.loader-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.loader-label {
  color: var(--dim);
  text-transform: uppercase;
}
.loader-label::after {
  content: "▌";
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
  color: var(--accent3);
}
.loader-pct {
  font-weight: 900;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(182, 255, 61, 0.4);
}
@keyframes caret { 50% { opacity: 0; } }

.loader-bar {
  position: relative;
  height: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.loader-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 51%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent3) 50%, var(--accent2) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  box-shadow: 0 0 22px rgba(182, 255, 61, 0.45);
  transition: width 0.4s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.loader-spark {
  position: absolute;
  top: 50%;
  left: 51%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(2px);
  opacity: 0.9;
  box-shadow: 0 0 18px var(--accent), 0 0 36px var(--accent3);
  transition: left 0.4s cubic-bezier(.2,.9,.3,1.1);
}
.loader-hint {
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.loader-hint .wink {
  color: var(--accent4);
  font-style: italic;
}

/* ---------- announcement ---------- */
.announce {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.announce-line {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.04em;
}
.announce-line.dim {
  color: var(--dim);
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
}
#countdown {
  font-weight: 700;
  color: var(--accent3);
  font-variant-numeric: tabular-nums;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.cta,
.cta:link, .cta:visited, .cta:hover, .cta:active, .cta:focus {
  color: var(--fg);
  text-decoration: none;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.cta:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--accent3);
  background: rgba(62, 240, 255, 0.08);
  box-shadow: 0 0 24px rgba(62, 240, 255, 0.35);
}
.cta:active { transform: translateY(0) scale(0.98); }
.cta-primary {
  background: linear-gradient(90deg, rgba(182,255,61,0.18), rgba(62,240,255,0.18));
  border-color: rgba(182,255,61,0.45);
}
.cta-primary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(182, 255, 61, 0.5);
}
.cta.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.cta.disabled:hover { transform: none; box-shadow: none; border-color: rgba(182,255,61,0.45); background: linear-gradient(90deg, rgba(182,255,61,0.18), rgba(62,240,255,0.18)); }
.cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent4);
  box-shadow: 0 0 8px var(--accent4);
  animation: ctaPulse 1.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { opacity: 1;   transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.7); }
}
.cta-arrow { transition: transform 0.2s ease; }
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ---------- footer ---------- */
.foot {
  position: fixed;
  bottom: 14px; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.08em;
}
.foot a, .foot a:visited { color: var(--fg); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.3); }
.foot a:hover { color: var(--accent); border-color: var(--accent); }
.foot .sep { margin: 0 8px; opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
