/* ==========================================================================
   Casino Fantasy Sports — global stylesheet
   Dark-first design system. Tokens → base → layout → components → pages.
   ========================================================================== */

:root {
  --bg:          #0b0f1a;
  --bg-soft:     #111726;
  --surface:     #151d30;
  --surface-2:   #1b2438;
  --line:        #253049;
  --line-soft:   #1d2640;

  --text:        #e8ecf6;
  --text-dim:    #9aa6c0;
  --text-mute:   #6c7893;

  --brand:       #7c5cff;
  --brand-2:     #22d3ee;
  --accent:      #ffb020;
  --good:        #2ecc8f;

  --grad:        linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --grad-warm:   linear-gradient(135deg, #ffb020 0%, #ff6b6b 100%);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow:    0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);

  --wrap: 1240px;
  --header-h: 88px;

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(124, 92, 255, .20), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(34, 211, 238, .14), transparent 62%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #67e8f9; }
h1, h2, h3, h4 { font-family: 'Outfit', system-ui, sans-serif; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); font-weight: 700; }
h3 { font-size: clamp(1.13rem, 1.02rem + .5vw, 1.4rem); font-weight: 600; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 32px, var(--wrap)); } }

.section { padding-block: clamp(48px, 6vw, 88px); }
.section--tight { padding-block: clamp(34px, 4vw, 56px); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.9rem; flex-wrap: wrap; }
.section-head p { color: var(--text-dim); margin: 0; max-width: 62ch; }
.section-head h2 { margin-bottom: .35rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .72rem/1 'Outfit', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(34, 211, 238, .28); padding: .5rem .85rem; border-radius: 999px;
  margin-bottom: 1rem;
}

.muted { color: var(--text-mute); }
.lead { font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem); color: var(--text-dim); max-width: 68ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .95rem/1 'Outfit', sans-serif;
  padding: .92rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-align: center;
}
.btn--primary { background: var(--grad); color: #0b0f1a; box-shadow: 0 10px 26px rgba(124, 92, 255, .32); }
.btn--primary:hover { color: #0b0f1a; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124, 92, 255, .42); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { color: var(--text); border-color: var(--brand); background: rgba(124, 92, 255, .12); transform: translateY(-2px); }
.btn--sm { padding: .62rem 1.05rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 15, 26, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: var(--header-h); }

/* Brand logo. The artwork is a wide wordmark with transparent padding baked in,
   so it is sized by height and the negative margins trim that dead space. */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand-logo {
  height: 64px; width: auto; max-width: 100%;
  transition: transform .2s ease, filter .2s ease;
}
.brand:hover .brand-logo { transform: scale(1.03); filter: brightness(1.08); }
.brand--footer .brand-logo { height: 60px; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.primary-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  color: var(--text-dim); font: 500 .94rem/1 'Outfit', sans-serif; transition: .18s;
}
.primary-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.primary-nav a[aria-current="page"] { color: #0b0f1a; background: var(--grad); font-weight: 600; }

.nav-search { position: relative; }
.nav-search input {
  width: 220px; padding: .62rem 2.4rem .62rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-size: .88rem; transition: .2s;
}
.nav-search input::placeholder { color: var(--text-mute); }
.nav-search input:focus { width: 260px; border-color: var(--brand); outline: none; }
.nav-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: .35rem; display: grid; place-items: center;
}
.nav-search button:hover { color: var(--brand-2); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 1.2rem 20px 1.6rem; margin: 0;
    /* visibility is toggled too, so a tall menu can never peek into view on a
       short (landscape) viewport where translateY alone is not enough */
    transform: translateY(-120%); visibility: hidden;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .primary-nav.is-open {
    transform: translateY(0); visibility: visible;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
  }
  .primary-nav ul { flex-direction: column; gap: .2rem; }
  .primary-nav a { padding: .8rem 1rem; }
  .nav-search input, .nav-search input:focus { width: 100%; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .015); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: .8rem 0; font-size: .84rem; color: var(--text-mute); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--brand-2); }
.breadcrumbs [aria-current="page"] span { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -55% 40%; height: 460px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .22), transparent);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2.6rem; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.hero-stats div { background: var(--bg-soft); padding: 1rem .9rem; text-align: center; }
.hero-stats strong { display: block; font: 800 1.5rem/1.1 'Outfit', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .74rem; color: var(--text-mute); letter-spacing: .04em; text-transform: uppercase; }

