/*
 * SlotSpecs mobile layout fixes (below 768px only). Loaded after app.css when
 * "Mobile layout fixes" is enabled in SlotSpecs settings; never loaded with ?sr_compare=1,
 * so the exact-match comparison against the Lovable build stays meaningful.
 * Desktop (768px and up) is untouched.
 */
.sr-see-all { display: none; }

@media (max-width: 767px) {
  /* 1. Top 10: each row becomes a clean card */
  html body .popular-top-ten > article { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; height: auto; min-height: 0; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  html body .popular-top-ten > article:first-of-type { min-height: 0; }
  html body .popular-top-ten .popular-rank { flex: 0 0 32px; }
  html body .popular-top-ten .top-ten-game { display: contents; }
  html body .popular-top-ten .top-ten-game > a { flex: 0 0 56px; }
  html body .popular-top-ten .popular-thumb { width: 56px; height: 56px; }
  html body .popular-top-ten .popular-top-name { flex: 1 1 0; min-width: 0; grid-column: auto; }
  html body .popular-top-ten .popular-top-name h3 { display: -webkit-box; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.3; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  html body .popular-top-ten .popular-top-name p { white-space: normal; }
  html body .popular-top-ten .top-ten-themes,
  html body .popular-top-ten .top-ten-plays,
  html body .popular-top-ten .top-ten-rating,
  html body .popular-top-ten .top-ten-volatility .volatility-bars { display: none; }
  html body .popular-top-ten .top-ten-stat { display: flex; flex: 1 1 calc((100% - 24px) / 3); flex-direction: column; align-items: flex-start; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); grid-column: auto; }
  html body .popular-top-ten .top-ten-stat small { display: block; color: var(--muted); font-size: 12px; text-transform: none; }
  html body .popular-top-ten .top-ten-stat b { margin-top: 2px; font-size: 15px; font-weight: 600; white-space: normal; }
  html body .popular-top-ten > article > .game-actions { display: grid; flex: 1 1 100%; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  html body .popular-top-ten .game-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  html body .popular-top-ten.sr-collapsed > article:nth-of-type(n + 6) { display: none; }
  html body .sr-see-all { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color:var(--brand-ink); font-size: 15px; font-weight: 600; }

  /* 2. Shorter homepage */
  html body .slot-small-grid > article:nth-child(n + 5),
  html body .slot-lower-row { display: none; }
  html body .table-game-list { display: grid; grid-auto-columns: min(80vw, 280px); grid-auto-flow: column; gap: 12px; overflow-x: auto; padding: 12px; scroll-snap-type: x mandatory; }
  html body .table-game-list > article { grid-template-columns: 56px minmax(0, 1fr); align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; scroll-snap-align: start; }
  html body .studio-card-grid { grid-template-columns: none; grid-auto-columns: min(62vw, 220px); grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; }
  html body .studio-card { scroll-snap-align: start; }
  html body .studio-card > p,
  html body .studio-card .studio-top,
  html body .studio-card dl > div:nth-child(n + 2) { display: none; }
  html body .studio-card dl { grid-template-columns: 1fr; }
  html body .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .theme-grid > a:nth-child(n + 7),
  html body .theme-grid p { display: none; }
  html body .news-magazine + .compact-stories { display: none; }
  html body .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .guide-grid > a:nth-child(n + 3),
  html body .guide-grid p { display: none; }
  html body .editor-profile-grid > article { padding: 16px; }
  html body .editor-profile-grid .author-avatar { width: 48px; height: 48px; font-size: 16px; }
  html body .editor-profile-grid h3 { font-size: 18px; }
  html body .editor-profile-grid > article > p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  html body .editor-profile-grid .chips,
  html body .editor-profile-grid dl,
  html body .editor-profile-grid h4,
  html body .editor-profile-grid > article > a:not(.inline-flex) { display: none; }

  html body .slot-featured > a,
  html body .slot-featured > a .popular-thumb { min-height: 0; }
  html body .slot-featured > a .popular-thumb { aspect-ratio: 16 / 9; height: auto; }
  html body .slot-featured .verified-features,
  html body .slot-featured .popular-themes { display: none; }
  html body .quick-card .popular-thumb { aspect-ratio: 4 / 3; }
  html body .quick-card .quick-how { display: none; }
  html body .quick-card > div:last-child { min-height: 0; }
  html body .theme-chips { display: none; }
  html body .slot-card-copy > strong,
  html body .quick-card > div > strong { display: none; }
  html body .popular-top-ten > article { gap: 10px; }
  html body .popular-top-ten .top-ten-stat { padding-top: 8px; }
  html body .leaderboard-mini > div:nth-child(n + 4) { display: none; }
  html body .method-components { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html body .method-components article { padding: 14px; }
  html body .method-components p,
  html body .method-components small,
  html body .process-row p { display: none; }

  /* Footer link groups collapse into 44px toggles (mobile.js adds .sr-collapsible) */
  html body .footer-links.sr-collapsible { grid-template-columns: 1fr; gap: 0; }
  html body .footer-links.sr-collapsible > div { border-bottom: 1px solid var(--petrol-line); }
  html body .footer-links.sr-collapsible h3 { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; cursor: pointer; }
  html body .footer-links.sr-collapsible h3::after { content: "+"; font-size: 18px; font-weight: 400; }
  html body .footer-links.sr-collapsible > div.sr-open h3::after { content: "−"; }
  html body .footer-links.sr-collapsible > div:not(.sr-open) > a { display: none; }

  /* 3. Latest news images */
  html body .lead-story > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  html body .secondary-stories > a { grid-template-columns: 88px minmax(0, 1fr); align-items: start; }
  html body .secondary-stories > a:has(> span:only-child) { grid-template-columns: minmax(0, 1fr); }
  html body .secondary-stories img { display: block; width: 88px; height: 88px; aspect-ratio: 1; object-fit: cover; }

  /* 5. Two-column review tables fit the screen */
  html body .review-table-wrap.sr-two-col table { width: 100%; min-width: 0 !important; table-layout: fixed; }
  html body .review-table-wrap.sr-two-col th,
  html body .review-table-wrap.sr-two-col td { overflow-wrap: anywhere; white-space: normal; }
  html body .review-table-wrap.sr-two-col th:first-child,
  html body .review-table-wrap.sr-two-col td:first-child { width: 38%; }

  /* 6. Tap targets */
  html body .home-hero-grid .finder-chips,
  html body .finder-chips { display: flex; flex-direction: column; flex-wrap: nowrap; width: 100%; overflow: visible; gap: 0; }
  html body .finder-chips > span { display: block; border-bottom: 1px solid var(--petrol-line); }
  html body .finder-chips > span:last-child { border-bottom: 0; }
  html body .finder-chips > span > i { display: none; }
  html body .finder-chips button,
  html body .home-hero-grid .finder-chips button { display: flex; align-items: center; width: 100%; min-height: 44px; font-size: 15px; }
  html body .footer-links a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  html body main button.inline-flex,
  html body main a.inline-flex,
  html body .site-header button,
  html body .section-nav-arrow,
  html body .footer-newsletter button { min-width: 44px; min-height: 44px; }
  html body .section-nav-arrow { flex-basis: 44px; width: 44px; height: 44px; }
  html body .game-actions > a { min-height: 44px; }
  html body .game-card-title h3 a { display: inline-block; margin: -10px 0; padding: 10px 0; }

  /* 7. Mobile menu panel */
  html body .mobile-menu { width: 88%; max-width: 360px; height: 100%; }
  html body .mobile-menu-inner { display: flex; flex-direction: column; min-height: 100%; }
  html body .mobile-menu-inner > .site-logo { order: 0; align-self: flex-start; min-height: 44px; padding-right: 56px; }
  html body .mobile-menu-inner > nav { order: 1; flex: 1 1 auto; }
  html body .mobile-menu-inner > .mobile-menu-actions { order: 2; margin-top: auto; }
  html body .mobile-menu [data-sr-close] { top: 22px; }

  /* 8. Back to top */
  html body .back-top { right: 16px; bottom: 88px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; border-radius: 50%; transition: opacity .2s, transform .2s; }
  html body .back-top.sr-scrolling-down { opacity: 0; pointer-events: none; transform: translateY(8px); }
}

/* ------------------------------------------------------------------
 * Uniform game cards: same structure on every card, buttons always at the
 * bottom in the same place (all widths), clean spec rows on phones.
 * ------------------------------------------------------------------ */
html body :is(.slot-small-grid, .slot-lower-row, .game-grid, .quick-row) { align-items: stretch; }
html body :is(.slot-small-card, .game-card, .quick-card) { display: flex; flex-direction: column; height: 100%; }
html body .game-grid > span { display: block; height: 100%; }
html body :is(.slot-card-copy, .game-card-body, .quick-card > div:last-child) { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
html body :is(.slot-card-copy, .game-card-body, .quick-card > div:last-child) > .game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
html body :is(.slot-card-copy, .game-card-body, .quick-card > div:last-child) > .game-actions > a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding-inline: 6px; white-space: nowrap; }

@media (max-width: 767px) {
  html body :is(.slot-card-copy h3, .game-card-title h3, .quick-card h3) { display: -webkit-box; overflow: hidden; min-height: 2.6em; font-size: 15px; line-height: 1.3; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  html body .slot-title-row { align-items: flex-start; }
  html body :is(.slot-card-copy > p, .game-card-provider, .quick-provider) { overflow: hidden; margin: 4px 0 0; text-overflow: ellipsis; white-space: nowrap; }
  html body :is(.popular-specs, .card-specs) { display: flex; flex-direction: column; gap: 6px; min-height: 84px; margin-top: 10px; padding-top: 10px; }
  html body :is(.popular-specs, .card-specs) > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
  html body :is(.popular-specs, .card-specs) small { flex: none; font-size: 12px; text-transform: none; }
  html body :is(.popular-specs, .card-specs) b { margin: 0; overflow: hidden; font-size: 13px; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  html body :is(.popular-specs, .card-specs) .volatility-bars,
  html body .card-specs .volatility-value .volatility-bars { display: none; }
  html body .card-specs .volatility-value { display: contents; }
  html body .card-plays { display: none; }
  html body :is(.slot-card-copy, .game-card-body) { padding: 12px; }
  html body :is(.slot-card-copy, .game-card-body, .quick-card > div:last-child) > .game-actions > a { font-size: 14px; }
}

@media (max-width: 767px) {
  html body :is(.popular-specs, .card-specs) { justify-content: flex-start; align-items: stretch; min-height: 0; }
  html body :is(.popular-specs, .card-specs) > span { width: 100%; }
  html body :is(.popular-specs, .card-specs) b { margin-left: auto; }
  /* Catalogue grids: two compact columns like the homepage */
  html body .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html body .game-card .thumb { aspect-ratio: 4 / 3; height: auto; }
  html body .game-card-title { gap: 4px; }
}

/* ------------------------------------------------------------------
 * Mobile pass 2: every block uses the same card + spec-row language.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
  /* Top 10: name row never squeezed, specs as three columns under it */
  html body .popular-top-ten .popular-top-name { flex: 1 1 calc(100% - 120px); }
  html body .popular-top-ten .popular-top-name h3 { min-height: 0; }
  html body .popular-top-ten .top-ten-stat b { font-family: var(--font-body); }

  /* Featured #1 slot: same spec rows as the small cards */
  html body .featured-specs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; }
  html body .featured-specs > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; }
    html body .slot-featured .popular-facts strong { display: none; }
  html body .featured-specs small { font-size: 12px; text-transform: none; }
  html body .featured-specs b { margin: 0 0 0 auto; font-size: 13px; font-weight: 600; white-space: nowrap; }
  html body .slot-featured-copy > .game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  html body .slot-featured-copy > .game-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; }

  /* Table & card: same vertical card as every other game card */
  html body .table-game-list { grid-auto-columns: calc((100% - 12px) / 2); align-items: stretch; padding: 12px; }
  html body .table-game-list > article { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
  html body .table-game-list > article > a { display: block; }
  html body .table-game-list .popular-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  html body .table-game-list .table-game-name { padding: 12px 12px 0; }
  html body .table-game-list .table-game-name h3 { display: -webkit-box; overflow: hidden; min-height: 2.6em; font-size: 15px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  html body .table-game-list .table-rtp { display: flex; justify-content: space-between; margin: 10px 12px 0; padding-top: 10px; border-top: 1px solid var(--line); }
  html body .table-game-list .table-rtp small { font-size: 12px; }
  html body .table-game-list .table-rtp b { font-size: 13px; font-weight: 600; font-family: var(--font-body); }
  html body .table-game-list > article > .game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: auto; margin: auto 12px 12px; padding-top: 12px; }
  html body .table-game-list > article > .game-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 6px; }

  /* Themes: clean text tiles, no mixed images/letters */
  html body .theme-grid .thumb { aspect-ratio: 16 / 10; height: auto; }
  html body .theme-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
  html body .theme-grid > a > div { padding: 14px; }

  /* Game page hero */
  html body .game-hero { display: block; }
  html body .game-hero > .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 16px; border-radius: 12px; }
  html body .game-hero > .thumb img { width: 100%; height: 100%; object-fit: cover; }
  html body .fact-grid > div:last-child { grid-column: 1 / -1; }

  /* Rankings: podium repeats the list, so the list is the single block */
  html body .ranking-podium { display: none; }
  html body .rank-list { overflow: visible; border: 0; background: transparent; }
  html body .rank-row { display: grid; min-width: 0; grid-template-columns: 28px 56px minmax(0, 1fr); grid-template-areas: "rank thumb name" "delta thumb name" "rtp rtp rtp" "max max max" "act act act"; column-gap: 10px; row-gap: 6px; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  html body .rank-row > b { grid-area: rank; align-self: end; text-align: center; }
  html body .rank-row > span:nth-of-type(1) { grid-area: delta; align-self: start; text-align: center; font-size: 12px; }
  html body .rank-row > .thumb { grid-area: thumb; width: 56px; height: 56px; }
  html body .rank-row > div:not(.thumb):not(.game-actions) { grid-area: name; align-self: center; min-width: 0; }
  html body .rank-row > span:nth-of-type(2) { grid-area: rtp; }
  html body .rank-row > span:nth-of-type(3) { grid-area: max; }
  html body .rank-row > span:nth-of-type(2),
  html body .rank-row > span:nth-of-type(3) { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
  html body .rank-row > span:nth-of-type(2) { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
  html body .rank-row > .game-actions { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  html body .rank-row > .game-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; }

  /* RTP table rows become cards with spec rows */
  html body .rtp-table { overflow: visible; border: 0; background: transparent; }
  html body .rtp-table > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  html body .rtp-table > div > a { margin-bottom: 4px; }
  html body .rtp-table > div > a b, html body .rtp-table > div > a small { display: block; }
  html body .rtp-table > div > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
  html body .rtp-table > div > span::before { color: var(--muted); font-size: 12px; font-weight: 400; }
  html body .rtp-table > div > span:nth-of-type(1) { padding-top: 10px; border-top: 1px solid var(--line); }
  html body .rtp-table > div > span:nth-of-type(1)::before { content: "RTP"; }
  html body .rtp-table > div > span:nth-of-type(2)::before { content: "Volatility"; }
  html body .rtp-table > div > span:nth-of-type(3)::before { content: "Max win"; }
  html body .rtp-table > div > .game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  html body .rtp-table > div > .game-actions > a { display: flex; align-items: center; justify-content: center; min-height: 44px; }

  /* Leaderboard: rank, player, points */
  html body .leader-table { overflow: visible; }
  html body .leader-row { grid-template-columns: 64px minmax(0, 1fr) auto; min-width: 0; }
  html body .leader-row > :nth-child(3),
  html body .leader-row > :nth-child(5),
  html body .leader-row > :nth-child(6),
  html body .leader-row > :nth-child(7) { display: none; }

  /* Studios index: two compact columns */
  html body .provider-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html body .provider-index > a { padding: 14px; }
  html body .provider-index h2 { margin-top: 10px; font-size: 15px; }
  html body .provider-index p { font-size: 12px; }

  /* News and guide lists: compact rows like the homepage stories */
  html body .article-grid { gap: 10px; }
  html body .article-grid > article { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; }
  html body .article-grid .article-image { width: 88px; height: 88px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
  html body .article-grid > article > div { padding: 0; }
  html body .article-grid h2 { margin-top: 2px; font-size: 16px; line-height: 1.3; }
  html body .article-grid p { display: -webkit-box; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

  /* Editor profile */
  html body .author-profile { display: block; }
  html body .author-profile > .author-avatar { width: 72px; height: 72px; margin-bottom: 14px; }
  html body .author-profile h1 { font-size: 32px; }

  /* Daily bonus streak fits one row */
  html body .streak-big { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  html body .streak-big > span { min-width: 0; padding: 6px 0; }
  html body .streak-big small { font-size: 12px; }
}

/* Mobile pass 3: identical spec rows everywhere (label left, value right) */
@media (max-width: 767px) {
  html body .table-game-list > article { align-items: stretch; text-align: left; }
  html body .table-game-list .table-game-name { text-align: left; }
  html body .table-game-list .table-rtp { align-self: stretch; align-items: baseline; gap: 8px; }
  html body .table-game-list .table-rtp small, html body .table-game-list .table-rtp b { display: inline; margin: 0; }

  html body .popular-top-ten .top-ten-stat { flex: 1 1 100%; flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; border-top: 0; }
  html body .popular-top-ten .top-ten-rtp { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
  html body .popular-top-ten .top-ten-stat small { display: inline; }
  html body .popular-top-ten .top-ten-stat b { margin: 0; font-size: 13px; line-height: 1.3; }
  html body .popular-top-ten > article { row-gap: 6px; }
  html body .popular-top-ten > article > .game-actions { margin-top: 6px; }

  html body .rank-row > span:nth-of-type(2), html body .rank-row > span:nth-of-type(3) { align-items: baseline; }
  html body .rank-row small { color: var(--muted); font-size: 12px; font-weight: 400; }

  html body .rtp-table > div { align-items: stretch; text-align: left; }
  html body .rtp-table > div > a { align-self: flex-start; }
  html body .rtp-table > div > span { width: 100%; align-items: baseline; gap: 8px; }
}

@media (max-width: 767px) {
  html body .featured-specs > span[hidden] { display: none; }
  html body .footer-stats { margin: 0; padding: 12px 0; border: 0; text-align: left; line-height: 1.6; }
  html body .footer-trust-brand { align-items: center; }
}

/* Audit fixes (Sep 2026): 16px side gutter and a one-row header with the logo on the left. */
@media (max-width: 767px) {
  html body .container { width: min(100% - 32px, 1180px); }
  html body .quick-games-band > .container { width: min(100% - 32px, 1180px); }
  html body .site-header .header-inner { display: flex; align-items: center; gap: 4px; width: 100%; height: 60px; padding-inline: 12px 8px; grid-template-rows: none; }
  html body .header-inner > .site-logo { order: 0; margin-right: auto; }
  html body .header-inner > .site-logo b { display: inline; overflow: visible; }
  html body .header-inner > .header-search-trigger { order: 1; }
  html body .header-inner > .guest-utility,
  html body .header-inner > .utility { display: flex; order: 2; margin-left: 0; padding: 0; background: transparent; grid-area: auto; }
  html body .header-inner > .utility > :not(.coin-chip) { display: none; }
  html body .header-inner > .guest-utility > button:first-child { display: none; }
  html body .header-inner > .guest-utility .bg-primary { height: 44px; min-height: 44px; padding-inline: 12px; font-size: 0; }
  html body .header-inner > .guest-utility .bg-primary::after { content: "Join free"; font-size: 14px; font-weight: 600; }
  html body .header-inner > .mobile-menu-trigger { order: 3; }
}
@media (max-width: 340px) {
  html body .header-inner > .site-logo b { display: none; }
}
@media (max-width: 767px) {
  html body .article-page h1, html body .provider-hero h1 { font-size: 30px; line-height: 1.2; }
}
@media (max-width: 767px) {
  html body .rtp-table > .rtp-head { display: none; }
  html body .methodology { padding: 22px 0; }
  html body .footer-newsletter { padding-bottom: 20px; }
  html body .footer-newsletter form { margin-bottom: 10px; }
}
@media (max-width: 767px) {
  html body .studio-card, html body .studio-card dd, html body .studio-card dt { font-size: 14px; }
  html body .studio-card > .studio-link { white-space: nowrap; }
  html body .secondary-stories b, html body .compact-stories b, html body .lead-story h3 { line-height: 1.3; }
  html body .rank-row { padding: 12px; }
  html body .rank-row > .game-actions a { min-height: 44px; }
}
@media (max-width: 767px) {
  html body .provider-index { grid-template-columns: 1fr; }
  html body .provider-index p { font-size: 15px; }
  html body .provider-index small { font-size: 14px; }
}
@media (max-width: 767px) {
  /* Keep the figure each list is ranked by. */
  html body .popular-top-ten .top-ten-plays { display: block; flex: 1 1 100%; color: var(--muted); font-size: 13px; font-weight: 500; }
  /* Full sentences, not clipped ones. */
  html body .editor-profile-grid > article > p { display: block; -webkit-line-clamp: unset; overflow: visible; }
  html body .article-grid p { display: block; -webkit-line-clamp: unset; font-size: 14px; }
  html body .quick-card .quick-how { display: none; }
}
@media (max-width: 480px) {
  html body :is(.slot-small-grid, .slot-lower-row, .game-grid) .game-actions { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 767px) {
  html body :is(.slot-card-copy h3, .game-card-title h3, .quick-card h3) { min-height: 0; }
  html body .similar-grid > :nth-child(3) { display: none; }
  html body .process-row p { display: block; }
  html body .rtp-game .thumb { flex-basis: 48px; width: 48px; height: 32px; }
}
@media (max-width: 767px) {
  html body .popular-top-ten .top-ten-rating { display: block; flex: 1 1 100%; order: 6; font-size: 13px; }
  html body .popular-top-ten .top-ten-rating.is-empty { display: none; }
  html body .footer-legal > * { width: calc(100% - 32px); margin-inline: auto; }
}
@media (max-width: 767px) {
  /* Sub-menu bar: swipeable chips with faded edges instead of arrow buttons. */
  html body .section-nav-arrow { display: none !important; }
  html body .section-nav-label { display: none; }
  html body .section-nav-scroll { padding-inline: 0; scroll-padding-inline: 16px; }
}
@media (max-width: 767px) {
  /* The player shows the cover art, so the header thumbnail is not repeated. */
  html body .game-hero > .thumb { display: none; }
}

/* Mobile-first pass (Sep 2026) */
@media (max-width: 767px) {
  /* Two-column cards: full-width stacked buttons. */
  html body .game-grid .game-actions,
  html body .slot-small-grid .game-actions,
  html body .slot-lower-row .game-actions { grid-template-columns: 1fr !important; gap: 6px !important; }
  html body .game-grid .game-actions > a,
  html body .slot-small-grid .game-actions > a { min-height: 44px !important; height: 44px; }
  /* Studios: compact rows instead of huge logo tiles. */
  html body .provider-index > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 14px; }
  html body .provider-index > a > .provider-logo { grid-row: 1 / span 3; width: 96px; height: auto; }
  html body .provider-index > a > h2 { margin: 0; font-size: 17px; }
  html body .provider-index > a > p { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  html body .provider-index > a > small { padding-top: 4px; white-space: normal; }
  /* Game page: Play comes straight after the title; details live in "The numbers". */
  html body .game-hero > .game-glance { display: none; }
  html body .mobile-toc { display: block; margin: 20px 0 0; padding: 0; }
  html body .mobile-toc summary { padding: 14px 16px; font-weight: 600; cursor: pointer; }
  html body .mobile-toc ol { margin: 0; padding: 0 16px 14px 34px; }
  html body .mobile-toc li { padding: 6px 0; font-size: 15px; line-height: 1.4; }
  html body .mobile-toc a { color: var(--text); }
}
.mobile-toc { display: none; }
@media (max-width: 767px) {
  /* Room at the end of chip rows, so the row can always start on a whole chip. */
  html body .section-nav-scroll::after { content: ""; flex: 0 0 calc(100% - 140px); }
}

/* Tenth audit: tap targets and form sizes (all phones) */
@media (max-width: 767px) {
  html body [role=dialog] button[data-sr-close], html body [role=dialog] > button.absolute { width: 44px; height: 44px; display: grid; place-items: center; top: 8px; right: 8px; opacity: .8; }
  html body [role=dialog] button[data-sr-close] svg, html body [role=dialog] > button.absolute svg { width: 20px; height: 20px; }
  html body input:not([type=checkbox]):not([type=radio]), html body select, html body textarea { min-height: 48px; font-size: 16px; }
  html body input[type=checkbox] { width: 22px !important; height: 22px !important; }
  html body .auth-form .auth-check, html body .newsletter-consent { grid-template-columns: 24px minmax(0, 1fr); min-height: 44px; align-items: start; }
  html body [role=dialog] button[type=submit] { min-height: 48px; }
  html body .auth-switch button, html body .auth-switch a { display: inline-block; padding: 12px 4px; }
  html body .section-nav a, html body .section-nav-entry a { min-height: 44px; display: inline-flex; align-items: center; }
  html body button[data-sr-rate] { width: 44px; height: 44px; }
  html body .rating { gap: 4px; }
  html body .guest-utility .bg-primary { min-height: 44px; }
  html body .site-footer .footer-links a { padding-block: 12px; }
  html body .footer-legal nav a { display: inline-block; padding: 12px 6px; }
  html body summary { min-height: 44px; display: flex; align-items: center; }
  html body [data-sr-daily-bonus] button { white-space: normal; max-width: 100%; height: auto; min-height: 48px; padding-block: 10px; text-align: center; }
  html body .mobile-menu-player a { min-height: 44px; }
}

@media (max-width: 767px) {
  /* Header and sub-nav: exact sticky offsets. */
  html body .site-header { height: 60px; }
  html body .section-nav { top: 60px; }
  html body .section-nav-scroll { padding-inline-end: 16px; }
  /* "Join free" on phones, with matching accessible name. */
  html body .header-inner > .guest-utility .bg-primary { font-size: 14px; }
  html body .header-inner > .guest-utility .bg-primary::after { content: none; }
  html body .join-button .label-long { display: none; }
  /* Ranking pages: compact comparison rows (rank, art, name, ranked figure). */
  html body .rank-line { grid-template-columns: 28px 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin-bottom: 8px; padding: 10px 12px; }
  html body .rank-line .rank-game { display: flex; gap: 12px; align-items: center; grid-column: 2 / 4; min-width: 0; }
  html body .rank-line .rank-game .thumb { flex: 0 0 auto; width: 56px; height: 40px; }
  html body .rank-line .rank-game > span { min-width: 0; }
  html body .rank-line .num { display: none; }
  html body .rank-line .num:first-of-type { display: block; grid-column: 4; margin: 0; padding: 0; border: 0; text-align: right; }
  html body .rank-line .num:first-of-type small { display: block; font-size: 12px; }
  html body .rank-line .num:first-of-type b { font-size: 16px; }
  html body .rank-line .game-actions { display: none; }
  /* RTP table: compact rows. */
  html body .rtp-table > div:not(.rtp-head) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; margin-bottom: 8px; }
  html body .rtp-table > div > .rtp-game { grid-row: 1 / span 2; }
  html body .rtp-table > div > span.num:first-of-type { grid-column: 2; font-size: 16px; font-weight: 700; padding: 0; border: 0; }
  html body .rtp-table > div > span:not(.num), html body .rtp-table > div > span.num:not(:first-of-type) { display: none; }
  html body .rtp-table > div > span::before { content: none !important; }
  html body .rtp-table > div > .game-actions { display: none; }
  /* News and guide lists: full-width images, text below. */
  html body .article-grid article { display: block; }
  html body .article-grid .article-image-link, html body .article-grid .article-image { width: 100%; }
  html body .article-grid .article-image { height: auto; aspect-ratio: 16 / 9; }
  html body .article-grid article > div:last-child { padding: 14px 4px 4px; }
  html body .article-grid p { display: block; -webkit-line-clamp: unset; font-size: 15px; }
  /* Tables in articles: scroll sideways with a visible edge. */
  html body .review-table-wrap { overflow-x: auto; box-shadow: inset -14px 0 10px -10px rgba(15, 22, 34, .18); }
  html body .review-table-wrap table { min-width: 520px; }
  /* Small phones: let long volatility labels wrap. */
  html body .card-specs b, html body .popular-specs b { white-space: normal; }
  /* Account: clear hierarchy. */
  html body .account-head > button { background: #fff; color:var(--brand-ink); border: 1px solid var(--brand-ink); }
  html body .badge-grid .locked { opacity: 1; }
  html body .badge-grid .locked b, html body .badge-grid .locked p { color: var(--muted); }
  /* Static pages: tighter intro and the contact form first. */
  html body .narrow .page-intro { padding-bottom: 8px; margin-bottom: 8px; }
  html body .static-copy:has(.contact-form) { display: flex; flex-direction: column; }
  html body .static-copy .contact-form { order: -1; margin-bottom: 24px; }
  /* Menu drawer opens from the side of its button. */
  html body .review-sources li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body .studios-next .provider-logo.logo-light img { padding: 6%; }
}
.card-rating { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--text); font-weight: 600; }
.card-rating svg { width: 13px; height: 13px; color:var(--accent-text); fill: var(--amber); }
.card-rating i { color: var(--muted); font-style: normal; font-weight: 400; }
.join-button .label-short { display: none; }
@media (max-width: 767px) { .join-button .label-short { display: inline; } }

/* ------------------------------------------------------------------
 * Audit 11 (mobile): less fixed chrome, 44px targets, clipped panels.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
  html { scroll-padding-top: 76px; }
  html body .section-nav { position: relative; top: auto; }
  html body .player-shell:has(.player-unavailable) { aspect-ratio: auto; min-height: 0; }
  html body .player-unavailable { max-width: none; padding: 28px 20px; }
  html body .player-unavailable b { font-size: 17px; line-height: 1.35; }
  html body .back-top { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  html body:has(.sr-sticky-cta.is-visible) .back-top { display: none; }
  html body .game-actions > a, html body .game-actions > button { min-height: 44px; }
  html body .join-button, html body .header-inner .join-button { min-height: 44px; }
  html body .age-card button, html body .cookie button { min-height: 44px; padding-inline: 18px; }
  html body .cookie p a { display: inline-block; padding-block: 12px; }
  html body .site-footer :is(.footer-legal, .footer-support, .footer-links, .footer-trust) a { display: inline-flex; align-items: center; min-height: 44px; }
  html body input[type="checkbox"] { width: 24px; height: 24px; }
  html body .finder-clear { min-height: 44px; padding-inline: 12px; }
  html body .rank-line .num small { font-size: 12px; }
  html body .article-page > header { text-align: left; }
  html body .article-page > header :is(h1, p, small) { margin-inline: 0; }
  html body .breadcrumbs { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  html body .bonus-page .streak-big { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html body .bonus-page .streak-big > span { aspect-ratio: auto; padding: 8px 0; }
  html body .bonus-page > button { width: 100%; }
  html body .stats-signin p { font-size: 15px; }
}
@media (max-width: 374px) {
  html body .table-game-list > article > .game-actions { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  html body .static-copy .contact-lead { order: -2; margin: 0 0 16px; font-size: 16px; }
}
@media (max-width: 767px) { html body .bonus-page { padding: 16px; } }

/* Audit 12 (mobile) */
@media (max-width: 767px) {
  html body:has(.sr-sticky-cta) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* Ranking rows: figure sits under the name so titles keep their width. */
  html body .rank-line { grid-template-columns: 28px 56px minmax(0, 1fr); }
  html body .rank-line { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
  html body .rank-line .rank-no { grid-row: 1 / span 2; }
  html body .rank-line .rank-game { grid-column: 2 / 3; }
  html body .rank-line .num:first-of-type { grid-column: 2; grid-row: 2; display: flex; gap: 6px; align-items: baseline; text-align: left; padding-left: 68px; }
  /* Keep the main action on the row, as on desktop. */
  html body .rank-line .game-actions { display: flex; grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; }
  html body .rank-line .game-actions > .game-action-info { display: none; }
  html body .rank-line .game-actions > .game-action-play { display: flex; align-items: center; min-height: 44px; padding-inline: 14px; }
  html body .rank-line .num:first-of-type b { font-size: 15px; }
  html body .rank-line .rank-game > span b { font-size: 16px; line-height: 1.3; }
  /* Tap targets */
  html body .breadcrumbs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  html body .site-footer :is(.footer-links, .footer-legal, .footer-support) a { display: flex; align-items: center; min-height: 44px; }
  html body .footer-support { display: flex; flex-wrap: wrap; gap: 0 16px; }
  html body .newsletter-consent input { width: 24px; height: 24px; }
  /* Shorter pages: cards link to the review from the title and art, so phones show one action. */
  html body :is(.slot-card-copy, .game-card-body, .quick-card > div:last-child) > .game-actions,
  html body .popular-top-ten > article > .game-actions { grid-template-columns: 1fr; }
  html body :is(.slot-card-copy, .game-card-body, .quick-card > div:last-child) > .game-actions > .game-action-info,
  html body .popular-top-ten > article > .game-actions > .game-action-info { display: none; }
}
/* Shared (all widths) */
.newsletter-done { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 16px; border: 1px solid var(--amber); border-radius: 10px; color: #fff; }
.newsletter-done svg { flex: 0 0 auto; width: 22px; height: 22px; color:var(--accent-text); }
.newsletter-done b { display: block; font-size: 16px; }
.newsletter-done p { margin: 4px 0 0; color: var(--line); font-size: 14px; }
.site-footer .field-error { color: #FFE1DC; font-weight: 600; }
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #F04438; outline-offset: 2px; }
.rtp-empty { margin: 0; padding: 24px 16px; color: var(--muted, var(--muted)); text-align: center; }
.contact-form .field-error { margin-top: 6px; }

@media (max-width: 767px) {
  html body .table-game-list > article > .game-actions { grid-template-columns: 1fr; }
  html body .table-game-list > article > .game-actions > .game-action-info { display: none; }
  html body .editor-profile-grid article > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  html body .footer-support > span:first-child { flex: 1 1 100%; min-height: 0; }
}
@media (max-width: 767px) {
  html body .scale-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  html body .scale-strip > span:nth-child(even) { display: none; }
}
@media (max-width: 389px) {
  html body .rank-line { gap: 4px 8px; padding: 10px; }
  html body .rank-line .rank-game .thumb { width: 48px; height: 36px; }
  html body .rank-line .rank-game > span b { font-size: 15px; }
  html body .rank-line .num:first-of-type { padding-left: 56px; }
  html body .rank-line .game-actions > .game-action-play { padding-inline: 10px; font-size: 14px; }
}
@media (max-width: 767px) {
  html body .mobile-menu summary, html body .mobile-submenu a, html body .mobile-menu nav a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 767px) {
  /* Remaining tap targets found in the sign-off audit. */
  html body .game-actions > a.game-action-play, html body .game-actions > a.game-action-info { min-height: 44px; }
  html body .site-header .site-logo, html body .site-footer .site-logo { min-height: 44px; display: inline-flex; align-items: center; }
  html body .section-nav-scroll a, html body .chips a, html body .pill-cloud a { min-height: 44px; display: inline-flex; align-items: center; }
  html body .utility-strip a { display: inline-flex; align-items: center; min-height: 44px; }
  /* The chip row fades at the edge instead of cutting a word dead. */
  html body .section-nav { position: relative; }
}
@media (max-width: 430px) {
  html body .rank-line .game-actions > .game-action-play { font-size: 0; padding-inline: 12px; }
  html body .rank-line .game-actions > .game-action-play::after { content: "Play"; font-size: 14px; font-weight: 600; }
}
@media (max-width: 767px) {
  html body .game-jump-nav a, html body .game-jump-nav button { min-height: 44px; display: inline-flex; align-items: center; }
  html body .table-note a, html body .fact-note a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 767px) {
  html body .mobile-toc a { display: flex; align-items: center; min-height: 44px; }
  html body .spec-source a { display: inline-flex; align-items: center; min-height: 44px; }
}
