/* CasinoTopNetwork.com – refined dark theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #0c0d12;
  --bg-dark: #12141c;
  --bg-card: #1a1d28;
  --bg-elevated: #22262f;
  --bg-section: #181b24;
  --text: #f4f5f8;
  --text-muted: #a8adb8;
  --text-dim: #6b7280;
  --accent: #e85d4c;
  --accent-soft: rgba(232, 93, 76, 0.15);
  --accent-hover: #ff7a6a;
  --accent-glow: rgba(232, 93, 76, 0.35);
  --gold: #e8c547;
  --gold-soft: rgba(232, 197, 71, 0.12);
  --rating: #3dd68c;
  --rating-bg: rgba(61, 214, 140, 0.12);
  --stars: #f5c542;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --overlay: rgba(8, 9, 14, 0.82);
  --modal-bg: #fafbfc;
  --modal-text: #1a1d26;
  --table-head: linear-gradient(180deg, #f8f9fb 0%, #eef1f6 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  background-color: var(--bg-deep);
  /* Kasino-tema: kort, jetoner, mørk stemning + mørk overlay for læsbarhed */
  background-image:
    linear-gradient(
      165deg,
      rgba(10, 11, 16, 0.91) 0%,
      rgba(12, 14, 22, 0.82) 35%,
      rgba(14, 12, 20, 0.88) 70%,
      rgba(10, 11, 16, 0.93) 100%
    ),
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(232, 93, 76, 0.06), transparent 55%),
    url('../img/casino-bg.png');
  background-size: auto, auto, cover;
  background-position: center, center, center top;
  background-attachment: scroll, scroll, fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll, scroll, scroll;
  }
}

.top-bar {
  background: rgba(18, 20, 28, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0.65rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.top-bar a {
  color: #9ab8ff;
  transition: color 0.2s;
}
.top-bar a:hover {
  color: #c5d4ff;
}

a {
  color: #8eb4ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #b8ceff;
}

/* Header */
.site-header {
  background: rgba(26, 29, 40, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: center;
}
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-logo:hover .site-logo-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.site-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--accent) 0%, #c73d32 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.site-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.8vw, 1.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.site-logo-text .brand-name {
  color: var(--text);
  background: linear-gradient(135deg, #fff 0%, #e8eaef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-logo-text .brand-tld {
  font-weight: 700;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 2.75rem 0 2rem;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 800;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 20ch;
  text-align: center;
}
.hero h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.hero-intro {
  color: var(--text-muted);
  margin: 0 auto 1.25rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.65;
  text-align: center;
}
.disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 auto 1.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 93, 76, 0.12);
  max-width: 52rem;
  line-height: 1.5;
  text-align: center;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.badge:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}
.badge svg {
  flex-shrink: 0;
  opacity: 0.85;
  color: var(--gold);
}

