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

/* tokens */
:root {
  --orange:  #FF6B2B;
  --orange-d:#d44e14;
  --green:   #39d353;
  --green-d: #2aaa3f;

  /* DARK (default) — deep space gaming */
  --bg:       #080810;
  --bg-2:     #0e0e1c;
  --bg-3:     #141428;
  --bg-card:  #111120;
  --border:   #1e1e3a;
  --border-hi:#2a2a50;
  --text:     #e8e8ff;
  --text-2:   #9090c0;
  --text-3:   #4a4a7a;
  --scanline: rgba(0,0,10,0.45);
  --glow-o:   0 0 20px rgba(255,107,43,0.5);
  --glow-g:   0 0 20px rgba(57,211,83,0.4);
  --pixel-shadow: 4px 4px 0px rgba(255,107,43,0.5);
}

[data-theme="light"] {
  --bg:       #f0f5e8;
  --bg-2:     #e2eed4;
  --bg-3:     #d4e6c0;
  --bg-card:  #f8faf3;
  --border:   #c8d8b0;
  --border-hi:#a0c080;
  --text:     #1a2810;
  --text-2:   #4a6030;
  --text-3:   #8aaa60;
  --scanline: rgba(0,0,0,0);
  --glow-o:   0 0 20px rgba(255,107,43,0.2);
  --glow-g:   0 0 20px rgba(57,211,83,0.15);
  --pixel-shadow: 4px 4px 0px rgba(0,0,0,0.15);
}

/* base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.px { font-family: 'Press Start 2P', monospace; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--orange); }

/* scanlines — filter:blur killed perf on iGPUs so dropped it */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--scanline) 0px,
    var(--scanline) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
  transition: opacity 0.4s;
}

/* opacity:0 still renders the gradient on some browsers, just kill it */
[data-theme="light"] body::before { display: none; }

/* nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 64px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--border-hi);
}

.nav-logo {
  height: 34px;
  width: auto;
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  color: var(--text-2);
  transition: color 0.15s;
  border: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--orange);
  border-color: var(--border-hi);
}

.nav-links a.cta {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  font-weight: 700;
}

.nav-links a.cta:hover {
  background: var(--orange-d);
  border-color: var(--orange-d);
  box-shadow: var(--glow-o);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* theme toggle */
.power-toggle {
  position: relative;
  width: 36px;
  height: 36px;
}

.power-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.power-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--border-hi);
  background: var(--bg-2);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.power-btn::before {
  content: '⏻';
  font-size: 1rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.power-toggle input:checked + .power-btn {
  border-color: var(--orange);
  background: rgba(255,107,43,0.1);
}

.power-toggle input:checked + .power-btn::before {
  color: var(--orange);
  text-shadow: var(--glow-o);
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(20px, 5vw, 80px) 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  height: clamp(100px, 18vw, 220px);
  width: auto;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(255,107,43,0.55));
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(255,107,43,0.55)); }
  50%       { filter: drop-shadow(0 0 60px rgba(255,107,43,0.85)); }
}

.hero-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.hero-label::before { content: '> '; opacity: 0.5; }

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3.5vw, 2.8rem);
  line-height: 1.5;
  color: var(--text);
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
}

.hero-title .accent { color: var(--orange); }

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  font-family: 'Press Start 2P', monospace;
}

.glitch::before {
  color: var(--green);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-1 4s infinite linear;
}

.glitch::after {
  color: var(--orange);
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-2 4s infinite linear;
}

/* glitch keyframes — 4s loop, fires at 90-97% so it's not in your face */
@keyframes glitch-1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92%           { transform: translate(-4px, 1px); opacity: 1; }
  94%           { transform: translate(4px, -1px); opacity: 1; }
  96%           { transform: translate(0); opacity: 0; }
}

@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93%           { transform: translate(4px, 2px); opacity: 1; }
  95%           { transform: translate(-4px, -2px); opacity: 1; }
  97%           { transform: translate(0); opacity: 0; }
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.btn-pixel {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  background: var(--orange);
  color: #000;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.1s;
  box-shadow:
    0 4px 0 var(--orange-d),
    0 6px 0 rgba(0,0,0,0.4);
}

.btn-pixel:hover {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 var(--orange-d),
    0 4px 0 rgba(0,0,0,0.4);
}

.btn-pixel:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-pixel-outline {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-2);
  border: 2px solid var(--border-hi);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow:
    0 4px 0 var(--border),
    0 6px 0 rgba(0,0,0,0.3);
}

.btn-pixel-outline:hover {
  color: var(--green);
  border-color: var(--green);
  box-shadow:
    0 4px 0 rgba(57,211,83,0.3),
    var(--glow-g);
  transform: translateY(2px);
}

.hud-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 2px solid var(--border-hi);
  background: var(--bg-2);
  padding: 12px 24px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hud-bar:hover { border-color: var(--orange); }

.hud-bar::before {
  content: '';
  position: absolute;
  top: -6px; left: 20px;
  width: 60px;
  height: 4px;
  background: var(--bg);
}

.hud-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--green);
  text-shadow: var(--glow-g);
}

.hud-copy {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  padding: 6px 10px;
  border: 1px solid var(--border-hi);
  color: var(--text-3);
  background: none;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.05em;
}

