/* Component Styles - Cards, Buttons, Dialogs, Navigation */

/* Game Area / Card Container */
.game-area {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-area.menu-screen {
    background: rgba(255, 255, 255, 0.06);
}

/* Question Card (Generic) */
.question-card {
    background: #FFFFFF;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.question-content {
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    color: var(--on-surface);
    margin-bottom: var(--space-3);
    word-wrap: break-word;
}

.question-metadata {
    font-size: var(--text-sm);
    color: var(--on-surface-variant);
    margin-bottom: var(--space-3);
}

/* Buttons */
button {
    padding: var(--space-3) var(--space-7);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-normal);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    white-space: nowrap;
}

button:hover {
    box-shadow: var(--shadow-md);
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary, #submitBtn {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    color: #FFFFFF;
}

.btn-primary:hover, #submitBtn:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
    box-shadow: var(--shadow-primary);
}

.btn-secondary, #skipBtn {
    background: var(--neutral-200);
    color: var(--neutral-800);
}

.btn-secondary:hover, #skipBtn:hover {
    background: var(--neutral-300);
    box-shadow: var(--shadow-md);
}

.back-btn {
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 1rem;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    width: auto;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.back-btn:hover {
    background: rgba(102,126,234,0.1);
    transform: translateX(-2px);
}

/* Options Container */
.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.options-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D1B20;
    margin-bottom: 16px;
    text-align: center;
}

.option-btn {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #1D1B20;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
}

.option-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: rgba(102,126,234,0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.2);
}

.option-btn.selected {
    border-color: #667eea;
    background: rgba(102,126,234,0.15);
    color: #667eea;
    font-weight: 600;
    transform: scale(0.95);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-btn.correct {
    border-color: #11998e;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 
        0 8px 24px rgba(17, 153, 142, 0.4),
        0 0 40px rgba(17, 153, 142, 0.3),
        0 0 0 4px rgba(17, 153, 142, 0.2) !important;
    transform: scale(1.05) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: correctCelebration 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}

.option-btn.correct-pulse {
    animation: correctPulse 0.8s ease-in-out !important;
}

.option-btn.incorrect {
    border-color: #ee0979;
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(238, 9, 121, 0.4) !important;
    transition: all 0.2s ease !important;
    animation: incorrectShake 0.5s ease-in-out !important;
    position: relative;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.answer-icon {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    animation: iconPop 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Score Display */
.score-container {
    text-align: center;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1D1B20;
    letter-spacing: 0.15px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.score.updated {
    animation: pulse 0.6s ease-in-out;
    color: #667eea;
}

/* Streak Indicator */
.streak-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FF6B00;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.8);
}

.streak-indicator.active {
    opacity: 1;
    transform: scale(1);
}

.streak-indicator.milestone {
    animation: streakMilestone 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.3));
}

.streak-indicator.active .streak-icon {
    animation: streakIconGrow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.streak-count {
    font-size: 1rem;
    font-weight: 700;
    color: #FF6B00;
    min-width: 20px;
    text-align: center;
}

.streak-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FF8C00;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: var(--neutral-200);
    border-radius: 8px;
    overflow: visible;
    margin-top: 12px;
    box-shadow: var(--shadow-inner);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 
        0 2px 8px rgba(102,126,234,0.4),
        0 0 12px rgba(102,126,234,0.3);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    border-radius: 8px;
    animation: progressShimmer 2s ease-in-out infinite;
}

.progress-percentage {
    position: absolute;
    top: -28px;
    right: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-500);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.progress-percentage.show {
    opacity: 1;
    transform: translateY(0);
}

/* Circular Progress Indicator */
.circular-progress {
    position: relative;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.circular-progress svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress-bg {
    fill: none;
    stroke: var(--neutral-200);
    stroke-width: 4;
}

.circular-progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s ease;
    transform-origin: center;
}

.circular-progress-number {
    position: relative;
    z-index: 1;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--primary-500);
    transition: transform 0.3s ease;
}

