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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    border: 3px solid #C0392B;
}

.game-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-header h1 {
    font-size: 28px;
    color: #E74C3C;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(192, 57, 43, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #C0392B;
}

.stat-label {
    font-size: 12px;
    color: #95A5A6;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #E74C3C;
}

.game-area {
    position: relative;
    margin-bottom: 15px;
    border: 4px solid #C0392B;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 30px;
}

.game-title {
    text-align: center;
    margin-bottom: 30px;
}

.game-title .warrior-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px #E74C3C, 0 0 20px #C0392B;
    }
    50% {
        text-shadow: 0 0 20px #E74C3C, 0 0 40px #C0392B;
    }
}

.game-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #E74C3C;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 14px;
    color: #F39C12;
    margin: 15px 0;
    font-weight: bold;
}

.motto {
    font-size: 12px;
    color: #95A5A6;
    margin-top: 10px;
    font-style: italic;
}

.controls-info {
    background: rgba(52, 73, 94, 0.5);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #C0392B;
}

.controls-info h3 {
    font-size: 20px;
    color: #E74C3C;
    margin-bottom: 20px;
    text-align: center;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

kbd {
    background: #34495E;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    border: 2px solid #5D6D7E;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.control-item span {
    font-size: 13px;
    color: #ECF0F1;
}

.start-btn {
    background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border: 3px solid #922B21;
    font-family: inherit;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}

.start-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.pause-title {
    text-align: center;
}

.pause-title h2 {
    font-size: 28px;
    color: #F39C12;
    margin-bottom: 10px;
}

.pause-title p {
    font-size: 16px;
    color: #95A5A6;
}

.game-over-title {
    text-align: center;
    margin-bottom: 30px;
}

.game-over-title h2 {
    font-size: 32px;
    color: #C0392B;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.final-stats {
    background: rgba(192, 57, 43, 0.3);
    padding: 25px 35px;
    border-radius: 10px;
    border: 3px solid #E74C3C;
}

.final-stats p {
    font-size: 16px;
    margin: 10px 0;
    color: #ECF0F1;
}

.final-stats span {
    font-size: 24px;
    color: #F39C12;
    font-weight: bold;
}

.game-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #34495E;
}

.skills-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-name {
    font-size: 12px;
    color: #95A5A6;
    text-align: center;
}

.skill-bar {
    background: rgba(0, 0, 0, 0.5);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #34495E;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #E74C3C 0%, #C0392B 100%);
    width: 100%;
    transition: width 0.1s;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }

    .game-header h1 {
        font-size: 24px;
    }

    .game-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 8px 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .skills-display {
        grid-template-columns: 1fr;
    }
}
