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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #020712;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  cursor: none;
}

body {
  background:
    radial-gradient(circle at 50% 45%, rgba(0,255,210,0.10), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(0,120,255,0.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(120,0,255,0.08), transparent 25%),
    linear-gradient(135deg, #020712, #06111f 55%, #01030a);
}

/* ─── Custom cursor ─── */
.cursor-dot {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,255,210,0.9);
  box-shadow: 0 0 10px rgba(0,255,210,0.8);
  transform: translate(-50%,-50%);
}
.cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(0,255,210,0.4);
  transform: translate(-50%,-50%);
  transition: all 0.12s ease;
}
.cursor-trail {
  position: fixed; z-index: 9997; pointer-events: none;
  border-radius: 50%; transform: translate(-50%,-50%);
  animation: trailFade 0.6s ease forwards;
}

/* ─── Canvas ─── */
#fabricCanvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  display: block; opacity: 0;
  animation: canvasFadeIn 1.8s ease forwards;
}

/* ─── Aurora ─── */
.aurora { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.aurora-band {
  position: absolute; width: 200%; height: 300px;
  border-radius: 50%; filter: blur(60px); opacity: 0;
  animation: auroraFloat linear infinite;
}
.aurora-band:nth-child(1) { background: linear-gradient(90deg, transparent, rgba(0,255,150,0.12), rgba(0,200,255,0.08), transparent); top: 10%; animation-duration: 18s; }
.aurora-band:nth-child(2) { background: linear-gradient(90deg, transparent, rgba(100,0,255,0.08), rgba(0,150,255,0.10), transparent); top: 30%; animation-duration: 24s; animation-delay: -8s; }
.aurora-band:nth-child(3) { background: linear-gradient(90deg, transparent, rgba(0,255,200,0.06), rgba(50,0,200,0.08), transparent); top: 60%; animation-duration: 20s; animation-delay: -4s; }

/* ─── Orbs ─── */
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 2; filter: blur(40px); opacity: 0; animation: orbFloat ease-in-out infinite; }
.orb-1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,255,210,0.12), transparent 70%); top: 10%; left: 5%; animation-duration: 14s; }
.orb-2 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(0,100,255,0.15), transparent 70%); top: 60%; right: 8%; animation-duration: 18s; animation-delay: -5s; }
.orb-3 { width: 150px; height: 150px; background: radial-gradient(circle, rgba(150,0,255,0.12), transparent 70%); bottom: 20%; left: 20%; animation-duration: 12s; animation-delay: -3s; }

/* ─── Scanline ─── */
body::before {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none; z-index: 10;
  animation: scanMove 8s linear infinite;
}

/* ─── Vignette ─── */
body::after {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.75) 100%);
  pointer-events: none; z-index: 2;
}

/* ─── Corners ─── */
.corner { position: fixed; width: 60px; height: 60px; z-index: 20; opacity: 0; animation: cornerFadeIn 1s ease forwards; animation-delay: 1.2s; }
.corner-tl { top: 20px; left: 20px; border-top: 2px solid rgba(0,255,210,0.6); border-left: 2px solid rgba(0,255,210,0.6); }
.corner-tr { top: 20px; right: 20px; border-top: 2px solid rgba(0,255,210,0.6); border-right: 2px solid rgba(0,255,210,0.6); }
.corner-bl { bottom: 20px; left: 20px; border-bottom: 2px solid rgba(0,255,210,0.6); border-left: 2px solid rgba(0,255,210,0.6); }
.corner-br { bottom: 20px; right: 20px; border-bottom: 2px solid rgba(0,255,210,0.6); border-right: 2px solid rgba(0,255,210,0.6); }
.corner::before { content: ''; position: absolute; width: 6px; height: 6px; background: rgba(0,255,210,0.9); border-radius: 50%; box-shadow: 0 0 8px rgba(0,255,210,0.8); }
.corner-tl::before { top: -3px; left: -3px; }
.corner-tr::before { top: -3px; right: -3px; }
.corner-bl::before { bottom: -3px; left: -3px; }
.corner-br::before { bottom: -3px; right: -3px; }

/* ─── Live clock ─── */
.live-clock { position: fixed; top: 20px; right: 80px; z-index: 20; opacity: 0; animation: cornerFadeIn 1s ease forwards; animation-delay: 1.4s; text-align: right; }
.clock-time { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: rgba(0,255,210,0.8); font-variant-numeric: tabular-nums; }
.clock-date { font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-top: 2px; }

