/* Daily Puzzles - Distinct Design System */
/* Color Palette: Warm amber/orange with deep slate */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --accent: #ea580c;
    --bg-dark: #0c0a09;
    --bg-card: #1c1917;
    --bg-elevated: #292524;
    --text-primary: #fafaf9;
    --text-secondary: #a8a29e;
    --text-muted: #78716c;
    --border: #44403c;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #eab308;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body.light-theme {
    --bg-dark: #fafaf9;
    --bg-card: #ffffff;
    --bg-elevated: #f5f5f4;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --border: #e7e5e4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 10, 9, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

body.light-theme .navbar {
    background: rgba(250, 250, 249, 0.9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-to-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-to-main:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

/* Profile Dropdown */
.profile-wrapper {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.profile-wrapper.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.dropdown-xp {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* Nav Back Button */
.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-back:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.nav-back i {
    font-size: 0.85rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.streak-display {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 24px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.streak-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.streak-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.streak-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.streak-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* Puzzles Section */
.puzzles-section {
    padding: 60px 0 100px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.view-all:hover {
    gap: 12px;
}

/* Puzzle Cards */
.puzzles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.puzzle-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Daily indicator badge on game cards */
.daily-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

.daily-indicator i {
    font-size: 0.7rem;
}

.puzzle-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .puzzle-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.puzzle-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.puzzle-status {
    position: absolute;
    top: 20px;
    right: 20px;
}

.puzzle-status.completed {
    width: 32px;
    height: 32px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.puzzle-status.locked {
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.puzzle-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.puzzle-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.puzzle-icon.logic {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

.puzzle-icon.number {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.puzzle-icon.word {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.puzzle-icon.spatial {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.puzzle-icon.memory {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
}

.puzzle-icon.cipher {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
}

.puzzle-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.puzzle-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.puzzle-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.difficulty, .time-estimate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.difficulty.easy {
    color: #22c55e;
}

.difficulty.medium {
    color: var(--primary);
}

.difficulty.hard {
    color: #ef4444;
}

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.play-btn.locked {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
}

.play-btn.locked:hover {
    transform: none;
    box-shadow: none;
}

/* Quick Stats */
.quick-stats {
    padding: 60px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Leaderboard */
.leaderboard-section {
    padding: 80px 0;
}

.leaderboard-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: var(--bg-elevated);
}

.leaderboard-item .rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 32px;
    text-align: center;
}

.leaderboard-item.rank-1 .rank {
    color: #fbbf24;
}

.leaderboard-item.rank-2 .rank {
    color: #94a3b8;
}

.leaderboard-item.rank-3 .rank {
    color: #cd7c2e;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.player-info .name {
    font-weight: 500;
    font-size: 1rem;
}

.leaderboard-item .score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.3rem;
}

.footer-brand p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .puzzles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .back-to-main {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .streak-display {
        flex-direction: row;
        gap: 12px;
        padding: 12px 16px;
        width: 100%;
        max-width: 100%;
        justify-content: space-around;
    }
    
    .streak-item {
        gap: 2px;
    }
    
    .streak-number {
        font-size: 1.3rem;
    }
    
    .streak-label {
        font-size: 0.7rem;
    }
    
    .streak-divider {
        width: 1px;
        height: 32px;
    }
    
    .puzzles-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .puzzle-card {
        padding: 20px;
    }
}

/* XP Display in Navbar */
.xp-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.xp-display i {
    font-size: 0.85rem;
}

/* 2048 Game Icon */
.puzzle-icon.game-2048 {
    background: linear-gradient(135deg, #edc53f, #edc850);
}

.puzzle-icon .icon-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #776e65;
}

/* LetterFlow Game Icon */
.puzzle-icon.game-letterflow {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.puzzle-icon.game-letterflow i {
    color: white;
    font-size: 1.5rem;
}

/* Bingo Hard Game Icon */
.puzzle-icon.game-bingo {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.puzzle-icon.game-bingo i {
    color: white;
    font-size: 1.5rem;
}

/* Sum Up Game Icon */
.puzzle-icon.game-sumup {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.puzzle-icon.game-sumup i {
    color: white;
    font-size: 1.5rem;
}

/* XP Reward Tag */
.xp-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.xp-reward i {
    font-size: 0.8rem;
}

/* Quick Links Section */
.quick-links-section {
    padding: 60px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.quick-link-info {
    flex: 1;
}

.quick-link-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.quick-link-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quick-link-card > i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Game XP Stats on Card */
.game-xp-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-stat i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Coming Soon Cards */
.puzzle-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.puzzle-card.coming-soon .puzzle-icon {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.coming-soon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Light theme adjustments */
[data-theme="light"] {
    --bg-dark: #fafaf9;
    --bg-card: #ffffff;
    --bg-elevated: #f5f5f4;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --border: #e7e5e4;
}

[data-theme="light"] .navbar {
    background: rgba(250, 250, 249, 0.9);
}

[data-theme="light"] .puzzle-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Daily Challenge Banner */
.daily-challenge-section {
    padding: 0 0 60px;
    margin-top: -40px;
}

.daily-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(234, 88, 12, 0.08));
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.daily-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.daily-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.daily-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.daily-game-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.daily-game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #edc53f, #edc850);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: #776e65;
    flex-shrink: 0;
}

.daily-game-icon.game-2048 {
    background: linear-gradient(135deg, #edc53f, #edc850);
}

.daily-game-icon.game-letterflow {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.daily-game-icon.game-letterflow i {
    color: white;
    font-size: 2rem;
}

.daily-game-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.daily-game-details p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.daily-game-details p strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.daily-rewards {
    display: flex;
    gap: 20px;
}

.daily-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.daily-reward i {
    color: var(--primary);
}

.daily-reward strong {
    color: var(--primary);
    font-weight: 600;
}

.streak-bonus {
    color: var(--accent);
}

.streak-bonus i,
.streak-bonus strong {
    color: var(--accent);
}

.daily-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    min-width: 200px;
}

.daily-progress {
    width: 100%;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.progress-label {
    color: var(--text-muted);
}

.progress-value {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.play-daily-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.play-daily-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.daily-completed {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    border-radius: 14px;
    margin-top: 20px;
}

.completed-icon {
    width: 48px;
    height: 48px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.completed-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 2px;
}

.completed-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.completed-info strong {
    color: var(--primary);
}

.daily-banner.completed .daily-content {
    opacity: 0.6;
}

/* Section subtitle */
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .daily-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .daily-status {
        width: 100%;
        align-items: stretch;
    }
    
    .daily-game-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .daily-rewards {
        flex-wrap: wrap;
    }
}

/* Challenge Type Badge */
.challenge-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    margin-top: 8px;
}

.challenge-type-badge.one-go {
    background: rgba(255, 170, 51, 0.15);
    color: #ffaa33;
}

.challenge-type-badge.cumulative {
    background: rgba(102, 204, 255, 0.15);
    color: #66ccff;
}

/* Calendar Overlay */
.calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.calendar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.calendar-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.calendar-overlay.open .calendar-modal {
    transform: translateY(0);
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.calendar-header h3 {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-nav {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-nav:hover {
    background: var(--border);
}

.calendar-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    transition: color 0.2s;
}

.calendar-close:hover {
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    position: relative;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.today {
    border: 2px solid var(--primary);
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-day.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.calendar-day.completed::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.calendar-day.missed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.calendar-day.missed::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.calendar-day.future {
    opacity: 0.3;
    cursor: default;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.completed {
    background: #10b981;
}

.legend-dot.missed {
    background: #ef4444;
}
