/* Kingmaker Casino – Dark royal palette: gold (#f5c518) crown accents on deep purple, matching favicon + logo */
:root {
  --spirit-darkest: #0e0518;
  --color-bg: #1a0b2e;
  --color-header: #150724;
  --color-bg-card: #251240;
  --color-bg-elevated: #301a52;
  --color-border: #3f2466;
  --color-border-strong: #573389;
  --color-text: #f3ecfb;
  --color-text-muted: #bba9d8;
  --color-primary: #f5c518;
  --color-primary-hover: #ffda4d;
  --color-primary-rgb: 245, 197, 24;
  --color-cta-from: #fbd13b;
  --color-cta-mid: #f5a623;
  --color-cta-to: #e07c12;
  /* Conversion buttons – Kingmaker gold crown gradient (dark text) */
  --header-btn-orange-top: #fbd13b;
  --header-btn-orange-mid: #f5a623;
  --header-btn-orange-bottom: #e07c12;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --max-width: 1200px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--color-primary-rgb), 0.35);
  color: var(--color-text);
}

/* Header */
.site-header {
  background: var(--color-header);
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, var(--safe-top));
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow-x: clip;
  min-width: 0;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  /* Mobil: erste Zeile Logo + Burger, zweite Zeile volle Breite für CTAs — kein Überlappen */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand menu"
    "cta cta";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.65rem;
  min-width: 0;
}
.header-left {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}
.header-actions-desktop { display: none !important; }
.header-actions-mobile {
  grid-area: cta;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.logo img {
  display: block;
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .logo img { height: 54px; }
}

.nav-toggle {
  grid-area: menu;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  font-size: 0;
  justify-self: end;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}
@media (min-width: 768px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    grid-template-columns: unset;
    grid-template-areas: unset;
    column-gap: unset;
    row-gap: unset;
  }
  .header-left {
    grid-area: unset;
  }
  .header-actions-mobile {
    grid-area: unset;
    width: auto;
  }
  .nav-toggle {
    grid-area: unset;
    justify-self: unset;
    display: none;
  }
  .header-actions-mobile {
    display: none !important;
  }
}

.header-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-header);
  padding: 4rem 1.5rem 1.5rem;
  transition: right 0.3s;
  z-index: 999;
}
.header-nav.is-open { right: 0; }
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.nav-close:hover { color: var(--color-primary); }
@media (min-width: 768px) {
  .nav-close { display: none; }
}
@media (min-width: 768px) {
  .header-left { gap: 2rem; }
  .header-actions-desktop { display: flex !important; }
  .header-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
  }
}

.nav-links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-links li { margin: 0; }
@media (min-width: 768px) {
  .nav-links {
    margin: 0;
    flex-direction: row;
    gap: 1.5rem;
  }
}
.nav-links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text);
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.header-actions-mobile {
  flex-direction: row;
  flex-wrap: nowrap;
}
.header-actions-desktop {
  flex-direction: column;
}
@media (min-width: 768px) {
  .header-actions-desktop { flex-direction: row; gap: 0.75rem; }
}

/* Header: slightly tighter padding on small screens (same button system as site-wide) */
.site-header .header-actions .btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.72rem;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .site-header .header-actions .btn {
    padding: 0.62rem 1.45rem;
    font-size: 0.75rem;
  }
}

