/* intro.geogreece.app: dark only, the app's own dark palette (core/src/ui/tokens.css, .geo-dark). */
:root {
  color-scheme: dark;
  --bg: #05090d;
  --bg-2: #0b141c;
  --panel: rgba(12, 22, 31, 0.62);
  --panel-solid: #12202b;
  --line: rgba(216, 191, 142, 0.18);
  --gold: #d8bf8e;
  --hl: #ffd35c;
  --good: #3fd07a;
  --good-ink: #7be3a6;
  --second: #f0a24a;
  --bad: #ff9d8c;
  --mist: #3a7f9e;
  --ink: #eef3f6;
  --ink-2: #a9b8c4;
  --ink-3: #6f8190;
  --r: 20px;
  --display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --text: "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
/* The hidden attribute wins over any display a class gives (.btn is inline-flex). */
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, #12293a 0%, rgba(11, 20, 28, 0) 60%),
    radial-gradient(90% 60% at 80% 110%, #0d2233 0%, rgba(5, 9, 13, 0) 70%),
    var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--hl); }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--hl); color: #08161f; padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* THE STAGE: the 3D map sits behind everything and stays put while the text moves over it. */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; touch-action: pan-y; }
.gl-ready #gl { opacity: 1; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 1.2s ease; }
.gl-ready .poster { opacity: 0; }
.gl #gl { cursor: grab; }
.gl #gl.is-drag { cursor: grabbing; }
.gl #gl.is-over { cursor: pointer; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 9, 13, 0.78) 0%, rgba(5, 9, 13, 0.35) 34%, rgba(5, 9, 13, 0) 58%),
    linear-gradient(0deg, rgba(5, 9, 13, 0.6) 0%, rgba(5, 9, 13, 0) 22%),
    radial-gradient(130% 100% at 60% 45%, rgba(5, 9, 13, 0) 55%, rgba(5, 9, 13, 0.55) 100%);
  transition: opacity 0.8s ease;
}
/* The round: the map is the board, so it is lit, not shaded. */
.at-play .shade { opacity: 0.35; }
.loading { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.6s; }
.loading span { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
.gl-ready .loading, .no-gl .loading { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.labels { position: absolute; inset: 0; pointer-events: none; }
.lbl {
  position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 12px/1 var(--text); letter-spacing: 0.04em;
  color: var(--ink); text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, 0.9); opacity: 0; will-change: transform, opacity;
}
.lbl--peak { padding-left: 12px; color: #f6ead0; }
.lbl--peak::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 10px 2px rgba(255, 211, 92, 0.7); }
.lbl--peak small { display: block; margin-top: 3px; font-weight: 500; color: var(--gold); font-size: 11px; }
.lbl--region { transform-origin: 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }

.tip { position: fixed; z-index: 6; left: 0; top: 0; pointer-events: none; padding: 6px 10px; border-radius: 10px; background: rgba(8, 22, 31, 0.9); border: 1px solid var(--line); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity 0.15s; }
.tip.is-on { opacity: 1; }

.progress { position: fixed; z-index: 7; left: 0; top: 0; right: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--mist), var(--gold), var(--hl)); }

