/* Tap Miner Rush — landing site styles */

:root {
  --bg: #0c0a18;
  --bg-2: #120f24;
  --surface: #1a1631;
  --surface-2: #231d40;
  --line: #322b58;
  --text: #f4efe6;
  --muted: #b4abc9;
  --gold: #ffc23d;
  --gold-2: #ff9f1c;
  --ember: #ff5e3a;
  --crystal: #56d0ff;
  --violet: #a66bff;
  --radius: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Bungee", Impact, "Arial Black", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--crystal); text-underline-offset: 3px; }
a:hover { color: #9be3ff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand:hover { color: var(--gold); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }

.hero-logo {
  width: clamp(112px, 16vw, 160px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

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

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: #1b1200; background: var(--gold); }

@media (max-width: 520px) {
  .brand span { display: none; }
  .nav-links a { padding: 8px 11px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 0;
  font: 800 1rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  color: #2a1700;
  background: linear-gradient(180deg, #ffd766, var(--gold-2));
  box-shadow: 0 5px 0 #b0600a, 0 14px 30px rgba(255, 159, 28, 0.3);
}
.btn-gold:hover { color: #2a1700; box-shadow: 0 7px 0 #b0600a, 0 18px 36px rgba(255, 159, 28, 0.4); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }

.btn-play {
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 22px 10px 16px;
  text-align: left;
}
.btn-play:hover { color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.btn-play svg { width: 28px; height: 28px; flex: none; }
.btn-play small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.btn-play strong { display: block; font-size: 1.2rem; font-weight: 800; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 96px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 45%, rgba(12, 10, 24, 0.78), rgba(12, 10, 24, 0.2) 70%),
    linear-gradient(180deg, rgba(12, 10, 24, 0.35) 0%, rgba(12, 10, 24, 0) 30%, rgba(12, 10, 24, 0) 70%, var(--bg) 100%);
}

.hero-content { max-width: 760px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(86, 208, 255, 0.12);
  border: 1px solid rgba(86, 208, 255, 0.4);
  color: #bfeeff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  color: var(--gold);
  text-shadow: 0 4px 0 #7a3b00, 0 10px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.3em;
}
.hero h1 .line-2 { display: block; color: #fff; text-shadow: 0 4px 0 #3b3561, 0 10px 40px rgba(0, 0, 0, 0.6); }

.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #e9e3f5;
  max-width: 580px;
  margin: 0 auto 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 36px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.stat-row b { color: var(--text); font-family: var(--font-display); font-weight: 400; margin-right: 6px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 10vw, 110px); }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, 0.04); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--crystal);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }

/* How it plays */
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd766, var(--gold-2));
  color: #2a1700;
  font-family: var(--font-display);
  font-size: 1.3rem;
  box-shadow: 0 4px 0 #b0600a;
}

/* Biomes */
.biomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 14px;
}
.biome {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.biome::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--c, var(--gold));
}
.biome .depth { color: var(--c, var(--gold)); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; }
.biome h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.biome p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Power-ups */
.powerups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
}
.powerup {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 30%, rgba(255, 194, 61, 0.12), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.powerup:hover { transform: translateY(-4px); border-color: rgba(255, 194, 61, 0.5); }
.powerup img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.powerup h3 { font-size: 1.05rem; margin-bottom: 6px; }
.powerup p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

/* Bosses */
.banner {
  max-width: 880px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.banner img { width: 100%; }

.bosses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .bosses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bosses { grid-template-columns: 1fr; } }

.boss {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.boss:hover { transform: translateY(-3px); border-color: var(--accent, var(--gold)); }
.boss img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 65% center; }
.boss figcaption { padding: 12px 14px 14px; }
.boss h3 { font-size: 0.95rem; margin-bottom: 2px; color: var(--accent, var(--text)); }
.boss p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

/* Final boss fills the two leftover slots of the last row */
.boss-final { grid-column: span 2; position: relative; min-height: 220px; }
.boss-final img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: center 40%; }
.boss-final figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 50px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 20, 0.8) 45%, rgba(8, 6, 20, 0.95));
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.boss-final h3 { font-size: 1.2rem; }
.boss-final p { color: #d9d2ea; max-width: 420px; }
@media (max-width: 520px) { .boss-final { grid-column: auto; } }

/* Characters */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.check-list img { width: 44px; height: 44px; }
.check-list strong { display: block; font-size: 1.05rem; }
.check-list span { color: var(--muted); font-size: 0.97rem; }

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(44px, 7vw, 72px) var(--gutter);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 15% 20%, rgba(86, 208, 255, 0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 94, 58, 0.28), transparent 45%),
    linear-gradient(135deg, #2a1f57, #1a1433);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta h2 { font-size: clamp(1.8rem, 5vw, 3rem); color: var(--gold); }
.cta p { color: #ddd6ee; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Page hero (legal / contact) ---------- */

.page-hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 96px) clamp(36px, 6vw, 56px);
  background:
    linear-gradient(180deg, rgba(12, 10, 24, 0.5), var(--bg)),
    linear-gradient(90deg, rgba(12, 10, 24, 0.85), rgba(12, 10, 24, 0.2) 70%),
    url("../img/hero.jpg") center 60% / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--gold); text-shadow: 0 4px 0 #7a3b00; }
.page-hero p { color: #ddd6ee; max-width: 620px; margin: 0; font-size: 1.1rem; }

/* ---------- Prose (privacy policy) ---------- */

.prose { max-width: 780px; }
.prose h2 {
  font-size: 1.35rem;
  margin: 2.4em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  color: var(--gold);
}
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: #dcd5ea; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.callout {
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(86, 208, 255, 0.08);
  border: 1px solid rgba(86, 208, 255, 0.3);
  margin: 0 0 1.4em;
}
.callout p:last-child { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 800; }
.prose td { color: #d3cce3; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f0c1f;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 194, 61, 0.25); }
.field .hint { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-status { margin: 0; font-weight: 700; color: var(--gold); }

.info-list { display: grid; gap: 16px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.info-card .email { font-weight: 800; font-size: 1.05rem; word-break: break-all; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(40px, 8vw, 80px);
  padding-block: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #09071299;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .powerup:hover, .boss:hover { transform: none; }
}

/* The puzzle pieces under "Piece together your crew" (2026-09-25). */
.pieces-strip {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 4px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