/* Table card – hovedfokus på siden */
.casino-table-wrap {
  background: var(--modal-bg);
  color: var(--modal-text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  margin-bottom: 2.75rem;
  box-shadow:
    0 0 0 2px rgba(232, 93, 76, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(232, 93, 76, 0.06);
  -webkit-overflow-scrolling: touch;
  font-size: 1.08rem;
  width: 100%;
}
.casino-table-wrap table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  border-collapse: collapse;
}
.casino-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.casino-table th {
  text-align: center;
  vertical-align: middle;
  padding: 1.15rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #3d4450;
  background: linear-gradient(180deg, #f4f6f9 0%, #e8ecf2 100%);
  border-bottom: 2px solid #d8dee8;
}
.casino-table th:nth-child(1) { width: 5%; }
.casino-table th:nth-child(2) { width: 22%; }
.casino-table th:nth-child(3) { width: 28%; }
.casino-table th:nth-child(4) { width: 14%; }
.casino-table th:nth-child(5) { width: 12%; }
.casino-table th:nth-child(6) { width: 15%; }

.casino-row {
  border-bottom: 1px solid #eceef2;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.casino-row:hover {
  background: linear-gradient(90deg, rgba(232, 93, 76, 0.04) 0%, transparent 100%);
}
.casino-row td {
  padding: 1.35rem 0.85rem;
  vertical-align: middle;
  text-align: center;
}
.casino-row .col-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: #9ca3af;
  font-size: 1.2rem;
}
.casino-logo {
  display: block;
  width: 170px;
  height: 76px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}
.casino-row td:nth-child(3) .bonus-label,
.casino-row td:nth-child(3) .bonus-text {
  text-align: center;
}
.bonus-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.bonus-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: #141820;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.col-rating .stars {
  display: block;
  color: var(--stars);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(245, 197, 66, 0.25);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.col-rating .bedom {
  display: block;
  font-size: 0.82rem;
  color: #7c8494;
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}
.star-rating-widget {
  user-select: none;
  -webkit-user-select: none;
}
.star-rating-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
}
.star-rating-star {
  appearance: none;
  background: none;
  border: none;
  padding: 2px 3px;
  margin: 0;
  cursor: pointer;
  font-size: 1.38rem;
  line-height: 1;
  color: #d4d8e0;
  transition: color 0.12s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.star-rating-star.is-lit {
  color: var(--stars);
  text-shadow: 0 1px 3px rgba(245, 197, 66, 0.35);
}
.star-rating-star:hover {
  transform: scale(1.08);
}
.star-rating-star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.star-rating-hint {
  margin: 0.45rem 0 0;
  max-width: 11rem;
  margin-left: auto;
  margin-right: auto;
}
.casino-row td.col-score-cell {
  text-align: center;
  vertical-align: middle;
}
.col-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.14);
  border-radius: 10px;
}
.col-play .btn-play {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: white !important;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-glow);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.col-play .btn-play:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  text-decoration: none;
}
.col-play .btn-play:active {
  transform: translateY(0);
}
.col-play .dansk {
  font-size: 0.88rem;
  color: #4b5563;
  margin-top: 0.35rem;
  font-weight: 500;
  text-align: center;
}
.row-terms {
  font-size: 0.78rem;
  color: #4b5563;
  padding: 0.85rem 1.15rem 1rem;
  line-height: 1.5;
  border-bottom: 1px solid #eef0f4;
  background: #f7f8fa;
  text-align: justify;
  text-align-last: left;
  vertical-align: top;
}
.row-terms:last-of-type {
  border-bottom: none;
}
.row-terms a {
  color: #4a6fc4;
}

/* Mobil: casino-tabellen som kort */
@media (max-width: 767px) {
  .casino-table-wrap {
    overflow-x: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0.35rem;
    margin-bottom: 2rem;
  }
  .casino-table-wrap table {
    min-width: 0;
    width: 100%;
    display: block;
    border-collapse: separate;
    border-spacing: 0;
  }
  .casino-table thead {
    display: none;
  }
  .casino-table tbody {
    display: block;
  }
  .casino-table .casino-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
    align-items: center;
    position: relative;
    padding: 1rem 1rem 0.85rem;
    margin: 0;
    background: #fff;
    color: #141820;
    border: 1px solid #e2e6ed;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: none;
  }
  .casino-table .casino-row:hover {
    background: #fff;
  }
  .casino-table .casino-row td {
    display: block;
    padding: 0;
    text-align: center;
    border: none;
  }
  .casino-table .casino-row .col-num {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #6b7280;
    background: linear-gradient(180deg, #f4f6f9 0%, #e8ecf2 100%);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    z-index: 1;
  }
  .casino-table .casino-row td.col-casino {
    grid-column: 1 / -1;
    padding: 2rem 0 0.65rem;
    border-bottom: 1px solid #eceef2;
  }
  .casino-table .casino-row td:nth-child(3) {
    grid-column: 1 / -1;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eceef2;
  }
  .casino-table .casino-row td:nth-child(3) .bonus-label,
  .casino-table .casino-row td:nth-child(3) .bonus-text {
    text-align: center;
  }
  .casino-table .casino-row td.col-rating {
    grid-column: 1;
    justify-self: center;
    padding: 0.65rem 0;
    align-self: start;
  }
  .casino-table .casino-row td.col-score-cell {
    grid-column: 2;
    justify-self: center;
    padding: 0.65rem 0;
    align-self: center;
  }
  .casino-table .casino-row td.col-play {
    grid-column: 1 / -1;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f2f5;
    margin-top: 0.25rem;
    padding-bottom: 0.15rem;
  }
  .casino-table .casino-row .col-play .btn-play {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
  }
  .casino-table tbody tr:has(> td.row-terms) {
    display: block;
    margin: 0 0 1.15rem;
  }
  .casino-table tbody tr:has(> td.row-terms) td.row-terms {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e6ed;
    border-top: 1px dashed #d8dee8;
    border-radius: 0 0 14px 14px;
    margin-top: -1px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 0.75rem 0.85rem 0.9rem;
  }
}

