:root {
    --bg: #050505;
    --bg-soft: #0d0d0d;
    --panel: rgba(20, 20, 20, 0.92);
    --panel-strong: rgba(13, 13, 13, 0.98);
    --line: rgba(212, 181, 113, 0.18);
    --line-strong: rgba(212, 181, 113, 0.38);
    --text: #f7f1e6;
    --text-soft: #cec2ae;
    --text-muted: #9a8f80;
    --gold: #d4b571;
    --gold-soft: #f0dfb7;
    --green: #5ec48a;
    --amber: #d7a64a;
    --red: #c97a68;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI Variable Display", "Aptos", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(212, 181, 113, 0.12), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, #040404 0%, #090909 42%, #0d0d0d 100%);
}

a {
    color: inherit;
}

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

.page-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 96px;
}

.main-stack {
    display: grid;
    gap: 18px;
}

.site-header,
.hero-panel,
.stats-strip,
.content-section,
.cta-banner,
.site-footer {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.985)),
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.04), transparent 32%);
    box-shadow: var(--shadow);
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 72px;
    padding: 10px 18px;
    border-radius: 22px;
    border: 1px solid rgba(240, 223, 183, 0.26);
    background:
        radial-gradient(circle at center, rgba(240, 223, 183, 0.18), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 24px rgba(0, 0, 0, 0.16),
        0 0 0 1px rgba(212, 181, 113, 0.06);
    overflow: hidden;
}

.brand-logo {
    width: 168px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        brightness(1.42)
        contrast(1.24)
        saturate(1.16)
        drop-shadow(0 0 14px rgba(240, 223, 183, 0.34))
        drop-shadow(0 0 22px rgba(212, 181, 113, 0.18))
        drop-shadow(0 10px 22px rgba(212, 181, 113, 0.2));
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.status-pill,
.eyebrow,
.game-provider,
.game-status,
.status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-pill {
    min-height: 34px;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 800;
}

.verified-pill {
    color: var(--gold-soft);
    background: rgba(212, 181, 113, 0.1);
    border: 1px solid rgba(212, 181, 113, 0.22);
}

.system-pill {
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.header-btn,
.cta-btn,
.mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-btn:hover,
.cta-btn:hover,
.mini-btn:hover,
.provider-card:hover,
.favorite-card:hover,
.stacked-card:hover {
    transform: translateY(-2px);
}

.header-btn.ghost,
.cta-btn.tertiary,
.mini-btn {
    border: 1px solid rgba(212, 181, 113, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    color: var(--gold-soft);
}

.header-btn.primary,
.cta-btn.primary {
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
    color: #17130b;
}

.header-btn.accent,
.cta-btn.secondary {
    border: 1px solid rgba(212, 181, 113, 0.28);
    background: rgba(212, 181, 113, 0.08);
    color: var(--gold-soft);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 18px;
    padding: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: auto auto -90px -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 181, 113, 0.2), transparent 70%);
    pointer-events: none;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: -100px -80px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 72%);
    pointer-events: none;
}

.hero-copy,
.hero-side {
    position: relative;
    z-index: 1;
}

.eyebrow {
    min-height: 32px;
    padding: 0 12px;
    width: fit-content;
    font-size: 10px;
    font-weight: 800;
    color: var(--gold-soft);
    background: rgba(212, 181, 113, 0.1);
    border: 1px solid rgba(212, 181, 113, 0.18);
}

