@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #0e0e10;
    --card-bg: #18181b;
    --text-color: #efeff1;
    --twitch-purple: #9146ff;
    --twitch-purple-hover: #772ce8;
    --accent-green: #00ff88;
    --error-red: #ff4f4f;
    --text-secondary: #adadb8;
    --border-color: rgba(255, 255, 255, 0.1);
    --bg-hover: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Full-page loader overlay */
.page-loader {
    position: fixed;
    inset: 0;
    background: #050509;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--twitch-purple);
    animation: spinButton 0.8s linear infinite;
}

.loader-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.page-loader--hidden {
    opacity: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--twitch-purple);
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0px #000;
}

#date-display {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0;
}

.message-box {
    background: var(--card-bg);
    border: 2px solid var(--twitch-purple);
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.message-box .quote {
    font-size: 3rem;
    color: var(--twitch-purple);
    position: absolute;
    opacity: 0.3;
    font-family: serif;
}

.message-box .quote:first-child {
    top: -10px;
    left: 10px;
}

.message-box .quote:last-child {
    bottom: -30px;
    right: 10px;
}

#chat-message {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: bold;
}

.instruction {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--accent-green);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-btn {
    background: var(--card-bg);
    border: 2px solid #333;
    color: white;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: var(--twitch-purple);
    background: #25252b;
}

.option-btn.correct {
    background-color: var(--accent-green);
    color: black;
    border-color: var(--accent-green);
}

