/* Pixel Party — Game Studio (ULTIMATE SHOWPIECE) */
@import url('../shared.css');

:root {
  --dark: #0f0f23;
  --coral: #ff6b6b;
  --teal: #4ecdc4;
  --yellow: #ffe66d;
  --purple: #a855f7;
  --white: #f8fafc;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--white);
  background: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================
   NAV — Pill navigation + hamburger
   ================================ */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(12px);
}
.nav-toggle-input { display: none; }
.hamburger { display: none; cursor: pointer; }
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.nav-pill:hover {
  transform: scale(1.08) translateY(-2px);
  animation: pillBounce 0.4s ease;
}
.nav-pill.coral { background: var(--coral); color: var(--dark); }
.nav-pill.teal { background: var(--teal); color: var(--dark); }
.nav-pill.yellow { background: var(--yellow); color: var(--dark); }
.nav-pill.purple { background: var(--purple); color: var(--white); }

@keyframes pillBounce {
  0% { transform: scale(1.08) translateY(-2px); }
  40% { transform: scale(1.12) translateY(-6px); }
  70% { transform: scale(1.06) translateY(-1px); }
  100% { transform: scale(1.08) translateY(-2px); }
}

/* ================================
   HERO — Gradient text + shapes + pixel art + typewriter
   ================================ */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--coral), var(--yellow), var(--teal), var(--purple));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  position: relative;
  z-index: 2;
}

/* Typewriter animation */
.typewriter {
  font-size: 1.2rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 1rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--coral);
  width: 0;
  animation: typewrite 3s steps(55, end) 0.5s forwards, blinkCaret 0.6s step-end infinite;
  max-width: max-content;
}

