:root {
    --bg-body: #111318;
    --bg-card: #1a1d24;
    --text-main: #f5f5f5;
    --text-muted: #b9c0cc;
    --color-brand: #f97316;
    --color-brand-hover: #fb923c;
    --color-accent: #facc15;
    --shadow-button: 0 4px 18px rgba(249, 115, 22, 0.32);
}

html {
    background: #111318;
}

body {
    background: #111318;
    color: #f5f5f5;
}

a {
    color: #fb923c;
}

a:hover {
    color: #fed7aa;
}

.at-logo {
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.at-logo span {
    color: #f97316;
}

.site-header,
.site-footer {
    background: #0f1117;
}

.site-main {
    padding-top: 0;
}

.at-hero {
    padding: 72px 0 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.at-hero-inner {
    max-width: 980px;
}

.at-kicker {
    color: #f97316;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    margin: 0 0 12px;
}

.at-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.02;
    color: #fff;
}

.at-lead {
    max-width: 820px;
    color: #d8dde6;
    font-size: 1.15rem;
    line-height: 1.85;
}

.at-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.at-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    background: #f97316;
    color: #111318;
    font-weight: 800;
    box-shadow: var(--shadow-button);
}

.at-button:hover {
    background: #fb923c;
    color: #111318;
}

.at-button.secondary {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.at-button.secondary:hover {
    border-color: #f97316;
    color: #fed7aa;
}

.at-page {
    padding: 44px 0;
}

.at-article {
    max-width: 880px;
    margin: 0 auto;
}

.at-wide {
    max-width: 1120px;
}

.at-section {
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 28px;
    margin: 22px 0;
}

.at-section h2 {
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
    margin: 0 0 14px;
}

.at-section h3 {
    color: #fff;
    margin-top: 22px;
}

.at-section p,
.at-section li,
.at-article p,
.at-article li {
    color: #d8dde6;
    line-height: 1.85;
}

.at-section ul,
.at-section ol {
    list-style: disc;
    padding-left: 22px;
}

.at-note {
    border-left: 4px solid #f97316;
    padding: 16px 18px;
    background: rgba(249, 115, 22, 0.08);
    color: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.at-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0;
}

.at-mini-card {
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 22px;
}

.at-mini-card h3 {
    margin: 0 0 10px;
    color: #fff;
}

.at-mini-card p {
    color: #cbd5e1;
}

.de-casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 28px 0 38px;
}

.de-casino-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(180deg, #232733 0%, #151821 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
    overflow: hidden;
    position: relative;
}

.de-logo {
    min-height: 96px;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #0f1117;
}

.de-logo img {
    max-width: 190px;
    max-height: 68px;
    object-fit: contain;
}

.de-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1;
}

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

.de-name,
.de-score {
    color: #fff;
    font-weight: 800;
}

.de-bonus {
    color: #f8fafc;
    font-weight: 700;
}

.de-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.de-tag {
    background: rgba(249, 115, 22, .12);
    color: #fed7aa;
    border: 1px solid rgba(249, 115, 22, .25);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 700;
}

.de-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.de-btn {
    border-radius: 8px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    padding: 0 12px;
}

.de-btn.primary {
    background: #f97316;
    color: #111318;
}

.de-btn.secondary {
    background: rgba(255, 255, 255, .08);
    color: #f5f5f5;
}

.de-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #f97316;
    color: #111318;
    font-weight: 900;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .75rem;
}

.de-ribbon:empty {
    display: none;
}

.de-rg {
    color: #94a3b8;
    font-size: .78rem;
    margin: 0;
}

.at-toc {
    background: #151821;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
    margin: 28px 0;
}

.at-toc strong {
    display: block;
    color: #fff;
    margin-bottom: 10px;
}

.at-toc a {
    display: inline-block;
    margin: 4px 10px 4px 0;
    color: #fed7aa;
}

.at-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    margin: 22px 0;
}

.at-table th,
.at-table td {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8dde6;
    text-align: left;
}

.at-table th {
    width: 32%;
    background: #0f1117;
    color: #fff;
}

.at-review-hero {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: center;
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 28px;
    margin: 36px 0;
}

.at-review-hero img {
    width: 150px;
    max-height: 105px;
    object-fit: contain;
    background: #0f1117;
    border-radius: 8px;
    padding: 18px;
}

