/* Naga Blast site — matches the game: deep space, glowing hex accents, chunky buttons. */
:root {
  --bg: #070a1c;
  --bg2: #120b33;
  --panel: #161b45;
  --panel-hi: #1f2660;
  --edge: #3a4392;
  --text: #f5f7ff;
  --muted: #a3abdb;
  --gold: #ffc21a;
  --green: #2fcb5a;
  --cyan: #22d3ee;
  --pink: #f43f8e;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 20% 10%, #2a1f7a55, transparent 55%),
    radial-gradient(ellipse at 90% 60%, #b0287a33, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 60%, #1b0f3d 100%);
  background-attachment: fixed;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Twinkling starfield behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(1px 1px at 20px 30px, #fff9, transparent),
    radial-gradient(1px 1px at 120px 80px, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fffa, transparent),
    radial-gradient(1px 1px at 300px 40px, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 380px 220px, #fff8, transparent);
  background-size: 420px 260px;
  animation: drift 120s linear infinite;
  opacity: 0.8;
}

@keyframes drift { to { background-position: 0 2600px; } }

a { color: var(--cyan); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: #070a1ccc;
  border-bottom: 1px solid #ffffff14;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: 0.5px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 700; margin-left: 22px; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Buttons: chunky 3D like in the game */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 2px solid #0006;
  box-shadow: 0 5px 0 #0007, inset 0 2px 0 #ffffff55;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #0007, inset 0 2px 0 #ffffff55; }
.btn small { display: block; font-size: 11px; font-weight: 700; opacity: 0.85; letter-spacing: 0.6px; }
.btn .lbl { line-height: 1.1; text-align: left; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn-green { background: linear-gradient(#45dd70, var(--green)); }
.btn-dark { background: linear-gradient(#2b3270, #1a1f4d); }
.btn-gold { background: linear-gradient(#ffd666, #f5a800); color: #3a2400; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.kicker { color: var(--cyan); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1;
  margin: 10px 0 6px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 4px 0 #0b1030, 0 0 30px #ffc21a55;
  letter-spacing: 1px;
}
.hero .sub { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 14px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 540px; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; text-align: center; background: radial-gradient(closest-side, #22d3ee33, transparent); }
.hero-art img { width: 100%; max-width: 480px; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 36px 0 0; }
.stat { background: #ffffff0a; border: 1px solid #ffffff14; border-radius: 14px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 0 0 8px; }
h2 + p.sec-lead { color: var(--muted); margin: 0 0 26px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 10px 0 6px; font-size: 18px; font-weight: 900; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 3px 0 #0006, inset 0 2px 0 #ffffff44;
}

/* Snake ranks */
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rank { background: #ffffff08; border: 1px solid #ffffff14; border-radius: var(--radius); padding: 10px 12px 14px; text-align: center; }
.rank img { width: 100%; height: auto; display: block; }
.rank h3 { margin: 2px 0 0; font-size: 17px; font-weight: 900; }
.rank .lv { color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.rank p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.rank.boss { border-color: var(--cyan); box-shadow: 0 0 30px #22d3ee33; }

.ships img { width: 100%; height: auto; display: block; margin-top: 12px; }

.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shots img { height: 460px; border-radius: 22px; border: 2px solid var(--edge); scroll-snap-align: start; }

/* Final call to action */
.final { text-align: center; padding: 60px 0; }
.final .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid #ffffff14; padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); margin-right: 16px; }

/* Long-form pages (privacy) */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }
.doc h1 { font-size: 40px; font-weight: 900; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc p, .doc li { color: #dfe3ff; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid #ffffff1f; vertical-align: top; }
.doc th { color: var(--gold); }
.note { background: #22d3ee14; border: 1px solid #22d3ee55; border-radius: 12px; padding: 12px 16px; }

/* Phones */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 340px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  .ranks { grid-template-columns: 1fr 1fr; }
  .nav nav a { margin-left: 14px; font-size: 14px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav nav a.hide-sm { display: none; }
  .shots img { height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .hero-art img { animation: none; }
}
