/* Lantern Town website. Plain CSS, no build step. Colours follow the game: night navy and lantern gold. */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --night: #0e1124;
  --night-2: #141a38;
  --night-3: #1c2450;
  --line: rgba(255, 226, 160, .14);
  --ink: #f7f0de;
  --muted: #c3c8e0;
  --gold: #f2c14e;
  --gold-2: #ffdf8f;
  --gold-ink: #241a04;
  --ember: #ff9d4d;
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--night);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(242, 193, 78, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(80, 100, 200, .16), transparent 60%),
    linear-gradient(180deg, #0b0e1e 0%, var(--night) 30%, #10142c 100%);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Baloo 2", "Figtree", system-ui, sans-serif; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(11, 14, 30, .72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.25rem/1 "Baloo 2", sans-serif; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 4px 18px rgba(242, 193, 78, .25); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: 8px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 999px; font: 700 1rem/1.15 "Figtree", sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 24px rgba(242, 193, 78, .35), inset 0 -2px 0 rgba(120, 70, 0, .35); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.06); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.store { display: flex; align-items: center; gap: 12px; min-width: 210px; min-height: 58px; padding: 10px 18px 10px 14px; border-radius: 16px; background: rgba(8, 10, 24, .7); border: 1px solid rgba(255, 223, 143, .35); color: var(--ink); text-decoration: none; }
.store svg { flex: none; width: 28px; height: 28px; fill: var(--gold-2); }
.store small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.store b { display: block; font: 700 1.08rem/1.15 "Figtree", sans-serif; }
a.store:hover { border-color: var(--gold-2); background: rgba(20, 24, 54, .85); color: var(--ink); }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 12, 28, .94) 0%, rgba(10, 12, 28, .78) 38%, rgba(10, 12, 28, .15) 70%, rgba(10, 12, 28, .05) 100%),
              linear-gradient(0deg, var(--night) 0%, rgba(14, 17, 36, 0) 28%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: min(88vh, 860px); padding-block: 72px 96px; }
.hero .wrap > div { max-width: 560px; }
.hero h1 { font-size: clamp(3.2rem, 2rem + 5vw, 6rem); font-weight: 800; margin: 0; color: var(--gold-2);
  text-shadow: 0 0 36px rgba(242, 193, 78, .45), 0 2px 0 rgba(90, 50, 0, .6); }
.hero .sub { font: 700 clamp(1.35rem, 1rem + 1.4vw, 2rem)/1.2 "Baloo 2", sans-serif; color: var(--ink); margin: .2em 0 .7em; }
.hero .lede { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-phone { justify-self: center; width: min(100%, 340px); }
.play-web { margin-top: 18px; }
.play-web[hidden] { display: none; }
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; }
  .hero-bg { position: relative; inset: auto; height: 62vw; min-height: 230px; order: -1; }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 17, 36, 0) 55%, var(--night) 100%); }
  .hero::after { display: none; }
  .hero .wrap { min-height: 0; padding-block: 8px 40px; text-align: center; }
  .hero .wrap > div { max-width: none; }
  .hero .lede { margin-inline: auto; }
  .stores { justify-content: center; }
}
@media (max-width: 400px) { .store { min-width: 0; width: 100%; } }

/* ---------- phone frame around real screenshots ---------- */
.phone { position: relative; border-radius: 38px; padding: 9px; background: linear-gradient(160deg, #2a3366, #121733 60%); box-shadow: 0 0 0 1px rgba(255, 223, 143, .22), 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(242, 193, 78, .14); }
.phone picture, .phone img { border-radius: 30px; overflow: hidden; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: var(--night-2); }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: rgba(16, 20, 44, .92); padding: 20px 18px; text-align: center; }
.facts b { display: block; font: 800 1.9rem/1 "Baloo 2", sans-serif; color: var(--gold-2); }
.facts span { color: var(--muted); font-size: .95rem; }
.facts-band { margin-top: -36px; position: relative; z-index: 2; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-band { margin-top: 24px; } }

/* ---------- feature sections ---------- */
.feature { padding-block: clamp(64px, 9vw, 120px); }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.flip .shot { order: 2; }
.feature .shot { justify-self: center; width: min(100%, 390px); }
.kicker { display: inline-block; font: 700 .82rem/1 "Figtree", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.feature p.intro { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff6d0 0 22%, var(--gold) 45%, rgba(242, 193, 78, 0) 72%); box-shadow: 0 0 12px rgba(242, 193, 78, .8); }
.ticks b { color: var(--gold-2); font-weight: 600; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.duo .phone:nth-child(2) { transform: translateY(-28px); }
.feature .shot.wide { width: min(100%, 520px); }
@media (max-width: 860px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .feature .shot { width: min(82%, 330px); }
  .feature .shot.wide { width: 100%; max-width: 460px; }
}
.alt { background: linear-gradient(180deg, rgba(28, 36, 80, .35), rgba(28, 36, 80, .12)); border-block: 1px solid var(--line); }

/* ---------- calm cards ---------- */
.calm { padding-block: clamp(64px, 9vw, 120px); text-align: center; }
.calm h2 { color: var(--gold-2); }
.calm .intro { color: var(--muted); max-width: 52ch; margin: 0 auto 40px; font-size: 1.15rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
.card { background: linear-gradient(180deg, rgba(30, 38, 84, .7), rgba(18, 22, 50, .7)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .ico { width: 44px; height: 44px; margin-bottom: 14px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- final call ---------- */
.cta { text-align: center; padding-block: 72px 96px; }
.cta img.mark { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 18px; box-shadow: 0 0 0 1px var(--line), 0 10px 50px rgba(242, 193, 78, .35); }
.cta .stores { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--gold-2); }
.foot .copy { margin-left: auto; }
@media (max-width: 560px) { .foot .copy { margin-left: 0; width: 100%; } }

/* ---------- text pages (privacy, support, q) ---------- */
.page { padding-block: 56px 80px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 800; color: var(--gold-2); }
.page h2 { font-size: 1.6rem; margin-top: 2em; }
.page h3 { margin-top: 1.4em; }
.page .meta { color: var(--muted); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .5em; }
.page li::marker { color: var(--gold); }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .97rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page th { color: var(--gold-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.box { background: rgba(28, 36, 80, .45); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 1.4em 0; }
.box > :last-child { margin-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font: 700 1.15rem/1.3 "Baloo 2", sans-serif; color: var(--ink); list-style: none; padding-right: 30px; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--gold); font-size: 1.5rem; }
details[open] summary::after { content: "–"; }
details > div { padding-top: 10px; color: var(--muted); }
details > div strong { color: var(--ink); }
.postcard img { border-radius: 18px; transform: rotate(-2.5deg); box-shadow: 0 0 0 1px rgba(255, 223, 143, .25), 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(242, 193, 78, .16); }