/* Guide section – samme bredde som casino-tabellen */
.guide-section {
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-dark) 100%);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.guide-section .container {
  width: 100%;
  max-width: 1120px;
}
.guide-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
  width: 100%;
}
.guide-section p {
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  width: 100%;
  max-width: none;
  font-size: 1.02rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.guide-section h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: var(--text);
  width: 100%;
}

/* Dark FAQ section */
.content-dark {
  position: relative;
  background: var(--bg-deep);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.content-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(232, 197, 71, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 35% at 85% 70%, rgba(232, 93, 76, 0.05), transparent 45%);
  pointer-events: none;
}
.content-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 25h20L40 38l5 20-15-12-15 12 5-20-15-13h20z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}
.content-dark .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
}
.content-dark h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #c8e6a8;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
  width: 100%;
}
.content-dark h3:first-child {
  margin-top: 0;
}
.content-dark p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  width: 100%;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.content-dark strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer – samme indholdsbredde som tabellen */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.25rem;
}
.site-footer .container {
  width: 100%;
  max-width: 1120px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-links a {
  color: var(--text-muted);
  margin-left: 1.25rem;
  font-weight: 500;
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.disclaimer-block {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  width: 100%;
  max-width: none;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.disclaimer-block strong {
  color: var(--text-muted);
}
.responsible-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.responsible-row .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.35rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 93, 76, 0.25);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.responsible-row--regulators {
  justify-content: center;
  gap: 1.5rem 2rem;
  margin: 1.75rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.regulator-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.regulator-logo-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.regulator-logo-link img {
  height: 36px;
  width: auto;
  max-width: min(160px, 28vw);
  object-fit: contain;
  vertical-align: middle;
}
.regulator-logo-link[href*="ludomani"] img {
  max-width: min(200px, 36vw);
  height: 34px;
}
.responsible-row a:not(.regulator-logo-link) {
  color: var(--text-muted);
  font-weight: 500;
}
.responsible-row a:not(.regulator-logo-link):hover {
  color: var(--accent-hover);
}
.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.copyright strong {
  color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 29, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}
.cookie-banner .btn-ok {
  background: linear-gradient(180deg, #fff 0%, #f0f1f4 100%);
  color: var(--modal-text);
  border: none;
  padding: 0.55rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cookie-banner .btn-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  color: var(--modal-text);
  border-radius: var(--radius-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.modal-overlay.is-open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #4b5563;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.modal-close:hover {
  background: rgba(232, 93, 76, 0.15);
  color: var(--accent);
  transform: rotate(90deg);
}
.modal-header {
  padding: 1.75rem 1.5rem 0.75rem;
  text-align: center;
}
.modal-header .sub {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0.25rem 0;
  font-weight: 500;
}
.modal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding: 0.5rem 1.5rem 2rem;
}
@media (max-width: 700px) {
  .modal-cards {
    grid-template-columns: 1fr;
  }
}
.modal-card {
  background: linear-gradient(165deg, #2e323d 0%, #23262f 100%);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.modal-card:hover {
  transform: translateY(-4px);
}
.modal-card.featured {
  border-color: rgba(232, 93, 76, 0.55);
  box-shadow: 0 8px 32px rgba(232, 93, 76, 0.2);
}
.modal-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 76px;
  min-height: 56px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.modal-card .stars {
  color: var(--stars);
  font-size: 0.95rem;
  text-align: center;
  display: block;
}
.modal-card .bonus {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0.65rem 0;
  text-align: center;
  font-size: 1.02rem;
}
.modal-card .btn-play {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: white !important;
  padding: 0.7rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.85rem;
  box-shadow: 0 4px 16px var(--accent-glow);
  white-space: nowrap;
  transition: transform 0.2s, filter 0.2s;
}
.modal-card .btn-play:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.modal-card .terms {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

/* Policy pages */
.page-content {
  padding: 2.5rem 0 5rem;
}
.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #c8cdd8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.65rem;
  color: var(--text);
}
.page-content p,
.page-content li {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  max-width: 48rem;
}
.page-content ul {
  padding-left: 1.35rem;
}
.page-content a {
  color: #9eb6ff;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-play:focus-visible,
.modal-close:focus-visible,
.cookie-banner .btn-ok:focus-visible {
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .modal-box {
    transform: none !important;
  }
}