/* Buttons – global: orange gradient primary + outline secondary (header reference) */
.btn {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  color: #fff;
  -webkit-text-fill-color: #fff;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
}
.btn:link,
.btn:visited,
.btn:active {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.btn-primary,
.btn-cta {
  background: linear-gradient(180deg, var(--header-btn-orange-top) 0%, var(--header-btn-orange-mid) 48%, var(--header-btn-orange-bottom) 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(224, 124, 18, 0.35);
}
.btn-primary:hover,
.btn-cta:hover {
  background: linear-gradient(180deg, #ffdc54 0%, #f9b53a 48%, #ef8c1f 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 3px 12px rgba(224, 124, 18, 0.45);
  transform: translateY(-1px);
}
.btn-outline,
.btn-outline:link,
.btn-outline:visited,
.btn-outline:active {
  background: transparent;
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: rgba(var(--color-primary-rgb), 0.10);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
  -webkit-text-fill-color: var(--color-primary-hover);
}
.btn-cta {
  padding: 0.78rem 1.75rem;
  font-size: 0.85rem;
}
.btn-outline:focus-visible {
  outline: 2px solid rgba(255, 193, 77, 0.85);
  outline-offset: 2px;
}
.btn-primary:focus-visible,
.btn-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.cta-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.age-badge {
  display: inline-block;
  padding: 0.15em 0.4em;
  font-weight: 700;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  color: var(--color-text);
}
.age-badge-img {
  display: inline-block;
  vertical-align: middle;
  height: 2rem;
  width: auto;
  margin-right: 0.35rem;
}

/* Hero banner (style like book-of-deadslot.com/pl/) */
.hero-banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(1rem, var(--safe-right)) 0 max(1rem, var(--safe-left));
  box-sizing: border-box;
}
/* Feste Höhe wie 771casino.nl (cover), nicht hohes Portrait-Seitenverhältnis */
.hero-banner--split {
  min-height: 260px;
}
@media (min-width: 768px) {
  .hero-banner--split {
    min-height: 340px;
  }
  .hero-banner--split .hero-banner-inner {
    transform: none;
  }
}
.hero-banner picture {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 0;
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Single-image hero: cinematic 21:9 strip (nav marketing art) */
.hero-banner:not(.hero-banner--split):not(.hero-banner--placeholder) {
  aspect-ratio: 21 / 9;
  min-height: 0;
}
.hero-banner.hero-banner--slot-left .hero-banner-img {
  object-position: 72% center;
}
@media (max-width: 767px) {
  .hero-banner.hero-banner--slot-left .hero-banner-img {
    object-position: 62% center;
  }
}
.hero-banner.hero-banner--slot-left {
  position: relative;
  min-height: 0;
}
.hero-banner.hero-banner--slot-left::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(14, 5, 24, 0.94) 0%,
    rgba(26, 11, 46, 0.55) 52%,
    rgba(26, 11, 46, 0.12) 100%
  );
}
.hero-banner.hero-banner--slot-left .hero-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: min(36rem, 52vw);
}
@media (max-width: 767px) {
  .hero-banner.hero-banner--slot-left .hero-banner-inner {
    max-width: 100%;
  }
}
.hero-banner.hero-banner--slot-left .hero-banner-lead {
  max-width: 28ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem max(1rem, var(--safe-right)) 2rem max(1rem, var(--safe-left));
  width: 100%;
}
.hero-banner--split .hero-banner-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  max-width: none;
  transform: none;
}
.hero-banner--split .hero-banner-text {
  margin-left: auto;
  margin-right: auto;
}
/* Login (u. a.): Text + CTA im freien Bereich links (Desktop) / oben (Mobil) */
.hero-banner--split.hero-banner--copy-left .hero-banner-inner {
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  transform: none;
  padding-left: clamp(1rem, 4vw, 2.75rem);
  padding-right: max(1rem, var(--safe-right));
}
.hero-banner--split.hero-banner--copy-left .hero-banner-lead {
  max-width: min(28rem, 90vw);
}
.hero-banner--split.hero-banner--copy-left .hero-banner-btn {
  align-self: flex-start;
}
@media (min-width: 768px) {
  .hero-banner--split.hero-banner--copy-left .hero-banner-inner {
    padding-left: clamp(1.5rem, 5vw, 3.75rem);
  }
  .hero-banner--split.hero-banner--copy-left .hero-banner-lead {
    max-width: min(26rem, 40vw);
  }
}
.hero-banner-lead {
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}
.hero-banner-text {
  color: var(--color-text);
  margin: 0;
  line-height: 1.65;
  max-width: 720px;
}
.hero-banner-btn {
  margin-top: 1rem;
  display: inline-block;
}
@media (min-width: 768px) {
  .hero-banner:not(.hero-banner--split):not(.hero-banner--placeholder):not(.hero-banner--slot-left) {
    min-height: 480px;
  }
  .hero-banner-inner {
    padding: 3rem max(1rem, var(--safe-right)) 3rem max(1rem, var(--safe-left));
  }
  .hero-banner-lead {
    font-size: 1.2rem;
  }
  .hero-banner-text {
    font-size: 1.05rem;
  }
}

