/* =============================================================================
   SURGE GAMES PORTAL - CSS
   Matches Flutter app's glassmorphism design exactly
   
   Key values from Flutter GlassCard:
   - Background: jet black (#0a0a0a)
   - Glass: white 60% opacity, 10px blur, 20px border radius
   - Border: white 30% opacity
   - Shadow: black 10% opacity, 20px blur, 10px Y offset
   - Text on glass: BLACK (critical for readability)
   - CTAs: Gold (#FFD700) with black text
============================================================================= */

/* CSS Variables matching Flutter app */
:root {
    /* Background */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    
    /* Glass Card (matching Flutter GlassConfig) */
    --glass-opacity: 0.6;
    --glass-opacity-desktop: 0.5;
    --glass-blur: 10px;
    --glass-border-radius: 20px;
    --glass-border-color: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    
    /* Text Colors */
    --text-on-glass: #000000;           /* Black text on glass - CRITICAL */
    --text-on-glass-secondary: rgba(0, 0, 0, 0.87);
    --text-on-glass-muted: rgba(0, 0, 0, 0.6);
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255, 255, 255, 0.7);
    
    /* Accent Colors */
    --accent-gold: #FFD700;
    --accent-green: #4CAF50;
    --accent-blue: #2196F3;
    --accent-purple: #9C27B0;
    
    /* Spacing - compact */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Background is set dynamically via JavaScript from admin settings */
    background-color: var(--bg-primary);
    color: var(--text-on-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Roboto', sans-serif;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* =============================================================================
   GLASS CARD - Exact match to Flutter GlassCard widget
============================================================================= */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* ALL text on glass cards must be BLACK for readability */
.glass-card,
.glass-card h1, .glass-card h2, .glass-card h3, 
.glass-card h4, .glass-card h5, .glass-card h6 {
    color: var(--text-on-glass);
}

.glass-card p, .glass-card span, .glass-card li {
    color: var(--text-on-glass-secondary);
}

.glass-card .text-muted {
    color: var(--text-on-glass-muted) !important;
}

/* Icons on glass cards are black */
.glass-card i {
    color: var(--text-on-glass);
}

/* Compact glass card variant */
.glass-card-compact {
    --glass-opacity: 0.55;
    border-radius: 12px;
    padding: var(--spacing-sm);
}

/* Mobile: Extra compact glass cards */
@media (max-width: 480px) {
    .glass-card-compact {
        padding: 0.35rem 0.5rem;
        border-radius: 8px;
    }
    
    .game-header.glass-card-compact {
        padding: 0.3rem 0.4rem;
    }
}

/* =============================================================================
   BUTTONS - Gold CTAs with black text
============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-on-glass);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--text-on-glass);
    text-decoration: none;
}

.btn-secondary {
    background: var(--accent-gold);
    color: var(--text-on-glass);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--text-on-glass);
    text-decoration: none;
}

.btn-outline {
    background: var(--accent-gold);
    color: var(--text-on-glass);
    border: none;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--text-on-glass);
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* =============================================================================
   NAVIGATION - Two-Tier Layout
============================================================================= */
.navbar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.2rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
}

/* Row 1: Brand + Actions */
.navbar-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0;
    position: relative;  /* For centered archetype positioning */
}

/* Row 2: Navigation Links */
.navbar-row-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-brand img {
    height: 28px;
}

.navbar-brand .text-accent {
    color: #000;  /* Black for visibility */
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar-actions .btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-on-dark-muted);
    text-decoration: none;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.1);
}

/* Hide bottom row on mobile - use hamburger instead */
@media (max-width: 768px) {
    .navbar-row-bottom {
        display: none;
    }
}

/* =============================================================================
   LAYOUT
============================================================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.page-content {
    padding: 0.5rem 0;
}

/* Mobile: Tighter page content */
@media (max-width: 480px) {
    .page-content {
        padding: 0.25rem 0;
    }
    
    .container {
        padding: 0.25rem 0.5rem;
    }
}

.hero {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-on-dark-muted);
    margin-bottom: var(--spacing-lg);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* =============================================================================
   DECK CARDS
============================================================================= */
.deck-card {
    transition: transform 0.2s ease;
}

.deck-card:hover {
    transform: translateY(-4px);
}

