/* Runa Casino — brand palette derived from logo (yellow/black) + hero (violet/gold) */
:root {
  --bg: #10081c;
  --bg-elevated: #1a102c;
  --bg-soft: #24163a;
  --surface: #2a1b45;
  --border: rgba(232, 197, 71, 0.18);
  --border-strong: rgba(168, 85, 247, 0.35);
  --text: #f4eefc;
  --text-muted: #c9bdd9;
  --text-dim: #9b8cb0;
  --accent: #e8c547;
  --accent-hot: #ffe566;
  --accent-hover: #fff1a0;
  --violet: #9b5cff;
  --violet-deep: #6d28d9;
  --magenta: #d946ef;
  --success: #34d399;
  --danger: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(232, 197, 71, 0.45);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(109, 40, 217, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(217, 70, 239, 0.12), transparent 50%),
    linear-gradient(180deg, #140a22 0%, var(--bg) 240px, var(--bg) 100%);
  min-height: 100vh;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1020;
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #12091f;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  /* Keep bar fully visible over browser/notch chrome */
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  /* Fixed slot — avoids header CLS when logo bitmap loads / breakpoints change */
  width: 118px;
  height: 48px;
}

.brand img {
  width: 118px;
  height: 48px;
  max-width: none;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  flex: 1;
  min-width: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(155, 92, 255, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hot) 0%, var(--accent) 100%);
  color: #1a1020;
  box-shadow: 0 6px 16px rgba(232, 197, 71, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fff4b0 0%, var(--accent-hot) 100%);
  color: #1a1020;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hot);
  background: rgba(232, 197, 71, 0.08);
}

.btn-violet {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff;
}

.btn-violet:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-lg {
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

/* Hero — mobile-first aspect to match LCP art direction (CLS-safe) */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 0.25rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
  width: 100%;
  /* Default = mobile crop 800×1000; desktop overrides below */
  aspect-ratio: 800 / 1000;
  contain: layout paint;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  /* Override global height:auto so reserved box never collapses */
  aspect-ratio: unset;
}

@media (min-width: 721px) {
  .hero-media {
    aspect-ratio: 1400 / 438;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0 0.25rem;
  min-height: 48px;
}

.hero-note {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8125rem;
  min-height: 1.3em;
}

/* Quick bonus strip */
.bonus-strip {
  max-width: var(--max);
  margin: 1.1rem auto 0;
  padding: 0 1rem;
}

.bonus-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(109, 40, 217, 0.35), rgba(232, 197, 71, 0.12)),
    var(--bg-elevated);
  border: 1px solid var(--border-strong);
}

.bonus-strip-copy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.bonus-strip-copy span {
  color: var(--accent-hot);
}

/* Content */
.main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.article {
  background: rgba(26, 16, 44, 0.72);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.25rem 2rem;
}

.article > *:first-child {
  margin-top: 0;
}

.article h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.article h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  margin: 2rem 0 0.85rem;
  color: #fff;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(155, 92, 255, 0.25);
}

.article h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 1.35rem 0 0.55rem;
  color: var(--accent-hot);
}

.article p,
.article li {
  color: var(--text-muted);
}

.article p {
  margin: 0 0 1rem;
}

.article ul,
.article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.article li {
  margin-bottom: 0.45rem;
}

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

.article em {
  color: var(--text-dim);
  font-style: italic;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9375rem;
}

.article th,
.article td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article th {
  background: rgba(155, 92, 255, 0.18);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.article td {
  color: var(--text-muted);
}

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

.article tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.faq-list h3 {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
}

/* Mid CTA */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  margin: 1.75rem 0;
  padding: 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.25), rgba(232, 197, 71, 0.1));
  border: 1px solid var(--border);
}

/* Inner page top */
.page-top {
  max-width: var(--max);
  margin: 0.85rem auto 0;
  padding: 0 1rem;
}

.page-top-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(125deg, rgba(109, 40, 217, 0.32), rgba(232, 197, 71, 0.1) 55%, transparent),
    var(--bg-elevated);
}

.page-top-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.page-top-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.page-top-lead {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.toc {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.toc-title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc li {
  margin: 0.28rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent-hot);
  text-decoration: underline;
}

.article h2[id],
.article h3[id] {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 14px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0b0614;
  padding: 2rem 1rem 5.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand img {
  width: 110px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-col .footer-title {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--accent-hot);
}

.footer-legal {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-legal p {
  margin: 0 0 0.55rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.4rem;
  border-radius: 8px;
  border: 2px solid var(--danger);
  color: var(--danger);
  font-weight: 800;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Mobile nav drawer (outside header — avoids sticky/backdrop clipping) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(86vw, 340px);
  padding: 1rem 1rem 1.5rem;
  background: #160b24;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.25rem 0 0.65rem;
  background: #160b24;
}

.nav-drawer .drawer-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent-hot);
}

.nav-drawer a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  border-color: var(--border-strong);
  background: rgba(155, 92, 255, 0.16);
  color: #fff;
}