.option-btn.wrong {
    background-color: var(--error-red);
    border-color: var(--error-red);
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

#result-area {
    margin-top: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.next-btn,
.share-btn {
    background: var(--twitch-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 5px;
}

.next-btn:hover,
.share-btn:hover {
    background: var(--twitch-purple-hover);
}

.end-screen {
    text-align: center;
    animation: fadeIn 0.5s;
}

.final-score {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--accent-green);
}

.emoji-grid {
    font-size: 1.5rem;
    letter-spacing: 5px;
    line-height: 1.5;
    margin: 20px 0;
}

footer {
    margin-top: 50px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.note {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 1rem;
    justify-content: end;
}

/* Roadmap Modal */
.roadmap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.roadmap-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.roadmap-content {
    background: #18181b;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.roadmap-overlay.active .roadmap-content {
    transform: translateY(0);
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.roadmap-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: #d1d5db;
}

.roadmap-list li::before {
    content: "•";
    color: var(--twitch-purple);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.close-roadmap-btn {
    background: var(--bg-hover);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    font-weight: 600;
}

.close-roadmap-btn:hover {
    background: #3f3f46;
}

footer a {
    color: var(--twitch-purple);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.voting-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.vote-buttons {
    display: flex;
    gap: 1rem;
}

.vote-buttons button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.vote-buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.vote-buttons button:active {
    transform: translateY(0);
}

/* Quit button */
.quit-btn {
    background: transparent;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.2s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.quit-btn:hover {
    background: #dc2626;
    color: white;
}

.explanation {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

.tagline {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
    padding: 1rem;
    font-style: italic;
    opacity: 0.7;
}

/* Chat emotes styling */
.chat-emote {
    height: 1.5em;
    vertical-align: middle;
    margin: 0 2px;
}

/* Quiz List CSS (Ported from existing style in index.html) */
.quiz-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 2rem auto 4rem;
}

.quiz-card {
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.quiz-card:hover {
    border-color: var(--twitch-purple);
    transform: translateY(-4px);
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.quiz-emote {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.quiz-title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.quiz-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.4;
}

.quiz-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4f4f;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.no-quizzes {
    color: var(--text-secondary);
    padding: 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

.restart-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #efeff1;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.restart-btn:hover {
    background: var(--twitch-purple);
    border-color: var(--twitch-purple);
}

/* ========== NEW UI COMPONENTS ========== */

/* Navbar */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    transition: transform 0.3s ease;
    position: relative;
}

.mobile-menu-toggle .icon {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu-toggle .icon-hamburger {
    opacity: 1;
    transform: scale(1);
}

.mobile-menu-toggle .icon-close {
    opacity: 0;
    transform: scale(0.7);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 2rem;
}

.nav-brand {
    font-family: 'Press Start 2P', cursive;
    color: var(--twitch-purple);
    font-size: 1.2rem;
    text-shadow: 2px 2px 0px #000;
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 1.2em;
    margin: 0 -2px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    opacity: 1;
    color: var(--twitch-purple);
    background: rgba(145, 70, 255, 0.1);
}

.nav-auth-btn {
    background: var(--twitch-purple);
    color: white;
    font-family: 'Press Start 2P', cursive;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.6rem;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #772ce8;
    transition: all 0.1s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.auth-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#twitch-icon {
    height: 16px;
    width: 16px;
}

.btn-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinButton 0.8s linear infinite;
}

@keyframes spinButton {
    to {
        transform: rotate(360deg);
    }
}

.nav-auth-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
    background: #555;
    box-shadow: 0 4px 0 #333;
}

.nav-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #772ce8;
}

.nav-auth-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #772ce8;
}

/* Daily Hero */
.daily-hero {
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn 0.5s;
}

.daily-date {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.daily-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
    background: linear-gradient(45deg, #fff, #9146ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.streak-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.start-daily-btn {
    background: var(--twitch-purple);
    color: white;
    font-family: 'Press Start 2P', cursive;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #772ce8;
    transition: all 0.1s;
}

.start-daily-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #772ce8;
}

.start-daily-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #772ce8;
}

.start-daily-btn:disabled {
    background: #3f3f46;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Archive Grid */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calendar-controls button {
    background: transparent;
    border: 1px solid var(--twitch-purple);
    color: var(--twitch-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.calendar-controls button:hover {
    background: var(--twitch-purple);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 0 auto;
    max-width: 500px;
}

/* ========== LEADERBOARD ICONS & HEADERS ========== */
.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    opacity: 0.8;
}

.star-icon {
    color: #ffca28;
}

.flame-icon {
    color: #ff7043;
}

.header-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header-icon {
    opacity: 0.7;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
}

.calendar-day:hover:not(.future) {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.calendar-day.completed {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.calendar-day.missed {
    background: rgba(255, 79, 79, 0.1);
    opacity: 0.7;
}

.calendar-day.future {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--twitch-purple);
}

.day-number {
    font-size: 1.1rem;
    font-weight: bold;
}

.day-status {
    font-size: 1.2rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-footnote {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 1.5rem;
    font-style: italic;
}

.stat-sub {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.15rem;
}

.calendar-controls button:disabled {
    border-color: #555;
    color: #555;
    pointer-events: none;
}

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

    .message-box {
        padding: 20px;
        margin: 20px 0;
    }

    .quote {
        font-size: 2rem;
    }

    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .quiz-list {
        grid-template-columns: 1fr;
    }

    /* Mobile Nav styles */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav-container {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1001;
        margin-left: 0;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-container.active {
        transform: translateX(0);
    }

    .nav-container .nav-btn,
    .nav-container .nav-auth-btn {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-container.active .nav-btn,
    .nav-container.active .nav-auth-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-container.active .nav-btn:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-container.active .nav-btn:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-container.active .nav-btn:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-container.active .nav-btn:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-container.active .nav-auth {
        transition-delay: 0.35s;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-btn {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-auth {
        width: 100%;
        justify-content: center;
    }

    .nav-auth-btn {
        width: 100%;
        padding: 1.2rem;
        font-size: 0.8rem;
    }

    /* Swap between hamburger and X icons smoothly */
    .mobile-menu-toggle.active .icon-hamburger {
        opacity: 0;
        transform: scale(0.7);
    }

    .mobile-menu-toggle.active .icon-close {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== AUTH & LEADERBOARD ========== */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.twitch-btn {
    background-color: #9146FF;
    color: white;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.twitch-btn:hover {
    background-color: #772ce8;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #9146FF;
}

#user-name {
    font-weight: bold;
    color: white;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    margin-left: 10px;
    color: #ccc;
    cursor: pointer;
    border-radius: 4px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Leaderboard */
.leaderboard-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    border-radius: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--twitch-purple);
    color: white;
    border-color: var(--twitch-purple);
}

.leaderboard-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    color: var(--twitch-purple);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.rank-text {
    font-weight: bold;
    color: #666;
    width: 24px;
    display: inline-block;
    text-align: center;
}

.rank-1 {
    color: #FFD700 !important;
    font-size: 1.2rem;
}

.rank-2 {
    color: #C0C0C0 !important;
    font-size: 1.1rem;
}

.rank-3 {
    color: #CD7F32 !important;
    font-size: 1.0rem;
}

/* Stats Overlay */
/* Stats Overlay */
.streak-display {
    position: relative;
    overflow: hidden;
}

.streak-display.stats-locked {
    position: relative;
    user-select: none;
}

.streak-display.stats-locked .stat-item,
.streak-display.stats-locked .stat-divider {
    filter: none;
    /* Completely hide the stats when locked so nothing flashes behind the overlay */
    opacity: 0;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 9, 0.96);
    /* Nearly solid to prevent flashing underlying content */
    backdrop-filter: blur(8px);
    /* The blurring effect */
    -webkit-backdrop-filter: blur(8px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.streak-display.stats-locked .stats-overlay {
    display: flex;
    /* Shown only when locked */
}

/* Also show overlay when stats are loading for logged-in users */
.streak-display.stats-loading .stats-overlay {
    display: flex;
}

.stats-overlay span {
    font-weight: bold;
    color: var(--twitch-purple);
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
}