/* ── Fonts ──────────────────────────────────────────────── */
/* Self-hosted. Previously loaded from fonts.googleapis.com, which disclosed
   every visitor's IP address to Google before any consent — the issue behind
   LG München I, 3 O 17493/20. Serving them from our own origin removes the
   third-party request entirely.

   Both families are variable fonts under SIL OFL 1.1; see OFL-*.txt beside
   the .woff2 files in assets/fonts/. */

/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Space Grotesk — latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk — latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:            #06070d;
  --bg-elev:       #0d1018;
  --bg-card:       rgba(255,255,255,0.035);
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --text:          #eef1f8;
  --text-dim:      #9aa3b8;
  --accent:        #8ecdf2;  /* logo sky blue  */
  --accent-2:      #ffd166;  /* logo sun gold   */
  --wheat:         #e8b84b;  /* logo wheat      */
  --dusk:          #3a5b7a;  /* logo bird navy  */
  --max:           1120px;
  --radius:        14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark, .btn {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; }

/* ── Aurora backdrop ────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #142033 0%, transparent 60%),
    var(--bg);
}

.band {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 46vh;
  filter: blur(70px);
  opacity: 0.5;
  border-radius: 50%;
  will-change: transform;
}

.band-1 {
  top: -12vh;
  background: linear-gradient(90deg, transparent, #4a90c4 30%, #8ecdf2 55%, transparent);
  opacity: 0.42;
  animation: drift 26s ease-in-out infinite alternate;
}
.band-2 {
  top: 6vh;
  background: linear-gradient(90deg, transparent, #4a7398 25%, #ffdf9a 62%, transparent);
  opacity: 0.26;
  animation: drift 34s ease-in-out infinite alternate-reverse;
}
.band-3 {
  top: 24vh;
  height: 32vh;
  background: linear-gradient(90deg, transparent, #f0c86a 40%, transparent);
  opacity: 0.16;
  animation: drift 44s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-8%) translateY(0) rotate(-3deg) scaleY(1); }
  to   { transform: translateX(8%) translateY(4vh) rotate(2deg) scaleY(1.25); }
}

/* Fine star field, drawn with two layered radial gradients. */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.2px 1.2px at 70% 18%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.6px 1.6px at 42% 62%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.1px 1.1px at 88% 48%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.3px 1.3px at 10% 78%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.2px 1.2px at 60% 88%, rgba(255,255,255,0.5), transparent);
  background-size: 480px 480px;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band { animation: none; }
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

/* Full-bleed translucent bar behind the constrained header content, so nav
   links stay readable when bright card art scrolls underneath. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

.wordmark { position: relative; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
}
.wordmark-light { color: var(--text-dim); font-weight: 400; }

.mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  /* Pixel art: keep the blocks hard-edged at any scale. */
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09), 0 2px 10px rgba(0,0,0,0.4);
}


/* ── Layout ─────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-head { margin-bottom: 3rem; }

h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--text-dim);
  margin: 0;
  font-size: 1.05rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) 1.5rem 5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.03;
  margin: 0 0 1.4rem;
  background: linear-gradient(180deg, #ffffff 30%, #a8c8e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  color: var(--text-dim);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06070d;
  font-weight: 700;
  box-shadow: 0 6px 26px rgba(255,209,102,0.22);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(255,209,102,0.34); }

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ── Games ──────────────────────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}

.game-art {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--art-a, #8ecdf2), var(--art-b, #3a5b7a));
}
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-placeholder {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  font-weight: 600;
}

.game-body { padding: 1.4rem 1.5rem 1.6rem; }
.game-body h3 { margin: 0.6rem 0 0.5rem; font-size: 1.3rem; }
.game-body p { margin: 0 0 1.2rem; color: var(--text-dim); font-size: 0.96rem; }

.status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.status-dev  { background: rgba(142,205,242,0.16); color: #a5d6f5; }  /* sky  */
.status-out  { background: rgba(255,209,102,0.16); color: #ffd166; }  /* sun  */
.status-soon { background: rgba(232,184,75,0.14);  color: #e8b84b; }  /* wheat */

.game-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.link-pill {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.link-pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(142,205,242,0.08);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.87rem;
}
.site-footer p { margin: 0; }

.socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  font-size: 0.93rem;
}
.socials a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.socials a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 1.25rem; }
  .site-header { padding: 1rem 1.25rem; }
}

@media (max-width: 420px) {
  .wordmark-light { display: none; }
}

/* ── Focus visibility ───────────────────────────────────── */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Support page ───────────────────────────────────────── */
.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) 1.5rem 3rem;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  background: linear-gradient(180deg, #ffffff 30%, #a8c8e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-forms {
  max-width: 44rem;
  padding-top: 0;
}

/* ── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem;
  margin-bottom: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.tab {
  flex: 1;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06070d;
  font-weight: 700;
}

/* ── Forms ──────────────────────────────────────────────── */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.form-intro {
  margin: 0 0 1.6rem;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.field { margin-bottom: 1.15rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.req { color: var(--accent-2); }
.opt { color: var(--text-dim); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { resize: vertical; min-height: 6rem; }

.field input::placeholder,
.field textarea::placeholder { color: #6b7385; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142,205,242,0.16);
}

/* Native select arrow, drawn so it matches the dark fields. */
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.field select option { background: #12151d; color: var(--text); }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.form button[type="submit"] {
  border: 0;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.form-status.is-ok    { color: var(--accent); }
.form-status.is-error { color: #ff9b8a; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 1.35rem; }
}

/* ── Legal / long-form pages ────────────────────────────── */
.page-head-tight { padding-bottom: 1.5rem; }

.legal-meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.legal {
  max-width: 44rem;
  padding-top: 1rem;
}

.legal h2 {
  font-size: 1.32rem;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.legal > h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal p { margin: 0 0 1rem; }

.legal ul {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
}
.legal li { margin-bottom: 0.6rem; }
.legal li::marker { color: var(--accent); }

.legal strong { color: var(--text); font-weight: 500; }

.legal a {
  color: var(--accent);
  text-decoration-color: rgba(142,205,242,0.45);
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--accent); }

/* Plain-language summary, lifted out of the wall of text. */
.legal-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 0.6rem;
  margin-bottom: 2.6rem;
}
.legal-summary h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}
.legal-summary p { color: var(--text); }

/* Unfilled placeholders — loud on purpose, so they can't ship unnoticed. */
.legal mark {
  background: rgba(255,209,102,0.16);
  color: #ffd166;
  border: 1px dashed rgba(255,209,102,0.5);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.93em;
}

/* ── Game card: icon-style art ──────────────────────────── */
/* For games whose art is a square icon rather than a 16:9 still. The
   backdrop is drawn from the icon's own palette so the two don't fight. */
/* Each card supplies its own plate and glow tints, taken from that game's
   icon, so the backdrop never fights the art sitting on it. */
.game-art-icon {
  background:
    radial-gradient(60% 80% at 78% 18%, var(--glow-a, transparent), transparent 70%),
    radial-gradient(55% 75% at 18% 88%, var(--glow-b, transparent), transparent 70%),
    var(--plate, #0a0916);
}

.game-art-icon { position: relative; }

.game-art-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 78%;
  width: auto;
  object-fit: contain;
  border-radius: 16%;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}

.legal h3 {
  font-size: 1.02rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
}