/* HEADER */
.top {
  position: fixed; z-index: 8; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px); pointer-events: none;
}
.top::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(180deg, rgba(5, 9, 13, 0.85), rgba(5, 9, 13, 0)); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: 0.01em; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0, 0, 0, 0.5); }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang a { min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.lang a[aria-current] { background: var(--gold); color: #08161f; }

.dots { position: fixed; right: clamp(14px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(216, 191, 142, 0.55); transition: background 0.3s, transform 0.3s, border-color 0.3s; }
.dots a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; color: var(--ink-2); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.dots a:hover span, .dots a:focus-visible span, .dots a.is-on span { opacity: 1; }
.dots a.is-on { background: var(--hl); border-color: var(--hl); transform: scale(1.25); box-shadow: 0 0 14px rgba(255, 211, 92, 0.6); }

/* ACTS: tall sections; the card rides over the map, the map does the rest. */
main { position: relative; z-index: 2; pointer-events: none; }
.act { min-height: 170vh; padding: 0 clamp(16px, 5vw, 80px); display: flex; align-items: center; }
.act--hero { min-height: 120vh; align-items: flex-end; padding-bottom: 22vh; }
.act--right { justify-content: flex-end; }
.act--right .card { margin-right: clamp(0px, 4vw, 60px); }
.act--wide { min-height: 150vh; }
.act--play { min-height: 115vh; align-items: flex-start; padding-top: 16vh; }
.card {
  pointer-events: auto; position: sticky; top: 18vh; max-width: 30rem; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card--hero { position: relative; top: auto; max-width: 40rem; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.card--cats, .card--parents { max-width: 44rem; }
.card--play { max-width: 26rem; top: 12vh; }
.act--play .card { top: 12vh; }

.kicker { margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.num {
  font: 800 clamp(52px, 7vw, 88px)/1 var(--display); letter-spacing: -0.04em; text-transform: none; padding-bottom: 0.08em;
  background: linear-gradient(170deg, #fff6dc 10%, var(--hl) 45%, var(--second) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
h1, h2 { font-family: var(--display); margin: 0 0 14px; letter-spacing: -0.025em; }
h1 {
  /* A gradient is painted only inside the element's box: the room below (padding) is what keeps the
     tails of γ, φ, ρ, μ, χ, ψ from being cut off; the negative margin takes the room back. */
  font-size: clamp(48px, 9vw, 124px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em;
  padding: 0.04em 0.06em 0.2em 0; margin-bottom: calc(22px - 0.2em);
  background: linear-gradient(175deg, #ffffff 30%, #f3e2bb 62%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.55));
}
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; font-weight: 700; }
p { margin: 0 0 12px; color: var(--ink-2); }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: #d4dee6; max-width: 34rem; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 22px 0 10px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--text); color: #1b1405; text-decoration: none;
  background: linear-gradient(180deg, #ffe08a, var(--hl) 50%, #f0b93c); box-shadow: 0 10px 30px rgba(255, 211, 92, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { color: #1b1405; transform: translateY(-1px); box-shadow: 0 14px 38px rgba(255, 211, 92, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); box-shadow: none; }
/* The store buttons (the owner, 2026-09-27): not links until the listings exist. Our own
   two-line shape, not Apple's or Google's artwork, which is tied to a working store link. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 5px 16px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: default; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.store__soon { font-size: 12px; line-height: 15px; color: var(--ink-2); }
.store__name { font-size: 18px; line-height: 22px; font-weight: 700; }

.exag { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.exag label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; color: var(--ink); }
.exag output { color: var(--hl); font-variant-numeric: tabular-nums; }
.exag small { color: var(--ink-3); font-size: 12px; }
input[type=range] { width: 100%; margin: 12px 0 6px; accent-color: var(--hl); height: 28px; }

.cats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cats li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.cats b { font: 800 30px/1 var(--display); letter-spacing: -0.03em; color: var(--hl); min-width: 2.2em; font-variant-numeric: tabular-nums; }
.cats span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.cats strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.cats em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--good-ink); }
.note { margin: 16px 0 0; font-size: 14px; }

.facts { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.facts div:first-child { grid-column: 1 / -1; }
.facts dt { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 14px; color: var(--ink-2); }

/* THE ROUND */
.hud { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.06); }
.ask { margin: 0; font-size: 15px; color: var(--ink-2); }
.ask b { display: block; margin-top: 4px; font: 700 26px/1.15 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.pips { list-style: none; display: flex; gap: 8px; margin: 12px 0 8px; padding: 0; }
.pips li { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); transition: background 0.3s; }
.pips li.is-now { background: rgba(255, 211, 92, 0.45); }
.pips li.g { background: var(--good); box-shadow: 0 0 10px rgba(63, 208, 122, 0.6); }
.pips li.y { background: var(--second); }
.pips li.r { background: var(--bad); }
.say { margin: 0; min-height: 1.5em; font-size: 15px; font-weight: 600; color: var(--ink); }
.say.is-good { color: var(--good-ink); }
.say.is-bad { color: var(--bad); }
.controls { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pick { width: 100%; }
.pick label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.pickline { display: flex; gap: 8px; }
select {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-solid); color: var(--ink);
  font: 500 15px var(--text);
}

.gl-only { display: none; }
.gl .gl-only { display: block; }
.no-gl-only { display: none; }
.no-gl .no-gl-only { display: block; color: var(--second); font-size: 14px; }

/* FOOTER */
.foot { position: relative; z-index: 3; padding: 60px clamp(16px, 5vw, 80px) 48px; background: linear-gradient(180deg, rgba(5, 9, 13, 0), var(--bg) 30%); color: var(--ink-3); font-size: 13px; }
.foot p { color: var(--ink-3); max-width: 60rem; }
.foot .more { font: 700 20px/1.3 var(--display); margin-bottom: 18px; }
.fine { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }

/* PHONES: the text goes to the bottom, the map keeps the top of the screen. */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .dots { display: none; }
  .act { min-height: 150vh; align-items: flex-end; padding-bottom: 6vh; }
  .act--right { justify-content: flex-start; }
  .act--right .card { margin-right: 0; }
  .card { top: auto; bottom: 16px; max-width: none; width: 100%; padding: 18px; }
  .card:not(.card--hero) { position: sticky; }
  .act--hero { min-height: 100vh; padding-bottom: 12vh; }
  .shade { background: linear-gradient(0deg, rgba(5, 9, 13, 0.85) 0%, rgba(5, 9, 13, 0.2) 45%, rgba(5, 9, 13, 0) 60%), linear-gradient(180deg, rgba(5, 9, 13, 0.6) 0%, rgba(5, 9, 13, 0) 14%); }
  .num { font-size: 48px; }
  h2 { font-size: 24px; }
  .cats, .facts { grid-template-columns: 1fr; }
  .cats li { padding: 10px 12px; }
  .cats b { font-size: 24px; }
  .act--play { align-items: flex-end; padding-top: 0; }
  .card--play { top: auto; }
  /* During a round the card shrinks to the question and the answer row: the map is the board. */
  .card--play.is-on > .kicker, .card--play.is-on > h2, .card--play.is-on > .round-intro { display: none; }
  .card--play.is-on { padding: 14px 16px; }
  .card--play.is-on .hud { margin: 0 0 12px; padding: 10px 14px; }
  .card--play.is-on .pips { margin: 10px 0 6px; }
  .ask b { font-size: 22px; }
  .lbl--region { font-size: 10px; letter-spacing: 0.08em; }
  .lbl--peak { font-size: 11px; }
}
@media (max-width: 760px) and (max-height: 760px) {
  .card p:not(.kicker) { font-size: 14px; }
}