.at-review-hero h1 {
    color: #fff;
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.at-rating {
    color: #facc15;
    font-weight: 900;
}

.at-pro-con {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.at-pro-con ul {
    margin: 0;
}

.at-faq details {
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 12px 0;
}

.at-faq summary {
    cursor: pointer;
    color: #fff;
    font-weight: 800;
}

.at-sources a {
    word-break: break-word;
}

.footer-bottom {
    align-items: flex-start;
}

.legal-disclaimer {
    max-width: 820px;
}

@media (max-width: 800px) {
    .at-grid-3,
    .at-pro-con,
    .at-review-hero {
        grid-template-columns: 1fr;
    }

    .de-cta {
        grid-template-columns: 1fr;
    }

    .at-section {
        padding: 22px;
    }
}

/* ================== AT BRAND LOGO ================== */
.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ================== AT CHROME FIX PASS ================== */
/* A. Base typography */
html,
body,
.site-main {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.at-logo,
.main-nav a,
.de-btn {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
}

p {
    line-height: 1.6;
    color: var(--text-main);
}

/* B. Anchor and focus reset */
a {
    color: var(--color-brand);
    text-decoration: none;
}

p a,
.at-section a,
article a {
    text-decoration: underline;
    text-decoration-color: rgba(249, 115, 22, 0.5);
    text-underline-offset: 3px;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

.at-button,
.at-button:hover,
.main-nav a,
.main-nav a:hover,
.footer-col a,
.footer-col a:hover,
.de-casino-card .de-cta a,
.de-casino-card .de-cta a:hover,
.de-btn.primary,
.de-btn.secondary {
    text-decoration: none;
}

.de-casino-card .de-cta a,
.de-btn.primary,
.de-btn.secondary {
    border: 0;
    outline-style: none;
    font-weight: 800;
}

.de-casino-card .de-tag {
    text-decoration: none;
}

/* C. Header layout */
.site-header {
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(15, 17, 23, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    height: auto;
    min-height: 48px;
    margin: 0 auto;
    padding: 0 24px;
}

.at-logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.at-logo:hover {
    color: #fff;
}

.main-nav {
    display: block;
}

.main-nav > ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.main-nav li {
    list-style: none;
    margin: 0;
}

.main-nav a {
    color: #f5f5f5;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 8px 0;
}

.main-nav a:hover {
    color: var(--color-brand);
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: "▾";
    margin-left: 4px;
    opacity: 0.65;
    font-size: 0.7em;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #15181f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 60;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-brand);
}

.burger {
    display: none;
}

/* D. Header mobile */
@media (max-width: 900px) {
    .site-header {
        overflow: visible;
    }

    .burger {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .burger span {
        width: 22px;
        height: 2px;
        background: #fff;
        transition: transform 0.2s, opacity 0.2s;
    }

    .burger.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #15181f;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .main-nav.open {
        max-height: 80vh;
        overflow-y: auto;
        padding: 12px 0;
    }

    .main-nav > ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0 24px;
    }

    .main-nav > ul > li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 4px 0 8px 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s;
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu,
    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 400px;
    }
}

/* E. Footer layout */
.site-footer {
    padding: 56px 0 28px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f1117;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 360px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p,
.legal-disclaimer {
    color: rgba(255, 255, 255, 0.55);
}

.copyright {
    margin: 0;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* F. Casino card logo normalization */
.de-casino-card .de-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    max-height: 80px;
}

.de-casino-card .de-logo img {
    max-height: 48px;
    max-width: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ================== AT MOBILE OVERFLOW TIGHTENING ================== */
@media (max-width: 900px) {
    .header-inner {
        position: relative;
        min-height: 44px;
    }

    .header-inner .burger {
        display: inline-flex !important;
        flex-shrink: 0;
        margin-left: auto;
        position: relative;
        z-index: 70;
    }

    .main-nav {
        z-index: 65;
    }

    .at-hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        overflow-wrap: anywhere;
    }

    .at-lead {
        font-size: 1rem;
        overflow-wrap: break-word;
    }

    .at-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .at-button {
        width: 100%;
    }

    .de-casino-card {
        min-width: 0;
    }

    .de-tags {
        min-width: 0;
    }

    .de-tag {
        white-space: normal;
    }
}
