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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

.game-container {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Statistics Panel */
.stats-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    border: 2px solid #667eea;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 150px;
    overflow: hidden;
}

.stats-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #667eea;
    color: white;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    font-size: 14px;
}

.stats-panel-toggle {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s;
}

.stats-panel.collapsed .stats-panel-toggle {
    transform: rotate(-90deg);
}

.stats-panel-content {
    padding: 8px 12px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.stats-panel.collapsed .stats-panel-content {
    max-height: 0;
    padding: 0 12px;
}

.stats-panel .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #333;
}

.stats-panel .stat-item:last-child {
    margin-bottom: 0;
}

.stats-panel .stat-label {
    font-weight: bold;
    color: #555;
}

@media (max-width: 768px) {
    .stats-panel {
        top: 10px;
        right: 10px;
        left: auto;
        min-width: 130px;
    }
    
    .stats-panel-header {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .stats-panel-content {
        padding: 6px 10px;
    }
    
    .stats-panel .stat-item {
        font-size: 11px;
    }
}

.ui-panel {
    width: 250px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile layout */
@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
    }
    
    .game-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .ui-panel {
        width: 100%;
        order: 2; /* UI appears after canvas on mobile */
        gap: 10px;
    }
    
    #gameCanvas {
        order: 1; /* Canvas appears first on mobile */
        width: 100% !important;
        height: auto !important;
        max-height: 60vh;
    }
}

.stats {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-weight: bold;
    color: #333;
}

.tower-selection {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    position: relative;
    overflow: visible;
}

.tower-selection h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.tower-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tower-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    min-height: 44px; /* Minimum touch target size */
}

@media (max-width: 768px) {
    .tower-btn {
        padding: 12px;
        font-size: 16px;
    }
}

.tower-btn:hover {
    background: #e8e8e8;
    border-color: #667eea;
    transform: translateY(-2px);
}

.tower-btn.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.hotkey-indicator {
    color: #999;
    font-size: 11px;
    font-weight: normal;
    margin-left: 4px;
}

.tower-btn.selected .hotkey-indicator {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hotkey-indicator {
        font-size: 12px;
    }
}

.tower-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-controls button {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px; /* Minimum touch target size */
}

@media (max-width: 768px) {
    .game-controls button {
        padding: 14px;
        font-size: 18px;
    }
}

#start-wave-btn {
    background: #4CAF50;
    color: white;
}

#start-wave-btn:hover {
    background: #45a049;
}

#pause-btn {
    background: #ff9800;
    color: white;
}

#pause-btn:hover {
    background: #e68900;
}

.auto-start-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #ddd;
    transition: all 0.2s;
}

.auto-start-toggle:hover {
    background: #e8e8e8;
    border-color: #667eea;
}

.auto-start-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.auto-start-toggle span {
    user-select: none;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    border: 2px solid #ddd;
    font-size: 14px;
}

.speed-control label {
    font-weight: bold;
    color: #333;
    user-select: none;
}

.speed-control select {
    flex: 1;
    padding: 6px 10px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-control select:hover {
    border-color: #667eea;
}

.speed-control select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.upgrade-panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 10px;
    border-radius: 6px;
    border: 2px solid #667eea;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 200px;
    max-width: 220px;
    pointer-events: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .upgrade-panel {
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        padding: 10px 12px;
        margin: 0 10px;
    }
}

.upgrade-panel h3 {
    margin-bottom: 6px;
    margin-top: 0;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

#upgrade-info {
    margin-bottom: 6px;
    font-size: 11px;
    color: #555;
    line-height: 1.3;
}

.targeting-control {
    margin-bottom: 6px;
    font-size: 11px;
}

.targeting-label {
    color: #555;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: bold;
}

.targeting-buttons {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .targeting-buttons {
        gap: 3px;
    }
}

.targeting-btn {
    flex: 1;
    padding: 3px 2px;
    font-size: 9px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .targeting-btn {
        padding: 4px 3px;
        font-size: 10px;
    }
}

.targeting-btn:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.targeting-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.upgrade-panel button {
    width: 100%;
    padding: 5px;
    margin-bottom: 3px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
}

@media (max-width: 768px) {
    .upgrade-panel button {
        padding: 8px;
        font-size: 14px;
        min-height: 44px;
    }
}

#upgrade-btn {
    background: #2196F3;
    color: white;
}

#upgrade-btn:hover {
    background: #1976D2;
}

#upgrade-max-btn {
    background: #9C27B0;
    color: white;
}

#upgrade-max-btn:hover {
    background: #7B1FA2;
}

#sell-btn {
    background: #f44336;
    color: white;
}

#sell-btn:hover {
    background: #d32f2f;
}

#close-upgrade-btn {
    background: #757575;
    color: white;
}

#close-upgrade-btn:hover {
    background: #616161;
}

#gameCanvas {
    border: 2px solid #333;
    border-radius: 5px;
    background: #7CB342;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    touch-action: none; /* Prevent default touch behaviors like scrolling */
}

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

.game-over.hidden {
    display: none;
}