@keyframes typewrite {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkCaret {
  0%, 100% { border-color: var(--coral); }
  50% { border-color: transparent; }
}

/* Pixel Art Character — 8x8 grid using box-shadow on a single div */
.pixel-character {
  width: 6px;
  height: 6px;
  background: transparent;
  margin: 2.5rem auto 0;
  position: relative;
  z-index: 2;
  transform: scale(4);
  image-rendering: pixelated;
  /* 8x8 pixel art: a small retro character */
  box-shadow:
    /* Row 1 — hat */
    12px 0 0 var(--teal),
    18px 0 0 var(--teal),
    24px 0 0 var(--teal),
    30px 0 0 var(--teal),
    /* Row 2 — hat brim */
    6px 6px 0 var(--teal),
    12px 6px 0 var(--teal),
    18px 6px 0 var(--teal),
    24px 6px 0 var(--teal),
    30px 6px 0 var(--teal),
    36px 6px 0 var(--teal),
    /* Row 3 — face */
    6px 12px 0 var(--yellow),
    12px 12px 0 var(--dark),
    18px 12px 0 var(--yellow),
    24px 12px 0 var(--yellow),
    30px 12px 0 var(--dark),
    36px 12px 0 var(--yellow),
    /* Row 4 — face */
    6px 18px 0 var(--yellow),
    12px 18px 0 var(--yellow),
    18px 18px 0 var(--coral),
    24px 18px 0 var(--coral),
    30px 18px 0 var(--yellow),
    36px 18px 0 var(--yellow),
    /* Row 5 — body */
    12px 24px 0 var(--purple),
    18px 24px 0 var(--purple),
    24px 24px 0 var(--purple),
    30px 24px 0 var(--purple),
    /* Row 6 — body + arms */
    6px 30px 0 var(--coral),
    12px 30px 0 var(--purple),
    18px 30px 0 var(--purple),
    24px 30px 0 var(--purple),
    30px 30px 0 var(--purple),
    36px 30px 0 var(--coral),
    /* Row 7 — legs */
    12px 36px 0 var(--teal),
    18px 36px 0 var(--dark),
    24px 36px 0 var(--dark),
    30px 36px 0 var(--teal),
    /* Row 8 — feet */
    6px 42px 0 var(--teal),
    12px 42px 0 var(--teal),
    30px 42px 0 var(--teal),
    36px 42px 0 var(--teal);
}

/* Floating Shapes */
.shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  opacity: 0.5;
  mix-blend-mode: screen;
}
.shape:nth-child(1)  { width: 60px; height: 60px; background: var(--coral); border-radius: 50%; top: 10%; left: 5%; animation: float 8s ease-in-out infinite; }
.shape:nth-child(2)  { width: 40px; height: 40px; background: var(--teal); top: 20%; right: 10%; animation: float 10s ease-in-out infinite 1s; }
.shape:nth-child(3)  { width: 80px; height: 80px; background: var(--yellow); border-radius: 50%; top: 60%; left: 8%; animation: float 9s ease-in-out infinite 0.5s; }
.shape:nth-child(4)  { width: 30px; height: 30px; background: var(--purple); top: 70%; right: 15%; animation: spin 12s linear infinite; }
.shape:nth-child(5)  { width: 50px; height: 50px; background: var(--coral); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); top: 15%; left: 40%; animation: float 11s ease-in-out infinite 2s; }
.shape:nth-child(6)  { width: 35px; height: 35px; background: var(--teal); border-radius: 50%; top: 80%; left: 30%; animation: float 7s ease-in-out infinite 1.5s; }
.shape:nth-child(7)  { width: 45px; height: 45px; background: var(--yellow); top: 40%; right: 5%; animation: spin 15s linear infinite 3s; }
.shape:nth-child(8)  { width: 25px; height: 25px; background: var(--purple); border-radius: 50%; top: 5%; right: 30%; animation: float 8s ease-in-out infinite 4s; }
.shape:nth-child(9)  { width: 55px; height: 55px; background: var(--coral); clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); top: 50%; left: 15%; animation: spin 10s linear infinite 2s; }
.shape:nth-child(10) { width: 30px; height: 30px; background: var(--teal); top: 30%; left: 70%; animation: float 12s ease-in-out infinite 0.5s; }
.shape:nth-child(11) { width: 20px; height: 20px; background: var(--yellow); border-radius: 50%; top: 85%; right: 40%; animation: float 9s ease-in-out infinite 3s; }
.shape:nth-child(12) { width: 65px; height: 65px; background: var(--purple); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); top: 25%; right: 25%; animation: float 13s ease-in-out infinite 1s; }
.shape:nth-child(13) { width: 40px; height: 40px; background: var(--coral); border-radius: 50%; top: 45%; left: 50%; animation: spin 8s linear infinite; }
.shape:nth-child(14) { width: 35px; height: 35px; background: var(--teal); top: 75%; left: 60%; animation: float 10s ease-in-out infinite 2.5s; }
.shape:nth-child(15) { width: 50px; height: 50px; background: var(--yellow); clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); top: 90%; left: 80%; animation: spin 14s linear infinite 4s; }

/* ================================
   MARQUEE TICKER — Double, opposite directions
   ================================ */
.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal), var(--purple));
  padding: 0.6rem 0;
  white-space: nowrap;
}
.ticker-reverse {
  background: linear-gradient(90deg, var(--purple), var(--teal), var(--yellow), var(--coral));
}
.ticker-inner {
  display: inline-block;
}
.ticker-left {
  animation: scrollLeft 20s linear infinite;
}
.ticker-right {
  animation: scrollRight 22s linear infinite;
}
.ticker span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-right: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ================================
   GAME CARDS — 4 games, tilted, platform badges, stars, progress
   ================================ */