/* Main content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  min-width: 0;
  overflow-x: clip;
}
.main-content-narrow { max-width: 800px; }
.main-content h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
}
.intro-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* Page nav */
.page-nav {
  margin: 0 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}
.page-nav summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: var(--color-bg-card);
  font-weight: 600;
}
.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
}
.page-nav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-text-muted);
  text-decoration: none;
}
.page-nav a:hover { color: var(--color-primary); }

/* Game grid – responsive card grid + optional horizontal scroll variant */
.game-grid-section .game-card a {
  text-decoration: none;
}
/* Top Spiele – Abstand zur Überschrift */
.game-grid-section--top-spiele h2 {
  margin-top: 0.5rem;
}
.game-grid-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.game-grid-wrap--grid {
  margin: 0 0 1.5rem;
  overflow: visible;
}
.game-grid--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  padding-bottom: 0;
}
@media (min-width: 520px) {
  .game-grid--cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .game-grid--cards { grid-template-columns: repeat(5, 1fr); }
}
.game-grid-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -1rem 1rem;
  padding: 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.game-grid-scroll::-webkit-scrollbar { height: 8px; }
.game-grid-scroll::-webkit-scrollbar-track { background: var(--color-bg-card); border-radius: 4px; }
.game-grid-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
.game-grid:not(.game-grid--cards) {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-bottom: 0.5rem;
  width: max-content;
}
.game-card {
  background: var(--color-bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}
.game-grid--cards .game-card {
  width: 100%;
  min-width: 0;
}
.game-grid:not(.game-grid--cards) .game-card {
  flex: 0 0 auto;
  width: 160px;
}
@media (min-width: 520px) {
  .game-grid:not(.game-grid--cards) .game-card { width: 175px; }
}
@media (min-width: 768px) {
  .game-grid:not(.game-grid--cards) .game-card { width: 200px; }
}
.game-card:hover { transform: translateY(-2px); }
.game-card-thumb {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  line-height: 0;
}
.game-card-title a {
  color: inherit;
  text-decoration: none;
}
.game-card-title a:hover { color: var(--color-primary); }
.game-card-cover {
  position: relative;
  aspect-ratio: 350/220;
  overflow: hidden;
}
.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-cover.game-card-cover--portrait {
  aspect-ratio: 427 / 575;
}
.game-grid--portrait .game-card-cover img {
  object-position: center top;
}
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(180deg, var(--header-btn-orange-top) 0%, var(--header-btn-orange-mid) 100%);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(15, 22, 9, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.btn-play {
  padding: 0.5rem 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 100px;
  background: linear-gradient(180deg, var(--header-btn-orange-top) 0%, var(--header-btn-orange-mid) 48%, var(--header-btn-orange-bottom) 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 6px rgba(224, 124, 18, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-play:hover {
  background: linear-gradient(180deg, #ffdc54 0%, #f9b53a 48%, #ef8c1f 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(224, 124, 18, 0.45);
}
.btn-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn-demo {
  padding: 0.5rem 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 100px;
  background: transparent;
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: 1px solid rgba(200, 210, 235, 0.55);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-demo:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: rgba(220, 228, 248, 0.9);
  transform: translateY(-1px);
}
.btn-demo:focus-visible {
  outline: 2px solid rgba(255, 193, 77, 0.85);
  outline-offset: 2px;
}
.game-card-title {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.game-grid-more {
  text-align: right;
  margin: 0;
}
.game-grid-more a {
  color: var(--color-primary);
  text-decoration: none;
}
.game-grid-more a:hover { text-decoration: underline; }

/* Content */
.main-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.main-content h2:first-of-type { margin-top: 1.5rem; }
.main-content h3 {
  font-size: 1rem;
  
}
.main-content p { margin: 0 0 1rem; }
.main-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.main-content a:hover { color: var(--color-primary-hover); }
.main-content a.btn,
.main-content .btn {
  text-decoration: none;
}
/* Ссылки-кнопки: всегда белый текст (перебивает .main-content a / :hover) */
.main-content a.btn,
.main-content a.btn:link,
.main-content a.btn:visited,
.main-content a.btn:hover,
.main-content a.btn:focus,
.main-content a.btn:active {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.main-content .btn-primary,
.main-content a.btn-primary,
.main-content .btn-cta,
.main-content a.btn-cta {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.main-content .btn-outline,
.main-content a.btn-outline {
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
}
.main-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.main-content li { margin-bottom: 0.25rem; }
.content-image {
  margin: 1.5rem auto;
  max-width: 560px;
}
.content-image picture {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.content-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.content-image--compact {
  max-width: 360px;
  margin-left: 0;
  margin-right: auto;
}
.content-image--wide {
  max-width: 1200px;
}

/* Image placeholders (client inserts real images later) */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, var(--color-bg-card) 0, var(--color-bg-card) 14px, var(--color-bg-elevated) 14px, var(--color-bg-elevated) 28px);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-muted);
  min-height: 160px;
  box-sizing: border-box;
}
.content-image--placeholder {
  width: 100%;
}
.img-placeholder-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
}
.hero-banner--placeholder .hero-banner-img {
  border-radius: 0;
  border: 0;
  background: linear-gradient(135deg, #2c1456 0%, #160a2c 100%);
}
.hero-banner--placeholder .hero-banner-img .img-placeholder-label {
  display: none;
}

/* Player reviews (review page) */
.reviews-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .reviews-list { grid-template-columns: repeat(2, 1fr); }
}
.review-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.review-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}
.review-author { font-weight: 700; }
.review-date { color: var(--color-text-muted); font-size: 0.85rem; }
.review-stars { color: #f8d32b; letter-spacing: 2px; margin-bottom: 0.5rem; }
.review-body { margin: 0; line-height: 1.6; }

/* FAQ */
.faq-section h2 { margin-top: 2rem; }
.faq-accordion {
  margin-top: 1rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  background: var(--color-bg-card);
  font-weight: 600;
}
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer {
  padding: 1rem;
  color: var(--color-text-muted);
}
.faq-answer p { margin: 0; }

/* Tables */
.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.5rem 0;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-bg-card);
}
/* Header row (multi-column tables) */
.info-table thead {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.28) 0%, rgba(var(--color-primary-rgb), 0.1) 100%);
  border-bottom: 2px solid var(--color-primary);
}
.info-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.info-table thead th:not(:last-child) {
  border-right: 1px solid rgba(var(--color-primary-rgb), 0.35);
}
/* Key-value tables: first column as label */
.info-table-kv tbody th {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-text-muted);
  font-weight: 600;
  width: 36%;
  min-width: 140px;
}
/* Body rows */
.info-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}
.info-table tbody tr:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
}
.info-table tbody tr:last-child {
  border-bottom: none;
}
.info-table tbody th,
.info-table tbody td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  vertical-align: top;
}
.info-table tbody td {
  color: var(--color-text);
}
/* Zebra striping for multi-column data tables */
.info-table:not(.info-table-kv) tbody tr:nth-child(even) {
  background: rgba(var(--color-primary-rgb), 0.05);
}
.info-table:not(.info-table-kv) tbody tr:nth-child(even):hover {
  background: rgba(var(--color-primary-rgb), 0.1);
}
/* Column separators for multi-column */
.info-table:not(.info-table-kv) tbody td:not(:last-child) {
  border-right: 1px solid var(--color-border);
}
@media (max-width: 600px) {
  .table-scroll {
    margin: 1rem 0;
    border-radius: 8px;
  }
  .info-table thead th,
  .info-table tbody th,
  .info-table tbody td {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }
  .info-table-kv tbody th {
    width: 40%;
    min-width: 120px;
  }
}