.hero-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-collage img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-collage .c1 { animation: float 7s ease-in-out infinite; }
.hero-collage .c2 { animation: float 7s ease-in-out infinite .9s; margin-top: 26px; }
.hero-collage .c3 { animation: float 7s ease-in-out infinite 1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-collage img { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- home hero: four section tiles ---------- */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.tile img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.tile__label { position: absolute; inset: 0; } /* full-tile hit area; text lives in the artwork */
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--text); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }

.tile--casino:hover  { border-color: rgba(255, 176, 32, .65); }
.tile--sports:hover  { border-color: rgba(255, 122, 24, .65); }
.tile--rummy:hover   { border-color: rgba(255, 92, 92, .65); }
.tile--fantasy:hover { border-color: rgba(124, 92, 255, .7); }

/* the label text is baked into the artwork, so keep it out of the a11y tree twice */
.tile__label { font-size: 0; color: transparent; }

@media (max-width: 900px) {
  .hero-tiles { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 420px) {
  .hero-tiles { gap: 10px; }
}


@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 460px; margin-inline: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- answer box (AEO) ---------- */
.answer-box {
  background: linear-gradient(180deg, rgba(124, 92, 255, .12), rgba(34, 211, 238, .05));
  border: 1px solid rgba(124, 92, 255, .3);
  border-left: 4px solid var(--brand);
  border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 0 0 2rem;
}
.answer-box h2, .answer-box p:last-child { margin-bottom: 0; }
.answer-box .answer-label {
  font: 700 .7rem/1 'Outfit', sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); display: block; margin-bottom: .55rem;
}
.answer-box p { color: var(--text); font-size: 1.02rem; }

/* ---------- key-facts table (GEO) ---------- */
.facts { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 1.5rem; }
.facts th, .facts td { text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.facts th { width: 220px; min-width: 140px; color: var(--text-dim); font-weight: 600; background: rgba(255, 255, 255, .02); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.2rem; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: .94rem; margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .3);
  color: var(--brand-2); margin-bottom: 1.1rem; font-size: 1.35rem;
}

/* ---------- game grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 1.1rem; }
@media (max-width: 520px) { .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; } }

.game-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  color: var(--text);
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, .55); box-shadow: var(--shadow); color: var(--text); }
/* All source artwork is portrait (260x342 ~ 3:4), so the tile matches that
   ratio and the picture is shown whole instead of being square-cropped. */
.game-card__media { position: relative; aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card:hover .game-card__media img { transform: scale(1.07); }
.game-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11, 15, 26, .55); opacity: 0; transition: opacity .22s ease;
}
.game-card:hover .game-card__play { opacity: 1; }
.game-card__play span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #0b0f1a; font-size: 1.1rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.game-card__body { padding: .7rem .8rem .8rem; display: flex; align-items: center; justify-content: center; text-align: center; flex: 1 1 auto; min-height: 0; }
/* Full title always visible — no clamping, no ellipsis. */
.game-card__name { font: 600 .93rem/1.3 'Outfit', sans-serif; overflow-wrap: anywhere; hyphens: auto; }

/* ---------- provider chips ---------- */
.provider-strip { display: flex; gap: .6rem; flex-wrap: wrap; }
.provider-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; font: 500 .87rem/1 'Outfit', sans-serif; color: var(--text-dim); transition: .2s;
}
.provider-chip:hover, .provider-chip.is-active { color: #0b0f1a; background: var(--grad); border-color: transparent; font-weight: 600; }
.provider-chip b { font-weight: 700; }
.provider-chip .count { font-size: .74rem; opacity: .75; }

/* ---------- filters ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.2rem; margin-bottom: 1.8rem;
}
.filters form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .75rem; align-items: end; }
.field { display: grid; gap: .35rem; }
.field label { font: 600 .74rem/1 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.field input, .field select {
  width: 100%; padding: .72rem .9rem; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text); font-size: .92rem; font-family: inherit;
}
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; }
.field select { cursor: pointer; }
@media (max-width: 900px) { .filters form { grid-template-columns: 1fr 1fr; } .filters .field--search { grid-column: 1 / -1; } .filters .btn { grid-column: 1 / -1; } }

.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; color: var(--text-dim); font-size: .92rem; }
.result-bar strong { color: var(--text); }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; margin-top: 2.6rem; list-style: none; padding: 0; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .7rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text-dim); font: 600 .9rem/1 'Outfit', sans-serif;
}
.pagination a:hover { color: var(--text); border-color: var(--brand); background: rgba(124, 92, 255, .14); }
.pagination [aria-current="page"] { background: var(--grad); border-color: transparent; color: #0b0f1a; }
.pagination .ellipsis { background: none; border: 0; }

/* ---------- game detail ---------- */
.game-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
@media (max-width: 860px) { .game-hero { grid-template-columns: 1fr; } }
.game-hero__art {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--surface-2); padding: 10px;
}
/* Full artwork, never cropped — the frame adapts to the image's own ratio. */
.game-hero__art img {
  width: 100%; height: auto; display: block;
  object-fit: contain; border-radius: calc(var(--r-lg) - 12px);
}
.game-hero__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .38rem .85rem; font-size: .78rem; font-weight: 600; color: var(--text-dim);
}
.badge--rtp { color: var(--good); border-color: rgba(46, 204, 143, .35); background: rgba(46, 204, 143, .1); }
.badge--brand { color: var(--brand-2); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .1); }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin: 1.6rem 0; }
.spec-grid div { background: var(--bg-soft); padding: .95rem 1.1rem; }
.spec-grid dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .3rem; }
.spec-grid dd { margin: 0; font: 600 1rem/1.3 'Outfit', sans-serif; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.faq details[open] { border-color: rgba(124, 92, 255, .45); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.3rem;
  font: 600 1rem/1.4 'Outfit', sans-serif; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-2); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-dim); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- blog ---------- */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: .22s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .5); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-meta { font-size: .78rem; color: var(--text-mute); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.post-card h3 { margin: 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--brand-2); }