.deck-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.deck-card .deck-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.deck-card .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-cards {
    background: rgba(33, 150, 243, 0.2);
    color: var(--accent-blue);
}

.badge-difficulty {
    background: rgba(156, 39, 176, 0.2);
    color: var(--accent-purple);
}

/* =============================================================================
   GAME PLAY SCREEN
============================================================================= */
.game-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Trivia Subject Header */
.trivia-subject-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
}

/* Mobile: Compact trivia subject header */
@media (max-width: 480px) {
    .trivia-subject-header {
        padding: 0.4rem 0.5rem;
        border-radius: 8px;
    }
    
    .trivia-subject-title {
        font-size: 0.85rem !important;
        margin: 0;
    }
    
    .trivia-subject-title .subject-name {
        font-size: 0.85rem;
    }
}

.trivia-subject-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000 !important;  /* Black text - must override any inherited styles */
}

.trivia-subject-title .subject-name {
    color: #000 !important;  /* Black text */
    font-weight: 700;
}

/* Game Header with Score */
.game-header {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-on-glass-muted);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-on-glass);
}

/* Marketing CTA */
.marketing-cta {
    text-align: center;
    padding: var(--spacing-sm);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.cta-text {
    color: var(--text-on-glass);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.marketing-cta .btn {
    font-size: 0.85rem;
}

/* Mobile: Hide marketing CTA to save space during quiz */
@media (max-width: 480px) {
    .marketing-cta {
        display: none;
    }
}

.question-card {
    text-align: center;
    padding: var(--spacing-lg);
    border: 3px solid var(--accent-gold);  /* Bright yellow border */
    border-radius: 16px;
}

.question-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

/* Mobile: Compact question card */
@media (max-width: 480px) {
    .question-card {
        padding: 0.5rem;
        border-radius: 12px;
    }
    
    .question-card h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    /* Compact progress bar */
    .progress-bar {
        height: 6px;
        margin-bottom: 0.25rem !important;
    }
    
    /* Compact margins */
    .mb-sm { margin-bottom: 0.25rem !important; }
    .mb-md { margin-bottom: 0.35rem !important; }
    .mt-md { margin-top: 0.35rem !important; }
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

@media (max-width: 600px) {
    .options-grid { grid-template-columns: 1fr; }
}

.option-btn {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-on-glass);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-gold);
}

.option-btn.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: var(--accent-green);
}

.option-btn.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

/* Progress bar */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.progress-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* =============================================================================
   LEADERBOARD
============================================================================= */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.leaderboard-table th {
    text-align: left;
    padding: var(--spacing-sm);
    color: var(--text-on-glass-muted);
    font-weight: 500;
}

.leaderboard-table td {
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:first-child td { border-radius: 8px 0 0 8px; }
.leaderboard-table tr:last-child td { border-radius: 0 8px 8px 0; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
}

.rank-1 { background: #FFD700; color: #000; }
.rank-2 { background: #C0C0C0; color: #000; }
.rank-3 { background: #CD7F32; color: #fff; }

/* =============================================================================
   FORMS
============================================================================= */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-on-glass);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-on-glass);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.alert {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* =============================================================================
   FOOTER
============================================================================= */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    height: 32px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-on-dark-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-on-dark);
}

/* External link indicator */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.external-link i.bi-box-arrow-up-right {
    font-size: 0.8em;
    opacity: 0.7;
}

/* =============================================================================
   ADDITIONAL COMPONENTS
============================================================================= */

/* Section Title (outside glass cards) */
.section-title {
    color: var(--text-on-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Deck Grid */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Deck Card Inner (inside glass card, no nested glass) */
.deck-card-inner {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
}

.deck-card-inner h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.deck-card-inner .deck-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-on-glass-muted);
}

/* =============================================================================
   DAILY CHALLENGE WITH VIDEO LAYOUT
============================================================================= */
.daily-challenge-layout {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.daily-challenge-info {
    flex: 1;
    min-width: 0;
}

.daily-challenge-video {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    display: block;
}

.btn-video-cta {
    width: 100%;
    text-align: center;
}

/* Mobile: stack video below text */
@media (max-width: 768px) {
    .daily-challenge-layout {
        flex-direction: column;
    }
    
    .daily-challenge-video {
        width: 100%;
        align-items: stretch;
    }
    
    .video-container {
        width: 100%;
    }
    
    .video-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* =============================================================================
   CATEGORY-BASED DECK GRID (SEO Optimized)
============================================================================= */
.section-subtitle {
    color: var(--text-on-glass-secondary);
    margin-bottom: var(--spacing-md);
}

.category-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.category-deck-card {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-deck-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    width: fit-content;
}

.deck-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-on-glass);
}

.deck-full-description {
    font-size: 0.9rem;
    color: var(--text-on-glass-secondary);
    line-height: 1.5;
    margin: 0;
    /* Show full description for SEO - don't truncate */
}

.deck-meta-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-on-glass-muted);
}