/* Footer */
.site-footer {
  background: var(--color-header);
  padding: 2rem 1rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 920px;
}
.footer-payment-item {
  display: block;
  line-height: 0;
}
.footer-payment-item img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: 0.88;
}
.footer-payments--fiat .footer-payment-item img {
  max-height: 32px;
  height: auto;
  max-width: 88px;
}
.footer-payments--crypto .footer-payment-item img {
  height: 26px;
  max-width: 64px;
}
.footer-payments-crypto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 920px;
}
.footer-payments-crypto-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}
.footer-logo {
  display: block;
  line-height: 0;
}
.footer-logo img {
  display: block;
  height: 48px;
  width: auto;
  opacity: 0.9;
}
.footer-logo:hover img { opacity: 1; }
.footer-licenses {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}
.footer-license-item {
  display: block;
  line-height: 0;
}
.footer-license-item img {
  display: block;
  max-height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.9;
}
.footer-license-item--cga img {
  max-height: 52px;
  max-width: 100px;
}
.footer-licenses a.footer-license-item:hover img { opacity: 1; }
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.footer-social a {
  display: block;
  line-height: 0;
  color: var(--color-text-muted);
  transition: opacity 0.2s;
}
.footer-social img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
}
.footer-social a:hover img { opacity: 1; }
.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-text); }
.footer-legal-notice {
  text-align: center;
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 46rem;
  line-height: 1.55;
}
.footer-legal-notice a {
  color: var(--color-primary);
  text-decoration: none;
}
.footer-legal-notice a:hover {
  text-decoration: underline;
}
/* Footer stays dark (payment/license/social icons are light SVGs) */
.site-footer {
  background: #140724;
  border-top: 3px solid var(--color-cta-mid);
}
.site-footer .footer-payments-crypto-label,
.site-footer .footer-social a,
.site-footer .footer-links a,
.site-footer .footer-legal-notice {
  color: #c3b3e0;
}
.site-footer .footer-links a:hover {
  color: #f3ecfb;
}
.site-footer .footer-legal-notice a {
  color: #f8d32b;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--header-btn-orange-top) 0%, var(--header-btn-orange-mid) 55%, var(--header-btn-orange-bottom) 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: 0 2px 12px rgba(224, 124, 18, 0.4);
  z-index: 100;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.back-to-top:hover {
  opacity: 1;
  color: #fff;
  -webkit-text-fill-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(224, 124, 18, 0.5);
  background: linear-gradient(180deg, #ffdc54 0%, #f9b53a 55%, #ef8c1f 100%);
}
.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Error page */
.error-page {
  text-align: center;
  padding: 3rem 1rem;
}
.error-page h1 { margin-bottom: 0.5rem; }
.error-page > p { color: var(--color-text-muted); margin-bottom: 1rem; }
.error-page .btn { margin-top: 1rem; }

/* ===== Kingmaker dark royal theme – accent overrides ===== */
/* Gold filled buttons take dark text for contrast (white on gold fails WCAG) */
.btn-primary,
.btn-cta,
.btn-play,
.game-badge,
.back-to-top,
.main-content a.btn-primary,
.main-content a.btn-cta,
.main-content .btn-primary,
.main-content .btn-cta,
.btn-primary:hover,
.btn-cta:hover,
.btn-play:hover,
.back-to-top:hover {
  color: #25103f;
  -webkit-text-fill-color: #25103f;
}
/* Dark-surface tweaks */
.age-badge { background: rgba(255, 255, 255, 0.10); }
.hero-banner-lead { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.game-card-overlay { background: rgba(18, 7, 36, 0.84); }
.img-placeholder-label { background: rgba(15, 6, 32, 0.55); color: var(--color-text); }