.games {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.games h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.game-card {
  border-radius: 16px;
  padding: 1.75rem;
  transform: rotate(-2deg);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  color: var(--dark);
}
.game-card:nth-child(2) { transform: rotate(1.5deg); }
.game-card:nth-child(3) { transform: rotate(-1deg); }
.game-card:nth-child(4) { transform: rotate(2deg); }
.game-card:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.game-card.coral { background: linear-gradient(135deg, var(--coral), #ff8787); }
.game-card.teal { background: linear-gradient(135deg, var(--teal), #7eddd6); }
.game-card.yellow { background: linear-gradient(135deg, var(--yellow), #fff09a); }
.game-card.purple { background: linear-gradient(135deg, var(--purple), #c084fc); color: var(--white); }
.game-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.game-card > p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.5rem; }
.game-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(0,0,0,0.2);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Platform badges */
.platform-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.platform-pill {
  padding: 0.15rem 0.5rem;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Star rating */
.star-rating {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.7);
  letter-spacing: 2px;
}
.game-card.purple .star-rating { color: var(--yellow); }

/* Progress bar */
.progress-bar {
  margin-top: 0.6rem;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  height: 18px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.6));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  transition: width 1s ease;
}
.progress-fill span {
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.9;
}

/* ================================
   GAME FEATURE SHOWCASE — Alternating left-right
   ================================ */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.features h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 4rem;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 5rem;
}
.feature-row.reverse {
  flex-direction: row-reverse;
}
.feature-mockup {
  flex: 1;
  min-width: 280px;
}
.feature-text {
  flex: 1;
}
.feature-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-text p {
  color: rgba(248, 250, 252, 0.6);
  font-size: 1rem;
  line-height: 1.7;
}

/* Health / Mana bar mockup */
.mockup-health {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.health-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  color: rgba(248,250,252,0.5);
}
.health-bar-outer,
.mana-bar-outer {
  height: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.health-bar-inner {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, #ff6b6b, #ff8787);
  border-radius: 10px;
  animation: healthPulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
}
.mana-bar-inner {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #a855f7, #c084fc);
  border-radius: 10px;
  animation: healthPulse 2.5s ease-in-out infinite 0.5s;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
@keyframes healthPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Inventory grid mockup */
.mockup-inventory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.inv-slot {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.inv-slot:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.inv-slot.filled.coral-bg { background: linear-gradient(135deg, var(--coral), #ff8787); box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }
.inv-slot.filled.teal-bg { background: linear-gradient(135deg, var(--teal), #7eddd6); box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }
.inv-slot.filled.yellow-bg { background: linear-gradient(135deg, var(--yellow), #fff09a); box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }
.inv-slot.filled.purple-bg { background: linear-gradient(135deg, var(--purple), #c084fc); box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }

/* Minimap mockup */
.mockup-minimap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #1a1a2e;
  border: 3px solid rgba(78, 205, 196, 0.4);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.15);
}
.mockup-minimap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(78,205,196,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,205,196,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}
.minimap-dot {
  position: absolute;
  border-radius: 50%;
}
.minimap-dot.player {
  width: 12px;
  height: 12px;
  background: var(--teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--teal), 0 0 16px var(--teal);
  animation: minimapPing 1.5s ease-in-out infinite;
}
.minimap-dot.enemy {
  width: 8px;
  height: 8px;
  background: var(--coral);
  box-shadow: 0 0 6px var(--coral);
}
.minimap-dot.e1 { top: 25%; left: 60%; animation: minimapMove 4s ease-in-out infinite; }
.minimap-dot.e2 { top: 70%; left: 30%; animation: minimapMove 5s ease-in-out infinite 1s; }
.minimap-dot.objective {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  top: 20%;
  left: 35%;
  box-shadow: 0 0 8px var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  width: 14px;
  height: 14px;
}
@keyframes minimapPing {
  0%, 100% { box-shadow: 0 0 8px var(--teal), 0 0 16px var(--teal); }
  50% { box-shadow: 0 0 16px var(--teal), 0 0 32px var(--teal), 0 0 48px rgba(78,205,196,0.2); }
}
@keyframes minimapMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -8px); }
  50% { transform: translate(-5px, 12px); }
  75% { transform: translate(8px, 5px); }
}

/* ================================
   INTERACTIVE MOSAIC — Persistent colors + reset
   ================================ */
.mosaic-section {
  padding: 4rem 2rem;
  text-align: center;
}
.mosaic-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.pixel-count {
  color: rgba(248,250,252,0.5);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
#pixel-counter {
  color: var(--teal);
  font-weight: 700;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
}
.mosaic-cell {
  aspect-ratio: 1;
  background: #1a1a2e;
  border-radius: 2px;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}
.mosaic-cell:hover {
  transform: scale(1.3);
  z-index: 1;
}
/* Hover colors (temporary) */
.mosaic-cell:hover:nth-child(4n+1) { background: var(--coral); }
.mosaic-cell:hover:nth-child(4n+2) { background: var(--teal); }
.mosaic-cell:hover:nth-child(4n+3) { background: var(--yellow); }
.mosaic-cell:hover:nth-child(4n+4) { background: var(--purple); }
/* Persistent painted colors */
.mosaic-cell.painted-coral { background: var(--coral) !important; }
.mosaic-cell.painted-teal { background: var(--teal) !important; }
.mosaic-cell.painted-yellow { background: var(--yellow) !important; }
.mosaic-cell.painted-purple { background: var(--purple) !important; }

.reset-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.reset-btn:hover {
  background: var(--coral);
  color: var(--dark);
  transform: scale(1.05);
}

/* ================================
   STATS SECTION — Gradient band with big numbers
   ================================ */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--coral), var(--purple), var(--teal));
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  min-width: 140px;
}
.stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  animation: statPop 0.6s ease both;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-top: 0.25rem;
}
@keyframes statPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================================
   COMMUNITY — Discord-style chat mockup
   ================================ */
.community {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.community h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 3rem;
}
.discord-mockup {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-height: 480px;
}
.discord-sidebar {
  width: 200px;
  background: #1a1a2e;
  padding: 1rem 0;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.discord-server-name {
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.5rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.5rem;
}
.channel {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: rgba(248,250,252,0.4);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-radius: 0 4px 4px 0;
}
.channel:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.channel.active { color: var(--white); background: rgba(78,205,196,0.15); }

.discord-main {
  flex: 1;
  background: #12122a;
  display: flex;
  flex-direction: column;
}
.discord-header {
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}
.discord-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.chat-msg {
  margin-bottom: 1.25rem;
}
.chat-user {
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}
.coral-text { color: var(--coral); }
.teal-text { color: var(--teal); }
.yellow-text { color: var(--yellow); }
.purple-text { color: var(--purple); }
.chat-time {
  font-size: 0.65rem;
  color: rgba(248,250,252,0.3);
}
.chat-msg p {
  font-size: 0.85rem;
  color: rgba(248,250,252,0.75);
  margin-top: 0.2rem;
  line-height: 1.5;
}
.chat-reactions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.reaction {
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  color: rgba(248,250,252,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.reaction:hover {
  background: rgba(255,255,255,0.12);
}

/* ================================
   TEAM — 6 members, colored top borders, "now playing"
   ================================ */
.team {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.team h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 3rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.team-member {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 1.75rem 1rem;
  border-top: 4px solid var(--border-color, var(--coral));
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.team-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.team-member h3 { font-size: 0.95rem; font-weight: 700; }
.team-member > p { font-size: 0.8rem; color: rgba(248,250,252,0.5); margin-top: 0.15rem; }
.now-playing {
  display: block;
  font-size: 0.7rem;
  color: var(--teal);
  margin-top: 0.5rem;
  opacity: 0.7;
  font-style: italic;
}

/* ================================
   SOUNDTRACK — CSS-only equalizer waveform
   ================================ */
.soundtrack {
  padding: 4rem 2rem;
  text-align: center;
}
.soundtrack h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
}
.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100px;
  padding: 0 1rem;
}
.wave-bar {
  width: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--coral), var(--yellow), var(--teal));
  animation: equalize 1s ease-in-out infinite alternate;
}
/* Stagger heights and delays for all 40 bars */
.wave-bar:nth-child(1)  { height: 30px; animation-delay: 0s; }
.wave-bar:nth-child(2)  { height: 50px; animation-delay: 0.05s; }
.wave-bar:nth-child(3)  { height: 70px; animation-delay: 0.1s; }
.wave-bar:nth-child(4)  { height: 40px; animation-delay: 0.15s; }
.wave-bar:nth-child(5)  { height: 85px; animation-delay: 0.2s; }
.wave-bar:nth-child(6)  { height: 55px; animation-delay: 0.25s; }
.wave-bar:nth-child(7)  { height: 90px; animation-delay: 0.3s; }
.wave-bar:nth-child(8)  { height: 35px; animation-delay: 0.35s; }
.wave-bar:nth-child(9)  { height: 65px; animation-delay: 0.4s; }
.wave-bar:nth-child(10) { height: 80px; animation-delay: 0.45s; }
.wave-bar:nth-child(11) { height: 45px; animation-delay: 0.5s; }
.wave-bar:nth-child(12) { height: 95px; animation-delay: 0.55s; }
.wave-bar:nth-child(13) { height: 60px; animation-delay: 0.6s; }
.wave-bar:nth-child(14) { height: 75px; animation-delay: 0.65s; }
.wave-bar:nth-child(15) { height: 40px; animation-delay: 0.7s; }
.wave-bar:nth-child(16) { height: 85px; animation-delay: 0.75s; }
.wave-bar:nth-child(17) { height: 50px; animation-delay: 0.8s; }
.wave-bar:nth-child(18) { height: 70px; animation-delay: 0.85s; }
.wave-bar:nth-child(19) { height: 30px; animation-delay: 0.9s; }
.wave-bar:nth-child(20) { height: 90px; animation-delay: 0.95s; }
.wave-bar:nth-child(21) { height: 55px; animation-delay: 0.05s; }
.wave-bar:nth-child(22) { height: 80px; animation-delay: 0.1s; }
.wave-bar:nth-child(23) { height: 35px; animation-delay: 0.15s; }
.wave-bar:nth-child(24) { height: 65px; animation-delay: 0.2s; }
.wave-bar:nth-child(25) { height: 95px; animation-delay: 0.25s; }
.wave-bar:nth-child(26) { height: 45px; animation-delay: 0.3s; }
.wave-bar:nth-child(27) { height: 75px; animation-delay: 0.35s; }
.wave-bar:nth-child(28) { height: 60px; animation-delay: 0.4s; }
.wave-bar:nth-child(29) { height: 85px; animation-delay: 0.45s; }
.wave-bar:nth-child(30) { height: 40px; animation-delay: 0.5s; }
.wave-bar:nth-child(31) { height: 70px; animation-delay: 0.55s; }
.wave-bar:nth-child(32) { height: 50px; animation-delay: 0.6s; }
.wave-bar:nth-child(33) { height: 90px; animation-delay: 0.65s; }
.wave-bar:nth-child(34) { height: 30px; animation-delay: 0.7s; }
.wave-bar:nth-child(35) { height: 80px; animation-delay: 0.75s; }
.wave-bar:nth-child(36) { height: 55px; animation-delay: 0.8s; }
.wave-bar:nth-child(37) { height: 95px; animation-delay: 0.85s; }
.wave-bar:nth-child(38) { height: 65px; animation-delay: 0.9s; }
.wave-bar:nth-child(39) { height: 45px; animation-delay: 0.95s; }
.wave-bar:nth-child(40) { height: 75px; animation-delay: 0.02s; }

@keyframes equalize {
  0% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.5); }
}

.soundtrack-label {
  margin-top: 1.5rem;
  color: rgba(248,250,252,0.4);
  font-size: 0.85rem;
  font-style: italic;
}

/* ================================
   NEWSLETTER / CTA — Gradient card, neon glow input
   ================================ */
.cta-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}
.cta-card {
  background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(168,85,247,0.15), rgba(78,205,196,0.15));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  backdrop-filter: blur(8px);
}
.cta-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--coral), var(--yellow), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-card > p {
  color: rgba(248,250,252,0.5);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.cta-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cta-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-input::placeholder { color: rgba(248,250,252,0.3); }
.cta-input:focus {
  border-color: var(--teal);
  box-shadow:
    0 0 10px rgba(78, 205, 196, 0.3),
    0 0 20px rgba(78, 205, 196, 0.15),
    0 0 40px rgba(78, 205, 196, 0.05);
}
.cta-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
}
.discord-link {
  display: inline-block;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}
.discord-link:hover { color: var(--teal); }

/* ================================
   ACHIEVEMENT BADGES — Conic gradients, CSS shapes
   ================================ */
.achievements {
  padding: 4rem 2rem;
  text-align: center;
}
.achievements h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2.5rem;
}
.achievements-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.achievement span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(248,250,252,0.6);
}
.badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s;
}
.badge:hover { transform: scale(1.15) rotate(5deg); }
.badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}
.badge-star::before { background: conic-gradient(var(--coral), var(--yellow), var(--coral)); }
.badge-heart::before { background: conic-gradient(var(--coral), var(--purple), var(--coral)); }
.badge-diamond::before { background: conic-gradient(var(--teal), var(--purple), var(--teal)); }
.badge-trophy::before { background: conic-gradient(var(--yellow), var(--coral), var(--yellow)); }
.badge-bolt::before { background: conic-gradient(var(--yellow), var(--teal), var(--yellow)); }
.badge-crown::before { background: conic-gradient(var(--purple), var(--yellow), var(--purple)); }

