/* Revo Games — the shared stylesheet of the content pages (privacy, terms,
   imprint, support, delete-account, 404). The homepage keeps its own inline
   styles; this file carries the same palette and type so the two read as one
   site. Plain CSS, no build step. See CLAUDE.md "Design language". */
@import url('fonts/fonts.css');

:root {
  --navy: #0B1320;      /* ground */
  --deep: #05080F;      /* footer, deep surfaces */
  --surface: #111B2C;   /* cards */
  --line: #1B2538;      /* hairlines */
  --line-strong: #33405A;
  --cream: #F8F7F2;     /* text on dark */
  --gold: #F4C542;      /* accent */
  --gold-hover: #FFD45E;
  --grey: #A7AFBD;      /* secondary text */
  --grey-dim: #8A93A3;  /* tertiary text */
  --danger: #E7766B;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font: 400 17px/1.65 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
a { color: var(--cream); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 30;
  padding: 8px 14px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 600;
}
.skip:focus { left: 16px; }

/* ---------- header (same mark and wordmark as the homepage) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 13, 24, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(51, 64, 90, 0.6);
}
.site-header .bar {
  max-width: 1240px; margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.coin {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #FFEAA8 0%, #F4C542 45%, #CF9710 100%);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(110, 70, 0, 0.38),
    0 0 0 1px rgba(255, 224, 138, 0.55), 0 10px 22px -8px rgba(244, 197, 66, 0.65);
}
.coin svg { width: 21px; height: 26px; filter: drop-shadow(0 1px 0 rgba(255, 240, 190, 0.7)); }
.brand .wordmark { height: 26px; width: auto; display: block; }

.lang-switch {
  display: flex; padding: 4px; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(5, 8, 15, 0.6);
}
.lang-switch a {
  min-width: 44px; min-height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--grey); text-decoration: none;
  font: 600 13px Poppins, system-ui, sans-serif; letter-spacing: 0.08em;
}
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--navy); }

/* ---------- content ---------- */
main { max-width: 820px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px) 72px; }
.eyebrow {
  margin: 0 0 10px; color: var(--gold);
  font: 600 13px Poppins, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
}
h1, h2, h3 { font-family: Poppins, system-ui, sans-serif; line-height: 1.2; }
h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
h2 { margin: 40px 0 12px; font-size: 21px; font-weight: 700; }
h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; color: var(--cream); }
p, li { color: #DCDFE5; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 6px; }
strong { color: var(--cream); }
.updated, .muted { color: var(--grey-dim); font-size: 15px; }
.lead { font-size: 19px; color: var(--cream); }

.card {
  margin: 24px 0; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card.accent { border-color: rgba(244, 197, 66, 0.45); }

dl.facts { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 10px 20px; margin: 0; }
dl.facts dt { color: var(--grey); }
dl.facts dd { margin: 0; color: var(--cream); overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } }

.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--gold); color: var(--navy); text-decoration: none;
  font: 600 15px Poppins, system-ui, sans-serif;
}
.button:hover { background: var(--gold-hover); color: var(--navy); }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--cream); }
details > :not(summary) { margin-bottom: 0; }

code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--deep); color: var(--cream); }

/* The legal documents, as generated from the app (athena-app
   scripts/legal-export.mjs). Their section titles are numbered in the text. */
.legal section h2 { scroll-margin-top: 80px; }

/* ---------- breadcrumbs, game page ---------- */
.crumbs { margin: 0 0 24px; font-size: 14px; color: var(--grey-dim); }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.crumbs [aria-current] { color: var(--cream); }
.game-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.game-icon { width: 76px; height: 76px; border-radius: 22.37%; box-shadow: 0 0 0 1px var(--line-strong), 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.game-wordmark { width: clamp(180px, 40vw, 240px); height: auto; }
.game-title { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 44px 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--cream); text-decoration: none;
}
.link-card:hover { border-color: rgba(244, 197, 66, 0.45); color: var(--cream); }
.link-card strong { font-family: Poppins, system-ui, sans-serif; font-weight: 600; }
.link-card span { color: var(--grey); font-size: 15px; line-height: 1.5; }
.link-card svg { position: absolute; right: 18px; top: 20px; color: var(--gold); }

/* ---------- languages ----------
   Every page carries both languages. Without JavaScript the documents show
   one after the other (EN, then TR) and the chrome stays English; with it,
   site.js sets html[data-lang] and only that language shows. */
.t[lang="tr"] { display: none; }
html[data-lang="tr"] .t[lang="tr"] { display: revert; }
html[data-lang="tr"] .t[lang="en"] { display: none; }
html[data-lang="en"] .doc[lang="tr"],
html[data-lang="tr"] .doc[lang="en"] { display: none; }
.doc + .doc { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
html[data-lang] .doc + .doc { margin-top: 0; padding-top: 0; border-top: 0; }
html[data-lang] .nojs-only { display: none; }

/* ---------- footer ----------
   The homepage's footer (index.html, inline styles there), reproduced:
   mark + wordmark on the left, the links on the right, then the copyright and
   Back to Top under a hairline. */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); }
.site-footer .inner {
  max-width: 1240px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 40px;
  display: flex; flex-direction: column; gap: 32px;
}
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.site-footer nav a { color: var(--grey); text-decoration: none; }
.site-footer nav a:hover { color: var(--cream); }
.site-footer .legal-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--grey-dim); font-size: 13px; line-height: 1.6;
}
.site-footer .to-top { color: var(--grey); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.site-footer .to-top:hover { color: var(--cream); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