.eyebrow-soft {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-copy h1,
.section-head h2 {
    margin: 14px 0 0;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    max-width: 720px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.94;
    color: var(--text);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.hero-lead {
    max-width: 540px;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-soft);
}

.hero-actions,
.spotlight-actions,
.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-actions {
    margin-top: 22px;
    align-items: center;
}

.hero-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.metric-card,
.hero-side-card,
.hero-side-note,
.stat-tile,
.trust-card,
.favorite-card,
.stacked-card,
.provider-card,
.activity-shell {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.metric-card {
    padding: 18px;
    min-height: 116px;
}

.jackpot-card {
    min-width: 0;
    border-color: rgba(212, 181, 113, 0.22);
    background:
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    overflow: hidden;
}

.metric-label,
.stat-label,
.trust-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value,
.stat-value,
.trust-value {
    display: block;
    margin-top: 8px;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.1;
    color: var(--text);
}

.jackpot-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    color: var(--gold-soft);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.jackpot-prefix {
    flex: 0 0 auto;
    font-size: clamp(12px, 0.9vw, 16px);
    letter-spacing: 0.08em;
}

.jackpot-number {
    display: block;
    min-width: 0;
    font-size: clamp(18px, 1.35vw, 26px);
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.hero-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.hero-side-card,
.hero-side-note {
    padding: 20px;
}

.spotlight-name {
    margin-top: 12px;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.02;
    color: var(--gold-soft);
}

.spotlight-note,
.hero-side-note,
.section-head p,
.game-meta,
.stacked-meta {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-soft);
}

.mini-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
}

.stats-strip,
.trust-grid,
.favorite-grid,
.provider-grid {
    display: grid;
    gap: 12px;
}

.stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 16px;
    border-radius: var(--radius-lg);
}

.stat-tile {
    padding: 16px 18px;
    backdrop-filter: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(12, 12, 12, 0.98));
}

.stat-value {
    font-size: clamp(20px, 2vw, 28px);
}

.content-section,
.cta-banner {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.04;
}

.section-head p {
    margin-top: 0;
    max-width: 720px;
}

.favorite-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.favorite-card {
    overflow: hidden;
    text-decoration: none;
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.favorite-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(212, 181, 113, 0.12), rgba(255, 255, 255, 0.04));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.favorite-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.favorite-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.favorite-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.favorite-action-btn,
.favorite-provider-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.favorite-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

.favorite-provider-link {
    border: 1px solid rgba(212, 181, 113, 0.24);
    background: rgba(212, 181, 113, 0.08);
    color: var(--gold-soft);
}

.game-name {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.28;
}

.game-provider {
    margin-top: 12px;
    min-height: 28px;
    padding: 0 10px;
    width: fit-content;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-rtp-row,
.stacked-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.game-rtp,
.stacked-rtp {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold-soft);
    line-height: 1;
}

.game-status,
.stacked-status {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 800;
}

.status-hot,
.status-hot.stacked-status {
    color: #08130d;
    background: var(--green);
}

.status-stable,
.status-stable.stacked-status {
    color: #17120b;
    background: var(--amber);
}

.status-weak,
.status-weak.stacked-status {
    color: #220d0b;
    background: var(--red);
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.cta-banner strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.25;
}

.cta-btn.compact {
    min-height: 42px;
    padding: 0 16px;
}

.split-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.stacked-game-grid {
    display: grid;
    gap: 12px;
}

.stacked-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    align-items: center;
}

.stacked-thumb {
    width: 88px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(212, 181, 113, 0.12), rgba(255, 255, 255, 0.04));
}

.stacked-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stacked-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.28;
}

