:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #222240;
    --accent: #f5b731;
    --accent-hover: #ffd04a;
    --accent-dark: #c4911e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8cc;
    --text-muted: #7a7a99;
    --border: #2e2e4a;
    --success: #2ecc71;
    --warning: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0f0f25 100%);
    border-bottom: 2px solid var(--accent);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    height: 38px;
    width: auto;
}

.header-badge {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

/* Access Chart Banner */
.access-banner {
    background: linear-gradient(135deg, #1a1a35 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.access-banner h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.access-banner h1 span {
    color: var(--accent);
}

.access-banner p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #0d0d1a;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 183, 49, 0.3);
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button-outline:hover {
    background: var(--accent);
    color: #0d0d1a;
}

/* Reading Order Box */
.reading-order {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.reading-order strong {
    color: var(--accent);
}

.reading-order code {
    background: #2a2a4a;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Section Titles */
.section-title {
    font-size: 1.35rem;
    margin: 40px 0 16px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    font-size: 1.1rem;
    margin: 28px 0 12px;
    color: var(--accent);
}

/* Disclaimer Box */
.disclaimer-box {
    background: rgba(245, 183, 49, 0.05);
    border: 1px solid rgba(245, 183, 49, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.disclaimer-box strong {
    color: var(--accent);
}

/* Steps / Matrix */
.step-matrix {
    margin: 24px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.step-item:hover {
    border-color: var(--accent);
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #0d0d1a;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.step-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.step-text code {
    background: #2a2a4a;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Navigation Menu */
.nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.nav-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 183, 49, 0.05);
}

/* Keyword Boxes */
.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.keyword-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.keyword-box h4 {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.keyword-box p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* VIP Table */
.vip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.vip-table th {
    background: var(--accent);
    color: #0d0d1a;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
}

.vip-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.vip-table tr:nth-child(even) {
    background: rgba(34, 34, 64, 0.5);
}

.vip-table tr:hover td {
    background: rgba(245, 183, 49, 0.05);
}

/* License Box */
.license-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.license-box h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1rem;
}

/* FAQ */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 16px 20px;
    text-align: left;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(245, 183, 49, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    background: rgba(26, 26, 46, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 16px 20px;
}

/* Tags */
.tag {
    display: inline-block;
    background: rgba(245, 183, 49, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 3px 4px 3px 0;
    font-weight: 500;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.info-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card .value {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 4px;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    line-height: 2;
    display: block;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Date Badge */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 16px 0;
}

.date-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Lobby Menu Items */
.lobby-list {
    list-style: none;
    margin: 16px 0;
}

.lobby-list li {
    padding: 10px 16px;
    border-left: 3px solid var(--border);
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lobby-list li:hover {
    border-left-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 183, 49, 0.03);
}

/* Games Showcase */
.games-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.game-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.game-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .access-banner h1 {
        font-size: 1.3rem;
    }

    .header-inner {
        justify-content: center;
    }

    .nav-menu {
        grid-template-columns: 1fr 1fr;
    }

    .keyword-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Modern UI refresh (content and layout order preserved) ===== */
html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 183, 49, 0.13), transparent 28rem),
        radial-gradient(circle at 85% 12%, rgba(120, 92, 255, 0.10), transparent 32rem),
        linear-gradient(180deg, #090914 0%, var(--bg-primary) 42%, #11111f 100%);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
    z-index: -1;
}

.container {
    max-width: 980px;
}

.site-header {
    background: rgba(13, 13, 26, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 183, 49, 0.26);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.logo {
    height: 42px;
    filter: drop-shadow(0 10px 22px rgba(245, 183, 49, 0.16));
}

.header-badge,
.date-badge {
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 25px rgba(0,0,0,0.16);
}

.access-banner,
.reading-order,
.info-card,
.keyword-box,
.license-box,
.faq-item,
.step-item,
.nav-item,
.game-tag,
.disclaimer-box,
main > div[style*="background:var(--bg-card)"] {
    background: linear-gradient(145deg, rgba(34,34,64,0.88), rgba(20,20,38,0.88));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.05);
}

.access-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: clamp(28px, 5vw, 52px);
}

.access-banner::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at 50% 0%, rgba(245,183,49,.22), transparent 45%);
    pointer-events: none;
}

.access-banner > * {
    position: relative;
}

.access-banner h1 {
    font-size: clamp(1.55rem, 4vw, 2.65rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.section-title {
    border-bottom: 0;
    padding-bottom: 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(245,183,49,.55), transparent);
}

.section-subtitle {
    letter-spacing: -0.01em;
}

.cta-button,
.cta-button-outline,
.mobile-auth-btn {
    border-radius: 999px;
    text-decoration: none;
    will-change: transform;
}

.cta-button {
    box-shadow: 0 14px 30px rgba(245, 183, 49, 0.22), inset 0 1px 0 rgba(255,255,255,.3);
}

.cta-button-outline {
    border: 1px solid rgba(245,183,49,.62);
    background: rgba(245,183,49,.055);
}

.cta-button:hover,
.cta-button-outline:hover,
.nav-item:hover,
.step-item:hover,
.keyword-box:hover,
.info-card:hover,
.game-tag:hover,
.faq-item:hover {
    transform: translateY(-2px);
}

.nav-menu,
.keyword-grid,
.info-grid {
    gap: 14px;
}

.nav-item,
.keyword-box,
.info-card,
.step-item,
.license-box,
.faq-item,
.disclaimer-box,
.reading-order {
    border-radius: 18px;
}

.reading-order {
    border-left: 0;
    position: relative;
}

.reading-order::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 99px;
    background: var(--accent);
}

.info-card,
.keyword-box {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.vip-table {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}

.vip-table th:first-child { border-top-left-radius: 18px; }
.vip-table th:last-child { border-top-right-radius: 18px; }

.faq-question {
    background: transparent;
}

.faq-answer {
    background: rgba(255,255,255,0.025);
}

.site-footer {
    background: rgba(15,15,37,0.88);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-auth-bar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 88px;
    }

    .site-header {
        padding: 14px 0;
    }

    .header-inner {
        justify-content: center;
        gap: 10px;
    }

    .header-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .container {
        padding: 0 16px;
    }

    .access-banner,
    .reading-order,
    .license-box,
    .disclaimer-box {
        border-radius: 18px;
    }

    .mobile-auth-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 2000;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 24px;
        background: rgba(13, 13, 26, 0.82);
        border: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 18px 45px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.08);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mobile-auth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        font-weight: 800;
        font-size: 0.9rem;
        letter-spacing: .02em;
        border: 1px solid rgba(245,183,49,.5);
    }

    .mobile-auth-login {
        color: var(--accent);
        background: rgba(245,183,49,.08);
    }

    .mobile-auth-register {
        color: #101018;
        background: linear-gradient(135deg, var(--accent-hover), var(--accent-dark));
        box-shadow: 0 12px 26px rgba(245,183,49,.24);
    }

    table.vip-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .access-banner {
        padding: 26px 18px;
    }

    .section-title {
        font-size: 1.18rem;
    }

    .step-item {
        gap: 12px;
        padding: 16px;
    }

    .cta-button,
    .cta-button-outline {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        margin-top: 8px;
    }
}

.header-badge {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}