:root {
    --bg-0: #07090e;
    --bg-1: #0b1018;
    --bg-2: #111722;
    --line: #272c34;
    --line-soft: #1d232d;
    --text: #f7f8fa;
    --muted: #8d97a4;
    --link: #2e84ff;
    --blue: #0a6eff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 190px 1fr;
    background: #080c13;
}

.left-sidebar {
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #111722 0%, #0e131d 100%);
    padding: 16px 12px;
}

.sidebar-toggle {
    color: #b4bbc7;
    font-size: 22px;
    margin: 0 0 22px 10px;
}

.sidebar-nav { display: grid; gap: 8px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #c2c8d1;
}

.nav-item.is-active { background: #272d38; color: #fff; font-weight: 700; }
.nav-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.96;
}

.nav-icon-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.sidebar-label {
    margin: 24px 0 0;
    padding-left: 2px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: #7f8795;
}

.main-column { min-width: 0; display: flex; flex-direction: column; }

.top-header {
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 9px 20px;
    background: rgba(8, 12, 19, 0.98);
}

.brand-wrap { display: flex; align-items: center; gap: 8px; }
.brand-score { font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}
.brand-divider { width: 1px; height: 20px; background: #434a55; }
.brand-casino { font-size: 14px; letter-spacing: 0.14em; font-weight: 600; color: #dde2ea; }
.rg-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5f6773;
    font-size: 9px;
    color: #c5ccd7;
    margin-left: 2px;
}

.rg-badge-link {
    display: inline-flex;
    text-decoration: none;
}

.top-actions { display: flex; align-items: center; gap: 8px; }

.btn {
    border: 0;
    border-radius: 6px;
    height: 36px;
    padding: 0 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}

.btn-dark { background: #232a35; }
.btn-blue { background: var(--blue); }

.avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 0;
    background: #2f3642;
    color: #d0d6de;
    cursor: pointer;
    font-size: 14px;
}

.site-main {
    flex: 1;
    border-bottom: 1px solid var(--line);
}

.empty-state-section {
    min-height: 250px;
    display: grid;
    place-items: center;
    padding-top: 18px;
}

.empty-state { text-align: center; }

.empty-state-logo {
    width: 112px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
}

.empty-state h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    font-size: 18px;
    color: #c4cad4;
}

.site-footer { padding: 18px 18px 14px; }

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    padding-bottom: 18px;
}

.footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.store-badges { display: flex; gap: 8px; }
.store-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-badge-img {
    height: 34px;
    width: auto;
    display: block;
    border-radius: 8px;
}

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

.footer-columns h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.footer-columns ul { margin: 0; padding: 0; list-style: none; }
.footer-columns li { margin-bottom: 7px; }
.footer-columns a { color: #9ca4b1; font-size: 15px; }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.compliance-icons {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.compliance-logo {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

.compliance-copy,
.copyright {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.compliance-copy a { color: var(--link); }

.legal-links { display: flex; gap: 18px; }
.legal-links a {
    color: #9ca5b0;
    font-size: 12px;
    position: relative;
}

.legal-links a + a::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 6px;
    width: 1px;
    height: 14px;
    background: #48505d;
}

.penn-logo {
    width: 96px;
    height: auto;
    margin-top: 8px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(17, 35, 63, 0.42), rgba(2, 6, 12, 0.84));
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 100000;
}

.modal-overlay[hidden] {
    display: none !important;
}

.auth-modal {
    width: min(420px, 100%);
    background: linear-gradient(180deg, #182131 0%, #111a29 100%);
    border: 1px solid #2e3a4e;
    border-radius: 18px;
    padding: 18px;
    position: relative;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.auth-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2f84ff, #0a6eff);
}

.auth-modal[hidden] {
    display: none !important;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #243044;
    color: #e7edf5;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modal-panel {
    display: none;
}

.modal-panel.is-active {
    display: block;
}

.modal-panel h2 {
    margin: 0 0 7px;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.modal-panel p {
    margin: 0 0 16px;
    color: #a8b4c5;
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    font-size: 12px;
    color: #dfe6f0;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    border: 1px solid #415069;
    border-radius: 10px;
    height: 42px;
    padding: 0 12px;
    background: #0f1724;
    color: #eef3fa;
    outline: none;
}

.auth-form input:focus {
    border-color: #2f84ff;
    box-shadow: 0 0 0 3px rgba(47, 132, 255, 0.2);
}

.modal-submit {
    margin-top: 6px;
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    height: 42px;
    font-size: 13px;
}

.resend-btn {
    margin-top: 12px;
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #42526b;
    background: #182436;
    color: #e0e7f2;
    font-size: 12px;
    cursor: pointer;
}

.resend-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.responsible-page {
    padding: 0;
}

.responsible-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 220px;
}

.responsible-sidebar {
    border-right: 1px solid var(--line);
    padding: 12px 0;
}

.responsible-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    color: #a5afbe;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.responsible-nav-item.is-active {
    color: #f1f4f9;
    background: #202735;
    border-left-color: #0a6eff;
}

.small-rg {
    border: 1px solid #667183;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.responsible-content {
    padding: 14px 20px;
}

.responsible-content h1 {
    margin: 0 0 12px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.resource-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1c2230;
    border: 1px solid #2e3647;
    border-radius: 4px;
    padding: 12px;
    color: #eef2f8;
    font-size: 16px;
    max-width: 560px;
}

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .left-sidebar { display: none; }
    .footer-top, .footer-columns { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 768px) {
    .top-header {
        min-height: auto;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand-wrap {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-score {
        font-size: 18px;
    }

    .brand-logo-img {
        height: 24px;
    }

    .brand-casino {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .top-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .avatar-btn {
        width: 34px;
        height: 34px;
    }

    .empty-state-section {
        min-height: 220px;
        padding: 24px 12px;
    }

    .empty-state-logo {
        width: 86px;
        margin-bottom: 10px;
    }

    .empty-state h1 {
        font-size: 24px;
    }

    .empty-state p {
        font-size: 16px;
    }

    .site-footer {
        padding: 16px 12px 12px;
    }

    .footer-top {
        gap: 14px;
        padding-bottom: 14px;
    }

    .footer-columns {
        gap: 16px;
    }

    .footer-columns h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .footer-columns a {
        font-size: 14px;
    }

    .store-badges {
        flex-wrap: wrap;
    }

    .store-badge-img {
        height: 30px;
    }

    .compliance-copy,
    .copyright,
    .legal-links a {
        font-size: 11px;
    }

    .penn-logo {
        width: 88px;
    }

    .auth-modal {
        padding: 14px;
    }

    .modal-panel h2 {
        font-size: 20px;
    }

    .responsible-layout {
        grid-template-columns: 1fr;
    }

    .responsible-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 10px 0;
    }

    .responsible-content {
        padding: 12px;
    }

    .resource-card {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 8px 10px;
        gap: 8px;
    }

    .brand-score {
        font-size: 16px;
    }

    .brand-logo-img {
        height: 22px;
    }

    .brand-divider {
        height: 16px;
    }

    .brand-casino {
        font-size: 11px;
    }

    .rg-badge {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    .top-actions {
        gap: 6px;
    }

    .btn {
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .avatar-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .empty-state-section {
        min-height: 190px;
        padding: 20px 10px;
    }

    .empty-state-logo {
        width: 74px;
    }

    .empty-state h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .empty-state p {
        font-size: 14px;
    }

    .footer-columns h2 {
        font-size: 16px;
    }

    .footer-columns a {
        font-size: 13px;
    }

    .store-badge-img {
        height: 28px;
    }
}