/* ─── Status bar ─── */
.status-bar { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; z-index: 20; opacity: 0; animation: fadeSlideDown 0.8s ease forwards; animation-delay: 1.4s; }
.status-dot { width: 6px; height: 6px; background: #00ffd2; border-radius: 50%; box-shadow: 0 0 8px #00ffd2; animation: pulse 2s ease infinite; }
.status-text { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,255,210,0.8); }

/* ═══ MAIN LAYOUT ═══ */
.layout {
  position: fixed; inset: 0; z-index: 15;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 80px 40px 80px;
  pointer-events: none;
}

/* ─── TOP ─── */
.layout-top {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  opacity: 0; animation: heroEnter 1s ease forwards; animation-delay: 0.4s;
}

/* ─── CENTER ─── */
.layout-center {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  opacity: 0; animation: heroEnter 1.2s ease forwards; animation-delay: 0.6s;
  transition: transform 0.15s ease;
}

/* ─── BOTTOM ─── */
.layout-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; animation: heroEnter 1s ease forwards; animation-delay: 0.9s;
  pointer-events: auto;
}

/* ─── Badge ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border: 1px solid rgba(0,255,210,0.3);
  border-radius: 999px; background: rgba(0,255,210,0.06);
  backdrop-filter: blur(8px); cursor: pointer;
  pointer-events: auto; position: relative; z-index: 9999;
}
.badge-dot { width: 5px; height: 5px; background: #00ffd2; border-radius: 50%; box-shadow: 0 0 6px #00ffd2; animation: pulse 1.5s ease infinite; }
.badge-text { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,255,210,0.9); }

/* changelog via JS */
.changelog {
  display: none; position: fixed;
  background: rgba(6,17,31,0.98); border: 1px solid rgba(0,255,210,0.2);
  border-radius: 12px; padding: 12px 16px; min-width: 220px;
  backdrop-filter: blur(12px); text-align: left;
  z-index: 99999; pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(0,255,210,0.1);
}
.changelog-title { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,255,210,0.7); margin-bottom: 8px; }
.changelog-item { font-size: 11px; color: rgba(255,255,255,0.6); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.changelog-item:last-child { border-bottom: none; }
.changelog-item span { color: rgba(0,255,210,0.8); font-weight: 600; margin-right: 6px; }

/* ─── Title ─── */
.layout-center h1 {
  font-size: clamp(56px, 8vw, 110px); line-height: 1.0;
  font-weight: 900; letter-spacing: -0.03em; color: #ffffff;
  text-shadow: 0 0 20px rgba(0,255,220,0.8), 0 0 60px rgba(0,180,255,0.35), 0 0 100px rgba(0,100,255,0.2);
  animation: glitch 6s ease infinite; animation-delay: 2s;
}

.layout-center p { margin-top: 14px; font-size: clamp(14px,1.4vw,20px); color: rgba(200,240,255,0.7); letter-spacing: 0.04em; font-weight: 300; min-height: 1.6em; }
.cursor { display: inline-block; width: 2px; height: 1em; background: rgba(0,255,210,0.9); margin-left: 2px; vertical-align: middle; animation: blink 1s step-end infinite; }

/* ─── Stats ─── */
.stats { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 28px; }
.stat-item { text-align: center; }
.stat-value { font-size: clamp(22px,2.5vw,32px); font-weight: 900; color: #ffffff; letter-spacing: -0.02em; text-shadow: 0 0 20px rgba(0,255,210,0.5); }
.stat-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(0,255,210,0.6); margin-top: 2px; }
.stat-divider { width: 1px; height: 32px; background: rgba(0,255,210,0.2); }

/* ─── Platforms ─── */
.platforms-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0,255,210,0.5); }
.platform-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.platform-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 32px; min-width: 140px;
  border: 1px solid rgba(0,255,210,0.3);
  background: rgba(0,255,210,0.06);
  border-radius: 16px; cursor: pointer; pointer-events: auto;
  transition: all 0.3s ease; backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.platform-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,255,210,0.08), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.platform-btn:hover::before { opacity: 1; }
.platform-btn:hover {
  border-color: rgba(0,255,210,0.8);
  box-shadow: 0 0 24px rgba(0,255,210,0.25), 0 8px 24px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}
