:root {
  --pink:   #ff6eb4;
  --purple: #b06aff;
  --cyan:   #5fffd7;
  --yellow: #ffe75f;
  --dark:   #0d0d1a;
  --darker: #07070f;
  --card:   #13132a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--darker);
  color: #e8e8f8;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  line-height: 2;
  overflow-x: hidden;
}

/* ── stars ─────────────────────────────────────────── */
#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50%       { opacity: var(--bright, 0.8); }
}

/* ── layout ─────────────────────────────────────────── */
main { position: relative; z-index: 1; }

section {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── hero ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 40px 24px;
}

.bunny {
  font-size: clamp(64px, 14vw, 120px);
  display: inline-block;
  animation: bunnyhop 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px var(--pink));
}
@keyframes bunnyhop {
  0%, 100% { transform: translateY(0)    rotate(-3deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}

h1 {
  font-size: clamp(20px, 5vw, 42px);
  color: var(--pink);
  text-shadow:
    3px 3px 0 #7a0040,
    0 0 30px var(--pink);
  letter-spacing: 2px;
}

.tagline {
  color: var(--cyan);
  font-size: clamp(8px, 2vw, 13px);
  text-shadow: 0 0 12px var(--cyan);
}

.cursor {
  display: inline-block;
  width: 10px; height: 18px;
  background: var(--cyan);
  animation: blink .8s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  border: 3px solid var(--yellow);
  color: var(--yellow);
  text-decoration: none;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  background: transparent;
  transition: background .15s, color .15s;
  text-shadow: 0 0 8px var(--yellow);
  box-shadow: 0 0 12px var(--yellow)55, inset 0 0 0 0 var(--yellow);
  animation: pulse-border 2s ease-in-out infinite;
}
.cta:hover {
  background: var(--yellow);
  color: var(--darker);
  text-shadow: none;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 8px  var(--yellow)55; }
  50%       { box-shadow: 0 0 22px var(--yellow)aa; }
}

/* ── section headings ───────────────────────────────── */
h2 {
  font-size: clamp(14px, 3vw, 22px);
  color: var(--purple);
  text-shadow: 0 0 16px var(--purple);
  margin-bottom: 40px;
  text-align: center;
}
h2::before { content: '> '; color: var(--cyan); }

/* ── about ──────────────────────────────────────────── */
#about p {
  color: #c8c8e8;
  font-size: 10px;
  max-width: 620px;
  margin: 0 auto 20px;
  text-align: center;
}

.pixel-divider {
  text-align: center;
  color: var(--pink);
  letter-spacing: 6px;
  font-size: 10px;
  margin: 20px 0;
  opacity: 0.5;
}

/* ── games grid ─────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--card);
  border: 2px solid var(--purple)66;
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple)08, transparent 60%);
}
.game-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.game-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.game-title {
  color: var(--cyan);
  font-size: 10px;
  margin-bottom: 10px;
}

.game-desc {
  color: #8888aa;
  font-size: 8px;
  line-height: 2;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-size: 7px;
  border: 1px solid var(--yellow)88;
  color: var(--yellow);
}

/* ── inbox card ─────────────────────────────────────── */
#inbox-card { cursor: pointer; }

/* ── copy toast ─────────────────────────────────────── */
#copy-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--card);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 12px 20px;
  text-shadow: 0 0 8px var(--cyan);
  box-shadow: 0 0 18px var(--cyan)55;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
#copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── footer ─────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px 60px;
  font-size: 8px;
  color: #444466;
  border-top: 1px solid #1e1e3a;
}
footer span { color: var(--pink); }