.game-over-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.game-over-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

#restart-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

#restart-btn:hover {
    background: #45a049;
}

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

.achievement-badge-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.9) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.achievement-badge-display.easy {
    border-color: rgba(205, 127, 50, 0.6);
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.95) 0%, rgba(255, 240, 200, 0.95) 100%);
}

.achievement-badge-display.medium {
    border-color: rgba(192, 192, 192, 0.6);
    background: linear-gradient(135deg, rgba(245, 245, 250, 0.95) 0%, rgba(230, 230, 235, 0.95) 100%);
}

.achievement-badge-display.hard {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 250, 200, 0.95) 0%, rgba(255, 240, 180, 0.95) 100%);
}

.achievement-icon {
    font-size: 36px;
    line-height: 1;
}

.achievement-text {
    text-align: left;
    flex: 1;
}

.achievement-text strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 700;
}

.achievement-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.hidden {
    display: none !important;
}

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

.menu-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 25px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15);
    max-width: 950px;
    width: 90%;
    max-height: 90vh;
    text-align: center;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.menu-content h1 {
    font-size: 36px;
    margin-bottom: 5px;
    color: #2c3e50;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    letter-spacing: -1px;
}

.menu-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
    color: #95a5a6;
    font-weight: 400;
}

.selection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.selection-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #34495e;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.maps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.map-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.map-card.selected {
    border-color: #667eea;
    border-width: 3px;
    background: linear-gradient(135deg, #e8edff 0%, #d0daff 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4), 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

.map-preview-container {
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    position: relative;
}

.map-preview {
    border: 2px solid #8BC34A;
    border-radius: 5px;
    background: #7CB342;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.achievement-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
}

.badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.map-info h3 {
    font-size: 14px;
    margin-bottom: 3px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.map-info p {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.3;
    margin: 0;
}

.start-game-btn {
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.start-game-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.start-game-btn:disabled {
    cursor: not-allowed;
}

/* Difficulty Selection Styles */
.difficulties-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.difficulty-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.difficulty-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.difficulty-card.selected {
    border-color: #667eea;
    border-width: 3px;
    background: linear-gradient(135deg, #e8edff 0%, #d0daff 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4), 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

.difficulty-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: 2px solid #333;
}

.difficulty-easy {
    background: #4CAF50;
}

.difficulty-medium {
    background: #FF9800;
}

.difficulty-hard {
    background: #F44336;
}

.difficulty-info h3 {
    font-size: 16px;
    margin-bottom: 3px;
    color: #2c3e50;
    font-weight: 600;
}

.difficulty-info p {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.3;
}

.difficulty-info .wave-count {
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
    margin-top: 4px;
}


/* Tower Tooltip Styles */
.tower-btn {
    position: relative;
}

.tower-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    min-width: 180px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tower-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
}

.tower-btn:hover .tower-tooltip {
    opacity: 1;
}

.tower-tooltip-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    color: #FFD700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
}

.tower-tooltip-attr {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.tower-tooltip-attr:last-child {
    margin-bottom: 0;
}

.tower-tooltip-label {
    color: #CCCCCC;
}

.tower-tooltip-value {
    color: white;
    font-weight: bold;
}

/* Pause Menu Styles */
.pause-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.pause-menu-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.pause-menu-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
}

.pause-menu-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pause-menu-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #34495e;
    font-weight: 600;
    text-align: left;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.setting-row:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
}

.setting-label span:first-child {
    font-weight: 600;
}

.setting-status {
    color: #667eea;
    font-weight: 600;
    margin-left: 10px;
}

.toggle-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toggle-btn:active {
    transform: translateY(0);
}

.volume-slider {
    flex: 1;
    max-width: 150px;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

.pause-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pause-menu-btn {
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.pause-menu-btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.pause-menu-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.pause-menu-btn.secondary {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.3);
}

.pause-menu-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.4);
}

@media (max-width: 768px) {
    .pause-menu-content {
        padding: 30px 25px;
        max-width: 95%;
    }
    
    .pause-menu-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .pause-menu-section {
        padding: 15px;
    }
    
    .pause-menu-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .setting-label {
        font-size: 14px;
    }
    
    .toggle-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .pause-menu-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-content {
        width: 95%;
        padding: 15px 20px 20px;
        max-height: 95vh;
    }
    
    .menu-content h1 {
        font-size: 28px;
        margin-bottom: 4px;
    }
    
    .menu-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .selection-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .selection-section h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .maps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .map-card {
        padding: 8px;
    }
    
    .map-info h3 {
        font-size: 13px;
    }
    
    .map-info p {
        font-size: 10px;
    }
    
    .difficulty-card {
        padding: 10px 12px;
    }
    
    .difficulty-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 16px;
    }
    
    .difficulty-info h3 {
        font-size: 14px;
    }
    
    .difficulty-info p {
        font-size: 11px;
    }
    
    .difficulty-info .wave-count {
        font-size: 10px;
    }
    
    .start-game-btn {
        padding: 12px 32px;
        font-size: 16px;
    }
}
