@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #120e0b;
  --bg-2: #1a1410;
  --surface: #211912;
  --surface-2: #2b2118;
  --border: #3d2f23;
  --text: #f4ebdc;
  --muted: #bcaa91;
  --faint: #8c7b66;
  --crimson: #c8372b;
  --crimson-2: #e04b3c;
  --gold: #e7b75c;
  --gold-2: #f3cf85;
  --space: #3fc6f0;
  --radius: 16px;
  --max: 1160px;
  --head: "Cinzel", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--head); font-weight: 800; letter-spacing: .02em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[id] { scroll-margin-top: 84px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 14, 11, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; white-space: nowrap; }
.brand img { width: auto; height: 48px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--text); background: var(--surface-2); border-color: #5a4533; transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.btn-primary { background: linear-gradient(180deg, var(--crimson-2), var(--crimson)); border-color: #8f2219; }
.btn-primary:hover { background: linear-gradient(180deg, #ea5a4b, var(--crimson-2)); border-color: #8f2219; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(200, 55, 43, .28), transparent 60%),
    radial-gradient(700px 380px at 5% 100%, rgba(231, 183, 92, .14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.hero-art { position: relative; height: 380px; }
.hero-art img { position: absolute; width: 46%; border-radius: 24%; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.hero-art img:nth-child(1) { left: 2%; top: 4%; transform: rotate(-8deg); }
.hero-art img:nth-child(2) { right: 4%; top: 0; transform: rotate(7deg); }
.hero-art img:nth-child(3) { left: 14%; bottom: 0; transform: rotate(4deg); }
.hero-art img:nth-child(4) { right: 10%; bottom: 6%; width: 38%; transform: rotate(-5deg); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--muted); }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.games-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .games, .games-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .games, .games-3 { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.card-top { display: flex; gap: 14px; align-items: center; }
.card-top img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .btn-row { margin-top: auto; }
.card .btn { padding: 9px 12px; font-size: .85rem; }
.card .btn svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .74rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }

/* About / facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.facts strong { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--gold); }
.facts span { color: var(--muted); font-size: .92rem; }

/* Legal / prose */
.prose { max-width: 50em; }
.prose h3 { margin-top: 2em; color: var(--gold-2); }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--crimson-2); }
.prose strong { color: var(--text); }
.updated { color: var(--faint); font-size: .9rem; margin-bottom: 1.6em; }
.legal-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 50em; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.contact-card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, rgba(200,55,43,.18), rgba(231,183,92,.08)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card strong { display: block; color: var(--text); font-size: 1.1rem; }

/* Game page */
.crumbs { font-size: .85rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.game-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.game-hero > img { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.game-hero h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.game-hero .chips { margin: 0 0 18px; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.shots img { flex: none; height: 420px; width: auto; border-radius: 14px; border: 1px solid var(--border); scroll-snap-align: start; background: var(--surface); }
.shots.landscape img { height: 300px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.features h3 { font-size: 1rem; color: var(--gold-2); margin-bottom: .4em; }
.features p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--muted); font-size: .92rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-family: var(--body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--gold); margin-bottom: .1em; }
.notfound .btn-row { justify-content: center; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { height: 260px; max-width: 380px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .nav { justify-content: space-between; }
  .nav a { padding: 6px 8px; font-size: .9rem; }
  [id] { scroll-margin-top: 112px; }
  .section { padding: 52px 0; }
  .game-hero { grid-template-columns: 1fr; gap: 18px; }
  .game-hero > img { width: 112px; height: 112px; border-radius: 26px; }
  .shots img { height: 340px; }
  .shots.landscape img { height: 190px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
