:root {
    --primary: #FFB124;
    --accent: #FFB124;
    --accent-hover: #e69e00;
    --dark: #1E2430;
    --darker: #161B26;
    --light: #f0f3f7;
    --text: #334155;
    --border: #e8ecf2;
    --success: #22c55e;
    --radius: 8px;
    --sidebar-width: 280px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--text);
    margin: 0;
    line-height: 1.7;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* HEADER */
header {
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
}

.fallback-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
}

.desktop-nav {
    display: none;
    gap: 25px;
}

@media(min-width: 900px) {
    .desktop-nav {
        display: flex;
    }

    .desktop-nav a {
        font-weight: 600;
        color: var(--accent);
        font-size: 0.95rem;
        letter-spacing: 0.3px;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: white;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-link {
    font-weight: 600;
    color: var(--accent);
    display: none;
    cursor: pointer;
}

.login-link:hover {
    color: white;
}

@media(min-width: 600px) {
    .login-link {
        display: block;
    }
}

.cta-button {
    background: var(--accent);
    color: var(--dark);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-hover);
}

/* GAME STAGE HERO */
.game-stage {
    background: linear-gradient(180deg, var(--darker) 0%, #1e2430 100%);
    color: white;
    padding: 40px 0 60px;
}

.game-meta-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-meta-header h1 {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: -1px;
}

.subtitle {
    color: #94a3b8;
    margin-top: 5px;
    font-size: 1.1rem;
}

/* VIEWPORT & TICKER */
.game-viewport {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.live-ticker {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8rem;
    padding: 8px;
    display: flex;
    gap: 20px;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.ticker-item {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
}

.game-iframe-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.play-trigger {
    text-align: center;
    padding: 30px;
}

.play-trigger h2 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    color: var(--accent);
    text-shadow: 0 2px 12px rgba(255, 177, 36, 0.4);
    letter-spacing: 2px;
}

.play-trigger p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.game-controls-ui {
    background: var(--darker);
    padding: 15px;
    border-top: 1px solid #334155;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    align-items: center;
}

.control-panel label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

.stepper {
    display: flex;
    background: #0f172a;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.stepper button {
    width: 30px;
    background: #334155;
    border: none;
    color: white;
    cursor: pointer;
}

.stepper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-weight: bold;
}

.difficulty-selector {
    display: flex;
    gap: 4px;
    justify-content: center;
    background: #0f172a;
    padding: 4px;
    border-radius: 4px;
}

.diff-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85rem;
}

.diff-btn.active {
    background: #334155;
    color: white;
    font-weight: bold;
}

.diff-btn.active.easy {
    background: var(--accent);
    color: var(--dark);
}

.action-btn {
    display: block;
    background: var(--accent);
    color: var(--dark);
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--accent-hover);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    color: #94a3b8;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

/* MAIN CONTENT LAYOUT */
.main-content-layout {
    display: flex;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
    align-items: flex-start;
}

.toc-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: none;
}

@media(min-width: 1024px) {
    .toc-sidebar {
        display: block;
    }
}

.toc-sidebar h3 {
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.toc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-sidebar li {
    margin-bottom: 12px;
}

.toc-sidebar a {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.toc-sidebar a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.promo-box {
    background: var(--dark);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
    text-align: center;
    border: 1px solid rgba(255, 177, 36, 0.2);
}

.promo-box h4 {
    margin: 0;
    color: var(--accent);
}

.small-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.long-read {
    flex: 1;
    max-width: 100%;
}

.long-read section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.long-read h2 {
    font-size: 2rem;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.long-read h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 30px;
    margin-bottom: 15px;
}

.long-read p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.detailed-list li {
    margin-bottom: 15px;
}

/* VISUALS & TABLES */
.article-visual {
    margin: 40px 0;
    background: #f1f5f9;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.article-visual figcaption {
    margin-top: 15px;
    font-style: italic;
    color: #64748b;
    font-size: 0.9rem;
}

/* OPTIMIZED TABLES FOR MOBILE */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.data-table th {
    background: var(--dark);
    color: var(--accent);
    padding: 15px;
    text-align: left;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover {
    background: #f8fafc;
}

/* APP & PAYMENT */
.app-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.tech-spec {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tech-spec h4 {
    color: var(--dark);
    margin-top: 0;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.download-cta-area {
    text-align: center;
    margin-top: 40px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 177, 36, 0.2);
}

.small-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
}

.payment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.payment-list li {
    background: white;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.payment-list strong {
    display: block;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.alert-box {
    background: #fffbeb;
    border-left: 5px solid var(--accent);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

/* FAQ */
.accordion details {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.accordion summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.accordion details[open] summary {
    border-bottom: 1px solid #f1f5f9;
}

.accordion details[open] summary::after {
    content: '−';
}

.acc-text {
    padding: 20px;
    color: #475569;
}

/* FINAL CTA */
.final-cta-section {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
    border-radius: var(--radius);
    margin-top: 60px;
    border: 1px solid rgba(255, 177, 36, 0.2);
}

.final-cta-section h3 {
    font-size: 2rem;
    margin-top: 0;
    color: var(--accent);
}

.final-cta-section p {
    color: rgba(255,255,255,0.8);
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* FOOTER */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    border-top: 3px solid var(--accent);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: var(--accent);
    margin-top: 0;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.f-col h4 {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.f-col a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    cursor: pointer;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255,255,255,0.5);
}

.payment-icons-footer {
    display: flex;
    gap: 10px;
}

.payment-icons-footer span {
    background: rgba(255,255,255,0.08);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-content-layout {
        flex-direction: column;
    }

    .toc-sidebar {
        display: none;
    }

    .game-controls-ui {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        flex-direction: column;
        gap: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        text-align: center;
        justify-content: center;
    }

    .app-details-grid {
        grid-template-columns: 1fr;
    }

    .header-content .desktop-nav {
        display: none;
    }

    .game-meta-header h1 {
        font-size: 1.8rem;
    }

    .play-trigger h2 {
        font-size: 1.8rem;
    }

    .final-cta-section {
        padding: 40px 20px;
    }
}

/* Content Images */
.content-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* App showcase */
.app-showcase-container {
    margin: 40px 0;
    text-align: center;
    background: #f1f5f9;
    padding: 20px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.app-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .app-scroller {
        justify-content: center;
    }
}

.app-screen {
    flex: 0 0 auto;
    height: auto;
    max-height: 400px;
    width: auto;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    scroll-snap-align: center;
    border: 3px solid var(--dark);
    background: #000;
}

.app-scroller::-webkit-scrollbar {
    height: 8px;
}

.app-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.app-scroller::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.app-showcase-container figcaption {
    margin-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== BURGER MENU ===== */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}
.burger-btn span {
    display: block;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media(min-width: 900px) { .burger-btn { display: none; } }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 28, 0.98);
    z-index: 998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 60px 0 40px;
}
.mobile-nav.active { display: flex; }
@media(min-width: 900px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.35rem;
    padding: 15px 40px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,177,36,0.08);
    transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; background: rgba(255,177,36,0.06); }
.mobile-nav .cta-button {
    margin-top: 28px;
    width: auto;
    padding: 14px 44px;
    font-size: 1rem;
    border-bottom: none;
    border-radius: 4px;
    background: var(--accent);
    color: var(--dark);
}
.mobile-nav .cta-button:hover { background: #ffc84a; color: var(--dark); }
/* ===== END BURGER MENU ===== */
