/* uPirate Tower Defense - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial', cursive;
    background: linear-gradient(180deg, #87CEEB 0%, #87CEEB 40%, #228B22 40%, #32CD32 100%);
    background-size: 100% 200px;
    background-repeat: repeat-y;
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Mario-style clouds in background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 60px 40px at 100px 50px, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(ellipse 40px 25px at 80px 50px, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(ellipse 40px 25px at 120px 50px, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(ellipse 60px 40px at 400px 80px, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(ellipse 40px 25px at 380px 80px, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(ellipse 40px 25px at 420px 80px, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(ellipse 80px 50px at 800px 60px, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(ellipse 50px 30px at 770px 60px, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(ellipse 50px 30px at 830px 60px, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 50%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

/* Mario-style grass texture */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 48%, #228B22 48%, #228B22 52%, transparent 52%, transparent 100%),
        linear-gradient(0deg, #32CD32 0%, #228B22 20%, #32CD32 40%, #228B22 60%, #32CD32 80%, #228B22 100%);
    background-size: 20px 100%, 100% 15px;
    pointer-events: none;
    z-index: -1;
}

/* Lesson Menu Overlay */
.lesson-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lesson-menu {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 2rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #ffd700;
}

.lesson-menu h1 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.lesson-selection h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.lesson-card {
    background: #16213e;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 1.5rem 1rem 3rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.lesson-card:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
}

.lesson-card.selected {
    border-color: #ffd700;
    background: #1a2b5c;
}

.lesson-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.lesson-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lesson-card p {
    color: #ccc;
    font-size: 0.9rem;
}

.game-instructions {
    margin-bottom: 2rem;
}

.game-instructions h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.game-instructions ul {
    list-style-position: inside;
    color: #ccc;
}

.game-instructions li {
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border: none;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    width: 200px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    width: 250px;
}

/* Countdown Overlay */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.countdown-content {
    text-align: center;
    color: #fff;
}

.countdown-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.countdown-number {
    font-size: 8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hide game container initially, show start menu */
.game-container {
    display: none;
}

.game-container.active {
    display: block;
}

.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header - Mario style */
.game-header {
    background: linear-gradient(45deg, #FF6B35 0%, #F7931E 25%, #FFD700 50%, #F7931E 75%, #FF6B35 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    padding: 4px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #8B4513;
    border-radius: 8px;
    margin: 4px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.3),
        inset 0 -1px 1px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    min-height: 35px;
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.header-left h1 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7), 0 0 6px rgba(255,215,0,0.5);
    font-weight: bold;
    letter-spacing: 0.3px;
}