.favorite-card:hover,
.stacked-card:hover,
.provider-card:hover {
    border-color: rgba(212, 181, 113, 0.22);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-card {
    padding: 18px;
}

.activity-shell {
    padding: 10px 16px;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    display: grid;
    grid-template-columns: minmax(90px, 120px) minmax(130px, 180px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-item:last-child {
    border-bottom: none;
}

.winner-name {
    font-size: 13px;
    font-weight: 700;
}

.winner-amount {
    font-size: 15px;
    font-weight: 800;
}

.winner-amount.tier-gold {
    color: var(--gold-soft);
}

.winner-amount.tier-silver {
    color: #d9d3c7;
}

.winner-amount.tier-bronze {
    color: #d2a378;
}

.winner-game {
    font-size: 12px;
    color: var(--text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 96px;
    padding: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.provider-name {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.provider-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.provider-card.featured {
    border-color: rgba(212, 181, 113, 0.28);
    background:
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.empty-state {
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.site-footer {
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.mobile-sticky-bar {
    position: fixed;
    left: 6px;
    right: 6px;
    bottom: 2px;
    z-index: 50;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(212, 181, 113, 0.18);
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.mobile-sticky-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.mobile-sticky-bar a:nth-child(1) {
    animation: mobileBarPulseDark 2.4s ease-in-out infinite;
}

.mobile-sticky-bar a:nth-child(2) {
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
    color: #17130b;
    animation: mobileBarPulseGold 1.8s ease-in-out infinite;
}

.mobile-sticky-bar a:nth-child(3) {
    animation: mobileBarPulseDark 2.4s ease-in-out infinite 0.5s;
}

.quick-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(10px);
}

.quick-detail-modal.open {
    display: flex;
}

.quick-detail-card {
    width: min(480px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(212, 181, 113, 0.18);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 0.99));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.quick-detail-media {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(circle at center, rgba(212, 181, 113, 0.08), transparent 62%),
        linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(10, 10, 10, 1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-detail-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    image-rendering: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.quick-detail-body {
    padding: 18px;
}

.quick-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.quick-detail-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.quick-detail-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

.quick-detail-sub {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.quick-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.quick-detail-stat {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.quick-detail-stat span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quick-detail-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.2;
}

.quick-detail-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-soft);
}

.quick-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.quick-detail-actions a,
.quick-detail-actions button {
    flex: 1 1 0;
    min-height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.quick-detail-actions a {
    color: #17130b;
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
}

.quick-detail-actions button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 1080px) {
    .favorite-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 920px) {
    .site-header,
    .hero-panel,
    .split-sections,
    .trust-grid,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .site-header {
        justify-items: start;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

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

    .trust-grid {
        display: grid;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .page-shell {
        width: calc(100% - 12px);
        padding-top: 8px;
        padding-bottom: 112px;
    }

    .site-header,
    .hero-panel,
    .content-section,
    .cta-banner,
    .site-footer,
    .stats-strip {
        border-radius: 22px;
    }

    .site-header,
    .content-section,
    .cta-banner,
    .site-footer,
    .stats-strip {
        padding: 14px;
    }

    .site-header {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
        align-items: stretch;
        overflow: hidden;
    }

    .brand {
        width: min(188px, 100%);
        min-width: 0;
        min-height: 58px;
        padding: 8px 14px;
        justify-self: center;
    }

    .hero-panel {
        padding: 16px 12px 14px;
        min-height: 0;
    }

    .brand-logo {
        width: 136px;
    }

    .header-meta,
    .header-actions,
    .hero-actions,
    .spotlight-actions,
    .cta-banner-actions {
        width: 100%;
    }

    .header-meta {
        display: grid;
        gap: 8px;
        justify-items: center;
    }

    .status-pill {
        max-width: 100%;
        width: fit-content;
        min-height: 30px;
        padding: 0 10px;
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .system-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
        line-height: 1.35;
        white-space: normal;
        padding: 8px 10px;
    }

    .header-actions {
        display: none;
    }

    .header-btn,
    .cta-btn,
    .mini-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
        min-height: 42px;
        padding: 0 12px;
        font-size: 10px;
        text-align: center;
        line-height: 1.25;
        white-space: normal;
    }

    .hero-copy h1,
    .section-head h2 {
        max-width: 100%;
        font-size: 24px;
        line-height: 1.04;
        overflow-wrap: anywhere;
    }

    .hero-lead,
    .section-head p,
    .spotlight-note,
    .hero-side-note,
    .game-meta,
    .stacked-meta {
        font-size: 12px;
        line-height: 1.65;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 16px;
    }

    .hero-actions .cta-btn:last-child {
        grid-column: 1 / -1;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }

    .favorite-grid,
    .provider-grid,
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .favorite-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding: 0 2px 4px;
        align-items: stretch;
        scroll-snap-type: x proximity;
        min-width: 0;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
    }

    .favorite-grid::-webkit-scrollbar {
        display: none;
    }

    .favorite-body {
        padding: 8px;
        min-height: 0;
    }

    .favorite-actions {
        flex-direction: column;
    }

    .game-name,
    .stacked-title {
        font-size: 11px;
        line-height: 1.25;
        min-height: 28px;
    }

    .favorite-card {
        flex: 0 0 clamp(112px, 33vw, 126px);
        width: auto;
        min-height: 232px;
        min-width: 0;
        scroll-snap-align: start;
    }

    .favorite-thumb {
        aspect-ratio: 1 / 0.76;
        padding: 5px 5px 3px;
        background: linear-gradient(180deg, rgba(212, 181, 113, 0.08), rgba(255, 255, 255, 0.02));
    }

    .favorite-thumb img {
        border-radius: 12px;
        object-fit: contain;
        transform: none;
        image-rendering: auto;
        background: rgba(10, 10, 10, 0.2);
    }

    .game-provider {
        margin-top: 6px;
        min-height: 22px;
        padding: 0 7px;
        font-size: 8px;
    }

    .game-rtp-row {
        margin-top: 8px;
        gap: 6px;
    }

    .game-rtp {
        font-size: 16px;
    }

    .game-status {
        min-height: 22px;
        padding: 0 7px;
        font-size: 8px;
    }

    .game-meta {
        margin-top: 6px;
        font-size: 9px;
        min-height: 22px;
    }

    .favorite-actions {
        gap: 6px;
        padding-top: 8px;
    }

    .favorite-action-btn,
    .favorite-provider-link {
        min-height: 26px;
        padding: 0 6px;
        font-size: 7px;
    }

    .game-rtp,
    .stacked-rtp,
    .metric-value,
    .trust-value,
    .stat-value {
        font-size: 20px;
    }

    .jackpot-value {
        gap: 8px;
    }

    .jackpot-prefix {
        font-size: 11px;
    }

    .jackpot-number {
        font-size: 24px;
        letter-spacing: -0.03em;
    }

    .metric-card,
    .stat-tile,
    .trust-card {
        min-height: 0;
        padding: 14px;
    }

    .stacked-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .stacked-thumb {
        width: 72px;
    }

    .provider-name {
        font-size: 14px;
    }

    .quick-detail-stats {
        grid-template-columns: 1fr;
    }

    .quick-detail-actions {
        flex-direction: column;
    }

    .activity-shell {
        padding: 6px 12px;
    }

    .activity-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
    }

    .winner-game {
        white-space: normal;
    }

    .mobile-sticky-bar {
        display: grid;
    }
}

/* Premium hierarchy refinement */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.015), transparent 22%, transparent 78%, rgba(212, 181, 113, 0.03)),
        radial-gradient(circle at 18% 12%, rgba(212, 181, 113, 0.08), transparent 24%);
    opacity: 0.85;
}

.site-header {
    background:
        linear-gradient(180deg, rgba(16, 16, 16, 0.9), rgba(8, 8, 8, 0.96)),
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.06), transparent 34%);
}

.hero-panel {
    min-height: 468px;
    border-color: rgba(212, 181, 113, 0.24);
    background:
        linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(10, 10, 10, 1)),
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.1), transparent 38%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.hero-copy h1 {
    max-width: 820px;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: 0.98;
}

.hero-lead {
    max-width: 620px;
    font-size: 15px;
    color: #d8cebd;
}

.hero-actions {
    gap: 12px;
}

.cta-btn.primary,
.cta-btn.secondary,
.cta-btn.tertiary {
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.content-section,
.site-footer {
    background:
        linear-gradient(180deg, rgba(16, 16, 16, 0.88), rgba(10, 10, 10, 0.94)),
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.035), transparent 32%);
}

.stats-strip {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(14, 14, 14, 0.82), rgba(10, 10, 10, 0.9)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 28%);
}

.cta-banner {
    border-color: rgba(212, 181, 113, 0.24);
    background:
        linear-gradient(180deg, rgba(22, 20, 16, 0.98), rgba(14, 12, 10, 0.98)),
        radial-gradient(circle at top right, rgba(212, 181, 113, 0.12), transparent 38%);
}

.section-head {
    max-width: 820px;
    gap: 8px;
}

.section-head h2 {
    font-size: clamp(32px, 3.3vw, 48px);
}

.metric-card,
.trust-card,
.favorite-card,
.provider-card,
.activity-shell,
.hero-side-card,
.hero-side-note,
.stat-tile {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 34px rgba(0, 0, 0, 0.16);
}

.favorite-card,
.provider-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(9, 9, 9, 0.98));
}