.meta-item i {
    color: #000;  /* Black for visibility */
}

.deck-cta {
    margin-top: auto;
    align-self: flex-start;
}

/* =============================================================================
   CATEGORY CAROUSEL
============================================================================= */
.category-carousel-wrapper {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-title {
    font-size: 1rem;
    color: var(--text-on-glass-secondary);
    margin-bottom: var(--spacing-md);
}

.category-carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: var(--spacing-xs) 0;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-item {
    flex-shrink: 0;
    width: 300px;
}

.carousel-item .category-deck-card {
    height: 100%;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .carousel-item {
        width: 260px;
    }
}

/* Leaderboard Grid */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

/* Leaderboard Entry */
.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm);
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.leaderboard-entry .rank {
    font-weight: 700;
    color: #000;  /* Black for visibility */
    min-width: 40px;
}

.leaderboard-entry .name {
    flex: 1;
    color: var(--text-on-glass);
}

.leaderboard-entry .score {
    font-weight: 600;
    color: var(--text-on-glass);
}

/* Daily Challenge Header */
.daily-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.daily-icon {
    font-size: 1.75rem;
    color: #000;  /* Black for visibility */
}

.daily-header h2 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.topic-title {
    color: var(--text-on-glass-secondary);
    font-size: 0.95rem;
}

.topic-description {
    color: var(--text-on-glass-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.topic-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-on-glass-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 0.5rem;
    color: var(--text-on-glass-muted);
    font-size: 0.9rem;
}

/* Hero Compact */
.hero-compact {
    padding: 0.75rem;
}

.hero-compact h1 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.hero-compact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Promo Section */
.promo-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.75rem;
}

.promo-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.promo-section p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* =============================================================================
   UTILITIES
============================================================================= */
.text-center { text-align: center; }
.text-accent { color: #000 !important; }  /* Black for visibility */
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 0.75rem; }
.mt-lg { margin-top: 1rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 0.75rem; }
.mb-lg { margin-bottom: 1rem; }

/* Hide on mobile/desktop */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* =============================================================================
   SHARE MODAL - Invitation sharing UI
============================================================================= */

/* Modal Overlay */
.share-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    display: block;
    opacity: 1;
}

/* Modal Container */
.share-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.share-modal.active {
    display: block;
    transform: translateY(0);
}

/* Desktop: Center modal */
@media (min-width: 600px) {
    .share-modal {
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
        max-width: 420px;
        width: 90%;
        border-radius: 20px;
        max-height: 80vh;
    }
    
    .share-modal.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Modal Header */
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #000;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.share-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Copy Link Button - Primary */
.share-copy-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.share-copy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.share-copy-btn:active {
    transform: scale(0.98);
}

.share-copy-btn.copied {
    background: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    color: #fff;
}

/* Divider */
.share-divider {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 16px 0 12px 0;
    position: relative;
}

.share-divider::before,
.share-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: #ddd;
}

.share-divider::before { left: 5%; }
.share-divider::after { right: 5%; }

/* Social Icons Grid */
.share-social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.share-social-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
    color: white;
}

.share-social-btn:hover {
    transform: scale(1.1);
}

.share-social-btn:active {
    transform: scale(0.95);
}

