/* Grave Robber — design system
   Palette sampled directly from the game client (see research dossier). */

/* Bebas Neue — SIL Open Font License 1.1, self-hosted (latin subset). */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://graverobbergame.com/fonts/bebas-neue-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a1428;
  --surface: #131c33;
  --panel: #1b2440;
  --panel-2: #232e50;
  --line: #2c3860;

  --accent: #ffb114;
  --accent-dim: #c98a00;
  --accent-2: #2fc6cc;
  --danger: #c1272d;
  --success: #6ec06e;

  --text: #f2f4f8;
  --muted: #93a0bf;

  --maxw: 1120px;
  --radius: 14px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);

  --font-display: "Bebas Neue", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-top: 1.8em; }

p { margin: 0 0 1.1em; }

.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: #dbe2f2; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 66px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand span { color: var(--accent); }

.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; align-items: center; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #16223c;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85em 2.1em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(120% 90% at 70% 0%, rgba(47, 198, 204, 0.16), transparent 60%),
    linear-gradient(180deg, #0d1a33 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.6rem 0 0; }

/* ---------- Fact strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0 0;
}
.facts div { background: var(--panel); padding: 1rem 1.15rem; }
.facts dt, .facts .k {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); margin-bottom: 0.3rem;
}
.facts dd, .facts .v {
  margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
}

/* ---------- Cards ---------- */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Callouts ---------- */

.note {
  border-left: 3px solid var(--accent-2);
  background: var(--surface);
  padding: 1.05rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6rem 0;
}
.note.warn { border-left-color: var(--danger); }
.note.key { border-left-color: var(--accent); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--text); }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 0.7rem;
}
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.05em;
  color: var(--muted); text-transform: uppercase; background: var(--surface);
}
tbody tr:hover { background: rgba(255, 177, 20, 0.05); }
td.num, th.num { text-align: right; font-weight: 600; color: var(--accent); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Difficulty toggle (paytable) ---------- */

.diff-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 0.5rem;
}
.diff-toggle button {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em;
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  padding: 0.5em 1.4em; border-radius: 999px; text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.diff-toggle button:hover { color: var(--text); }
.diff-toggle button[aria-pressed="true"] { background: var(--accent); color: #16223c; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.35rem 3.2rem;
  border-left: 1px solid var(--line);
  margin-left: 1.1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -1.1rem; top: -0.15rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #16223c;
  font-family: var(--font-display); font-size: 1.15rem;
  display: grid; place-items: center;
}
.steps strong { color: var(--text); }

/* ---------- FAQ ---------- */

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
}
details.faq summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none;
}
details.faq[open] summary::after { content: "\2013"; }
details.faq > *:not(summary) { padding-bottom: 0.4rem; }

/* ---------- Screenshot figures ---------- */

figure { margin: 1.75rem 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.65rem; }

/* ---------- Breadcrumbs ---------- */

.crumbs { font-size: 0.87rem; color: var(--muted); padding: 1.25rem 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }

/* ---------- CTA band ---------- */

.cta-band {
  margin: clamp(3rem, 8vw, 5rem) 0 0;
  background: linear-gradient(135deg, #17233f, #101a30);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 6vw, 3.25rem) 0;
  text-align: center;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { max-width: 52ch; margin-inline: auto; }

/* ---------- Footer ---------- */

.site-footer {
  background: #070f1f;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent-2); }
.footer-cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-cols h4 {
  color: var(--text); font-size: 1.05rem; margin: 0 0 0.7rem;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.4rem; }
.footer-legal {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; line-height: 1.6;
}
.age { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border: 2px solid var(--danger); color: var(--danger); border-radius: 50%;
  font-weight: 700; font-size: 0.82rem; margin-right: 0.6rem; vertical-align: middle; }

/* ---------- Utilities ---------- */

.section { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ============================================================
   Additions: cookie consent, sticky CTA, inline CTA, gallery
   ============================================================ */

/* ---------- Cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: #0d1830; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0,0,0,.4);
  transform: translateY(110%); transition: transform .3s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem clamp(1rem,4vw,2rem);
  display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap;
}
.cookie-text { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--muted); }
.cookie-text a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie-btn { padding: .6em 1.5em; font-size: .95rem; }

/* ---------- Sticky CTA (reveals on scroll) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(13,24,48,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .wrap {
  display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(1rem,4vw,2rem);
}
.sticky-cta .sticky-label { margin: 0; font-weight: 600; font-size: .98rem; }
.sticky-cta .sticky-label span { color: var(--muted); font-weight: 400; display: block; font-size: .82rem; }
.sticky-cta .btn { margin-left: auto; flex: 0 0 auto; }
/* keep the cookie bar clear of the sticky CTA when both show */
.cookie-bar.show ~ .sticky-cta.show { bottom: 84px; }
@media (max-width: 560px) {
  .sticky-cta .sticky-label span { display: none; }
  .sticky-cta .btn { padding: .7em 1.4em; }
}

/* ---------- Inline CTA block (mid-content) ---------- */
.cta-inline {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,177,20,.12), rgba(47,198,204,.08));
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.cta-inline p { margin: 0; flex: 1 1 260px; }
.cta-inline strong { color: var(--text); }
.cta-inline .btn { flex: 0 0 auto; }

/* ---------- Image gallery ---------- */
.gallery {
  display: grid; gap: 1rem; margin: 1.75rem 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.gallery figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }

/* give the body room so the sticky bar never hides the footer's last line */
body { padding-bottom: 0; }
main { padding-bottom: 2rem; }

/* ---------- Verdict box ---------- */
.verdict {
  background: linear-gradient(135deg, #17233f, #101a30);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem); margin: 1.5rem 0;
}
.verdict-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.verdict-score {
  flex: 0 0 auto; display: grid; place-items: center; text-align: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #24345c, #141f38);
  border: 2px solid var(--accent);
}
.verdict-score b { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1; }
.verdict-score span { font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.verdict-head h3 { margin: 0; }
.verdict-stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.proscons { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.2rem 0; }
.proscons ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.proscons li { padding: .3rem 0 .3rem 1.7rem; position: relative; }
.proscons h4 { margin: 0; font-size: 1.05rem; }
.pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before { content: "\2013"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

/* ---------- Similar games ---------- */
.simcard { display: flex; flex-direction: column; }
.simcard .tag {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid var(--line); border-radius: 999px;
  padding: .15rem .6rem; margin-bottom: .6rem; align-self: flex-start;
}
.simcard h3 { margin: 0 0 .4rem; }
.simcard p { flex: 1; }
.simcard a.more { font-size: .9rem; }