.badge-icon {
  position: relative;
  z-index: 1;
}

/* Star shape */
.star-icon {
  width: 24px;
  height: 24px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
/* Heart shape */
.heart-icon {
  width: 22px;
  height: 20px;
  background: var(--coral);
  clip-path: polygon(50% 100%, 0% 35%, 0% 15%, 15% 0%, 35% 0%, 50% 20%, 65% 0%, 85% 0%, 100% 15%, 100% 35%);
}
/* Diamond shape */
.diamond-icon {
  width: 20px;
  height: 24px;
  background: var(--teal);
  clip-path: polygon(50% 0%, 100% 40%, 50% 100%, 0% 40%);
}
/* Trophy shape */
.trophy-icon {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  clip-path: polygon(15% 0%, 85% 0%, 100% 10%, 80% 45%, 65% 55%, 65% 70%, 80% 75%, 80% 100%, 20% 100%, 20% 75%, 35% 70%, 35% 55%, 20% 45%, 0% 10%);
}
/* Bolt shape */
.bolt-icon {
  width: 18px;
  height: 24px;
  background: var(--yellow);
  clip-path: polygon(60% 0%, 25% 50%, 50% 50%, 40% 100%, 75% 50%, 50% 50%);
}
/* Crown shape */
.crown-icon {
  width: 26px;
  height: 20px;
  background: var(--purple);
  clip-path: polygon(0% 100%, 0% 40%, 20% 60%, 50% 20%, 80% 60%, 100% 40%, 100% 100%);
}

/* ================================
   WAVY FOOTER — Triple overlapping waves
   ================================ */
.wavy-footer {
  position: relative;
  text-align: center;
  padding: 8rem 2rem 3rem;
  background: var(--dark);
}
.wave-layer {
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
}
.wave-1 {
  top: -60px;
  background: var(--coral);
  opacity: 0.25;
  clip-path: polygon(
    0% 70%, 4% 55%, 8% 65%, 12% 50%, 16% 60%, 20% 45%, 24% 55%, 28% 40%,
    32% 50%, 36% 35%, 40% 50%, 44% 40%, 48% 55%, 52% 45%, 56% 60%, 60% 50%,
    64% 65%, 68% 55%, 72% 70%, 76% 60%, 80% 50%, 84% 60%, 88% 45%, 92% 55%,
    96% 40%, 100% 50%, 100% 100%, 0% 100%
  );
}
.wave-2 {
  top: -40px;
  background: var(--teal);
  opacity: 0.2;
  clip-path: polygon(
    0% 55%, 5% 65%, 10% 50%, 15% 60%, 20% 70%, 25% 55%, 30% 65%, 35% 50%,
    40% 60%, 45% 45%, 50% 60%, 55% 50%, 60% 65%, 65% 55%, 70% 45%, 75% 55%,
    80% 65%, 85% 50%, 90% 60%, 95% 50%, 100% 60%, 100% 100%, 0% 100%
  );
}
.wave-3 {
  top: -20px;
  background: linear-gradient(90deg, var(--purple), var(--coral), var(--teal), var(--yellow));
  opacity: 0.35;
  clip-path: polygon(
    0% 50%, 5% 60%, 10% 55%, 15% 65%, 20% 55%, 25% 60%, 30% 50%,
    35% 60%, 40% 55%, 45% 65%, 50% 55%, 55% 60%, 60% 50%,
    65% 60%, 70% 55%, 75% 65%, 80% 55%, 85% 60%, 90% 50%,
    95% 60%, 100% 55%, 100% 100%, 0% 100%
  );
}
.wavy-footer p {
  color: rgba(248,250,252,0.4);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.murikual-footer { background: #0a0a1a; }

/* ================================
   GLOBAL ANIMATIONS
   ================================ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .discord-sidebar { width: 160px; }
}

@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger { display: block; position: relative; z-index: 10; }
  .nav-pills {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
  }
  .nav-toggle-input:checked ~ .nav-pills {
    display: flex;
  }
  /* 3 lines to X animation */
  .nav-toggle-input:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav { flex-direction: column; }

  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .pixel-character { transform: scale(2.5); }
  .typewriter { font-size: 0.95rem; }

  .games-grid { grid-template-columns: 1fr; }
  .game-card,
  .game-card:nth-child(2),
  .game-card:nth-child(3),
  .game-card:nth-child(4) { transform: rotate(0deg); }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 2rem;
  }
  .feature-mockup { min-width: unset; }

  /* Inventory grid: collapse to 3 columns on tablet */
  .mockup-inventory { grid-template-columns: repeat(3, 1fr); }

  /* Minimap: scale down */
  .mockup-minimap { width: 160px; height: 160px; }

  .mosaic { grid-template-columns: repeat(10, 1fr); }

  /* Stats: ensure 2x2 layout */
  .stats { gap: 1.5rem; padding: 3rem 1.5rem; }
  .stat { min-width: 120px; flex: 1 1 40%; }

  .discord-mockup { flex-direction: column; max-height: none; }
  .discord-sidebar {
    width: 100%;
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .discord-server-name { display: none; }
  .channel { white-space: nowrap; border-radius: 4px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Waveform: scale down proportionally */
  .waveform { gap: 2px; height: 70px; }
  .wave-bar { width: 5px; }

  .cta-form { flex-direction: column; }
  .cta-card { padding: 2rem 1.5rem; }

  /* Achievement badges: constrain to ~3 per row */
  .achievements-grid { gap: 1rem; max-width: 320px; margin: 0 auto; }
  .badge { width: 56px; height: 56px; }

  /* Section headings */
  .games h2,
  .features h2,
  .community h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .nav { gap: 0.35rem; padding: 1rem; }
  .nav-pill { padding: 0.4rem 0.9rem; font-size: 0.75rem; }

  /* Hero */
  .hero { padding: 3rem 1rem; min-height: 70vh; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .pixel-character { transform: scale(2); }
  .typewriter { font-size: 0.8rem; }

  /* Games */
  .games { padding: 3rem 1rem; }
  .games h2 { font-size: 1.6rem; }

  /* Features */
  .features { padding: 3rem 1rem; }
  .features h2 { font-size: 1.6rem; }
  .feature-text h3 { font-size: 1.3rem; }

  /* Inventory grid: 2 columns on small phones */
  .mockup-inventory { grid-template-columns: repeat(2, 1fr); padding: 1rem; }

  /* Minimap: smaller on phone */
  .mockup-minimap { width: 140px; height: 140px; }

  /* Mosaic: fewer columns on small screens */
  .mosaic { grid-template-columns: repeat(6, 1fr); }

  /* Stats: stack to 2x2, smaller numbers */
  .stats { gap: 1rem; padding: 2.5rem 1rem; }
  .stat { min-width: 100px; flex: 1 1 40%; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.75rem; }

  /* Discord chat */
  .community { padding: 3rem 1rem; }
  .community h2 { font-size: 1.6rem; }
  .discord-messages { padding: 0.75rem; }
  .chat-msg p { font-size: 0.8rem; }

  /* Team */
  .team { padding: 3rem 1rem; }
  .team h2 { font-size: 1.6rem; }
  .team-grid { grid-template-columns: 1fr; }

  /* Waveform: smaller on phone */
  .waveform { height: 50px; gap: 1px; }
  .wave-bar { width: 4px; }
  .soundtrack h2 { font-size: 1.6rem; }

  /* CTA */
  .cta-card { padding: 1.5rem 1rem; }
  .cta-card h2 { font-size: 1.5rem; }

  /* Achievement badges: 3 per row */
  .achievements h2 { font-size: 1.6rem; }
  .achievements-grid { gap: 0.75rem; max-width: 260px; }
  .badge { width: 48px; height: 48px; }
  .achievement span { font-size: 0.65rem; }
}
