body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#roomsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

canvas {
    display: block;
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
    cursor: crosshair;
}

.ui {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hp-bar {
    width: 200px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f0, #0a0);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px currentColor;
}

.hp-fill.low {
    background: linear-gradient(90deg, #f00, #a00);
}

.hp-fill.medium {
    background: linear-gradient(90deg, #ff0, #aa0);
}


.controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.controls h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-item {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.key {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.players {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 250px;
}

.players h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-item {
    margin: 5px 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    font-weight: bold;
}

.player-stats {
    font-size: 12px;
    opacity: 0.8;
}

.leaderboard {
    position: absolute;
    top: 200px;
    right: 10px;
    color: white;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 250px;
}

.leaderboard h3 {
    margin: 0 0 10px 0;
    color: #ffd700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-item {
    margin: 5px 0;
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-rank {
    font-weight: bold;
    color: #ffd700;
    margin-right: 10px;
}

.chat {
    position: absolute;
    top: 120px;
    left: 10px;
    transform: none;
    width: 320px;
    height: 320px;
    color: white;
    font-size: 13px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 40, 0.8));
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.chat-message {
    margin: 8px 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.chat-message.kill {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(139, 0, 0, 0.3));
    border-left: 3px solid #ff3333;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.chat-message.kill:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 0, 0.4));
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.chat-time {
    font-size: 10px;
    opacity: 0.6;
    margin-right: 8px;
    color: #aaa;
}

.chat-empty {
    text-align: center;
    opacity: 0.5;
    font-style: italic;
    padding: 20px;
}

.respawn-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
    display: none;
    z-index: 1001;
}

.respawn-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
}

.respawn-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, #0a0e27 0%, #020515 40%, #000000 100%),
        linear-gradient(180deg, #000428 0%, #004e92 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.game-title {
    font-size: 56px;
    font-weight: bold;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(100, 150, 255, 0.3),
        0 0 60px rgba(100, 150, 255, 0.2);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: titleGlow 3s ease-in-out infinite;
    z-index: 10;
    position: relative;
}

@keyframes titleGlow {
    0%,
    100% {
        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(100, 150, 255, 0.3),
            0 0 60px rgba(100, 150, 255, 0.2);
    }

    50% {
        text-shadow:
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 50px rgba(150, 200, 255, 0.5),
            0 0 70px rgba(150, 200, 255, 0.3);
    }
}

.menu-subtitle {
    font-size: 20px;
    color: #b8c5d6;
    margin-bottom: 50px;
    text-align: center;
    z-index: 10;
    position: relative;
    text-shadow: 0 0 10px rgba(184, 197, 214, 0.5);
}

.rooms-container {
    background:
        linear-gradient(135deg,
            rgba(10, 14, 39, 0.9) 0%,
            rgba(2, 5, 21, 0.8) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    border-radius: 25px;
    padding: 40px;
    min-width: 600px;
    max-width: 900px;
    max-height: 450px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
    position: relative;
}

.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rooms-title {
    font-size: 28px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.create-room-btn {
    padding: 12px 24px;
    background:
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.create-room-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.room-item {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.room-item:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.room-info {
    flex: 1;
}

.room-name {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.room-status {
    font-size: 14px;
    color: #b8c5d6;
}

.room-players {
    background:
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    margin-right: 0;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.join-room-btn {
    padding: 14px 30px;
    background:
        linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-room-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.join-room-btn:disabled {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.minimap {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 236px;
    background: rgba(7, 15, 24, 0.75);
    border: 1px solid rgba(159, 225, 255, 0.35);
    border-radius: 10px;
    padding: 8px;
    color: #dff4ff;
    backdrop-filter: blur(6px);
}

.minimap-title {
    font-size: 12px;
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.minimap canvas {
    width: 100%;
    height: 130px;
    border-radius: 6px;
    border: 1px solid rgba(159, 225, 255, 0.25);
}

.pause-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.pause-panel {
    width: min(420px, calc(100vw - 32px));
    background: linear-gradient(135deg, rgba(12, 24, 38, 0.92), rgba(20, 12, 28, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pause-panel h2,
.pause-settings h3 {
    margin: 0;
}

.pause-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.pause-settings label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.no-rooms {
    text-align: center;
    color: #b8c5d6;
    font-size: 18px;
    padding: 60px 40px;
    text-shadow: 0 0 10px rgba(184, 197, 214, 0.3);
}

.loading {
    color: #ffffff;
    font-size: 20px;
    text-align: center;
    padding: 60px 40px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.game-modes {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    z-index: 10;
    position: relative;
}

.game-mode-btn {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 40px 30px;
    min-width: 280px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.game-mode-btn:hover:not(:disabled) {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background:
        linear-gradient(135deg,
            rgba(100, 100, 100, 0.1) 0%,
            rgba(100, 100, 100, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.05);
}

.mode-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.mode-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.mode-description {
    font-size: 14px;
    color: #b8c5d6;
    line-height: 1.4;
}

.rooms-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, #0a0e27 0%, #020515 40%, #000000 100%),
        linear-gradient(180deg, #000428 0%, #004e92 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 12px 24px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-btn:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 100%);
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.create-room-modal {
    background:
        linear-gradient(135deg,
            rgba(10, 14, 39, 0.95) 0%,
            rgba(2, 5, 21, 0.9) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    border-radius: 25px;
    padding: 40px;
    min-width: 500px;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 28px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: #b8c5d6;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 100%);
}

.form-select option {
    background: #0a0e27;
    color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.checkbox-label {
    color: #b8c5d6;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn-primary {
    background:
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.modal-btn-secondary {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 100%);
}

/* Sound Controls */
.sound-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sound-control label {
    flex: 1;
    font-size: 14px;
    color: #b8c5d6;
}

.sound-control input[type="range"] {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.sound-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.sound-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.sound-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.sound-control span {
    min-width: 40px;
    text-align: right;
    font-size: 12px;
    color: #8899aa;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vignette.low-hp {
    opacity: 1;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 0, 0, 0.4) 70%, rgba(139, 0, 0, 0.8) 100%);
    animation: vignettePulse 1s infinite;
}

@keyframes vignettePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}
