/* Coming-soon landing pages. Mobile first; no external requests (fonts are self-hosted, OFL). */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg1: #2A2166;
  --bg2: #120E30;
  --accent: #FFD84A;
  --glow: rgba(74, 51, 128, 0.55);
  --ink: #1D1638;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.78);
  --panel: rgba(12, 9, 34, 0.46);
  --line: rgba(255, 255, 255, 0.16);
  --radius: 18px;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Fredoka", ui-rounded, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg2);
  background-image:
    repeating-conic-gradient(from 0deg at 50% 12%, rgba(255, 255, 255, 0.05) 0deg 9deg, transparent 9deg 18deg),
    radial-gradient(ellipse 90% 55% at 50% 0%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg2) 55%, #07051A 100%);
  background-repeat: no-repeat;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 18px;
}

/* Header */
.top { padding-block: 14px; }
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.brand img { height: 34px; width: auto; display: block; }

/* Display headings in the clips' style: white with a dark outline */
.title {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  margin: 0;
  color: #FFFFFF;
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
  letter-spacing: 0.5px;
}
h1.title { font-size: clamp(40px, 11vw, 68px); }

.tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hook {
  margin: 14px 0 0;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.soon {
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.video .note { text-align: center; font-size: 13px; margin-top: 10px; }

/* Concept page layout */
.hero {
  display: grid;
  gap: 22px;
  grid-template-areas: "copy" "signup" "video";
  padding-block: 8px 28px;
}
.copy { grid-area: copy; }
.signup-area { grid-area: signup; }
.video { grid-area: video; justify-self: center; width: min(82vw, 360px); }

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 360px 1fr;
    grid-template-areas: "video copy" "video signup";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
    padding-top: 28px;
  }
  .video { width: 360px; }
  .copy { padding-top: 24px; }
}

.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 6px solid var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.phone video, .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(2px);
}
.panel h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.3px;
}
.panel p { margin: 0; }

/* Sign-up form */
.signup label.field { display: block; font-weight: 600; margin: 12px 0 6px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  font: inherit;
}
.btn {
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.btn:disabled { opacity: 0.6; cursor: wait; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #9CF2B2; }
.form-msg.err { color: #FFB3B3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Store badges (hidden until a link exists in config.js) */
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.stores a { display: inline-block; line-height: 0; }
.stores img { height: 48px; width: auto; }

/* How it plays */
.how ol { margin: 8px 0 0; padding-left: 22px; }
.how li { margin: 6px 0; }

/* Other games */
.more { padding-block: 10px 30px; }
.more h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

/* Index grid */
.intro { padding-block: 18px 8px; }
.intro h1.title { font-size: clamp(36px, 9vw, 60px); }
.intro p { max-width: 640px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 18px 0 34px;
  margin: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  border: 3px solid var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .art { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px 14px 0; }
.card .art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .body { padding: 12px 16px 16px; background: rgba(12, 9, 34, 0.5); flex: 1; }
.card h2 { font-size: 28px; }
.card p { margin: 6px 0 10px; font-weight: 600; }
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
}

/* Text pages (privacy, terms, support) */
.doc { max-width: 760px; padding-block: 10px 40px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 8vw, 48px); margin: 10px 0 6px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 30px 0 8px; scroll-margin-top: 16px; }
.doc h3 { font-size: 19px; font-weight: 600; margin: 22px 0 6px; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.92); }
.doc li { margin: 4px 0; }
.doc code { font-size: 0.9em; overflow-wrap: anywhere; }
.doc a { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin: 10px 0;
  padding: 0 14px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 24px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.faq details p { margin: 0 0 12px; }
.doc-links { color: var(--muted); font-size: 15px; }

/* Game page without a clip: key art instead of the phone video */
.hero-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 18px 28px;
  color: var(--muted);
  font-size: 14px;
}
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Consent bar (only rendered when a Meta Pixel ID is configured) */
.consent-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0E0B24;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 15px;
}
.consent-bar .row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.consent-bar button { height: 42px; padding: 0 18px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.consent-bar .yes { background: var(--accent); color: var(--ink); }
.consent-bar .no { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
