/* ==========================================================================
   Design tokens — change these to re-skin the whole site (brand, theme, etc.)
   ========================================================================== */
:root {
  /* Brand */
  --accent: #f5a623;          /* primary CTA / highlights (was orange/amber) */
  --accent-hover: #ffb63d;
  --accent-ink: #1a1206;      /* text color on top of --accent */
  --accent-2: #2ecc71;        /* secondary accent: raffle/live/success green */
  --accent-2-dim: #1c7a43;
  --sidebar-icon: #ffbb29;    /* sidebar rail icon color */

  /* Surfaces */
  --bg-app: #0b0d13;          /* page background */
  --bg-sidebar: #0e1017;
  --bg-header: #10121a;
  --bg-panel: #151822;        /* cards, footer */
  --bg-panel-raised: #1b1f2c;
  --bg-tile: #191c27;
  --border-subtle: #242835;
  --border-soft: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #f3f4f7;
  --text-secondary: #9aa0ae;
  --text-muted: #868d9f; /* was #666c7a — ~3.1:1 on dark panels, fails WCAG AA (4.5:1) */

  /* Layout */
  --sidebar-width: 68px;
  --header-height: 64px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --radius-btn: 8px;
  --content-max: 1720px;
  --gutter: 24px;

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;

  /* Shadows */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.45);
}
/* ==========================================================================
   Minimal reset / base element styling
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img, svg {
  display: block;
  max-width: 100%;
}

input, select {
  font: inherit;
  color: inherit;
}

::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-track {
  background: transparent;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* ==========================================================================
   App shell — sidebar + header + main content grid
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar main";
  min-height: 100vh;
}

.topbar {
  grid-area: header;
}

.sidebar {
  grid-area: sidebar;
}

.main-content {
  grid-area: main;
  min-width: 0;
  padding: var(--gutter);
}

.content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Shared section heading row: title + count badge + "see all" + arrows */
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.section-title .count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.link-all:hover {
  color: var(--text-primary);
  background: var(--bg-panel-raised);
}

.link-all svg {
  width: 14px;
  height: 14px;
}

/* Makes an entire card clickable: drop this <a> as the last child of a
   position:relative card and give it the highest z-index in that card. */
.stretched-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Generic buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn[hidden] {
  display: none;
}

.btn-ghost {
  color: var(--text-primary);
  background: var(--bg-panel-raised);
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--border-subtle);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--bg-panel-raised);
  color: var(--text-primary);
}

.btn-dark:hover {
  background: var(--border-subtle);
}

.btn svg {
  width: 15px;
  height: 15px;
}

/* Icon buttons (bell, support, grid) -------------------------------------- */
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-panel-raised);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 2px var(--bg-header);
}
/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.topbar-nav-link svg {
  width: 16px;
  height: 16px;
}

.topbar-nav-link:hover {
  color: var(--text-primary);
}

.topbar-nav-link.is-active {
  background: rgba(245, 166, 35, 0.14);
  color: var(--accent);
}

.topbar-brand {
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.topbar-brand .brand-logo {
  height: 28px;
  width: auto;
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--border-soft);
}

@media (max-width: 1023px) {
  .topbar-nav,
  .topbar-actions .icon-btn.support-btn {
    display: none;
  }

  .topbar {
    gap: 10px;
    padding: 0 16px;
  }

  .topbar-brand {
    margin: 0;
    margin-right: auto;
  }

  .topbar-brand .brand-logo {
    height: 22px;
  }

  .topbar-auth {
    gap: 8px;
  }

  .topbar-auth .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .topbar-brand .brand-logo {
    height: 18px;
  }

  .topbar-auth .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}
/* ==========================================================================
   Vertical icon rail (desktop only, hidden < 1024px — see mobile.css)
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 12px;
  gap: 10px;
  overflow: hidden;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.sidebar-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--sidebar-icon);
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
}

.sidebar-link:hover {
  opacity: 0.8;
  background: var(--bg-panel);
}

.sidebar-link.is-active {
  background: var(--bg-panel);
}

.sidebar-link .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 2px var(--bg-sidebar);
}

.sidebar-divider {
  width: 28px;
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
  flex-shrink: 0;
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.sidebar-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  padding-top: 10px;
}

.sidebar-online .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}
/* ==========================================================================
   Hero / raffle promo banner — single full-bleed image (text baked in)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}

.hero picture {
  display: block;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}
/* ==========================================================================
   Feature cards row — Lobby / Live Casino
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card-art {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.feature-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 60%;
}

.feature-card-title {
  font-size: 26px;
  font-weight: 800;
}

.feature-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-card .btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card-body {
    max-width: 75%;
  }
}
/* ==========================================================================
   Live Wins ticker — seamless auto-scrolling marquee (pure CSS)
   ========================================================================== */