.game-stats {
    display: flex;
    gap: 6px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(145deg, #4169E1 0%, #0000CD 100%);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.75rem;
    border: 3px solid #FFD700;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.4),
        inset 0 1px 2px rgba(255,255,255,0.3);
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-size: 14px;
    min-width: 60px;
}

.stat i {
    color: #FFD700;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.header-right {
    display: flex;
    gap: 6px;
}

/* Mario-style Buttons */
.btn {
    padding: 6px 12px;
    border: 3px solid #333;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: 
        0 4px 0 #333,
        0 6px 8px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 0 #333,
        0 7px 10px rgba(0,0,0,0.4);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #333,
        0 3px 4px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(145deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #2E7D32;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #66BB6A 0%, #4CAF50 100%);
}

.btn-secondary {
    background: linear-gradient(145deg, #9E9E9E 0%, #757575 100%);
    color: white;
    border-color: #424242;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #BDBDBD 0%, #9E9E9E 100%);
}

.btn-pause {
    background: linear-gradient(145deg, #FF9800 0%, #F57C00 100%);
    color: white;
    border-color: #E65100;
}

.btn-pause:hover {
    background: linear-gradient(145deg, #FFB74D 0%, #FF9800 100%);
}

.btn-menu {
    background: linear-gradient(145deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: #0D47A1;
}

.btn-menu:hover {
    background: linear-gradient(145deg, #64B5F6 0%, #2196F3 100%);
}

/* Main Game Area */
.game-main {
    flex: 1;
    display: flex;
    background: rgba(0, 0, 0, 0.3);
}

.game-board {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#gameCanvas {
    background: linear-gradient(45deg, #2d5a27 25%, #3d7c47 25%, #3d7c47 50%, #2d5a27 50%, #2d5a27 75%, #3d7c47 75%);
    background-size: 40px 40px;
    border: 2px solid #444;
    display: block;
    margin: auto;
}

/* Game UI Overlays */
.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wave-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    z-index: 100;
}

.wave-timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-top: 5px;
}

/* Multiplier Indicator */
.multiplier-indicator {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid;
    z-index: 100;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: pulse 0.5s ease-in-out infinite alternate;
}

.multiplier-indicator.boost {
    background: rgba(76, 175, 80, 0.9);
    border-color: #4CAF50;
    color: #fff;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.multiplier-indicator.penalty {
    background: rgba(244, 67, 54, 0.9);
    border-color: #F44336;
    color: #fff;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.6);
}

@keyframes pulse {
    from {
        transform: translateX(-50%) scale(1);
    }
    to {
        transform: translateX(-50%) scale(1.05);
    }
}

.translation-challenge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.challenge-container {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #4CAF50;
    text-align: center;
    min-width: 300px;
}

.word-to-translate {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    margin: 10px 0;
}

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

.option-btn {
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.option-btn.correct {
    background: #4CAF50;
    animation: correctAnswer 0.5s ease;
}

.option-btn.incorrect {
    background: #f44336;
    animation: incorrectAnswer 0.5s ease;
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: #66BB6A; }
    100% { transform: scale(1); }
}

@keyframes incorrectAnswer {
    0% { transform: scale(1); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.challenge-timer {
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #32cd32, #ffd700, #ff4500);
    transition: width 0.1s linear;
    border-radius: 3px;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.timer-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    border-radius: 3px 3px 0 0;
}

/* Mario-style Sidebar */
.game-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 50%, #3E2723 100%);
    border: 2px solid #FFD700;
    border-left: 3px solid #FFD700;
    border-radius: 0 10px 10px 0;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 0.75rem;
    box-shadow: 
        inset 0 0 10px rgba(255,215,0,0.1),
        -2px 0 8px rgba(0,0,0,0.3);
    position: relative;
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
}

.game-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    animation: goldShimmer 2s ease-in-out infinite;
}

@keyframes goldShimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.game-sidebar h3 {
    color: #ffd700;
    margin-bottom: 4px;
    border-bottom: 1px solid #8b4513;
    padding-bottom: 2px;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
}

/* Tower Shop - Komprimerad */
.towers {
    display: grid;
    gap: 3px;
}

.tower-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    background: linear-gradient(145deg, #8b4513, #a0522d);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #654321;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.tower-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tower-item:hover {
    background: linear-gradient(145deg, #a0522d, #cd853f);
    border-color: #228b22;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.tower-item:hover::before {
    left: 100%;
}

.tower-item.selected {
    border-color: #ffd700;
    background: linear-gradient(145deg, #daa520, #ffd700);
    box-shadow: 
        0 6px 12px rgba(255,215,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.tower-item.insufficient-gold {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.tower-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.7rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    position: relative;
}

.basic-tower {
    background: linear-gradient(145deg, #696969, #a9a9a9);
    border-color: #dcdcdc;
}

.rapid-tower {
    background: linear-gradient(145deg, #dc143c, #ff6347);
    border-color: #ffb6c1;
}

.power-tower {
    background: linear-gradient(145deg, #4169e1, #6495ed);
    border-color: #add8e6;
}

.language-tower {
    background: linear-gradient(145deg, #daa520, #ffd700);
    color: #8b4513;
    border-color: #fff8dc;
    text-shadow: 1px 1px 2px rgba(139,69,19,0.7);
}

.tower-info {
    flex: 1;
}

.tower-name {
    font-weight: bold;
    margin-bottom: 0;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.tower-cost {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.65rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.tower-description {
    color: #d3d3d3;
    font-size: 0.6rem;
    font-style: italic;
    margin-top: 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    line-height: 1.1;
}

/* Upgrades */
.tower-upgrades {
    background: linear-gradient(145deg, #654321, #8b4513);
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #a0522d;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.2);
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px;
    border-bottom: 1px solid rgba(160,82,45,0.3);
    border-radius: 3px;
    margin-bottom: 2px;
    background: linear-gradient(145deg, rgba(139,69,19,0.3), rgba(160,82,45,0.2));
    transition: all 0.3s ease;
    font-size: 0.65rem;
}

.upgrade-item:hover {
    background: linear-gradient(145deg, rgba(160,82,45,0.4), rgba(205,133,63,0.3));
    transform: translateY(-1px);
}

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

/* Language Stats */
.stats-grid {
    display: grid;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* Sidebar sections - Komprimerad spacing */
.sidebar-section {
    margin-bottom: 12px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

/* Targeting strategy dropdown */
.strategy-dropdown {
    width: 100%;
    background: linear-gradient(145deg, #654321, #8b4513);
    border: 2px solid #ffd700;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 4px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-dropdown:hover {
    background: linear-gradient(145deg, #8b4513, #a0522d);
    border-color: #ffed4e;
}

.strategy-dropdown:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 2px rgba(255,69,0,0.3);
}

.strategy-description {
    color: #d3d3d3;
    font-size: 0.7rem;
    margin: 0;
    text-align: center;
    font-style: italic;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* Start Menu and Lesson Selection */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content.large {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(145deg, #1e3a8a, #1e40af, #3b82f6);
    border-radius: 20px;
    border: 4px solid #ffd700;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        inset 0 2px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.modal-content.large::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 16px;
    pointer-events: none;
}

.modal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    color: #ffd700;
    text-align: center;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    color: #fff;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 0.5rem;
    position: relative;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.modal-content h3::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ffd700);
    border-radius: 1.5px;
}

/* Add section labels */
.lesson-selection h3::after {
    content: ' (Välj en)';
    font-size: 0.9rem;
    color: rgba(251, 191, 36, 0.7);
    font-weight: normal;
}

.game-instructions h3::after {
    content: ' (Information)';
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

/* Lesson Selection */
.lesson-selection {
    margin-bottom: 2rem;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Professional clickable lesson cards */
.lesson-card {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border: 3px solid #fbbf24;
    border-radius: 15px;
    padding: 1.5rem 1rem 3rem 1rem; /* Extra bottom padding for "KLICKA" text */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform-style: preserve-3d;
    min-height: 140px; /* Ensure enough space */
}

.lesson-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #10B981;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

.lesson-card.selected {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #ffffff;
    color: #1e3a8a;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
}

.lesson-card.selected h4,
.lesson-card.selected p {
    color: #1e3a8a;
}

.lesson-card i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 0.8rem;
    display: block;
}

.lesson-card.selected i {
    color: #1e3a8a;
}

.lesson-card h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: white;
    font-weight: bold;
    line-height: 1.3;
}

.lesson-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

/* Click hint with better positioning */
.lesson-card::after {
    content: '▶ KLICKA FÖR ATT VÄLJA';
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    white-space: nowrap;
}

.lesson-card.selected::after {
    content: '✓ VALD';
    color: #1e3a8a;
}

/* Non-clickable elements */
.instruction-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #fbbf24;
    border-radius: 5px;
    padding: 1rem;
    text-align: left;
    position: relative;
    cursor: default; /* Explicitly not clickable */
}

.game-instructions h3,
.lesson-selection h3,
.modal-content h1 {
    cursor: default;
}

/* Make it super obvious what's clickable */
.lesson-card:hover {
    cursor: grab;
}

.lesson-card:active {
    cursor: grabbing;
}

.btn-primary:not(:disabled) {
    cursor: pointer;
}

.btn-primary:disabled {
    cursor: not-allowed;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.lesson-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #fbbf24;
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.3);
}

.lesson-card:hover::before {
    opacity: 0.1;
}

.lesson-card.selected {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: #ffffff;
    color: #1e3a8a;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
}

.lesson-card.selected h4,
.lesson-card.selected p {
    color: #1e3a8a;
}

.lesson-card i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    display: block;
}

.lesson-card.selected i {
    color: #1e3a8a;
}

.lesson-card h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: white;
    font-weight: bold;
}

.lesson-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Add click hint */
.lesson-card::after {
    content: '▶ KLICKA FÖR ATT VÄLJA';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

.lesson-card.selected::after {
    content: '✓ VALD';
    color: #1e3a8a;
}

/* Game Instructions */
.game-instructions {
    margin-bottom: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.instruction-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #fbbf24;
    border-radius: 5px;
    padding: 1rem;
    text-align: left;
    position: relative;
}

.instruction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 2px 0 0 2px;
}

.instruction-item i {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-right: 1rem;
    float: left;
    margin-top: 0.2rem;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-item p {
    margin: 0;
    padding-left: 4rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-size: 0.95rem;
}

.instruction-item strong {
    color: #fbbf24;
    font-weight: bold;
}

/* Start Menu Buttons */
.start-menu-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 3px solid #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
    border-color: #fbbf24;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
}

.btn-primary:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

.btn-primary.large {
    padding: 1.5rem 3rem;
    font-size: 1.4rem;
}

/* Countdown Screen */
#countdownNumber {
    font-size: 4rem;
    font-weight: bold;
    color: #fbbf24;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin: 1.5rem 0;
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% { 
        transform: scale(0.8);
        opacity: 0;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Start Menu */
@media (max-height: 700px) {
    .modal-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .lesson-selection {
        margin-bottom: 1.5rem;
    }
    
    .game-instructions {
        margin-bottom: 1.5rem;
    }
    
    .lesson-card {
        padding: 1rem;
    }
    
    .lesson-card i {
        font-size: 2rem;
    }
    
    .lesson-card h4 {
        font-size: 1rem;
    }
    
    .lesson-card p {
        font-size: 0.8rem;
    }
    
    .instruction-item {
        padding: 0.8rem;
    }
    
    .instruction-item i {
        font-size: 1.2rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .instruction-item p {
        font-size: 0.85rem;
        padding-left: 3.5rem;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content.large {
        padding: 1.5rem;
    }
    
    .lesson-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .btn-primary.large {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .lesson-card::after {
        font-size: 0.6rem;
    }
    
    .instruction-item i {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .instruction-item p {
        padding-left: 3rem;
        font-size: 0.8rem;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #444;
    max-width: 400px;
    width: 90%;
}

.modal-content.victory {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2d5a27, #3d7c47);
}

.modal-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 2rem;
}

.final-stats, .victory-stats {
    margin: 20px 0;
    text-align: left;
}

.final-stats p, .victory-stats p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffd700;
}

.loading-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ffd700);
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .game-main {
        flex-direction: column;
    }
    
    .game-sidebar {
        width: 100%;
        height: 200px;
        border-left: none;
        border-top: 2px solid #444;
    }
    
    .towers {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tower-item {
        flex-direction: column;
        text-align: center;
        padding: 5px;
    }
    
    .tower-info {
        margin-top: 5px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
}

/* Game Effects */
.damage-text {
    position: absolute;
    font-weight: bold;
    font-size: 14px;
    color: #ff6b6b;
    pointer-events: none;
    animation: damageFloat 1s ease-out forwards;
}

@keyframes damageFloat {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

.explosion-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd700, #ff6b6b, transparent);
    pointer-events: none;
    animation: explosion 0.5s ease-out forwards;
}

@keyframes explosion {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Particle effects */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
}

/* Tower range indicator */
.range-indicator {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: rangePulse 2s ease-in-out infinite;
}

@keyframes rangePulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Targeting Strategy */
.targeting-strategy {
    margin-top: 10px;
}

.strategy-dropdown {
    width: 100%;
    padding: 8px 12px;
    background: #2c3e50;
    border: 2px solid #34495e;
    border-radius: 6px;
    color: #ecf0f1;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.strategy-dropdown:hover {
    border-color: #3498db;
}

.strategy-dropdown:focus {
    border-color: #e74c3c;
}

.strategy-description {
    font-size: 12px;
    color: #bdc3c7;
    margin-top: 5px;
    line-height: 1.3;
}

/* Language Challenge Overlay - Complete Visual Redesign */
.translation-challenge {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(5px);
    box-sizing: border-box !important;
}

.translation-challenge.show {
    opacity: 1;
    visibility: visible;
}

.challenge-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 3px solid #e74c3c;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    width: 90%;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.translation-challenge.show .challenge-content {
    transform: scale(1) translateY(0);
}

.challenge-header {
    margin-bottom: 30px;
}

.challenge-header h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.challenge-timer {
    width: 100%;
    height: 12px;
    background: #34495e;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #2c3e50;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timer-bar {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
    border-radius: 4px;
    transition: width 0.1s linear;
    width: 100%;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.challenge-question h3 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.word-display {
    margin-bottom: 30px;
}

.source-word {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.challenge-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.option-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.option-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.option-btn.correct {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #2ecc71;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    animation: correctAnswer 0.6s ease;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    animation: incorrectAnswer 0.6s ease;
}

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

/* Animations */
@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(46, 204, 113, 0.8); }
    100% { transform: scale(1); }
}

@keyframes incorrectAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

@keyframes timerPulse {
    0% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); }
    100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
}

.timer-bar.warning {
    animation: timerPulse 1s infinite;
}

/* Tower Upgrade Styles - Komprimerad */
.upgrade-header {
    margin-bottom: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
}

.upgrade-header h4 {
    color: #ffd700;
    margin-bottom: 2px;
    font-size: 1rem;
}

.upgrade-header p {
    color: #bdc3c7;
    font-size: 0.75rem;
    margin: 0;
}

.upgrade-btn {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    color: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.upgrade-btn.disabled {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    cursor: not-allowed;
    opacity: 0.6;
}

.upgrade-cost {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.7rem;
}

/* Victory Modal Styles */
.victory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.5s ease-in-out;
}

.victory-content {
    background: linear-gradient(145deg, #1e3c72, #2a5298);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    border: 3px solid #ffd700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.6s ease-out;
}

.victory-header h1 {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.victory-header p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.victory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffd700;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.victory-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.victory-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.victory-btn.primary {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    border: 2px solid #a93226;
}

.victory-btn.primary:hover {
    background: linear-gradient(145deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.victory-btn.secondary {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    border: 2px solid #2471a3;
}

.victory-btn.secondary:hover {
    background: linear-gradient(145deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.victory-btn.tertiary {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    color: white;
    border: 2px solid #6c7b7d;
}

.victory-btn.tertiary:hover {
    background: linear-gradient(145deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px) scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes glow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px #ffd700; }
    to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 30px #ffd700, 0 0 40px #ffd700; }
}