.circular-progress.updating .circular-progress-number {
    animation: questionNumberRotate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circular-progress.updating .circular-progress-fill {
    animation: circularProgressPulse 0.4s ease-out;
}

/* Result Display */
.result {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.15px;
}

.result.correct {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(17,153,142,0.3);
    animation: correctAnswer 1s ease-in-out;
}

.result.incorrect {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(238,9,121,0.3);
    animation: incorrectAnswer 0.8s ease-in-out;
}

/* Loading Dialog */
.loading-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #F0F0F0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    font-size: 1rem;
    color: #1D1B20;
    font-weight: 500;
}

/* Results Dialog */
.results-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.results-dialog.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

.results-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 480px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.5);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.results-header {
    margin-bottom: 24px;
}

.results-emoji {
    font-size: 5rem;
    margin-bottom: 16px;
    animation: emojiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.results-emoji.trophy {
    animation: trophyBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.results-emoji.perfect-score {
    animation: trophyBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards,
                perfectScoreGlow 2s ease-in-out infinite 1s;
}

.results-emoji.high-score {
    animation: emojiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards,
                highScorePulse 1.5s ease-in-out infinite 0.8s;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1D1B20;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-body {
    padding: 24px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.results-score-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
    line-height: 1;
    animation: countUp 0.6s ease-out 0.3s backwards;
}

.results-percentage {
    font-size: 1.5rem;
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 16px;
}

.results-blocks {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 16px;
    animation: blocksSlide 0.8s ease-out 0.4s backwards;
}

.results-message {
    font-size: 1.125rem;
    color: #49454F;
    font-weight: 500;
}

.results-chart {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #49454F;
    margin-bottom: 12px;
    text-align: left;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 8px;
    padding: 0 4px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}

.chart-bar:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.5);
}

.chart-bar.current {
    background: linear-gradient(180deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 2px 8px rgba(17,153,142,0.4);
}

.chart-bar.current:hover {
    box-shadow: 0 4px 12px rgba(17,153,142,0.6);
}

.chart-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #79747E;
    white-space: nowrap;
}

.chart-bar-value {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-500);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover .chart-bar-value {
    opacity: 1;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.results-share-btn, .share-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    padding: 18px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102,126,234,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.results-share-btn::before, .share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.results-share-btn:active::before, .share-btn:active::before {
    width: 300px;
    height: 300px;
}

.results-share-btn:hover, .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102,126,234,0.5);
}

