@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --bg: #0c0b09;
  --bg-soft: #15120d;
  --surface: #1a1814;
  --surface-strong: #221d16;
  --text: #f4efe6;
  --accent: #d4af37;
  --accent-deep: #9a7a17;
  --border: #3a3428;
  --muted: #b7ab96;
  --accent-hover: #f0d27a;
  --font-display: "Libre Baskerville", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --rail: 67.5rem;
  --shadow-soft: 0 20px 48px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-card: 1.25rem;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(212, 175, 55, 0.16), transparent 26rem),
    linear-gradient(180deg, #15110d 0%, #0c0b09 24%, #0c0b09 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Skip & a11y */
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.75rem; z-index: 80; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.masthead {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav cta";
  gap: 1.1rem;
  align-items: center;
  max-width: var(--rail);
  margin: 0.75rem auto 0;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 1.25rem;
  background: rgba(14, 12, 9, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  grid-area: brand;
  display: flex; flex-direction: row; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand img { width: 148px; height: auto; }
.eyebrow {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); opacity: 0.9;
}
#site-nav {
  grid-area: nav; display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: center;
}
#site-nav a {
  color: var(--muted); text-decoration: none; min-height: 40px;
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem; border-radius: 0.6rem;
  font-size: 0.95rem; font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}
#site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
#site-nav a[aria-current="page"] { color: var(--accent); background: rgba(212,175,55,0.08); }
.mast-cta { grid-area: cta; flex-shrink: 0; }
.burger {
  display: none; min-height: 44px; min-width: 44px; padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-pill); cursor: pointer; font-size: 0.9rem;
  font-family: var(--font-body); transition: border-color 0.15s ease;
}
.burger:hover { border-color: rgba(212,175,55,0.3); color: var(--accent); }

