@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323:wght@400&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-deep:               #05000f;
  --bg-card:               #0e0020;
  --bg-card2:              #160030;
  --purple-bright:         #a855f7;
  --purple-mid:            #7c3aed;
  --purple-dark:           #3b0764;
  --gold:                  #fbbf24;
  --gold-dark:             #d97706;
  --sol-purple:            #9945FF;
  --sol-green:             #14F195;
  --text-main:             #e2d9f3;
  --text-dim:              #7c6fa0;
  --text-faint:            #3d2f5a;
  --red:                   #ef4444;
  --green:                 #22c55e;
  --cyan:                  #06b6d4;
  --border:                #2a1045;
  --border-bright:         #6d28d9;
  --pixel-shadow:          4px 4px 0px #000;
  --pixel-shadow-gold:     4px 4px 0px #92400e;
  --pixel-shadow-purple:   4px 4px 0px #3b0764;
  --font-main:  'Inter', system-ui, sans-serif;
  --font-deco:  'Press Start 2P', monospace;
  --font-vt:    'VT323', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, .pixel-font {
  font-family: var(--font-deco);
  line-height: 1.6;
}

a { color: var(--purple-bright); text-decoration: none; }

img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── SCANLINES ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
}

/* ── CUSTOM CURSOR ── */
#custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--purple-bright);
  font-family: var(--font-deco);
  text-shadow: 0 0 8px var(--purple-bright);
  transition: color 0.15s;
  line-height: 1;
}

#cursor-trail-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
}

.cursor-trail-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--purple-bright);
  border-radius: 0;
  pointer-events: none;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: trail-fade 0.4s ease forwards;
}

@keyframes trail-fade {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0;   transform: translate(-50%, -50%) scale(0); }
}

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 9995;
  background: linear-gradient(90deg, var(--sol-purple), var(--sol-green));
  transition: width 0.1s linear;
}

/* ── PAGE TRANSITION ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.page-transition.flash {
  animation: ptflash 0.25s ease forwards;
}
@keyframes ptflash {
  0%   { opacity: 0.6; }
  100% { opacity: 0; }
}

/* ── SECTION BASE ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: var(--font-deco);
  font-size: clamp(14px, 2vw, 22px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(168,85,247,0.4), var(--pixel-shadow);
}

.section-sub {
  font-family: var(--font-vt);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 0 auto;
  max-width: 800px;
  opacity: 0.4;
}

/* ── PIXEL BUTTONS ── */
.btn-pixel {
  font-family: var(--font-deco);
  font-size: 11px;
  padding: 14px 28px;
  background: var(--purple-mid);
  color: #fff;
  border: 3px solid var(--purple-bright);
  box-shadow: 4px 4px 0px var(--purple-dark), inset 0 0 0 1px rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s, background 0.1s;
  display: inline-block;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
  outline: none;
  text-decoration: none;
}
.btn-pixel:hover {
  background: var(--purple-bright);
  border-color: #c084fc;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0px var(--purple-dark);
}
.btn-pixel:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--purple-dark);
}

.btn-pixel.gold {
  background: var(--gold-dark);
  border-color: var(--gold);
  box-shadow: 4px 4px 0px #78350f;
  color: #000;
}
.btn-pixel.gold:hover {
  background: var(--gold);
  border-color: #fde68a;
  box-shadow: 6px 6px 0px #78350f;
  color: #000;
}
.btn-pixel.gold:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #78350f;
}

.btn-pixel.sol {
  background: var(--sol-purple);
  border-color: var(--sol-green);
  box-shadow: 4px 4px 0px #1a0060;
  color: #fff;
}
.btn-pixel.sol:hover {
  background: #7b2ff7;
  box-shadow: 6px 6px 0px #1a0060;
}