.provider-card {
    min-height: 118px;
}

.provider-open,
.game-provider {
    background: rgba(255, 255, 255, 0.025);
}

.activity-item {
    padding: 16px 0;
}

.mobile-sticky-bar {
    border-color: rgba(212, 181, 113, 0.16);
    background: rgba(10, 10, 10, 0.9);
}

@media (max-width: 640px) {
    .hero-panel {
        min-height: 0;
    }

    .hero-copy h1 {
        font-size: 30px;
        line-height: 1.04;
    }

    .hero-lead {
        font-size: 13px;
    }

    .provider-card {
        min-height: 96px;
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: calc(100% - 10px);
    }

    .site-header,
    .hero-panel,
    .content-section,
    .cta-banner,
    .site-footer,
    .stats-strip {
        border-radius: 18px;
    }

    .favorite-grid,
    .provider-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .favorite-grid {
        display: flex;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        padding: 0 1px 4px;
    }

    .favorite-card {
        flex-basis: 116px;
        min-height: 222px;
    }

    .favorite-thumb {
        aspect-ratio: 1 / 0.72;
        padding: 4px 4px 3px;
    }

    .favorite-thumb img {
        border-radius: 10px;
    }

    .favorite-body {
        padding: 7px;
    }

    .game-name {
        font-size: 10px;
        min-height: 24px;
    }

    .game-rtp {
        font-size: 15px;
    }

    .brand {
        width: min(172px, 100%);
        min-height: 54px;
    }

    .brand-logo {
        width: 124px;
    }

    .header-actions,
    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-actions .cta-btn:last-child {
        grid-column: auto;
    }

    .status-pill,
    .header-btn,
    .cta-btn,
    .mini-btn {
        font-size: 9px;
    }

    .mobile-sticky-bar {
        left: 4px;
        right: 4px;
        bottom: 0;
        gap: 6px;
        padding: 6px;
    }

    .mobile-sticky-bar a {
        min-height: 42px;
        font-size: 9px;
        letter-spacing: 0.05em;
    }
}