/* CTA Buttons */
.cta-btn, .hero-play, .game-play, .mid-cta, .final-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  background: linear-gradient(180deg, #e8c959 0%, #c49a25 100%);
  color: #12100b; font-weight: 700; font-family: var(--font-body); font-size: 0.97rem;
  text-decoration: none; border-radius: var(--radius-pill); letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(212,175,55,0.25), 0 2px 6px rgba(0,0,0,0.3);
  white-space: nowrap; text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: none; cursor: pointer;
}
.cta-btn:hover, .hero-play:hover, .game-play:hover, .mid-cta:hover, .final-cta:hover {
  background: linear-gradient(180deg, #f5d96b 0%, #d6aa2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212,175,55,0.35), 0 4px 10px rgba(0,0,0,0.35);
}
.cta-btn:active, .hero-play:active, .game-play:active { transform: translateY(0); }

/* Layout */
.shell {
  max-width: var(--rail); margin: 0 auto; padding: 2rem 1.25rem 7rem;
  display: grid; grid-template-columns: minmax(0,1fr); gap: 1.75rem;
}

/* Hero Banner */
.hero-banner[data-block="hero_banner"] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(18rem,0.8fr);
  grid-template-areas: "copy art";
  gap: 2rem; align-items: center;
  background:
    linear-gradient(120deg, rgba(212,175,55,0.1), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    #1a1510;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 1.5rem; padding: 2.5rem 2rem;
  box-shadow: var(--shadow-strong); overflow: hidden;
}
.hero-banner[data-block="hero_banner"]::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 0.35rem;
  background: linear-gradient(180deg, rgba(212,175,55,0.95), rgba(212,175,55,0.06));
  border-radius: 1.5rem 0 0 1.5rem;
}
.hero-banner img {
  grid-area: art; width: 100%; aspect-ratio: 16/11; object-fit: cover;
  border-radius: 1.1rem; border: 1px solid rgba(212,175,55,0.14);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.hero-copy {
  grid-area: copy; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem;
}
/* Reset browser default margins inside flex hero-copy */
.hero-copy > p, .hero-copy > h1 { margin: 0; }

/* Typography */
h1, h2, h3, .logo {
  font-family: var(--font-display); font-weight: 700; line-height: 1.22; letter-spacing: 0;
}
h1 { font-size: clamp(2.1rem,4.5vw,3.8rem); margin: 0; max-width: 14ch; color: var(--text); }
h2 { font-size: clamp(1.35rem,2vw,1.85rem); margin: 0.5rem 0 0.6rem; color: var(--text); }
h3 { font-size: 1.15rem; margin: 0; color: var(--text); }

.hero-copy > p:first-of-type {
  max-width: 60ch; font-size: 1.06rem; color: #ede3cf; margin: 0; line-height: 1.65;
}
.hero-offer {
  margin: 0; padding: 0.6rem 1.1rem; font-size: 1.12rem; font-weight: 700; color: #0f0d09;
  background: linear-gradient(135deg, #f5dc8e, #d2a62c);
  border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.hero-copy .hero-offer + p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.hero-play { align-self: flex-start; }

/* Prose Spacing */
.disclosure, .trust-line { color: var(--muted); font-size: 0.9rem; }
main p, main li, main td, main th { max-width: 70ch; }
main > p, main > h2, main > h3, main > ul, main > ol { max-width: 52rem; }
main > p { margin: 0.7rem 0; }
main > p:first-child { margin-top: 0; }

/* Blocks */
main > section:not(.hero-banner):not(.games-grid), main > .answer-first { position: relative; }

[data-block="hero"],
[data-block="table"],
[data-block="list_steps"],
[data-block="pros_cons"],
[data-block="faq"],
[data-block="internal_links"],
[data-block="cta"],
[data-block="trust"],
[data-block="media"] {
  padding: 1.5rem 1.6rem; border-radius: var(--radius-card);
  border: 1px solid rgba(212,175,55,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-soft);
}
[data-block="hero"] {
  background:
    linear-gradient(135deg, rgba(212,175,55,0.09), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}

[data-block="table"] h2, [data-block="list_steps"] h2, [data-block="pros_cons"] h2,
[data-block="faq"] h2, [data-block="internal_links"] h2, [data-block="cta"] h2,
[data-block="trust"] h2, [data-block="media"] h2 { margin-top: 0; }

[data-block="table"] p, [data-block="list_steps"] p, [data-block="hero"] p,
[data-block="trust"] p, [data-block="media"] p { margin-top: 0.55rem; margin-bottom: 0; }

ol, ul { padding-left: 1.35rem; }
li + li { margin-top: 0.55rem; }

[data-block="list_steps"] ol, [data-block="pros_cons"] ul,
[data-block="internal_links"] ul { margin: 0.75rem 0 0; }

[data-block="list_steps"] li, [data-block="pros_cons"] li,
[data-block="internal_links"] li { padding-left: 0.15rem; }

/* Pros/Cons */
[data-block="pros_cons"] ul { list-style: none; padding-left: 0; display: grid; gap: 0.75rem; }
[data-block="pros_cons"] li {
  margin-top: 0; padding: 1rem 1.1rem; border-radius: 1rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(212,175,55,0.09); line-height: 1.55;
}

/* Internal Links */
[data-block="internal_links"] ul {
  display: flex; flex-wrap: wrap; gap: 0.65rem; list-style: none; padding-left: 0;
}
[data-block="internal_links"] li { margin: 0; }
[data-block="internal_links"] a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0.55rem 1.1rem;
  text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.035);
  border: 1px solid rgba(212,175,55,0.12);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
[data-block="internal_links"] a:hover {
  color: var(--accent); border-color: rgba(212,175,55,0.3); background: rgba(212,175,55,0.06);
}

/* CTA Block */
[data-block="cta"] {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; text-align: left;
  background:
    linear-gradient(135deg, rgba(212,175,55,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
[data-block="cta"] p { flex: 0 1 auto; margin: 0; }
[data-block="cta"] .mid-cta, [data-block="cta"] .final-cta {
  min-height: 50px; padding: 0.85rem 1.5rem; border-radius: 0.9rem;
}
[data-block="cta"] .mid-cta {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid rgba(212,175,55,0.16); box-shadow: none;
}
[data-block="cta"] .mid-cta:hover {
  background: rgba(255,255,255,0.07); color: var(--accent);
  border-color: rgba(212,175,55,0.32);
}
[data-block="cta"] .final-cta { box-shadow: 0 12px 32px rgba(212,175,55,0.28); }
[data-block="trust"], [data-block="media"] { color: var(--muted); }
[data-block="cta"] p, [data-block="hero"] > p:first-child { margin: 0; }
[data-block="schema"] { min-height: 1px; }

/* FAQ */
[data-block="faq"].faq details,
.faq details {
  border-bottom: 1px solid rgba(212,175,55,0.12);
  padding: 0.85rem 0;
}
[data-block="faq"].faq details:last-of-type,
.faq details:last-of-type { border-bottom: none; padding-bottom: 0; }
[data-block="faq"].faq details:first-of-type,
.faq details:first-of-type { padding-top: 0; }
.faq summary {
  list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  font-weight: 700; color: #f2ead9; cursor: pointer; min-height: 44px; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; font-size: 1.35rem; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0.55rem 0 0; color: var(--muted); line-height: 1.65; }

/* Games Grid */
.games-grid { display: grid; gap: 0.5rem; }
.games-grid > p { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.92rem; }
.games-grid-inner {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  align-items: stretch;
}
.game-card {
  display: flex; flex-direction: column; gap: 0.6rem; padding: 0.85rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--surface);
  border: 1px solid rgba(212,175,55,0.1);
  overflow-wrap: break-word; hyphens: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-5px); border-color: rgba(212,175,55,0.28);
  box-shadow: 0 20px 48px rgba(0,0,0,0.38);
}
.game-poster { display: block; line-height: 0; border-radius: 0.85rem; overflow: hidden; }
.game-poster img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 0.85rem;
  transition: transform 0.3s ease;
}
.game-card:hover .game-poster img { transform: scale(1.03); }
.game-card h3 { font-size: 1.05rem; font-family: var(--font-display); color: var(--text); margin: 0; }
.game-note { flex: 1 1 auto; font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin: 0; }
.game-play { margin-top: auto; min-height: 44px; font-size: 0.9rem; padding: 0.65rem 1rem; }

/* Tables */
.table-scroll { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--surface);
  border-radius: 1rem; overflow: hidden; font-size: 0.95rem;
}
th, td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; line-height: 1.5; }
th {
  font-family: var(--font-display); font-size: 0.9rem;
  background: rgba(212,175,55,0.08); color: var(--accent);
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* Answer First */
.answer-first {
  background: linear-gradient(135deg, rgba(212,175,55,0.09), rgba(255,255,255,0.02));
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(212,175,55,0.18); border-left: 4px solid var(--accent);
  border-radius: 1rem;
}
.answer-first p { margin: 0; line-height: 1.65; }

/* Footer */
.site-foot {
  max-width: var(--rail); margin: 0 auto 1rem; padding: 2rem 1.25rem 7rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  color: var(--muted); font-size: 0.9rem; line-height: 1.55;
  border-top: 1px solid rgba(212,175,55,0.12);
}
.site-foot p { margin: 0; }
.site-foot a {
  color: var(--muted); text-decoration: underline;
  text-decoration-color: rgba(183,171,150,0.3); transition: color 0.15s ease;
}
.site-foot a:hover { color: var(--accent); }

/* Sticky CTA */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow: hidden;
  background: rgba(16,14,10,0.97);
  border-top: 1px solid rgba(212,175,55,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.sticky-cta span {
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.sticky-cta .cta-btn {
  flex: 0 0 auto;
  min-height: 42px; padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 0.75rem;
}

/* Mobile */
@media (max-width: 768px) {
  .masthead {
    position: sticky; top: 0;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . burger" "nav nav nav";
    gap: 0.5rem;
    margin: 0; border-radius: 0;
    border-top: none; border-left: none; border-right: none;
    border-bottom: 1px solid rgba(212,175,55,0.12);
  }
  /* Hide header CTA on mobile — sticky bottom bar covers it */
  .mast-cta { display: none; }
  .burger { display: inline-flex; grid-area: burger; justify-self: end; }
  #site-nav {
    display: none; flex-direction: column; gap: 0.25rem;
    grid-area: nav; grid-column: 1 / -1;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(212,175,55,0.08);
  }
  #site-nav[data-open="true"] { display: flex; }
  #site-nav a { padding: 0.55rem 0.75rem; border-radius: 0.6rem; width: 100%; }
  .hero-banner[data-block="hero_banner"] {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "copy";
    padding: 1.35rem 1.25rem; gap: 1.25rem;
  }
  .hero-copy { gap: 0.65rem; }
  h1 { max-width: 100%; }
  .hero-copy > p:first-of-type { font-size: 0.98rem; }
  [data-block="hero"], [data-block="table"], [data-block="list_steps"],
  [data-block="pros_cons"], [data-block="faq"], [data-block="internal_links"],
  [data-block="cta"], [data-block="trust"], [data-block="media"] {
    padding: 1.1rem; border-radius: 1rem;
  }
  [data-block="internal_links"] ul { flex-direction: column; }
  [data-block="internal_links"] a { width: 100%; justify-content: center; }
  [data-block="cta"] { flex-direction: column; align-items: stretch; }
  [data-block="cta"] p, [data-block="cta"] .mid-cta, [data-block="cta"] .final-cta { width: 100%; }
  .games-grid-inner { grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 1rem; }
  .shell { padding: 1.25rem 1rem 8rem; gap: 1.25rem; }
  .sticky-cta { display: flex; }
  .site-foot { padding-bottom: 8rem; }
}

@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}
