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

:root {
  --bg-dark: #0e0a26;
  --bg-mid: #1a1140;
  --card-bg: rgba(30, 24, 64, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.65);
  --red: #f25c54;
  --blue: #5b9bf0;
  --yellow: #f5b82e;
  --green: #2ec48e;
  --purple: #a78bfa;
  --pink: #e84e8a;
  --teal: #4ed4c8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at 20% 10%, #3b1a6e 0%, transparent 50%),
              radial-gradient(ellipse at 85% 25%, #16307a 0%, transparent 45%),
              radial-gradient(ellipse at 70% 90%, #4a1660 0%, transparent 50%),
              linear-gradient(160deg, var(--bg-mid) 0%, var(--bg-dark) 60%, #0a0820 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* floating glow orbs like the game background */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.25;
  animation: float 14s ease-in-out infinite;
}

.orb-1 { width: 220px; height: 220px; top: 8%; left: -60px; background: radial-gradient(circle at 35% 35%, #b14ee8, transparent 70%); }
.orb-2 { width: 160px; height: 160px; top: 4%; right: -40px; background: radial-gradient(circle at 35% 35%, #2e6cf5, transparent 70%); animation-delay: -4s; }
.orb-3 { width: 260px; height: 260px; bottom: 6%; right: -80px; background: radial-gradient(circle at 35% 35%, #4a90f5, transparent 70%); animation-delay: -8s; }
.orb-4 { width: 180px; height: 180px; bottom: 12%; left: -50px; background: radial-gradient(circle at 35% 35%, #e84e8a, transparent 70%); animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-logo .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  grid-template-rows: repeat(2, 14px);
  gap: 3px;
}

.mini-grid span {
  border-radius: 4px;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.45), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.mini-grid span:nth-child(1) { background: var(--red); }
.mini-grid span:nth-child(2) { background: var(--blue); }
.mini-grid span:nth-child(3) { background: var(--yellow); }
.mini-grid span:nth-child(4) { background: var(--green); }

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* hero */
.hero {
  text-align: center;
  padding: 32px 0 48px;
}

.hero .icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 72px);
  grid-template-rows: repeat(2, 72px);
  gap: 12px;
  justify-content: center;
  margin: 0 auto 32px;
}

.block {
  border-radius: 20px;
  box-shadow: inset 0 6px 8px rgba(255, 255, 255, 0.45),
              inset 0 -6px 8px rgba(0, 0, 0, 0.25),
              0 10px 24px rgba(0, 0, 0, 0.35);
  animation: bob 3.2s ease-in-out infinite;
}

.block-red { background: var(--red); }
.block-blue { background: var(--blue); animation-delay: 0.3s; }
.block-yellow { background: var(--yellow); animation-delay: 0.6s; }
.block-green { background: var(--green); animation-delay: 0.9s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
}

.hero p.tagline {
  margin-top: 12px;
  font-size: 1.15rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* mode cards */
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mode-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s;
}

.mode-card:hover {
  transform: translateY(-4px);
}

.mode-card .tile {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: inset 0 4px 5px rgba(255, 255, 255, 0.4), inset 0 -4px 5px rgba(0, 0, 0, 0.2);
}

.tile-teal { background: var(--teal); }
.tile-pink { background: var(--pink); }
.tile-purple { background: var(--purple); }

.mode-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mode-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 600;
  line-height: 1.45;
}

/* content pages (privacy / support) */
.page-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 36px 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-card h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.page-card .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.page-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-card h2::before {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.45), inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.page-card h2:nth-of-type(4n+1)::before { background: var(--red); }
.page-card h2:nth-of-type(4n+2)::before { background: var(--blue); }
.page-card h2:nth-of-type(4n+3)::before { background: var(--yellow); }
.page-card h2:nth-of-type(4n+4)::before { background: var(--green); }

.page-card p,
.page-card li {
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 600;
  font-size: 0.97rem;
}

.page-card p + p {
  margin-top: 10px;
}

.page-card ul {
  margin: 10px 0 10px 22px;
}

.page-card li {
  margin: 4px 0;
}

.page-card a {
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
}

.page-card a:hover {
  text-decoration: underline;
}

/* support */
.support-hero {
  text-align: center;
  padding: 8px 0 28px;
}

.support-hero .tile {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: inset 0 5px 6px rgba(255, 255, 255, 0.4),
              inset 0 -5px 6px rgba(0, 0, 0, 0.2),
              0 10px 24px rgba(0, 0, 0, 0.35);
}

.email-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #b89bff 0%, var(--purple) 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none !important;
  box-shadow: inset 0 3px 4px rgba(255, 255, 255, 0.35),
              0 8px 20px rgba(167, 139, 250, 0.35);
  transition: transform 0.15s;
}

.email-btn:hover {
  transform: translateY(-2px);
}

/* footer */
footer {
  text-align: center;
  padding-top: 48px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
}

footer .footer-links {
  margin-bottom: 10px;
}

footer .footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  margin: 0 10px;
}

footer .footer-links a:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .hero .icon-grid {
    grid-template-columns: repeat(2, 60px);
    grid-template-rows: repeat(2, 60px);
    gap: 10px;
  }

  .page-card {
    padding: 28px 20px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}