.platform-icon { font-size: 28px; }
.platform-name { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.platform-desc { font-size: 10px; color: rgba(0,255,210,0.6); font-weight: 500; letter-spacing: 0.06em; }
.platform-soon { opacity: 0.4; cursor: not-allowed; }
.platform-soon:hover { transform: none !important; box-shadow: none !important; border-color: rgba(0,255,210,0.3) !important; }

/* ─── Loading bar ─── */
.loading-bar-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 99999; }
.loading-bar { height: 100%; width: 0%; background: linear-gradient(90deg, rgba(0,255,210,0.8), rgba(0,150,255,0.8), rgba(0,255,210,0.8)); background-size: 200% 100%; box-shadow: 0 0 10px rgba(0,255,210,0.8); transition: width 0.1s ease; animation: barShimmer 1.5s linear infinite; }

/* ─── Sound btn ─── */
.sound-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(0,255,210,0.3); background: rgba(0,255,210,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 1; transition: all 0.3s ease; backdrop-filter: blur(8px);
}
.sound-btn:hover { background: rgba(0,255,210,0.14); border-color: rgba(0,255,210,0.7); box-shadow: 0 0 16px rgba(0,255,210,0.3); }

/* ─── Skip btn ─── */
.skip-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  opacity: 1; transition: all 0.3s ease; backdrop-filter: blur(8px);
}
.skip-btn:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

/* ─── Sound wave ─── */
.sound-wave { display: flex; align-items: center; gap: 2px; }
.sound-wave span { display: block; width: 2px; border-radius: 2px; background: rgba(0,255,210,0.8); animation: soundWave 0.8s ease infinite; }
.sound-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.sound-wave span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.sound-wave span:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { height: 4px; animation-delay: 0.45s; }

/* ─── Bottom bar ─── */
.bottom-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; z-index: 20; opacity: 0; animation: fadeSlideUp 0.8s ease forwards; animation-delay: 1.6s; }
.bottom-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.22); }
.bottom-divider { width: 40px; height: 1px; background: rgba(0,255,210,0.2); }

/* ─── Particles ─── */
.particle { position: fixed; border-radius: 50%; pointer-events: none; z-index: 3; animation: floatParticle linear infinite; }

/* ─── Keyframes ─── */
@keyframes canvasFadeIn { from { opacity:0; filter:blur(12px); } to { opacity:1; filter:blur(0); } }
@keyframes heroEnter { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes cornerFadeIn { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes fadeSlideDown { from { opacity:0; transform:translateX(-50%) translateY(-10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes fadeSlideUp { from { opacity:0; transform:translateX(-50%) translateY(10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes scanMove { from { background-position:0 0; } to { background-position:0 100px; } }
@keyframes trailFade { from { opacity:0.6; transform:translate(-50%,-50%) scale(1); } to { opacity:0; transform:translate(-50%,-50%) scale(0.2); } }
@keyframes floatParticle { 0% { transform:translateY(100vh) scale(0); opacity:0; } 10% { opacity:1; } 90% { opacity:1; } 100% { transform:translateY(-10vh) scale(1); opacity:0; } }
@keyframes auroraFloat { 0% { transform:translateX(-50%); opacity:0; } 20% { opacity:1; } 80% { opacity:1; } 100% { transform:translateX(0%); opacity:0; } }
@keyframes orbFloat { 0%,100% { transform:translateY(0) scale(1); opacity:0.6; } 50% { transform:translateY(-30px) scale(1.05); opacity:0.9; } }
@keyframes barShimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
@keyframes soundWave { 0%,100% { transform:scaleY(1); } 50% { transform:scaleY(0.3); } }
@keyframes glitch {
  0%,90%,100% { text-shadow:0 0 20px rgba(0,255,220,0.8),0 0 60px rgba(0,180,255,0.35); transform:none; }
  92% { text-shadow:-3px 0 rgba(255,0,100,0.7),3px 0 rgba(0,255,210,0.7); transform:skewX(-1deg); }
  94% { text-shadow:3px 0 rgba(255,0,100,0.7),-3px 0 rgba(0,255,210,0.7); transform:skewX(1deg); }
  96% { text-shadow:0 0 20px rgba(0,255,220,0.8),0 0 60px rgba(0,180,255,0.35); transform:none; }
}

@media (max-width: 768px) {
  .layout { padding: 70px 20px 70px; }
  .layout-center h1 { font-size: clamp(42px,12vw,64px); }
  .layout-center p { font-size: 14px; }
  .stats { gap: 20px; }
  .stat-value { font-size: 22px; }
  .corner { width: 40px; height: 40px; }
  .live-clock { display: none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .platform-btn { padding: 14px 24px; min-width: 120px; }
}