@keyframes mobileBarPulseGold {
    0%, 100% {
        box-shadow: 0 0 0 rgba(212, 181, 113, 0);
        filter: saturate(1);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(212, 181, 113, 0.16), 0 10px 20px rgba(212, 181, 113, 0.18);
        filter: saturate(1.08);
    }
}

@keyframes mobileBarPulseDark {
    0%, 100% {
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
    }
    50% {
        background: rgba(212, 181, 113, 0.1);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: 100%;
        max-width: 100%;
        padding: 8px 6px 112px;
    }

    .main-stack,
    .site-header,
    .hero-panel,
    .content-section,
    .cta-banner,
    .stats-strip,
    .site-footer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .site-header > *,
    .hero-panel > *,
    .content-section > *,
    .cta-banner > *,
    .stats-strip > * {
        min-width: 0;
        max-width: 100%;
    }

    .hero-copy,
    .hero-side,
    .section-head,
    .header-meta,
    .header-actions,
    .hero-actions,
    .spotlight-actions,
    .cta-banner-actions {
        min-width: 0;
        max-width: 100%;
    }

    .content-section,
    .cta-banner,
    .stats-strip,
    .site-footer {
        overflow: hidden;
    }

    .favorite-grid {
        display: flex !important;
        flex-wrap: nowrap;
        grid-template-columns: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0 4px;
        gap: 8px;
        overflow-x: auto !important;
        overflow-y: hidden;
        align-items: stretch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
    }

    .favorite-card {
        flex: 0 0 72%;
        min-width: 72%;
        max-width: 72%;
        scroll-snap-align: start;
    }
}

@media (max-width: 420px) {
    .favorite-card {
        flex-basis: 78%;
        min-width: 78%;
        max-width: 78%;
    }
}
