/* Landing page + privacy page styles */
/* Overrides game-specific rules from style.css where needed */

/* style.css locks html+body with overflow:hidden for the game.
   Adding class="scrollable" to <html> on non-game pages unlocks scrolling. */
html.scrollable {
  overflow: auto;
  height: auto;
  scroll-padding-top: 52px; /* keep anchors clear of sticky header */
}

body.landing,
body.privacy-page {
  overflow: auto;
  height: auto;
  min-height: 100vh;
  display: block;
}

/* ── Landing header ───────────────────────────────────────────────────────── */
.land-header {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.land-logo {
  font-size: 18px;
  font-weight: bold;
  color: var(--purple);
  text-shadow: var(--glow-purple);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.land-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.land-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.land-nav a:hover { color: var(--cyan); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 72px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #1e0040 0%, var(--bg) 72%);
}

#hero-sigil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
}

.hero-symbol {
  font-size: 48px;
  color: var(--purple);
  text-shadow: var(--glow-purple);
  margin-bottom: 8px;
  line-height: 1;
}

.hero-title {
  font-size: clamp(52px, 9vw, 100px);
  font-weight: bold;
  color: var(--purple);
  text-shadow: 0 0 24px #9d00ffcc, 0 0 72px #9d00ff55, 0 0 160px #9d00ff22;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(13px, 1.8vw, 17px);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-play {
  display: inline-block;
  padding: 14px 44px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px #ffcc0066, 0 0 30px #ffcc0033;
}

.btn-play:hover {
  background: rgba(255, 204, 0, 0.10);
  box-shadow: 0 0 18px #ffcc00bb, 0 0 56px #ffcc0055;
}

.btn-continue {
  display: inline-block;
  padding: 8px 28px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-continue:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-cyan);
}

.btn-continue.hidden { display: none; }

.hero-sub {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* ── How to Play ──────────────────────────────────────────────────────────── */
.htp-section {
  padding: 72px 24px 64px;
  max-width: 980px;
  margin: 0 auto;
}

.section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
}

.htp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.htp-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.htp-card h3 {
  font-size: 12px;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.htp-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}

.htp-card p strong { color: var(--text); }
.htp-card p em    { color: var(--gold); font-style: normal; }

/* Visual rows inside each card */
.htp-visual {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  flex-wrap: wrap;
}

/* Maze diagram — 4×4 grid showing walls funneling a path */
.maze-diagram {
  display: grid;
  grid-template-columns: repeat(4, 18px);
  grid-template-rows: repeat(4, 18px);
  gap: 3px;
}

.md-wall {
  background: #1c1c2e;
  border: 1px solid #2e2e42;
}

.md-path {
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: inset 0 0 4px rgba(0, 229, 255, 0.2);
}

.md-enter { border-left-color: var(--cyan); box-shadow: -2px 0 6px rgba(0,229,255,0.4), inset 0 0 4px rgba(0,229,255,0.2); }
.md-exit  { border-right-color: var(--gold); box-shadow: 2px 0 6px rgba(255,204,0,0.4), inset 0 0 4px rgba(0,229,255,0.2); }

/* Tower glyphs */
.htp-tower {
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.htp-tower.cyan   { color: #00e5ff; background: rgba(0,229,255,0.08);   text-shadow: 0 0 8px #00e5ff88; }
.htp-tower.purple { color: #9d00ff; background: rgba(157,0,255,0.08);   text-shadow: 0 0 8px #9d00ff88; }
.htp-tower.pink   { color: #ff2d78; background: rgba(255,45,120,0.08);  text-shadow: 0 0 8px #ff2d7888; }
.htp-tower.violet { color: #c724ff; background: rgba(199,36,255,0.08);  text-shadow: 0 0 8px #c724ff88; }

/* Wave pip row */
.wave-pip {
  padding: 5px 9px;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
  flex-shrink: 0;
}

.wave-pip.boss-pip  { border-color: var(--pink); color: var(--pink); text-shadow: var(--glow-pink); }
.wave-pip.reset-pip { border-color: var(--gold); color: var(--gold); text-shadow: var(--glow-gold); }

.wave-connector {
  height: 1px;
  width: 10px;
  background: var(--border);
  flex-shrink: 0;
}

/* Tier / upgrade row */
.upgrade-visual { justify-content: center; }

.tier-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tier-star {
  font-size: 15px;
  color: var(--border);
}

.tier-star.filled {
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.tier-arrow {
  font-size: 11px;
  color: var(--text-dim);
  padding: 0 6px;
}

/* ── About ────────────────────────────────────────────────────────────────── */
.about-section {
  padding: 56px 24px;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  background: var(--bg2);
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-sigil {
  font-size: 34px;
  color: var(--purple);
  text-shadow: var(--glow-purple);
}

.about-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.about-text em {
  color: var(--violet);
  font-style: normal;
}

/* ── Ad slot ──────────────────────────────────────────────────────────────── */
.land-ad-slot {
  max-width: 980px;
  margin: 36px auto;
  padding: 0 24px;
}

.land-ad-slot .ad-placeholder {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
  border: 1px dashed var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.01);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.land-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.land-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.land-footer a:hover { text-decoration: underline; }

.foot-sep { color: var(--border); }

.foot-privacy-note { opacity: 0.55; }

/* ── Privacy page content ─────────────────────────────────────────────────── */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.privacy-content h1 {
  font-size: 22px;
  font-weight: bold;
  color: var(--purple);
  text-shadow: var(--glow-purple);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.privacy-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 36px;
  letter-spacing: 0.06em;
}

.privacy-content h2 {
  font-size: 12px;
  font-weight: bold;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 36px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-dim);
}

.privacy-content p,
.privacy-content li {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.privacy-content a {
  color: var(--cyan);
  text-decoration: none;
}

.privacy-content a:hover { text-decoration: underline; }

.privacy-content strong { color: var(--text); }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .htp-grid { grid-template-columns: 1fr; }

  .hero { padding: 60px 20px 52px; }

  .land-footer {
    flex-direction: column;
    gap: 6px;
  }

  .foot-sep { display: none; }

  .land-ad-slot .ad-placeholder { height: 60px; }
}