/* shimmer */
.shimmer-btn {
  overflow: hidden;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s ease infinite;
}
@keyframes shimmer {
  0%   { left: -100%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}

/* ── SCROLL TO TOP ── */
#scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8000;
  font-family: var(--font-deco);
  font-size: 10px;
  padding: 10px 12px;
  background: var(--bg-card2);
  color: var(--purple-bright);
  border: 2px solid var(--border-bright);
  box-shadow: var(--pixel-shadow-purple);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}
#scroll-top-btn:hover {
  background: var(--purple-mid);
  color: #fff;
}

/* ── TOAST (LIVE FEED) ── */
#live-feed-wrap {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 8001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.feed-toast {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--sol-green);
  background: rgba(14,0,32,0.92);
  border: 1px solid var(--border-bright);
  padding: 8px 14px;
  box-shadow: var(--pixel-shadow-purple);
  opacity: 0;
  transform: translateX(-12px);
  animation: toast-in 0.3s ease forwards, toast-out 0.3s ease 3.5s forwards;
  max-width: 280px;
}
@keyframes toast-in {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(-12px); }
}

/* ── GLITCH ── */
@keyframes glitch-1 {
  0%, 90%, 100% { clip-path: none; transform: translate(0); }
  92% { clip-path: polygon(0 10%, 100% 10%, 100% 40%, 0 40%); transform: translate(-4px, 0); }
  94% { clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%); transform: translate(4px, 0); }
  96% { clip-path: polygon(0 20%, 100% 20%, 100% 30%, 0 30%); transform: translate(-2px, 0); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { clip-path: none; transform: translate(0); opacity: 0; }
  92% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(4px); opacity: 0.7; }
  94% { clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%); transform: translate(-4px); opacity: 0.7; }
  96% { clip-path: none; opacity: 0; }
}

/* ── FLOAT ANIMATION ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

/* ── ORBIT ── */
@keyframes orbit {
  from { transform: rotate(0deg) translateX(52px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(52px) rotate(-360deg); }
}

/* ── PULSE RINGS ── */
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── MONSTER ANIMATIONS ── */
@keyframes imp-shake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  20%      { transform: translateX(-4px) rotate(-3deg); }
  40%      { transform: translateX(4px) rotate(3deg); }
  60%      { transform: translateX(-3px) rotate(-2deg); }
  80%      { transform: translateX(3px) rotate(2deg); }
}
@keyframes wraith-float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes crawler-pulse {
  0%,100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.06); filter: brightness(1.3); }
}
@keyframes drake-sway {
  0%,100% { transform: rotate(0deg); }
  25%      { transform: rotate(4deg); }
  75%      { transform: rotate(-4deg); }
}
@keyframes titan-pulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(239,68,68,0.4)); }
  50%      { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(239,68,68,0.8)); }
}

/* ── EVO LINE FILL ── */
@keyframes evo-line-fill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── MARQUEE ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SCAN ── */
@keyframes scan-line {
  0%   { top: 0%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── LOADER ANIMATIONS ── */
@keyframes loader-glow {
  0%,100% { text-shadow: 0 0 10px rgba(251,191,36,0.4), 2px 2px 0 #000; }
  50%      { text-shadow: 0 0 30px rgba(251,191,36,0.8), 0 0 60px rgba(251,191,36,0.3), 2px 2px 0 #000; }
}
@keyframes log-fade {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── FC FLIP ── */
.fc-flip {
  perspective: 600px;
}
.fc-flip .fc-front,
.fc-flip .fc-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.5s ease;
  position: absolute;
  inset: 0;
}
.fc-flip .fc-back {
  transform: rotateY(180deg);
}
.fc-flip:hover .fc-front {
  transform: rotateY(-180deg);
}
.fc-flip:hover .fc-back {
  transform: rotateY(0deg);
}

/* ── MUTE BTN ── */
.nav-mute {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.nav-mute:hover { color: var(--gold); border-color: var(--gold); }
.nav-mute.muted { color: var(--red); border-color: var(--red); }

/* ── RESPONSIVNESS HELPERS ── */
@media (max-width: 768px) {
  .section { padding: 60px 16px; }
  .section-title { font-size: 12px; }
}
