/* TinyTrivia v5.0 — Sidebar Layout + Dark Gaming */

/* ========== LAYOUT ========== */
html { scroll-behavior: smooth; }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #0f0f1a;
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow-y: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #0d0d0d;
}

/* ========== SIDEBAR ========== */
.sidebar-logo {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    padding: 24px 24px 20px;
    letter-spacing: 1px;
}

.sidebar-logo span { color: var(--accent); }

.sidebar-section {
    padding: 4px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
    padding: 14px 24px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.sidebar-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.sidebar-item.active {
    color: var(--accent);
    background: rgba(255,87,34,0.08);
    border-right: 3px solid var(--accent);
}

.si-icon {
    font-size: 16px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.si-icon svg {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.sidebar-item.active .si-icon svg,
.sidebar-item:hover .si-icon svg {
    opacity: 1;
}

.sidebar-user {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.sidebar-user-badge:hover {
    background: rgba(255,255,255,0.04);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,107,53,0.15);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.sidebar-user-avatar img, .sidebar-user-img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.sidebar-user-level {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: border-color 0.2s;
}

.sidebar-theme-toggle:hover {
    border-color: var(--accent);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #0a0a0f;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.85) 50%, rgba(10,10,15,0.95) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-erik {
    flex-shrink: 0;
    margin-bottom: -4px;
}

.hero-erik img {
    height: 420px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 40px rgba(255,87,34,0.15));
}

.hero-text {
    flex: 1;
    padding: 0 0 80px 40px;
}

.hero-stats {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-start-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 30px rgba(255,87,34,0.35);
    transition: filter 0.2s, transform 0.1s;
}

.hero-start-btn:hover {
    filter: brightness(1.15);
    color: #fff;
    transform: scale(1.03);
}

/* ========== SECTION COMMON ========== */
.section-label {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 40px;
}

/* ========== GAME MODES ========== */
.game-modes {
    padding: 64px 0;
    background: #0d0d0d;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mode-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #1a1a2e;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.mode-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.mode-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.mode-card-info {
    padding: 14px 16px;
}

.mode-card-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.mode-card-info p {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ========== HOSTS ========== */
.hosts {
    padding: 64px 0;
    background: #0a0a0f;
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.host-card {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.2s;
}

.host-card:hover { transform: translateY(-3px); }

.host-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.host-card.sarcastic::before { background: var(--host-sarcastic); }
.host-card.neutral::before { background: var(--host-neutral); }
.host-card.positive::before { background: var(--host-positive); }

.host-card.sarcastic:hover { border-color: var(--host-sarcastic); }
.host-card.neutral:hover { border-color: var(--host-neutral); }
.host-card.positive:hover { border-color: var(--host-positive); }

.host-video {
    width: 180px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.08);
    margin: 0 auto 16px;
    display: block;
    background: #0f0f1a;
    cursor: pointer;
}

.host-card.sarcastic .host-video { border-color: rgba(239,68,68,0.35); }
.host-card.neutral .host-video { border-color: rgba(99,102,241,0.35); }
.host-card.positive .host-video { border-color: rgba(245,158,11,0.35); }

.host-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.host-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.host-play-btn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.host-play-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.host-select-btn {
    padding: 8px 24px;
    background: var(--accent-gradient);
    border-radius: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: filter 0.2s;
}

.host-select-btn:hover {
    filter: brightness(1.15);
    color: #fff;
}

/* ========== CATEGORY ARENA ========== */
.categories {
    padding: 64px 0;
    background: #0d0d0d;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cat-card.open {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(255,87,34,0.2);
}

.cat-card img {
    width: 100%;
    display: block;
    border-radius: 10px 10px 0 0;
}

.cat-card-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 10px 6px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Expansion panel */
.cat-expand {
    grid-column: 1 / -1;
    background: #1a1a2e;
    border: 1px solid rgba(255,87,34,0.25);
    border-radius: 12px;
    padding: 20px 24px;
    animation: expandIn 0.2s ease;
}

@keyframes expandIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cat-expand-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.cat-expand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.cat-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,87,34,0.08);
}

.cat-pill span {
    color: var(--accent);
    font-size: 11px;
    margin-left: 6px;
    opacity: 0.7;
}

/* ========== QUESTS + BADGES ========== */
.quests-badges {
    padding: 64px 0;
    background: #0a0a0f;
}

.qb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.qb-panel {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
}

.qb-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.quest-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 0 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.quest-icon {
    font-size: 18px;
    text-align: center;
    grid-row: 1 / 3;
}

.quest-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.quest-xp {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
}

.quest-bar {
    grid-column: 2 / 4;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.quest-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.badges-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.badge-item {
    text-align: center;
    flex: 0 0 auto;
}

.badge-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(245,158,11,0.35);
    box-shadow: 0 0 14px rgba(245,158,11,0.12), inset 0 0 8px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 8px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.badge-item:hover .badge-circle {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(245,158,11,0.35);
    transform: translateY(-2px);
}

.badge-item span {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: #0a0a0f;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-brand h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
    color: #fff;
}

.footer-brand h3 span { color: var(--accent); }

.footer-brand p {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: 'Chakra Petch', sans-serif;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* ========== LOADING ========== */
.loading-dots {
    display: inline-flex;
    gap: 3px;
}

.loading-dots span {
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: dot-pulse 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* ========== MOBILE BOTTOM TABS ========== */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f0f1a;
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 200;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mtab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    transition: color 0.15s;
}

.mtab.active { color: var(--accent); }
.mtab:hover { color: #fff; }

.mtab-icon { font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }

.mtab-icon svg { width: 22px; height: 22px; }

.mtab-label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 10px;
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .modes-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 28px; }
    .hero-erik img { height: 320px; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding-bottom: 72px; }
    .mobile-tabs { display: flex; }

    .hero {
        height: auto;
        min-height: 420px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 40px;
    }

    .hero-erik { order: 2; }
    .hero-erik img { height: 240px; }

    .hero-text {
        order: 1;
        padding: 0 16px 24px;
    }

    .hero h1 { font-size: 24px; }

    .modes-grid { grid-template-columns: repeat(2, 1fr); }
    .hosts-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .qb-grid { grid-template-columns: 1fr; }

    .host-video { width: 160px; height: 284px; }

    .container { padding: 0 16px; }
    .hero-inner { padding: 0 16px; }

    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .modes-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .hero h1 { font-size: 22px; }
    .hero-erik img { height: 200px; }
    .badges-row { gap: 10px; }
    .badge-circle { width: 60px; height: 60px; font-size: 24px; }
}

/* ========== LIGHT THEME OVERRIDES ========== */
[data-theme="light"] .sidebar {
    background: #fff;
    border-right-color: rgba(0,0,0,0.08);
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}
[data-theme="light"] .sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
[data-theme="light"] .main-content { background: var(--bg); }
[data-theme="light"] .sidebar-logo { color: #1A1A2E; }
[data-theme="light"] .sidebar-section { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .sidebar-heading { color: rgba(0,0,0,0.35); }
[data-theme="light"] .sidebar-item { color: rgba(0,0,0,0.55); }
[data-theme="light"] .sidebar-item:hover { color: #1A1A2E; background: rgba(0,0,0,0.04); }
[data-theme="light"] .sidebar-item.active { color: var(--accent); background: rgba(255,87,34,0.06); }
[data-theme="light"] .sidebar-user { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .sidebar-user-badge:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .sidebar-user-name { color: #1A1A2E; }
[data-theme="light"] .sidebar-footer { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .sidebar-theme-toggle {
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.04);
    color: #666;
}

/* Hero */
[data-theme="light"] .hero { background: #E8E5E0; }
[data-theme="light"] .hero-overlay {
    background: linear-gradient(90deg, rgba(245,243,240,0.4) 0%, rgba(245,243,240,0.85) 50%, rgba(245,243,240,0.95) 100%);
}
[data-theme="light"] .hero h1 { color: #1A1A2E; }
[data-theme="light"] .hero-stats { color: rgba(0,0,0,0.4); }

/* Sections */
[data-theme="light"] .section-title { color: #1A1A2E; }
[data-theme="light"] .game-modes { background: var(--bg); }
[data-theme="light"] .hosts { background: #EDE9E5; }
[data-theme="light"] .categories { background: var(--bg); }
[data-theme="light"] .quests-badges { background: #EDE9E5; }

/* Cards */
[data-theme="light"] .mode-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .mode-card-info h3 { color: #1A1A2E; }
[data-theme="light"] .mode-card-info p { color: rgba(0,0,0,0.5); }

[data-theme="light"] .host-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .host-card h3 { color: #1A1A2E; }
[data-theme="light"] .host-video {
    border-color: rgba(0,0,0,0.1);
    background: #f0f0f0;
}
[data-theme="light"] .host-play-btn {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: #333;
}

/* Categories */
[data-theme="light"] .cat-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .cat-card-label { color: #1A1A2E; }
[data-theme="light"] .cat-expand {
    background: #fff;
    border-color: rgba(255,87,34,0.2);
}
[data-theme="light"] .cat-pill {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
    color: #444;
}

/* Quests & Badges */
[data-theme="light"] .qb-panel {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .qb-title { color: #1A1A2E; }
[data-theme="light"] .quest-item { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .quest-name { color: #333; }
[data-theme="light"] .quest-bar { background: rgba(0,0,0,0.06); }
[data-theme="light"] .badge-circle {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .badge-item span { color: #666; }

/* Footer */
[data-theme="light"] .footer {
    background: #EDE9E5;
    border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .footer-brand h3 { color: #1A1A2E; }
[data-theme="light"] .footer-brand p { color: rgba(0,0,0,0.4); }
[data-theme="light"] .footer-links a { color: rgba(0,0,0,0.4); }
[data-theme="light"] .footer-links a:hover { color: #1A1A2E; }
[data-theme="light"] 
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-family: 'Chakra Petch', sans-serif;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-bottom {
    color: rgba(0,0,0,0.3);
    border-top-color: rgba(0,0,0,0.06);
}

/* Loading */
[data-theme="light"] .loading-dots span { background: rgba(0,0,0,0.3); }

/* Mobile tabs */
[data-theme="light"] .mobile-tabs {
    background: #fff;
    border-top-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .mtab { color: rgba(0,0,0,0.4); }
[data-theme="light"] .mtab:hover { color: #1A1A2E; }

/* Footer outside SPA container needs sidebar offset on game/account pages */
body:has(.game-main) #tt-footer,
body:has(.account-main) #tt-footer {
    margin-left: 260px;
}

@media (max-width: 900px) {
    body:has(.game-main) #tt-footer,
    body:has(.account-main) #tt-footer {
        margin-left: 0;
    }
}
