.game-section {
    padding: 2rem 2rem;
    background: transparent;
    position: relative;
    z-index: 2;
    color: #fff;
}

.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 10px;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-label {
    font-weight: 600;
    margin-right: 8px;
}

.game-ui {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.health-bar-container,
.energy-bar-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.health-label,
.energy-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.health-bar,
.energy-bar {
    width: 100%;
    height: 25px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    width: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #4488ff, #66aaff);
    width: 100%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(68, 136, 255, 0.6);
}

.game-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 20px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border: 3px solid rgba(255, 215, 0, 0.5);
}

#game-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
    cursor: crosshair;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 30px;
    max-width: 500px;
}

.overlay-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-button {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.game-button:active {
    transform: translateY(0);
}

.leaderboard {
    margin-top: 30px;
    text-align: left;
}

.leaderboard h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.leaderboard ol {
    list-style: decimal;
    padding-left: 25px;
}

.leaderboard li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.controls-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.mobile-controls {
    display: none;
}

.mobile-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    width: 100%;
    max-width: 300px;
}

.mobile-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.6);
}

.artifact-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 30px;
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.artifact-panel.hidden {
    display: none;
}

.artifact-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.artifact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.artifact-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.artifact-option:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.artifact-option h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #ffd700;
}

.artifact-option p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.upgrade-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.upgrade-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.upgrade-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.upgrade-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.upgrade-btn {
    background: linear-gradient(135deg, #4488ff, #66aaff);
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(68, 136, 255, 0.4);
}

.upgrade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-currency {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .game-section {
        padding: 2rem 1rem;
    }

    .game-header h1 {
        font-size: 1.8rem;
    }

    .game-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .health-bar-container,
    .energy-bar-container {
        min-width: 100%;
    }

    .mobile-controls {
        display: block;
    }

    .controls-info {
        font-size: 0.85rem;
    }

    .upgrade-list {
        grid-template-columns: 1fr;
    }

    .upgrade-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .artifact-options {
        grid-template-columns: 1fr;
    }
}

/* Эффекты молний */
@keyframes lightning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.lightning-effect {
    animation: lightning 0.1s;
}

/* Эффекты вспышек */
@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.flash-effect {
    animation: flash 0.2s;
}