.post-card p { color: var(--text-dim); font-size: .92rem; margin: 0; }
.pill { background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .3); color: var(--brand-2); padding: .18rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }

.article { max-width: 760px; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article img { border-radius: var(--r); margin: 1.6rem 0; border: 1px solid var(--line); }
.article blockquote {
  margin: 1.8rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--brand);
  background: rgba(124, 92, 255, .08); border-radius: 0 var(--r) var(--r) 0; color: var(--text);
}
.article ul li, .article ol li { margin-bottom: .5rem; color: var(--text-dim); }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 980px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sidebar-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1.2rem; }
.sidebar-box h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sidebar-box a { color: var(--text-dim); font-size: .92rem; }
.sidebar-box a:hover { color: var(--brand-2); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .12));
  border: 1px solid rgba(124, 92, 255, .35); border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.2rem); text-align: center;
}
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: var(--text-dim); max-width: 60ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(9, 12, 20, .7); margin-top: clamp(48px, 6vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.2rem; padding-block: clamp(2.4rem, 4vw, 3.6rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h2 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--brand-2); }
.footer-about p { color: var(--text-dim); font-size: .92rem; margin-top: 1rem; }
.footer-badge { font-size: .8rem !important; color: var(--text-mute) !important; }
.footer-col address { font-style: normal; color: var(--text-dim); font-size: .92rem; margin-bottom: .9rem; }
.social { display: flex !important; flex-wrap: wrap; gap: .5rem !important; }
.social a { background: var(--surface); border: 1px solid var(--line); padding: .35rem .75rem; border-radius: 999px; font-size: .78rem; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-block: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-mute); }
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 62ch; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: .2s;
}
.to-top:hover { border-color: var(--brand); background: rgba(124, 92, 255, .18); transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); }
.empty h2 { margin-bottom: .5rem; }
.empty p { color: var(--text-dim); }


/* ==========================================================================
   Responsive pass — every layout is checked at 1440 / 1024 / 768 / 480 / 360
   ========================================================================== */

/* Long game codes, URLs and file paths must never widen the page */
body, .card, .game-card, .spec-grid dd, .facts td, .sidebar-box { overflow-wrap: anywhere; }
code { word-break: break-all; }

/* ---- large tablets / small laptops ---- */
@media (max-width: 1100px) {
  :root { --wrap: 100%; }
  .nav-search input { width: 180px; }
  .nav-search input:focus { width: 210px; }
}