.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  padding: 14px 0 14px 18px;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  padding-right: 16px;
  border-right: 1px solid var(--border-subtle);
}

.ticker-label .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}

.ticker-label .accent {
  color: var(--accent-2);
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: ticker-scroll 42s linear infinite;
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.win-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px 8px 8px;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.win-chip:hover {
  background: var(--bg-panel-raised);
}

.win-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.win-chip-icon svg {
  width: 20px;
  height: 20px;
}

.win-chip-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.win-chip-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 3px;
}

.win-chip-game {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.win-chip-player {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ticker-label span:not(.pulse) {
    display: none;
  }
}
/* ==========================================================================
   Game grids (Originals, New releases) — fixed 6-up grid, fills full width
   ========================================================================== */
.game-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter);
}

/* min-width/min-height: 0 works around a Chromium repaint bug where grid
   items combining `aspect-ratio` with `fr` tracks can stay blank until the
   next reflow (their default `min-width: auto` confuses the sizing pass). */
.game-row > * {
  min-width: 0;
  min-height: 0;
}

/* ---- Originals: real artwork, image already carries the title/caption ---- */
.tile-original {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tile-original:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.tile-original img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-original--slot   { background: linear-gradient(160deg, #b23ee0, #6c1fb0); }
.tile-original--crash  { background: linear-gradient(160deg, #38d977, #0f8a48); }
.tile-original--plinko { background: linear-gradient(160deg, #ffb648, #e8791a); }
.tile-original--tower  { background: linear-gradient(160deg, #8b6bf2, #5230b8); }
.tile-original--x50    { background: linear-gradient(160deg, #ff5fa2, #c41f6c); }
.tile-original--mines  { background: linear-gradient(160deg, #37c9d6, #1478a8); }

/* ---- New releases: cover card + RTP badge ---- */
.tile-release {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.tile-release-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  background: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: block;
  transition: transform var(--transition-base);
}

.tile-release:hover .tile-release-cover {
  transform: translateY(-4px);
}

.tile-release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-release-rtp {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(2px);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
}

.tile-release-rtp svg {
  width: 11px;
  height: 11px;
}

.tile-release-title {
  font-size: 13px;
  font-weight: 700;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .game-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .game-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ==========================================================================
   Long-read article — table of contents nav + body typography
   ========================================================================== */
.article-shell {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- Table of contents (collapsible <nav>) ---- */
.article-toc {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-tile);
  overflow: hidden;
}

.article-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.article-toc-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.article-toc.is-open .article-toc-toggle svg {
  transform: rotate(180deg);
}

/* Collapsible height via an animatable grid track (0fr <-> 1fr) rather than
   a fixed max-height guess — always matches real content height, so longer
   TOC lists never get silently clipped. */
.article-toc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.article-toc.is-open .article-toc-panel {
  grid-template-rows: 1fr;
}

/* Grid items keep their own automatic minimum size (based on content), which
   would stop the 0fr track above from ever reaching zero. Giving the inner
   wrapper the overflow-clip and zero min-height — with the actual padding
   one level further in, on the <ul> — lets it collapse fully. */
.article-toc-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.article-toc-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.article-toc-panel a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.article-toc-panel a:hover {
  color: var(--text-primary);
  background: var(--bg-panel-raised);
}

/* ---- Article typography ---- */
.article-body {
  color: var(--text-secondary);
}

.article-body h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.article-lede {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
}

.article-body h2 {
  margin-top: 36px;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.article-body h3 {
  margin-top: 22px;
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.article-body p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
}

.article-body strong {
  color: var(--text-primary);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body ul,
.article-body ol {
  margin-top: 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.6;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li::marker {
  color: var(--accent);
  font-weight: 700;
}

.article-body li strong {
  color: var(--text-primary);
}

/* ---- Table ---- */
.article-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  white-space: nowrap;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table-wrap thead th {
  background: var(--bg-panel-raised);
  color: var(--text-primary);
  font-weight: 700;
}

.article-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.article-table-wrap tbody tr:hover {
  background: var(--bg-panel-raised);
}

/* ---- Figure / image placeholder ---- */
.article-figure {
  margin-top: 20px;
}

.article-figure-media {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, #2a2f3f, #171a24 65%);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.article-figure-media svg {
  width: 48px;
  height: 48px;
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .article-shell {
    padding: 24px 20px;
  }

  .article-toc {
    min-width: 0;
    width: 100%;
  }

  .article-body h1 {
    font-size: 26px;
  }

  .article-toc-panel ul {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .article-toc-panel a {
    width: 100%;
  }
}
/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-question svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Same animatable-grid-track technique as .article-toc-panel — see note
   there. Avoids a fixed max-height that would clip a longer answer. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

/* See the .article-toc-panel-inner note above for why this inner wrapper
   (rather than the <p> itself) is what needs overflow/min-height:0. */
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
/* ==========================================================================
   Reviews list
   ========================================================================== */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
}

.review-card[hidden] {
  display: none;
}

.review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--bg-panel-raised);
  color: var(--text-secondary);
}

.review-avatar svg {
  width: 22px;
  height: 22px;
}

.review-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.review-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-text {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.reviews-toggle {
  align-self: center;
}

@media (max-width: 640px) {
  .review-card {
    padding: 16px;
    gap: 12px;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
  }

  .review-avatar svg {
    width: 19px;
    height: 19px;
  }
}
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.6fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand .brand-logo {
  height: 22px;
  width: auto;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: var(--radius-btn);
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.lang-select svg {
  width: 14px;
  height: 14px;
}

.flag-ru {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66% 100%);
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  align-content: start;
}

.footer-nav-cols a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav-cols a:hover {
  color: var(--text-primary);
}

.footer-trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.encryption-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(46, 204, 113, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.encryption-badge svg {
  width: 14px;
  height: 14px;
}

.footer-trust p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-trust a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-reports {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-legal p {
  flex: 1;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-legal p strong {
  color: var(--text-secondary);
}

.license-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.license-badge:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.license-badge-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.license-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.license-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.license-badge-text .valid {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: 0.5px;
}

.license-badge-text .num {
  font-size: 12px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom-meta .socials {
  display: flex;
  gap: 8px;
}

.footer-bottom-meta .socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform var(--transition-fast);
}

.footer-bottom-meta .socials a:hover {
  transform: translateY(-2px);
}

.footer-bottom-meta .socials a svg {
  width: 17px;
  height: 17px;
}

/* Darker than the literal brand blues (#26a5e4 / #0077ff) — those only hit
   ~2.8:1 and ~4.1:1 against white, short of WCAG AA (3:1 for the icon,
   4.5:1 for the "VK" text). These shades keep the same hue and pass. */
.social-telegram {
  background: #1c93e3;
  color: #fff;
}

.social-vk {
  background: #0058b3;
  color: #fff;
}

.social-vk-mark {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.social-mail {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-trust {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 28px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ==========================================================================
   Responsive: sidebar collapses into a bottom tab bar below 1024px
   ========================================================================== */
.mobile-tabbar {
  display: none;
}

@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 16px 16px 96px;
  }

  .content-inner {
    gap: 28px;
  }

  .feature-card {
    min-height: 200px;
    padding: 24px;
  }

  /* Phones (<=640px) get a dedicated portrait-ish banner via the <picture>
     source in index.html, sized to look right at this width on its own.
     This min-height only still matters in the 641-1023px tablet gap, where
     it falls back to the wide desktop banner (1401x291) — without it, that
     image's aspect ratio alone would render much shorter than the
     Lobby/Live Casino cards next to it. Centering (rather than cropping
     with object-fit: cover) keeps that fallback banner fully visible. */
  .hero {
    min-height: 200px;
    display: flex;
    align-items: center;
    background: var(--bg-panel);
  }

  .footer-nav-cols {
    grid-template-columns: 1fr;
  }

  /* bottom tab bar ------------------------------------------------------ */
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(14, 16, 23, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-soft);
  }

  .mobile-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
  }

  .mobile-tabbar-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-tabbar-item.is-active {
    color: var(--accent);
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 17px;
  }

  .win-chip-game,
  .win-chip-player {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