.nav-drawer .drawer-cta {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-backdrop {
  display: block;
}

body.nav-open .nav-drawer {
  transform: translateX(0);
}

body.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle-bars span {
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Lobby / showcase */
.lobby {
  max-width: var(--max);
  margin: 1.35rem auto 0;
  padding: 0 1rem;
}

.lobby-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lobby-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.lobby-title {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.lobby-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.lobby-link:hover {
  color: var(--accent-hover);
}

.cat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 1.15rem auto 0;
  max-width: var(--max);
  padding: 0 1rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(155, 92, 255, 0.18), transparent 55%),
    var(--bg-elevated);
  min-height: 88px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cat-card:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.cat-card .cat-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #1a1020;
  background: var(--accent);
}

.cat-card .cat-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.cat-card .cat-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.trust-bar {
  max-width: var(--max);
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(232, 197, 71, 0.08), rgba(155, 92, 255, 0.12)),
    var(--bg-elevated);
}

.trust-item {
  text-align: center;
  padding: 0.35rem 0.25rem;
}

.trust-item .trust-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-hot);
  letter-spacing: -0.02em;
}

.trust-item .trust-label {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.providers {
  max-width: var(--max);
  margin: 0.85rem auto 0;
  padding: 0 1rem;
}

.providers-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.provider-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.game-rail {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0.1rem 0.55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 197, 71, 0.35) transparent;
}

.game-rail .game-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
}

.game-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1230;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 197, 71, 0.45);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-thumb {
  aspect-ratio: 1 / 1;
  background: #24163a;
  overflow: hidden;
  position: relative;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 18, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.game-play span {
  min-width: 64px;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #1a1020;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-card:hover .game-play {
  opacity: 1;
}

.game-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.25;
  color: #fff;
}

.game-fallback.tone-a { background: linear-gradient(145deg, #5b21b6, #db2777); }
.game-fallback.tone-b { background: linear-gradient(145deg, #0f766e, #0369a1); }
.game-fallback.tone-c { background: linear-gradient(145deg, #b45309, #a16207); }
.game-fallback.tone-d { background: linear-gradient(145deg, #7c3aed, #2563eb); }
.game-fallback.tone-e { background: linear-gradient(145deg, #be123c, #9d174d); }

.game-meta {
  padding: 0.55rem 0.6rem 0.7rem;
}

.game-meta .game-name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
}

.game-meta .game-studio {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.game-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(16, 8, 28, 0.82);
  color: var(--accent-hot);
  border: 1px solid rgba(232, 197, 71, 0.35);
}

.game-badge.hot {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #9d174d);
  border-color: transparent;
}

.game-badge.live {
  color: #fff;
  background: #dc2626;
  border-color: transparent;
}

.lobby-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.footer-payments {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-payments .footer-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 2rem;
  pointer-events: none;
  user-select: none;
}

.pay-logos img {
  width: auto;
  max-width: 3.75rem;
  height: 1.85rem;
  object-fit: contain;
  display: block;
}

/* Mobile sticky CTA — hidden until scroll */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  /* --vv-bottom lifts bar above collapsing browser UI (set in JS) */
  bottom: var(--vv-bottom, 0px);
  z-index: 90;
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 6, 20, 0.96);
  border-top: 1px solid var(--border);
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mobile-cta.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer[hidden] {
  display: none !important;
}

.mobile-cta .btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-drawer {
    display: block;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
  }

  .brand {
    width: 100px;
    height: 40px;
  }

  .brand img {
    width: 100px;
    height: 40px;
  }

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

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 721px) {
    .game-rail {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

@media (max-width: 720px) {
  /*
    Fixed header on mobile: sticky + collapsing browser chrome often clips
    the top bar in half while scrolling. Fixed + body offset stays whole.
  */
  .site-header {
    position: fixed;
    top: var(--vv-top, 0px);
    left: 0;
    right: 0;
    width: 100%;
  }

  body {
    /* header + safe top; CTA + safe bottom — reserved from first paint */
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-cta .btn-violet {
    display: none;
  }

  .hero-cta {
    min-height: 48px;
  }

  .article {
    padding: 1.15rem 0.9rem 1.5rem;
  }

  .page-top-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .page-top-actions {
    justify-content: center;
  }

  .page-top-actions .btn {
    flex: 1 1 auto;
  }

  .bonus-strip-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .bonus-strip-inner .btn {
    width: 100%;
  }

  .cat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .providers-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-rail .game-card {
    flex-basis: 132px;
  }

  .game-card:hover .game-play,
  .game-card:focus-visible .game-play {
    opacity: 1;
  }

  .mobile-cta {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Below-fold only — avoid near-fold intrinsic-size CLS */
  .lobby,
  .article .faq-list,
  .footer-payments,
  .footer-legal {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
  }

  .pay-logo {
    width: 4rem;
  }
}

@media (min-width: 721px) {
  .game-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .game-rail .game-card {
    flex: none;
    width: auto;
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 0.45rem 0.65rem;
    gap: 0.4rem;
  }

  .brand {
    width: 88px;
    height: 36px;
  }

  .brand img {
    width: 88px;
    height: 36px;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .header-actions .btn-secondary {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .mobile-cta,
  .nav-drawer,
  .nav-toggle-bars span,
  .game-card {
    transition: none !important;
  }
}

.game-thumb {
  contain: layout paint;
  background: var(--bg-soft);
}

.footer-brand img {
  max-width: none;
}
