/* AlchemyOrb — landing.css
   The landing / privacy pages. DARK ONLY — the neon-cyan aesthetic is inherently
   dark and this game has no light mode (James, 2026-07-20). This is the deliberate
   exception to the usual light+dark rule, same call AlchemyTD made. */

:root {
  /* brand */
  --orb-bright:#22e6ff;
  --orb-mid:   #00a3b8;
  --orb-core:  #c8fbff;
  --gold:      #ffcc00;
  --font:      'Courier New', Courier, monospace;

  /* dark theme (the only theme) */
  --bg:        #08000f;
  --bg2:       #0e001c;
  --panel:     #12002099;
  --text:      #ddc8ff;
  --text-dim:  #8a6aaa;
  --border:    #1e2a44;
  --accent:    var(--orb-bright);
  --glow:      0 0 8px #22e6ffaa, 0 0 26px #22e6ff44;
}

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

html { scroll-padding-top: 64px; }

body.landing, body.privacy-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}

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

/* ── Header ─────────────────────────────────────────────────────────────── */
.land-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.land-logo {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
  text-shadow: var(--glow);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.land-nav { margin-left: auto; display: flex; gap: 18px; }
.land-nav a { color: var(--text-dim); text-decoration: none; }
.land-nav a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 20px 56px;
  max-width: 720px;
  margin: 0 auto;
}
/* The hero canvas is a 4:3 stage (matches the @ref arena exactly) so the orb and
   the drifting rocks are the real game sizes. See hero.js. */