/* ---- tablets ---- */
@media (max-width: 860px) {
  .game-hero { grid-template-columns: 1fr; }
  .game-hero__art { max-width: 320px; margin-inline: auto; }
  .game-hero__badges { justify-content: flex-start; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-collage { max-width: 420px; margin-inline: auto; }
  .cta-band { text-align: left; }
  .cta-band .hero-actions { justify-content: flex-start; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  :root { --header-h: 68px; }

  .section { padding-block: 40px; }
  .section--tight { padding-block: 30px; }

  .brand-logo { height: 46px; }
  .brand--footer .brand-logo { height: 50px; }

  .hero { padding-block: 34px 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats strong { font-size: 1.28rem; }
  .hero-actions .btn { flex: 1 1 100%; }

  .answer-box { padding: 1.05rem 1.1rem; }
  .answer-box p { font-size: .97rem; }

  .section-head { align-items: flex-start; }
  .section-head .btn { width: 100%; }

  .filters { padding: .95rem; border-radius: var(--r); }
  .filters form { grid-template-columns: 1fr; }

  .result-bar { font-size: .87rem; }
  .result-bar .btn { width: 100%; }

  .provider-chip { padding: .45rem .8rem; font-size: .82rem; }

  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .game-card__body { padding: .55rem .6rem .65rem; }
  .game-card__name { font-size: .85rem; }

  .spec-grid { grid-template-columns: 1fr; }
  .facts th, .facts td { padding: .6rem .7rem; font-size: .87rem; }
  .facts th { min-width: 118px; }

  .faq summary { padding: .9rem 1rem; font-size: .93rem; }
  .faq .faq-body { padding: 0 1rem 1rem; font-size: .92rem; }

  .pagination a, .pagination span { min-width: 38px; height: 38px; font-size: .85rem; padding: 0 .5rem; }

  .article img { margin: 1.1rem 0; }
  .post-card__body { padding: 1rem; }

  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }

  .map-embed iframe { height: 210px; }

  .footer-bottom { flex-direction: column; gap: .5rem; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---- small phones ---- */
@media (max-width: 380px) {
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .game-grid { gap: .55rem; }
  .game-card__name { font-size: .8rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .brand-logo { height: 40px; }
}

/* ---- landscape phones: keep the sticky header from eating the screen ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header { position: static; }
  .primary-nav { max-height: 70vh; }
}

/* ---- print ---- */
@media print {
  .site-header, .site-footer, .to-top, .breadcrumbs, .filters, .hero-collage { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Vertical pages — sportsbook board, fantasy lobby, rummy card room
   ========================================================================== */

/* ---------- shared table ---------- */
.grid-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.grid-table th, .grid-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.grid-table thead th {
  font: 600 .72rem/1 'Outfit', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); background: rgba(255, 255, 255, .03);
}
.grid-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.grid-table tbody tr:last-child td { border-bottom: 0; }
.grid-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- sportsbook board ---------- */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

.board__bar {
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem;
  background: linear-gradient(90deg, #ff7a18, #ff4d2d); color: #1a0f06;
}
.board__brand { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(0, 0, 0, .25); color: #ffd9b0; }
.board__search {
  flex: 1; min-width: 0; padding: .55rem .9rem; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .18); background: rgba(255, 255, 255, .92);
  color: #1a0f06; font-size: .9rem; font-family: inherit;
}
.board__search::placeholder { color: #8a6a52; }
.board__search:focus { outline: 2px solid rgba(0, 0, 0, .35); outline-offset: 1px; }
.board__count { font: 700 .78rem/1 'Outfit', sans-serif; white-space: nowrap; }

.board__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); }
.board__tab {
  padding: .75rem 1rem; border: 0; cursor: pointer; font: 600 .9rem/1 'Outfit', sans-serif;
  background: var(--bg-soft); color: var(--text-dim); transition: .18s;
}
.board__tab:hover { color: var(--text); }
.board__tab.is-active { background: linear-gradient(90deg, #ff7a18, #ff4d2d); color: #1a0f06; }

.board__chips { display: flex; gap: .5rem; flex-wrap: wrap; padding: .9rem 1rem; border-bottom: 1px solid var(--line-soft); }
.chip {
  padding: .4rem .85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-dim);
  font: 500 .82rem/1 'Outfit', sans-serif; transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #241703; font-weight: 700; }

.league { border-bottom: 1px solid var(--line-soft); }
.league > summary {
  list-style: none; cursor: pointer; padding: .85rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255, 255, 255, .025);
  font: 600 .95rem/1.3 'Outfit', sans-serif;
}
.league > summary::-webkit-details-marker { display: none; }
.league > summary::after { content: "\2304"; margin-left: auto; color: var(--text-mute); font-size: 1.1rem; line-height: 1; }
.league[open] > summary::after { content: "\2303"; }
.league__sport { font: 500 .7rem/1 'Inter', sans-serif; color: var(--text-mute); border: 1px solid var(--line); padding: .2rem .5rem; border-radius: 5px; }

.match { padding: .7rem 1rem 1rem; border-top: 1px solid var(--line-soft); }
.match__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .76rem; color: var(--text-mute); margin-bottom: .55rem; }
.match__time { font-weight: 600; color: var(--text-dim); }
.match__state.is-live { color: #ff6b3d; font-weight: 700; }
.match__more { margin-left: auto; white-space: nowrap; }

.match__rows { display: grid; gap: .35rem; }
.match__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: .7rem; align-items: center; }
.match__team { display: flex; align-items: center; gap: .55rem; font-size: .92rem; overflow-wrap: anywhere; }
.match__shirt { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.shirt--home { background: var(--accent); }
.shirt--away { background: #4d7cff; }
.shirt--draw { background: var(--text-mute); }
.match__score { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.1; min-width: 54px; }
.match__score b { display: block; font-size: .84rem; color: #ff6b3d; }
.match__score em { font-style: normal; font-size: .68rem; color: var(--text-mute); }
.odds {
  display: grid; place-items: center; padding: .5rem .6rem; border-radius: var(--r-sm);
  background: rgba(77, 124, 255, .16); border: 1px solid rgba(77, 124, 255, .34);
  color: #b9cbff; font: 700 .95rem/1 'Outfit', sans-serif; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: .18s;
}
.odds:hover { background: rgba(77, 124, 255, .3); color: #fff; }
.board__empty { padding: 2rem 1rem; text-align: center; color: var(--text-mute); margin: 0; }

/* ---------- fantasy lobby ---------- */
.fbanner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: var(--r-xl); border: 1px solid rgba(255, 176, 32, .32);
  background: linear-gradient(120deg, rgba(255, 176, 32, .18), rgba(255, 107, 107, .12) 45%, rgba(124, 92, 255, .16));
}
.fbanner__text { display: grid; gap: .35rem; }
.fbanner__kicker { font: 700 .72rem/1 'Outfit', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.fbanner__title { font: 800 clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem)/1.1 'Outfit', sans-serif; letter-spacing: -.02em; }
.fbanner__sub { color: var(--text-dim); font-size: .96rem; }
.fbanner__crests { display: flex; gap: .6rem; flex-wrap: wrap; }
.fbanner__crests img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: rgba(255, 255, 255, .06); padding: 6px; border: 1px solid var(--line); }

.preds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.pred { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; display: grid; gap: .8rem; }
.pred__q { margin: 0; font-size: .92rem; line-height: 1.45; }
.pred__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pred__btn { padding: .6rem; border-radius: var(--r-sm); cursor: pointer; font: 600 .88rem/1 'Outfit', sans-serif; border: 1px solid; transition: .18s; }
.pred__btn--yes { background: rgba(46, 204, 143, .12); border-color: rgba(46, 204, 143, .4); color: #7ff0c4; }
.pred__btn--yes:hover { background: rgba(46, 204, 143, .24); }
.pred__btn--no { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.pred__btn--no:hover { background: rgba(255, 107, 107, .22); }
.pred__tag { font-size: .74rem; color: var(--text-mute); }

.ftabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 2rem 0 1.1rem; }
.ftab {
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
  font: 600 .88rem/1 'Outfit', sans-serif; transition: .18s;
}
.ftab:hover { color: var(--text); border-color: var(--brand); text-decoration: none; }
.ftab.is-active { background: var(--grad); border-color: transparent; color: #0b0f1a; }
a.ftab { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.ftab__n {
  background: rgba(255, 255, 255, .1); border-radius: 999px;
  padding: .05rem .45rem; font-size: .76rem; font-weight: 600;
}
.ftab.is-active .ftab__n { background: rgba(0, 0, 0, .18); }

.fmatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.1rem; }
.fmatch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: .22s; }
.fmatch:hover { border-color: rgba(124, 92, 255, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.fmatch__head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); }
.fmatch__tour { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-dim); overflow-wrap: anywhere; }
.fmatch__format { background: rgba(124, 92, 255, .18); border: 1px solid rgba(124, 92, 255, .35); color: var(--brand-2); padding: .15rem .45rem; border-radius: 5px; font: 700 .68rem/1.4 'Outfit', sans-serif; }
.fmatch__lineup { margin-left: auto; font: 600 .68rem/1 'Outfit', sans-serif; color: #7ff0c4; background: rgba(46, 204, 143, .12); border: 1px solid rgba(46, 204, 143, .35); padding: .22rem .5rem; border-radius: 999px; white-space: nowrap; }

.fmatch__body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.fmatch__teams { display: grid; gap: .7rem; min-width: 0; }
.fteam { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.fteam img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: rgba(255, 255, 255, .06); padding: 4px; flex-shrink: 0; }
.fteam__initials {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .32);
  color: var(--brand-2); font: 700 .72rem/1 'Outfit', sans-serif;
}
.fteam__names { display: grid; min-width: 0; }
.fteam__names b { font: 700 .92rem/1.2 'Outfit', sans-serif; }
.fteam__names em { font-style: normal; font-size: .74rem; color: var(--text-mute); overflow-wrap: anywhere; }
.fmatch__clock { text-align: right; flex-shrink: 0; }
.fmatch__clock strong { display: block; font: 800 1.05rem/1.1 'Outfit', sans-serif; color: #ff6b3d; font-variant-numeric: tabular-nums; }
.fmatch__clock span { font-size: .76rem; color: var(--text-mute); }

.fmatch__foot { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .75rem 1rem; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--text-mute); }
.fmatch__pool b { color: var(--accent); font-size: .88rem; }
.fill { flex: 1 1 90px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; min-width: 70px; }
.fill__bar { display: block; height: 100%; background: var(--grad); }

/* ---------- rummy ---------- */
.rbanner {
  border-radius: var(--r-xl); border: 1px solid rgba(255, 107, 107, .3); overflow: hidden;
  background: linear-gradient(135deg, rgba(190, 30, 45, .35), rgba(90, 12, 20, .5) 55%, rgba(11, 15, 26, .6));
}
.rbanner__inner { padding: clamp(1.6rem, 4vw, 3rem) clamp(1.3rem, 3vw, 2.4rem); display: grid; gap: .4rem; text-align: center; }
.rbanner__kicker { font: 700 .72rem/1 'Outfit', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #ffb0b0; }
.rbanner__title { font: 800 clamp(2rem, 1.4rem + 2.6vw, 3.2rem)/1 'Outfit', sans-serif; letter-spacing: -.02em; }
.rbanner__sub { color: var(--text-dim); }
.rbadges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; list-style: none; margin: 0; padding: 0; background: rgba(255, 255, 255, .08); }
.rbadges li { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem .7rem; background: rgba(11, 15, 26, .55); }
.rbadge__icon { font-size: 1.3rem; }
.rbadge__text { display: grid; line-height: 1.2; }
.rbadge__text b { font: 700 .86rem/1.2 'Outfit', sans-serif; color: var(--accent); }
.rbadge__text em { font-style: normal; font-size: .72rem; color: var(--text-mute); }

.rformat { position: relative; }
.rformat__tag { position: absolute; top: 1rem; right: 1rem; font: 700 .66rem/1 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .3); padding: .3rem .55rem; border-radius: 999px; }
.rformat__meta { display: grid; gap: 1px; margin: 1.1rem 0 0; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-sm); overflow: hidden; }
.rformat__meta div { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem .75rem; background: var(--bg-soft); }
.rformat__meta dt { font-size: .76rem; color: var(--text-mute); }
.rformat__meta dd { margin: 0; font: 600 .82rem/1.3 'Outfit', sans-serif; text-align: right; }

.level { padding: .18rem .5rem; border-radius: 5px; font-size: .72rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.level--practice { color: var(--text-dim); border-color: var(--line); background: rgba(255, 255, 255, .04); }
.level--casual { color: #7ff0c4; border-color: rgba(46, 204, 143, .35); background: rgba(46, 204, 143, .1); }
.level--pro { color: var(--brand-2); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .1); }
.level--high-stake { color: var(--accent); border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .12); }
.seat { font-size: .76rem; font-weight: 600; white-space: nowrap; }
.seat--open { color: #7ff0c4; }
.seat--full { color: var(--text-mute); }

/* ---------- vertical pages: phones ---------- */
@media (max-width: 640px) {
  .board__bar { flex-wrap: wrap; }
  .board__count { order: 3; width: 100%; text-align: center; }
  .match__row { grid-template-columns: minmax(0, 1fr) auto 84px; gap: .5rem; }
  .match__team { font-size: .85rem; }
  .odds { padding: .45rem .4rem; font-size: .88rem; }
  .match__more { margin-left: 0; }
  .fbanner { text-align: center; justify-content: center; }
  .fbanner__crests { justify-content: center; }
  .fmatches { grid-template-columns: 1fr; }
  .fmatch__body { flex-direction: column; align-items: flex-start; }
  .fmatch__clock { text-align: left; }
  .rbadges { grid-template-columns: 1fr; }
  .grid-table { min-width: 480px; }
}