/* Platform Colors */
.share-social-btn.whatsapp { background: #25D366; }
.share-social-btn.facebook { background: #1877F2; }
.share-social-btn.twitter { background: #000000; }
.share-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-social-btn.linkedin { background: #0A66C2; }
.share-social-btn.discord { background: #5865F2; }
.share-social-btn.telegram { background: #0088cc; }
.share-social-btn.slack { background: #4A154B; }
.share-social-btn.reddit { background: #FF4500; }
.share-social-btn.pinterest { background: #BD081C; }
.share-social-btn.email-client { background: #EA4335; }
.share-social-btn.sms { background: #34C759; }
.share-social-btn.more { background: #666; }
.share-social-btn.native { background: linear-gradient(135deg, #007AFF, #5856D6); }

/* Email Section */
.share-email-section {
    margin-top: 16px;
}

.share-email-btn {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.share-email-btn:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.share-email-note {
    font-size: 12px;
    color: #999;
}

/* Modal Footer */
.share-modal-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* Page Share Description */
.share-page-description {
    text-align: center;
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-weight: 500;
}

/* Email Sign-in Prompt */
.share-email-prompt {
    text-align: center;
    padding: 20px 0;
}

.share-email-prompt h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #333;
}

.share-email-prompt p {
    color: #666;
    margin-bottom: 20px;
}

.share-signin-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.share-signin-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.share-signin-note {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
}

.share-back-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-top: 16px;
}

.share-back-btn:hover {
    color: #333;
}

/* Email Form */
.share-email-form {
    padding: 8px 0;
}

.share-email-form h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
}

.share-form-group {
    margin-bottom: 14px;
}

.share-form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.char-counter {
    color: #999;
    font-size: 12px;
}

.share-input,
.share-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.share-input:focus,
.share-textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.share-textarea {
    resize: none;
    min-height: 60px;
}

.share-send-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.share-send-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.share-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.share-sending-from {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.share-email-status {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    min-height: 20px;
}

.share-email-status .error {
    color: #f44336;
}

.share-email-status .sending {
    color: #666;
}

/* Email Sent Confirmation */
.share-email-sent {
    text-align: center;
    padding: 20px 0;
}

.share-email-sent .sent-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.share-email-sent h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.share-email-sent p {
    color: #666;
    margin-bottom: 20px;
}

.share-send-another-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    color: #000;
    cursor: pointer;
    margin-bottom: 10px;
}

.share-done-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.share-done-btn:hover {
    border-color: #ccc;
}

/* Toast Notification */
.share-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1100;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Results Share Button */
.results-share-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px auto;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.results-share-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* Guest Prompt Box */
.guest-prompt-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 16px auto;
    max-width: 400px;
    text-align: left;
}

.guest-prompt-box h4 {
    color: #333;
    margin: 0 0 12px 0;
    font-size: 18px;
}

.guest-prompt-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.guest-prompt-box ul li {
    color: #333;
    font-size: 14px;
    padding: 4px 0;
}

.guest-prompt-box .btn {
    width: 100%;
    margin-bottom: 12px;
}

.guest-continue {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-bottom: 12px;
}

/* =============================================================================
   ALREADY PLAYED SCREEN
============================================================================= */
.already-played-card {
    padding: var(--spacing-xl);
}

.already-played-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.locked-score-display {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    padding: var(--spacing-lg);
    display: inline-block;
    margin: var(--spacing-md) auto;
}

.locked-score-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-on-glass);
    line-height: 1;
}

.locked-score-percentage {
    font-size: 1.5rem;
    color: #000;  /* Black for visibility */
    font-weight: 600;
    margin-top: 0.5rem;
}

.already-played-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.next-trivia-timer {
    color: var(--text-on-glass-secondary);
}

#countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000 !important;  /* Black for visibility */
}

/* Score comparison items on already played screen */
.already-played-card .score-comparison {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.already-played-card .comparison-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
}

.already-played-card .comparison-item.winning {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.already-played-card .comparison-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-on-glass-secondary);
    margin-bottom: 0.25rem;
}

.already-played-card .comparison-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-glass);
}

/* Guest played notice */
.guest-played-notice {
    padding: var(--spacing-md);
}

.guest-played-notice p {
    color: var(--text-on-glass);
}

/* Score Saved Notice */
.score-saved-notice {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px auto;
    max-width: 400px;
    color: #228B22;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Friends Scores Section */
.friends-scores-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin: 16px auto;
    max-width: 400px;
}

.friends-scores-box h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.friend-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.friend-score-row:last-child {
    border-bottom: none;
}

.friend-score-row .rank {
    font-size: 18px;
    margin-right: 8px;
}

.friend-score-row .name {
    flex: 1;
    color: #333;
}

.friend-score-row .score {
    font-weight: 600;
    color: #000;  /* Black for visibility */
}

/* =============================================================================
   NAVBAR ACTIONS - Auth & Share buttons
============================================================================= */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ensure navbar buttons are IDENTICAL - Desktop: compact layout */
.navbar-actions .btn {
    min-width: auto;
    height: 28px;
    padding: 0.2rem 0.5rem;
    text-align: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    border-radius: 6px;
}

.navbar-actions .btn i {
    font-size: 0.85rem;
}

.navbar-actions .btn .btn-label {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mobile menu */
.show-mobile {
    display: none;
}

.mobile-menu-container {
    position: relative;
}

.mobile-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 1001;
    margin-top: 0.5rem;
}

.mobile-menu-dropdown.show {
    display: block;
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(255, 215, 0, 0.2);
}

.mobile-menu-item.active {
    color: #000;  /* Black for visibility */
    font-weight: 600;
}

/* Desktop: nav-btn-mobile does NOT override - keeps horizontal layout */
.nav-btn-mobile {
    /* Inherits from .navbar-actions .btn */
}

.nav-btn-mobile .btn-label {
    /* Inherits from .navbar-actions .btn .btn-label */
}

.user-menu-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name-nav {
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
}

/* User button in navbar - smaller, cleaner */
.user-btn {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-btn .btn-label {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Outline button style for Sign Out */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #000;
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   ARCHETYPE BANNER - Shows user's learning archetype at top
============================================================================= */
/* Desktop: Archetype link in navbar */
.nav-archetype-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-archetype-link:hover {
    color: #fff;
}

.nav-archetype-link strong {
    font-weight: 700;
}

/* Mobile: Archetype row below header */
.archetype-banner-mobile {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    text-align: center;
}

.archetype-mobile-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.archetype-mobile-link:hover {
    color: #fff;
}

.archetype-mobile-link strong {
    font-weight: 700;
}

/* =============================================================================
   GAME HEADER - Averages display
============================================================================= */
.game-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.stat-average {
    opacity: 0.9;
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 1rem;
}

.stat-signin-prompt {
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 1rem;
}

.signin-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.signin-link:hover {
    text-decoration: underline;
    color: #333;
}

/* =============================================================================
   QUICK LINKS SECTION - Opaque Glass Pane
============================================================================= */
.quick-links-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
}

.quick-links-section h3 {
    font-size: 1.25rem;
    color: #000;
    margin: 0 0 1.25rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-links-section h3 i {
    color: #000;  /* Black icon for visibility */
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.625rem 1.125rem;
    background: rgba(25, 118, 210, 0.1);
    border: 1px solid rgba(25, 118, 210, 0.3);
    border-radius: 8px;
    color: #1976d2;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-link-btn:hover {
    background: rgba(25, 118, 210, 0.2);
    border-color: rgba(25, 118, 210, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.quick-link-icon {
    font-size: 1rem;
}

/* =============================================================================
   ENGAGEMENT BAR - Streak + Countdown
============================================================================= */
.engagement-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: var(--spacing-sm);
}

.engagement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
}

.engagement-item .streak-icon {
    font-size: 1.2rem;
}

.engagement-item .streak-count {
    color: #e65100;
    font-weight: 700;
}

.engagement-item .countdown-icon {
    font-size: 1rem;
}

.engagement-item .countdown-time {
    font-family: 'Courier New', monospace;
    color: #000;  /* Black for visibility */
    font-weight: 700;
}

/* Mobile: Keep engagement bar horizontal and compact */
@media (max-width: 480px) {
    .engagement-bar {
        flex-direction: row;
        gap: 0.25rem;
        padding: 0.35rem 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .engagement-item {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .engagement-item .streak-icon,
    .engagement-item .countdown-icon {
        font-size: 0.9rem;
    }
}

/* =============================================================================
   PUSH NOTIFICATION TOGGLE
============================================================================= */
.push-notification-section {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.push-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--accent-gold);
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.push-toggle-btn:hover:not(:disabled) {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.push-toggle-btn.btn-active {
    background: var(--accent-gold);
    color: #000;
}

.push-toggle-btn.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.push-toggle-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.push-status {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* Compact version for mobile */
@media (max-width: 480px) {
    .push-notification-section {
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .push-toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .push-status {
        font-size: 11px;
    }
}

/* =============================================================================
   VERTICAL ANSWER OPTIONS - A/B/C/D Style
============================================================================= */
.answer-options-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
}

.answer-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.answer-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-gold);
    transform: translateX(4px);
}

.answer-option-btn:disabled {
    cursor: not-allowed;
}

.answer-option-btn.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: var(--accent-green);
}

.answer-option-btn.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

.answer-option-btn.dimmed {
    opacity: 0.6;
}

.answer-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #000;
    margin-right: 0.75rem;
}

.answer-option-btn.correct .answer-letter {
    background: var(--accent-green);
    color: #fff;
}

.answer-option-btn.incorrect .answer-letter {
    background: #f44336;
    color: #fff;
}

.answer-text {
    flex: 1;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Mobile: Compact answer options */
@media (max-width: 480px) {
    .answer-options-vertical {
        gap: 0.35rem;
        margin-top: 0.35rem;
    }
    
    .answer-option-btn {
        min-height: 40px;
        padding: 0.4rem 0.6rem;
        border-radius: 10px;
    }
    
    .answer-letter {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.8rem;
        margin-right: 0.5rem;
        border-radius: 6px;
    }
    
    .answer-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* =============================================================================
   TABBED LEADERBOARD
============================================================================= */
.leaderboard-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    margin-top: var(--spacing-md);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.leaderboard-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Your Rank Highlight */
.your-rank-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #000;
}

.your-rank-highlight .rank-number {
    font-weight: 700;
    color: #000;  /* Black for visibility */
}

/* Tabs Container */
.leaderboard-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 4px;
}

.leaderboard-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.leaderboard-tab:hover {
    color: rgba(0, 0, 0, 0.8);
}

.leaderboard-tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.leaderboard-content {
    display: none;
}

.leaderboard-content.active {
    display: block;
}

/* Leaderboard Rows - Mobile Card Layout */
.leaderboard-category {
    margin-bottom: 0.75rem;
}

.leaderboard-category-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.25rem;
    padding-left: 0.25rem;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.leaderboard-row .category-icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.leaderboard-row .player-name {
    flex: 1;
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}

.leaderboard-row .player-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;  /* Black for visibility */
}

/* No Friends Message */
.no-friends-message {
    text-align: center;
    padding: 1.5rem 1rem;
    color: rgba(0, 0, 0, 0.6);
}

.no-friends-message p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}

.no-friends-message .btn {
    font-size: 0.85rem;
}

/* Sign In Prompt for Leaderboard */
.sign-in-prompt {
    text-align: center;
    padding: 1rem;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

.sign-in-prompt a {
    color: #000;  /* Black for visibility */
    font-weight: 600;
    text-decoration: underline;
}

.sign-in-prompt a:hover {
    text-decoration: underline;
}

/* =============================================================================
   STATS BAR - Responsive
============================================================================= */
.stats-bar-responsive {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.stats-bar-responsive .stat-item {
    text-align: center;
}

/* Mobile: Stats stack more compactly */
@media (max-width: 480px) {
    .stats-bar-responsive {
        gap: 0.15rem 0.5rem;
    }
    
    .stats-bar-responsive .stat-item {
        min-width: auto;
    }
    
    .stats-bar-responsive .stat-label {
        font-size: 0.6rem;
    }
    
    .stats-bar-responsive .stat-value {
        font-size: 0.85rem;
    }
    
    /* Hide averages on mobile to save space */
    .stats-bar-responsive .stat-average {
        display: none;
    }
}

/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (max-width: 768px) {
    :root {
        --glass-opacity: 0.65; /* Slightly higher on mobile for readability */
    }
    
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .navbar-actions {
        gap: 0.35rem;
    }
    
    /* Show mobile menu button */
    .show-mobile {
        display: block;
    }
    
    /* Mobile button styling - compact single row */
    .navbar-actions .btn {
        min-width: auto;
        height: 32px;
        padding: 0.25rem 0.5rem;
        flex-direction: row;
        gap: 4px;
    }
    
    .navbar-actions .btn i {
        font-size: 0.9rem;
    }
    
    .navbar-actions .btn .btn-label {
        font-size: 0.7rem;
        font-weight: 600;
        display: inline !important;
    }
    
    .user-name-nav {
        display: none;
    }
    
    .game-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        min-width: auto;
        padding: 0.25rem 0.5rem;
    }
    
    .stat-average {
        border-left: none;
        padding-left: 0;
    }
    
    /* Quick Links responsive */
    .quick-links-section {
        padding: 1rem 1.25rem;
    }
    
    .quick-links-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .quick-links-grid {
        gap: 0.5rem;
    }
    
    .quick-link-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* =============================================================================
   ENHANCED LEADERBOARD - Hall of Fame Style
============================================================================= */

/* Leaderboard Row - Enhanced */
.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.leaderboard-row:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.leaderboard-row.top-three {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-row.top-three:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
}

/* Rank Badge */
.rank-badge {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    color: #000;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

/* Player Info */
.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-stats {
    display: block;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 2px;
}

.player-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 2px;
}

.player-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.player-meta .meta-item i {
    font-size: 0.75rem;
    color: #000;
}

/* Score Display */
.player-score {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    min-width: 45px;
    text-align: right;
}

/* Total Points Display (for All-Time) */
.player-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.total-points {
    font-weight: 800;
    font-size: 1.1rem;
    color: #000;
    line-height: 1.2;
}

.total-label {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* All-Time Row specific */
.alltime-row {
    padding: 0.875rem 1rem;
}

.alltime-row.top-three .total-points {
    color: #000;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(0, 0, 0, 0.6);
}

.empty-state i {
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
}

.empty-state .text-muted {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

/* Leaderboard Mobile Responsive */
@media (max-width: 480px) {
    .leaderboard-row {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }
    
    .rank-badge {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .rank-badge.rank-1,
    .rank-badge.rank-2,
    .rank-badge.rank-3 {
        font-size: 1rem;
    }
    
    .player-name {
        font-size: 0.85rem;
    }
    
    .player-meta {
        gap: 0.5rem;
        font-size: 0.7rem;
    }
    
    .player-meta .meta-item i {
        font-size: 0.65rem;
    }
    
    .player-score {
        font-size: 0.9rem;
    }
    
    .player-total {
        min-width: 55px;
    }
    
    .total-points {
        font-size: 0.95rem;
    }
    
    .total-label {
        font-size: 0.6rem;
    }
    
    .empty-state {
        padding: 1.5rem 1rem;
    }
    
    .empty-state i {
        font-size: 2rem;
    }
}

/* =============================================================================
   GUEST WARNING BANNER - Prominent notice for non-logged-in users
============================================================================= */

.guest-warning-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(238, 90, 90, 0.6);
    }
}

.guest-warning-banner .warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.guest-warning-banner .warning-content {
    flex: 1;
    min-width: 200px;
}

.guest-warning-banner .warning-content strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.guest-warning-banner .warning-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.guest-warning-banner .btn-warning {
    background: #FFD700;
    color: #000;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1rem;
    white-space: nowrap;
}

.guest-warning-banner .btn-warning:hover {
    background: #ffed4a;
    transform: scale(1.05);
}

.guest-warning-banner .warning-dismiss {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.guest-warning-banner .warning-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive for warning banner */
@media (max-width: 600px) {
    .guest-warning-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .guest-warning-banner .warning-icon {
        font-size: 2.5rem;
    }
    
    .guest-warning-banner .warning-content {
        min-width: auto;
    }
    
    .guest-warning-banner .warning-content strong {
        font-size: 1rem;
    }
    
    .guest-warning-banner .warning-content p {
        font-size: 0.85rem;
    }
    
    .guest-warning-banner .btn-warning,
    .guest-warning-banner .warning-dismiss {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   CHALLENGE BANNER - Shown when arriving from a challenge link
   ===================================================== */
.challenge-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: challengePulse 2s ease-in-out infinite;
}

@keyframes challengePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

.challenge-banner .challenge-content {
    text-align: center;
}

.challenge-banner .challenge-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .challenge-banner {
        padding: 0.75rem 1rem;
    }
    
    .challenge-banner .challenge-text {
        font-size: 1rem;
    }
}