.hero-stage {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 8px;
  position: relative;
}
.hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: auto; /* the canvas never steals the page scroll (BRIEF-09) */
}
/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 4 / 3) {
  .hero-stage { height: clamp(220px, 60vw, 420px); }
}
.hero-title {
  font-size: clamp(40px, 9vw, 68px);
  color: var(--accent);
  text-shadow: var(--glow);
  letter-spacing: 0.04em;
  margin: 8px 0;
}
.hero-tagline { font-size: 17px; color: var(--text); margin-bottom: 28px; }
.btn-play {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 18px;
  font-weight: bold;
  color: var(--bg);
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: var(--glow);
}
.btn-play:hover { filter: brightness(1.1); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-custom {
  display: inline-block;
  padding: 14px 26px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: bold;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}
.btn-custom:hover { background: #22e6ff14; }
.hero-sub { margin-top: 20px; font-size: 13px; color: var(--text-dim); }

/* ── How-to-Play pickup legend ───────────────────────────────────────────── */
.htp-legend-title { color: var(--accent); font-size: 16px; margin: 26px 0 4px; }
.htp-legend-note  { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.pu-legend { display: flex; flex-direction: column; gap: 18px; }
.pu-group-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin-bottom: 9px;
}
.pu-row { display: flex; flex-direction: column; gap: 11px; }
.pu-item { display: flex; align-items: flex-start; gap: 11px; }
.pu-item canvas { display: block; flex-shrink: 0; margin-top: 1px; }
.pu-text { font-size: 13.5px; line-height: 1.45; }
.pu-name { font-weight: bold; }
.pu-name::after { content: " — "; color: var(--text-dim); font-weight: normal; }
.pu-desc { color: var(--text); }

/* ── Custom Game menu ────────────────────────────────────────────────────── */
.cg-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px;
  background: rgba(4, 0, 10, 0.72);
  overflow-y: auto;
}
.cg-overlay[hidden] { display: none; }
.cg-dialog {
  width: 100%; max-width: 440px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 0 40px #22e6ff22;
  padding: 20px;
  color: var(--text);
}
.cg-head { display: flex; align-items: center; gap: 10px; }
.cg-title { color: var(--accent); text-shadow: var(--glow); font-size: 22px; flex: 1; }
.cg-x {
  font-size: 22px; line-height: 1; width: 34px; height: 34px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
}
.cg-x:hover { color: var(--accent); border-color: var(--accent); }
.cg-note { color: var(--text-dim); font-size: 12.5px; margin: 6px 0 14px; line-height: 1.5; }
.cg-sec-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin: 16px 0 8px; border-top: 1px solid var(--border); padding-top: 12px;
}
.cg-presets { display: flex; gap: 8px; }
.cg-preset {
  flex: 1; padding: 10px; font-family: var(--font); font-size: 14px; font-weight: bold;
  color: var(--accent); background: #22e6ff10; border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer;
}
.cg-preset:hover { border-color: var(--accent); }
.cg-field { margin: 10px 0; }
.cg-flab { display: flex; justify-content: space-between; font-size: 13px; }
.cg-flab b { color: var(--accent); font-weight: bold; }
.cg-field input[type=range] { width: 100%; accent-color: var(--accent); height: 16px; margin-top: 3px; }
.cg-hint { font-size: 10.5px; color: var(--text-dim); margin-top: 1px; }
.cg-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 5px; font-family: var(--font); font-size: 11.5px;
  color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 20px; cursor: pointer;
}
.cg-toggle canvas { display: block; }
.cg-toggle.off { opacity: 0.34; }
.cg-toggle.off canvas { filter: grayscale(1); }
.cg-save-row { display: flex; gap: 8px; }
.cg-name {
  flex: 1; font-family: var(--font); font-size: 13px; padding: 8px 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 5px;
}
.cg-slots { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.cg-empty { color: var(--text-dim); font-size: 12px; }
.cg-slot { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cg-slot-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-btn, .cg-mini {
  font-family: var(--font); color: var(--accent); background: #22e6ff10;
  border: 1px solid var(--border); border-radius: 5px; cursor: pointer;
}
.cg-btn { font-size: 13px; padding: 9px 14px; }
.cg-mini { font-size: 11px; padding: 5px 9px; }
.cg-btn:hover, .cg-mini:hover, .cg-name:focus { border-color: var(--accent); outline: none; }
.cg-link-note { font-size: 11.5px; color: var(--gold); min-height: 15px; margin: 12px 0 6px; }
.cg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cg-actions .cg-btn { flex: 1; }
.cg-play { background: var(--accent); color: var(--bg); font-weight: bold; border-color: var(--accent); }
.cg-play:hover { filter: brightness(1.1); }

/* ── Content sections ───────────────────────────────────────────────────── */
.htp-section, .about-section, .privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-title { color: var(--accent); margin-bottom: 20px; }
.htp-section ul { padding-left: 20px; }
.htp-section li { margin-bottom: 8px; }
.about-text { color: var(--text-dim); }

.privacy-content h1 { color: var(--accent); text-shadow: var(--glow); margin-bottom: 6px; }
.privacy-content h2 { color: var(--accent); margin: 24px 0 8px; font-size: 18px; }
.privacy-content p, .privacy-content li { margin-bottom: 10px; }
.privacy-date { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }

/* ── Ad slot (leaderboard) — dashed placeholder only; account in review ──── */
.land-ad-slot { max-width: 980px; margin: 36px auto; padding: 0 20px; }
.land-ad-slot .ad-placeholder {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Consent banner (shared markup injected by consent.js) ───────────────── */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
}
.consent-text { flex: 1; min-width: 220px; line-height: 1.5; }
.consent-text a { color: var(--accent); }
.consent-actions { display: flex; gap: 8px; }
.consent-btn {
  font-family: var(--font);
  font-size: 12px;
  padding: 8px 16px;
  min-height: 40px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
}
.consent-btn.accept { background: var(--accent); color: var(--bg); font-weight: bold; }
.consent-btn:hover  { filter: brightness(1.1); }

@media (max-width: 640px) {
  .land-ad-slot .ad-placeholder { height: 60px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.land-footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.land-footer a { color: var(--text-dim); text-decoration: none; }
.land-footer a:hover { color: var(--accent); }
.foot-sep { margin: 0 8px; opacity: 0.5; }