.hud-copy:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ticker */
.ticker {
  background: var(--orange);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--orange-d);
  border-bottom: 2px solid var(--orange-d);
}

.ticker-inner {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #000;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
}

.ticker-item::before { content: '★'; font-size: 0.4rem; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* features */
.section {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 72px);
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.section-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--green);
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 2px solid var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="light"] .section-tag { text-shadow: none; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.section-title em {
  font-style: normal;
  color: var(--orange);
}

.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.achieve-grid .wide { grid-column: span 2; }

@media (max-width: 700px) {
  .achieve-grid .wide { grid-column: span 1; }
}

.achieve-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  cursor: default;
}

.achieve-card::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--border-hi);
  pointer-events: none;
  transition: border-color 0.2s;
}

.achieve-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.achieve-card:hover::before { border-color: var(--orange); opacity: 0.4; }

/* shimmer — ::before was taken by the inner border, ::after is free */
.achieve-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.5s ease;
}

.achieve-card:hover::after { left: 150%; }

.achieve-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.achieve-body { flex: 1; min-width: 0; }

.achieve-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.achieve-badge::before {
  content: '🏆';
  font-size: 0.7rem;
  font-family: sans-serif;
}

.achieve-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.achieve-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

.achieve-stat {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--orange);
  text-shadow: var(--glow-o);
  margin-bottom: 8px;
  line-height: 1.2;
}

.achieve-stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* vote */
.vote-bg {
  background: var(--bg-2);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  transition: background 0.4s;
}

.vote-menu {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--border-hi);
}

.vote-item {
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.vote-item:nth-child(3n) { border-right: none; }
.vote-item:nth-last-child(-n+3) { border-bottom: none; }

.vote-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  transition: background 0.15s;
  position: relative;
}

.vote-item a::before {
  content: '▶';
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: transparent;
  transition: color 0.15s, text-shadow 0.15s;
  flex-shrink: 0;
}

.vote-item a:hover { background: var(--bg-3); }

.vote-item a:hover::before {
  color: var(--orange);
  text-shadow: var(--glow-o);
}

.vote-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--orange);
  flex-shrink: 0;
  min-width: 24px;
}

.vote-text {
  flex: 1;
}

.vote-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.15s;
}

.vote-item a:hover .vote-name { color: var(--orange); }

.vote-site {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.vote-reward {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--green);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* discord */
.discord-zone {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 72px);
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.discord-left .section-tag { margin-bottom: 20px; display: inline-flex; }

.discord-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.discord-headline em {
  font-style: normal;
  color: var(--orange);
}

.discord-copy {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.discord-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.discord-features-list li {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--text-2);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-features-list li::before {
  content: '✓';
  color: var(--green);
  text-shadow: var(--glow-g);
}

.btn-discord {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  padding: 16px 28px;
  background: #5865F2;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s;
  box-shadow: 0 4px 0 #3742c4, 0 6px 0 rgba(0,0,0,0.3);
}

.btn-discord:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #3742c4, 0 4px 0 rgba(0,0,0,0.3);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: 14px 18px;
  position: relative;
  max-width: 90%;
  transition: border-color 0.4s;
}

.chat-bubble::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--border-hi);
  pointer-events: none;
}

.chat-bubble.right {
  align-self: flex-end;
  border-color: rgba(88,101,242,0.4);
}

.chat-bubble.right::before { border-color: rgba(88,101,242,0.25); }

.chat-meta {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-3);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  display: flex;
  gap: 10px;
}

.chat-meta .author { color: var(--orange); }
.chat-bubble.right .chat-meta .author { color: #7289da; }

.chat-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}


.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* footer */
footer {
  background: var(--bg-2);
  border-top: 2px solid var(--border);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 72px) 28px;
  transition: background 0.4s;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.footer-logo { height: 36px; }

.footer-links {
  display: flex;
  gap: 0;
}

.footer-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  color: var(--text-3);
  border: 1px solid var(--border);
  margin-left: -1px;
  transition: all 0.15s;
}

.footer-links a:hover { color: var(--orange); border-color: var(--border-hi); z-index: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.online-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--green);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: var(--glow-g);
  animation: blinkon 2s ease infinite;
}

@keyframes blinkon {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* toast */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-card);
  border: 2px solid var(--green);
  padding: 14px 20px;
  z-index: 999;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--glow-g);
}

.toast.show { transform: translateX(0); }

.toast-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.toast-sub {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* responsive */
@media (max-width: 900px) {
  .discord-zone { grid-template-columns: 1fr; }
  .chat-panel { display: none; }
  .nav-links { display: none; }
  .vote-menu { grid-template-columns: 1fr 1fr; }
  .vote-item:nth-child(3n) { border-right: 2px solid var(--border); }
  .vote-item:nth-child(2n) { border-right: none; }
}

@media (max-width: 560px) {
  .vote-menu { grid-template-columns: 1fr; }
  .vote-item { border-right: none !important; }
  .hero-title { font-size: 1rem; }
}

.back-btn-d3 {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  font: 0.45rem/1 'Press Start 2P', monospace;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  background: var(--bg-2);
  color: var(--text-3);
  border: 2px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 3px 0 var(--border);
}
.back-btn-d3:hover {
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 3px 0 var(--orange-d);
  transform: translateY(-1px);
}