.btn-icon {
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.results-share-btn:hover .btn-icon, .share-btn:hover .btn-icon {
    transform: translateY(-2px);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #FFFFFF;
    padding: 16px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 153, 142, 0.4);
    font-size: 1rem;
    font-weight: 600;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-icon {
    font-size: 1.5rem;
    display: inline-block;
}

.toast-message {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.results-close-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.results-close-btn:hover {
    background: rgba(102,126,234,0.1);
    transform: translateY(-2px);
}

/* Menu Styles */
.menu-screen {
    text-align: center;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
    animation: fadeInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

.menu-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    text-decoration: none !important;
    animation: menuItemEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.menu-btn:link,
.menu-btn:visited,
.menu-btn:hover,
.menu-btn:active {
    text-decoration: none !important;
}

.menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(102,126,234,0.15) 0%, 
        rgba(118,75,162,0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.menu-btn:hover::before {
    opacity: 1;
}

.menu-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.menu-btn:hover::after {
    opacity: 1;
}

.menu-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.menu-btn-info {
    width: 100%;
}

.menu-btn:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 48px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-8px) scale(1.03);
}

.menu-btn:active {
    transform: translateY(-4px) scale(1.01);
}

.menu-btn-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    margin-bottom: 4px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-btn:hover .menu-btn-icon {
    transform: scale(1.1) translateY(-4px);
}

.menu-btn-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    letter-spacing: -0.25px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.menu-btn:hover .menu-btn-title {
    transform: translateY(-2px);
}

.menu-btn-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.menu-btn-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.menu-btn:hover .menu-btn-arrow {
    transform: translateX(4px);
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.game-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.game-badge.new {
    background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 100%);
    color: #FFFFFF;
}

.game-badge.popular {
    background: linear-gradient(135deg, rgba(240,147,251,0.9) 0%, rgba(245,87,108,0.9) 100%);
    color: #FFFFFF;
}

.game-badge.completed {
    background: linear-gradient(135deg, rgba(17,153,142,0.9) 0%, rgba(56,239,125,0.9) 100%);
    color: #FFFFFF;
}

.daily-stats {
    margin-top: 32px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.daily-complete {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.daily-progress {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.version-info {
    margin-top: 24px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.version-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.footer-links {
    margin-top: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .footer-links a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Navigation Menu Button */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0;
    text-transform: none;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

.menu-button:hover {
    transform: scale(1.2);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.menu-button:active {
    transform: scale(1);
}

.menu-dots {
    font-weight: bold;
    line-height: 1;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    min-width: 200px;
    z-index: 99;
    display: none;
    animation: dropdownSlide 0.3s ease-out;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    font-size: 0.95rem;
    color: #1D1B20;
    text-transform: none;
    box-shadow: none;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.3rem;
}

.dropdown-text {
    flex: 1;
    font-weight: 500;
}

#themeStatus {
    color: #667eea;
    font-weight: 600;
}

/* About Dialog */
.about-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.about-dialog.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

.about-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 24px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.5);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D1B20;
    margin: 0;
}

.about-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #49454F;
    transition: all 0.2s ease;
    padding: 0;
    text-transform: none;
    box-shadow: none;
}

.about-close:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

.about-body {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.about-version {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-description {
    font-size: 1rem;
    color: #49454F;
    line-height: 1.6;
    margin-bottom: 24px;
}

.about-section {
    margin-bottom: 24px;
}

.about-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D1B20;
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    padding: 8px 0;
    color: #49454F;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-update-text {
    font-size: 0.95rem;
    color: #49454F;
}

.about-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.about-credits {
    font-size: 0.875rem;
    color: #79747E;
    margin: 0;
}


/* Home Button */
.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0;
    text-decoration: none;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-button:hover {
    transform: scale(1.2);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.home-button:active {
    transform: scale(1);
}

.home-icon {
    font-weight: bold;
    line-height: 1;
    filter: grayscale(1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .home-button {
        top: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
}

/* Content Section for SEO/AdSense */
.content-section {
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1D1B20;
    line-height: 1.8;
}

.content-card h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    margin-top: 0;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
    margin-top: 32px;
}

.content-card h2:first-of-type {
    margin-top: 0;
}

.content-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #764ba2;
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-card p {
    font-size: 1rem;
    color: #49454F;
    margin-bottom: 16px;
}

.content-card ul {
    margin: 16px 0;
    padding-left: 24px;
}

.content-card li {
    font-size: 1rem;
    color: #49454F;
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-card strong {
    color: #667eea;
    font-weight: 600;
}

/* Dark Mode Support for Content */
body.dark-mode .content-card {
    background: rgba(30, 30, 46, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

body.dark-mode .content-card h1 {
    background: linear-gradient(135deg, #8b9dff 0%, #b08fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .content-card h2 {
    color: #8b9dff;
}

body.dark-mode .content-card h3 {
    color: #b08fff;
}

body.dark-mode .content-card p,
body.dark-mode .content-card li {
    color: #a0a0b0;
}

body.dark-mode .content-card strong {
    color: #8b9dff;
}

body.dark-mode .content-card a {
    color: #8b9dff;
}

body.dark-mode .content-card a:hover {
    color: #b08fff;
}

@media (max-width: 768px) {
    .content-section {
        margin-top: 32px;
    }
    
    .content-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .content-card h2 {
        font-size: 1.5rem;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
    }
}
