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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.screen {
    display: none;
    width: 100vw;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Intro screen - povolit scroll na mobilu */
#intro-screen.active {
    align-items: flex-start;
    padding: 20px 0;
    overflow-y: auto;
    min-height: 100vh;
    height: auto;
}

/* ========== ÚVODNÍ OBRAZOVKA ========== */
.intro-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-container h1 {
    color: #e94560;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    letter-spacing: 5px;
}

.intro-container p {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.upload-section {
    margin: 20px 0;
}

#photo-upload {
    display: none;
}

.upload-btn {
    display: block;
    background: linear-gradient(45deg, #e94560, #ff6b6b);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

#preview-image {
    display: none;
    width: 80px;
    height: 80px;
    margin-top: 15px;
    border-radius: 50%;
    border: 3px solid #e94560;
    object-fit: cover;
}

#preview-image.visible {
    display: inline-block;
}

/* Editor fotky */
.photo-editor {
    display: none;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-editor.visible {
    display: block;
}

.editor-hint {
    color: #8BC34A;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.photo-crop-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.crop-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e94560;
    position: relative;
    cursor: move;
    background: #333;
}

.crop-circle img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    cursor: move;
    user-select: none;
    -webkit-user-drag: none;
}

.editor-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zoom-btn {
    background: rgba(233, 69, 96, 0.3);
    border: 1px solid #e94560;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: #e94560;
    transform: scale(1.1);
}

#zoom-value {
    color: #fff;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

.gender-selection {
    margin: 25px 0;
}

.gender-selection p {
    margin-bottom: 15px;
    color: #ccc;
}

.gender-option {
    margin: 0 10px;
    cursor: pointer;
}

.gender-option input {
    display: none;
}

.gender-btn {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    transition: all 0.3s ease;
}

.gender-option input:checked + .gender-btn {
    background: #e94560;
    border-color: #e94560;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

.gender-btn:hover {
    border-color: #e94560;
}

#start-game-btn {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

#start-game-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

#start-game-btn:not(:disabled):hover {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.5);
}

/* Vstup pro jméno */
.name-input {
    margin: 20px 0;
}

.name-input label {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

.name-input input {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.name-input input:focus {
    border-color: #e94560;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

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

/* ========== HERNÍ OBRAZOVKA ========== */
#game-screen {
    flex-direction: column;
}

.game-container {
    flex: 1;
    display: flex;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Sekce útočníka - levá strana */
.attacker-section {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 10;
    position: relative;
}

#attacker {
    position: relative;
    z-index: 50;
}

.attacker-body {
    position: relative;
    width: 122px;
    height: 254px;
}

.attacker-head {
    width: 61px;
    height: 61px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.attacker-head::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    box-shadow: 27px 0 0 #333;
}

.attacker-head::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 6px;
    background: #333;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s ease;
}

/* Úsměv při zásahu */
.attacker-head.happy::after {
    background: #c9302c;
    border-radius: 0 0 10px 10px;
    height: 8px;
}

/* Naštvaná obočí */
.attacker-head .eyebrows {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 12px;
    height: 3px;
    background: #333;
    transform: rotate(-15deg);
}

.attacker-head .eyebrows::after {
    content: '';
    position: absolute;
    left: 25px;
    width: 12px;
    height: 3px;
    background: #333;
    transform: rotate(30deg);
}

.attacker-torso {
    width: 81px;
    height: 101px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    margin: 5px auto 0;
    border-radius: 10px 10px 5px 5px;
}

.attacker-arm {
    position: absolute;
    width: 81px;
    height: 26px;
    background: linear-gradient(90deg, #2c3e50 0%, #ffdbac 70%);
    top: 81px;
    right: -21px;
    border-radius: 10px;
    transform-origin: left center;
    transition: transform 0.1s ease;
}

#weapon-in-hand {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
}

.attacker-legs {
    width: 72px;
    height: 81px;
    margin: 5px auto 0;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 5px;
    position: relative;
}

.attacker-legs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    width: 26px;
    height: 16px;
    background: #1a1a1a;
    border-radius: 5px;
    box-shadow: 35px 0 0 #1a1a1a;
}

/* Oblast pro projektily - střed s pozadím na celou šířku */
.projectile-area {
    flex: 1;
    position: relative;
    transition: background-color 0.5s ease;
}

/* Pozadí obrázek přes celou herní plochu */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('pozadistredovehoobrazku.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.6;
}

/* Nevýrazný text s aktuálním levelem uprostřed */
.level-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-family: 'Arial Black', sans-serif;
    user-select: none;
}

/* Barvy pozadí pro každý level */
.projectile-area.level-1 { background-color: rgba(30, 20, 30, 0.5); }
.projectile-area.level-2 { background-color: rgba(50, 20, 20, 0.5); }
.projectile-area.level-3 { background-color: rgba(60, 30, 20, 0.5); }
.projectile-area.level-4 { background-color: rgba(40, 10, 10, 0.5); }
.projectile-area.level-5 { background-color: rgba(80, 30, 0, 0.5); }
.projectile-area.level-6 { background-color: rgba(20, 20, 40, 0.5); }
.projectile-area.level-7 { background-color: rgba(30, 30, 30, 0.5); }
.projectile-area.level-8 { background-color: rgba(50, 0, 0, 0.5); }
.projectile-area.level-9 { background-color: rgba(60, 20, 0, 0.5); }
.projectile-area.level-10 { background-color: rgba(80, 0, 0, 0.5); }

.projectile {
    position: absolute;
    font-size: 42px;
    transition: none;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.projectile.nuzky { transform: rotate(-90deg); } /* Ostřím dopředu */
.projectile.sekera { transform: rotate(90deg); } /* Ostřím dopředu */
.projectile.maceta { transform: rotate(0deg); } /* Ostřím dopředu */
.projectile.dynamit { animation: dynamitSpin 0.3s linear infinite; }
.projectile.raketa {
    transform: rotate(90deg);
    font-size: 50px;
    filter: drop-shadow(0 0 10px rgba(255,100,0,0.8));
}

/* Překážka - skříň */
.obstacle {
    position: absolute;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.obstacle.hidden {
    display: none;
}

.obstacle.cabinet {
    font-size: 80px;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
}

/* Level oznámení */
.level-announcement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
}

.level-announcement.hidden {
    display: none;
}

.level-announcement span {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px #e94560, 0 0 40px #e94560, 0 0 60px #e94560;
    animation: levelPulse 0.5s ease-in-out infinite alternate;
}

@keyframes levelPulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 20px #e94560, 0 0 40px #e94560;
    }
    to {
        transform: scale(1.1);
        text-shadow: 0 0 30px #ff6b6b, 0 0 60px #ff6b6b, 0 0 80px #ff6b6b;
    }
}

/* Efekt zásahu - fotka s krví */
.hit-face-effect {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    text-align: center;
}

.hit-face-effect.hidden {
    display: none;
}

.hit-face-effect img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid #8B0000;
    object-fit: cover;
    object-position: center center;
    animation: hitFaceAppear 0.8s ease-out forwards;
    display: block;
    margin: 0 auto;
}

/* Skrytý blood overlay - nepoužívá se */
.hit-face-effect .blood-overlay {
    display: none;
}

.hit-face-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8B0000;
    text-shadow: 2px 2px 4px #000, 0 0 20px #ff0000;
    margin-top: 15px;
    animation: bloodDrip 0.8s ease-out;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 3px;
}

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

@keyframes hitFaceAppear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.blood-splatter {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #8B0000;
    border-radius: 50%;
    animation: splatter 0.8s ease-out forwards;
}

.blood-splatter:nth-child(2) {
    top: 20px;
    left: -20px;
    animation-delay: 0.1s;
    width: 25px;
    height: 25px;
}

.blood-splatter:nth-child(3) {
    top: 30px;
    right: -15px;
    animation-delay: 0.15s;
    width: 35px;
    height: 35px;
}

.blood-splatter:nth-child(4) {
    bottom: 10px;
    left: -30px;
    animation-delay: 0.2s;
    width: 20px;
    height: 20px;
}

.blood-splatter:nth-child(5) {
    bottom: 20px;
    right: -25px;
    animation-delay: 0.25s;
    width: 28px;
    height: 28px;
}

.blood-splatter:nth-child(6) {
    top: -10px;
    left: 50%;
    animation-delay: 0.05s;
    width: 22px;
    height: 22px;
}

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

@keyframes dynamitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sekce cíle - pravá strana */
.target-section {
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,0,0,0.1) 0%, rgba(255,0,0,0.2) 100%);
    position: relative;
}

#target {
    position: absolute;
    transition: top 0.05s linear, left 0.05s linear;
}

.target-body {
    position: relative;
    width: 122px;
    height: 254px;
    transition: transform 0.5s ease;
}

.target-head {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    border: 5px solid #e94560;
    background: #ffdbac;
    overflow: hidden;
}

#target-face {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
}

.target-torso {
    width: 91px;
    height: 101px;
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
    margin: 5px auto 0;
    border-radius: 10px 10px 5px 5px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.target-name {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.7);
    max-width: 85px;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.1;
}

.target-legs {
    width: 81px;
    height: 72px;
    margin: 5px auto 0;
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    border-radius: 5px;
    position: relative;
}

.target-legs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    width: 26px;
    height: 16px;
    background: #2d3436;
    border-radius: 5px;
    box-shadow: 33px 0 0 #2d3436;
}

/* Zaseknuté zbraně v cíli */
.stuck-weapon {
    position: absolute;
    font-size: 34px;
    z-index: 15;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}

.stuck-weapon.sekera {
    transform: rotate(45deg);
}

.stuck-weapon.maceta {
    transform: rotate(30deg);
}

.stuck-weapon.nuzky {
    transform: rotate(90deg);
}

/* Efekt krve */
.blood-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
}

.blood-effect.active {
    animation: bloodSplash 0.5s ease-out;
}

@keyframes bloodSplash {
    0% {
        opacity: 1;
        background: radial-gradient(circle, rgba(255,0,0,0.8) 0%, transparent 70%);
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        background: radial-gradient(circle, rgba(139,0,0,0.9) 0%, rgba(255,0,0,0.5) 50%, transparent 80%);
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.blood-drop {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #8B0000;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: bloodDrop 0.8s ease-out forwards;
}

@keyframes bloodDrop {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.3);
    }
}

/* Efekt výbuchu */
.explosion-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 25;
}

.explosion-effect.active {
    animation: explosion 0.6s ease-out;
}

@keyframes explosion {
    0% {
        opacity: 1;
        background: radial-gradient(circle, #fff 0%, #ff0 20%, #f80 40%, #f00 60%, transparent 80%);
        transform: translate(-50%, -50%) scale(0.2);
    }
    30% {
        opacity: 1;
        background: radial-gradient(circle, #ff0 0%, #f80 30%, #f00 50%, #000 70%, transparent 90%);
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        background: radial-gradient(circle, #333 0%, #000 50%, transparent 80%);
        transform: translate(-50%, -50%) scale(2);
    }
}

/* ========== TANK MODE ========== */
.tank-toggle {
    margin-right: 20px;
}

.tank-btn {
    background: linear-gradient(180deg, #2d5016 0%, #1a3009 100%);
    border: 3px solid #4CAF50;
    border-radius: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.tank-btn:hover {
    border-color: #8BC34A;
    background: linear-gradient(180deg, #3d6b1e 0%, #2d5016 100%);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.tank-btn.active {
    border-color: #8BC34A;
    background: linear-gradient(180deg, #4CAF50 0%, #2d5016 100%);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    animation: tankPulse 1s infinite;
}

@keyframes tankPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 40px rgba(76, 175, 80, 0.8); }
}

.tank-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.tank-name {
    color: #8BC34A;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.tank-btn.active .tank-name {
    color: #fff;
}

/* Tank postava */
.attacker-tank {
    position: relative;
    width: 150px;
    height: 100px;
}

.tank-body {
    width: 140px;
    height: 50px;
    background: linear-gradient(180deg, #4a5c3e 0%, #2d3a24 100%);
    border-radius: 10px;
    position: relative;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.tank-turret {
    position: absolute;
    width: 60px;
    height: 35px;
    background: linear-gradient(180deg, #5a6c4e 0%, #3d4a2e 100%);
    border-radius: 10px 10px 5px 5px;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.tank-cannon {
    position: absolute;
    width: 60px;
    height: 15px;
    background: linear-gradient(90deg, #3d4a2e 0%, #2d3a24 100%);
    border-radius: 0 5px 5px 0;
    top: 10px;
    right: -55px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.tank-cannon::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: #1a2410;
    border-radius: 0 3px 3px 0;
}

.tank-tracks {
    position: absolute;
    bottom: -15px;
    left: 5px;
    width: 130px;
    height: 25px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.tank-wheel {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #333 0%, #1a1a1a 70%);
    border-radius: 50%;
    border: 2px solid #444;
}

/* Skrytí normální postavy když je tank aktivní */
.attacker-body.hidden {
    display: none;
}

.attacker-tank.hidden {
    display: none;
}

/* ========== OVLÁDACÍ PANEL ========== */
.controls-panel {
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #e94560;
}

.weapon-selection {
    display: flex;
    gap: 20px;
}

.weapon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.weapon-btn:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.2);
}

.weapon-btn.active {
    border-color: #e94560;
    background: linear-gradient(180deg, rgba(233, 69, 96, 0.4) 0%, rgba(233, 69, 96, 0.2) 100%);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}

.weapon-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.weapon-name {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.score-panel {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.score-panel span {
    font-size: 1.4rem;
}

#hit-count {
    color: #e94560;
    font-size: 2rem;
}

.instruction {
    color: #8BC34A;
    font-size: 1.1rem !important;
    animation: pulse 2s infinite;
}

.hint {
    color: #ff9800;
    font-size: 1rem !important;
    font-weight: bold;
}

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

/* Hit flash na celé obrazovce */
.hit-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.3);
    pointer-events: none;
    z-index: 100;
    animation: flashAnim 0.2s ease-out forwards;
}

@keyframes flashAnim {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Shake efekt pro zásah */
.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

/* Kredit autora */
.author-credit {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-top: 25px;
    font-style: italic;
    animation: authorPulse 2s ease-in-out infinite;
}

@keyframes authorPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        color: #e94560;
    }
}

/* ========== ARENA POPUP ========== */
.arena-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.arena-popup.hidden {
    display: none;
}

.arena-popup-content {
    background: linear-gradient(135deg, #1a0a0a 0%, #3d1a1a 50%, #1a0a0a 100%);
    border: 5px solid #e94560;
    border-radius: 30px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 0 50px rgba(233, 69, 96, 0.6), 0 0 100px rgba(233, 69, 96, 0.3);
    animation: popupAppear 0.5s ease-out;
}

@keyframes popupAppear {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.arena-popup-content h2 {
    font-size: 3.5rem;
    color: #e94560;
    text-shadow: 0 0 30px #e94560, 0 0 60px #ff0000;
    margin-bottom: 30px;
    letter-spacing: 5px;
    animation: titleGlow 1s infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px #e94560, 0 0 40px #ff0000; }
    100% { text-shadow: 0 0 40px #e94560, 0 0 80px #ff0000, 0 0 120px #ff0000; }
}

.arena-popup-content p {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 40px;
    font-style: italic;
}

.fight-btn {
    background: linear-gradient(180deg, #e94560 0%, #8B0000 100%);
    color: #fff;
    border: none;
    padding: 20px 60px;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 5px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 30px rgba(233, 69, 96, 0.5);
}

.fight-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 50px rgba(233, 69, 96, 0.8);
    background: linear-gradient(180deg, #ff6b6b 0%, #e94560 100%);
}

.fight-btn:active {
    transform: scale(0.95);
}

/* ========== BONUS ARENA ========== */
.bonus-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1a1a 50%, #1a0a0a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.bonus-arena.hidden {
    display: none;
}

.arena-title {
    font-size: 4rem;
    color: #e94560;
    text-shadow: 0 0 30px #e94560, 0 0 60px #ff0000;
    margin-bottom: 40px;
    animation: arenaPulse 1s infinite;
    font-weight: bold;
    letter-spacing: 10px;
}

@keyframes arenaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.arena-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 80px;
    margin-bottom: 100px;
}

.arena-attacker, .arena-victim {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arena-person {
    position: relative;
}

.arena-head {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.arena-head.attacker-color {
    background: #ffdbac;
}

.arena-head.victim-color {
    border: 4px solid #e94560;
}

.arena-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.arena-eyes {
    position: absolute;
    top: 30px;
    left: 25px;
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    box-shadow: 35px 0 0 #333;
}

.arena-eyes::before,
.arena-eyes::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 18px;
    height: 4px;
    background: #333;
}

.arena-eyes::before {
    left: -2px;
    transform: rotate(-20deg);
}

.arena-eyes::after {
    left: 33px;
    transform: rotate(20deg);
}

.arena-mouth {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    background: #333;
    border-radius: 20px 20px 0 0;
}

.arena-body {
    width: 80px;
    height: 100px;
    margin-top: 10px;
    border-radius: 10px 10px 5px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.arena-body.attacker-color {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
}

.arena-body.victim-color {
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
}

/* Nohy pro postavy v aréně */
.arena-body::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10px;
    width: 25px;
    height: 60px;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 5px;
    box-shadow: 35px 0 0 #34495e;
}

.arena-body.victim-color::after {
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    box-shadow: 35px 0 0 #7f8c8d;
}

/* Boty */
.arena-body::before {
    content: '';
    position: absolute;
    bottom: -75px;
    left: 5px;
    width: 30px;
    height: 15px;
    background: #1a1a1a;
    border-radius: 5px;
    box-shadow: 35px 0 0 #1a1a1a;
}

.arena-body span {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.arena-arm {
    position: absolute;
    top: 110px;
    right: -60px;
    font-size: 50px;
    transform-origin: left center;
    transition: transform 0.15s ease;
}

.arena-arm.slash {
    animation: slashAttack 0.3s ease-out;
}

@keyframes slashAttack {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(-60deg) translateX(30px); }
    100% { transform: rotate(0deg); }
}

/* Krev která se postupně plní přes obličej */
.arena-blood-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top,
        rgba(139, 0, 0, 0.9) 0%,
        rgba(180, 0, 0, 0.7) 50%,
        rgba(200, 0, 0, 0.5) 100%);
    border-radius: 0 0 50px 50px;
    transition: height 0.3s ease;
    pointer-events: none;
}

.arena-hits {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.arena-hits span {
    color: #e94560;
    font-weight: bold;
}

.arena-instruction {
    font-size: 1.5rem;
    color: #8BC34A;
    animation: pulse 1.5s infinite;
}

@keyframes victimShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-5deg); }
    40% { transform: translateX(8px) rotate(5deg); }
    60% { transform: translateX(-5px) rotate(-3deg); }
    80% { transform: translateX(5px) rotate(3deg); }
}

/* Úsměv útočníka v aréně při zásahu */
.arena-mouth.happy {
    border-radius: 0 0 20px 20px !important;
    background: #c9302c !important;
}

/* ========== BONUS ARENA 2 - SCHODY ========== */
#stairs-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#stairs-arena.hidden {
    display: none;
}

.stairs-container {
    position: relative;
    width: 800px;
    height: 500px;
    margin-bottom: 30px;
}

.stairs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stair {
    position: absolute;
    height: 40px;
    background: linear-gradient(180deg, #5d4e37 0%, #3d3225 100%);
    border: 2px solid #2a2318;
}

/* Schody jdou z levého horního rohu doprava dolů */
.stair:nth-child(1) { width: 120px; top: 80px; left: 80px; }
.stair:nth-child(2) { width: 120px; top: 130px; left: 150px; }
.stair:nth-child(3) { width: 120px; top: 180px; left: 220px; }
.stair:nth-child(4) { width: 120px; top: 230px; left: 290px; }
.stair:nth-child(5) { width: 120px; top: 280px; left: 360px; }
.stair:nth-child(6) { width: 120px; top: 330px; left: 430px; }
.stair:nth-child(7) { width: 120px; top: 380px; left: 500px; }
.stair:nth-child(8) { width: 300px; top: 430px; left: 500px; } /* Podlaha */

/* Zábradlí/linie schodů */
.stairs::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 80px;
    width: 500px;
    height: 4px;
    background: #2a2318;
    transform: rotate(35deg);
    transform-origin: left;
}

.stairs-attacker {
    position: absolute;
    top: 0px;
    left: 20px;
    z-index: 10;
}

.stairs-victim {
    position: absolute;
    top: 10px;
    left: 110px;
    z-index: 5;
    transition: all 0.3s ease;
}

.stairs-person {
    position: relative;
    transition: transform 0.3s ease;
}

.stairs-person .sp-head {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.stairs-person.attacker .sp-head {
    background: #ffdbac;
}

.stairs-person.victim .sp-head {
    border: 3px solid #e94560;
}

.stairs-person .sp-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.stairs-blood-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9) 0%, rgba(200, 0, 0, 0.5) 100%);
    border-radius: 0 0 30px 30px;
    transition: height 0.3s ease;
    pointer-events: none;
}

.stairs-person .sp-body {
    width: 50px;
    height: 60px;
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

.stairs-person.attacker .sp-body {
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
}

.stairs-person.victim .sp-body {
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
}

.stairs-person .sp-legs {
    width: 45px;
    height: 40px;
    margin: 3px auto 0;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 5px;
    position: relative;
}

.stairs-person.victim .sp-legs {
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
}

.stairs-person .sp-legs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 16px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 3px;
    box-shadow: 20px 0 0 #1a1a1a;
}

/* Končetiny oběti na schodech */
.stairs-person .sp-arm {
    position: absolute;
    width: 12px;
    height: 45px;
    background: linear-gradient(180deg, #c0392b 0%, #ffdbac 70%);
    border-radius: 6px;
    top: 65px;
}

.stairs-person .sp-arm.left {
    left: -8px;
    transform: rotate(15deg);
}

.stairs-person .sp-arm.right {
    right: -8px;
    transform: rotate(-15deg);
}

.stairs-person .sp-leg {
    position: absolute;
    width: 14px;
    height: 50px;
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    border-radius: 5px;
    top: 125px;
}

.stairs-person .sp-leg.left {
    left: 10px;
}

.stairs-person .sp-leg.right {
    right: 10px;
}

/* Animace strčení */
.stairs-person.push {
    animation: pushAnim 0.3s ease-out;
}

@keyframes pushAnim {
    0% { transform: translateX(0); }
    50% { transform: translateX(30px) rotate(10deg); }
    100% { transform: translateX(0); }
}

/* Animace zatřesení */
.stairs-victim.stumble {
    animation: stumbleAnim 0.4s ease-out;
}

@keyframes stumbleAnim {
    0% { transform: translateX(0); }
    10% { transform: translateX(-8px) rotate(-3deg); }
    20% { transform: translateX(8px) rotate(3deg); }
    30% { transform: translateX(-6px) rotate(-2deg); }
    40% { transform: translateX(6px) rotate(2deg); }
    50% { transform: translateX(-4px) rotate(-1deg); }
    60% { transform: translateX(4px) rotate(1deg); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

/* Animace pádu ze schodů - doprava dolů */
.stairs-victim.falling {
    animation: stairsFall 2.5s ease-in forwards;
}

@keyframes stairsFall {
    0% {
        transform: rotate(0deg);
        left: 110px;
        top: 10px;
    }
    15% {
        transform: rotate(60deg);
        left: 200px;
        top: 80px;
    }
    30% {
        transform: rotate(150deg);
        left: 300px;
        top: 160px;
    }
    45% {
        transform: rotate(240deg);
        left: 400px;
        top: 240px;
    }
    60% {
        transform: rotate(330deg);
        left: 500px;
        top: 320px;
    }
    75% {
        transform: rotate(420deg);
        left: 580px;
        top: 380px;
    }
    100% {
        transform: rotate(540deg);
        left: 650px;
        top: 420px;
    }
}

/* Odtržené končetiny */
.detached-limb {
    z-index: 20;
    transition: none;
}

.detached-limb.fall-away {
    animation: limbFallAway 1.5s ease-in forwards;
}

@keyframes limbFallAway {
    0% {
        opacity: 1;
        transform: rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(300px) translateX(var(--random-x, 50px)) rotate(720deg);
    }
}

.detached-limb:nth-child(odd) {
    --random-x: -80px;
}

.detached-limb:nth-child(even) {
    --random-x: 80px;
}

/* ========== BONUS ARENA 3 - GILOTINA (HISTORICKÝ STYL) ========== */
#guillotine-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3d2a1a 0%, #2a1a0a 50%, #1a0d05 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#guillotine-arena.hidden {
    display: none;
}

.guillotine-container {
    position: relative;
    width: 650px;
    height: 400px;
    margin-bottom: 30px;
}

/* Země */
.g-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #4a3728 0%, #2d1f15 100%);
    border-top: 3px solid #5d4037;
}

/* Rám gilotiny */
.guillotine {
    position: absolute;
    left: 120px;
    bottom: 50px;
    width: 30px;
    height: 300px;
}

.g-frame-left, .g-frame-right {
    position: absolute;
    width: 15px;
    height: 280px;
    background: linear-gradient(90deg, #5d4037 0%, #3e2723 50%, #5d4037 100%);
    border: 2px solid #2d1f1a;
    bottom: 0;
}

.g-frame-left {
    left: 0;
}

.g-frame-right {
    left: 35px;
}

.g-frame-top {
    position: absolute;
    width: 55px;
    height: 15px;
    background: linear-gradient(180deg, #5d4037 0%, #3e2723 100%);
    border: 2px solid #2d1f1a;
    top: 0;
    left: -2px;
}

/* Čepel */
.g-blade {
    position: absolute;
    top: 15px;
    left: 5px;
    width: 40px;
    height: 50px;
    background: linear-gradient(180deg, #b0b0b0 0%, #808080 50%, #606060 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    transition: top 0.1s ease;
    z-index: 10;
}

.g-blade.shake-blade {
    animation: bladeShake 0.2s ease;
}

@keyframes bladeShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.g-blade.blade-drop {
    animation: bladeDrop 0.3s ease-in forwards;
}

@keyframes bladeDrop {
    0% { top: 60px; }
    100% { top: 200px; }
}

/* Provaz od čepele ke katovi */
.g-rope {
    position: absolute;
    top: 5px;
    left: 25px;
    width: 350px;
    height: 4px;
    background: linear-gradient(90deg, #8d6e63 0%, #6d4c41 50%, #5d4037 100%);
    transform-origin: left center;
    transform: rotate(-25deg);
    border-radius: 2px;
    z-index: 5;
}

.g-rope.tugging {
    animation: ropeTug 0.3s ease;
}

@keyframes ropeTug {
    0% { transform: rotate(-25deg); }
    50% { transform: rotate(-30deg); }
    100% { transform: rotate(-25deg); }
}

.g-rope.pulled {
    transform: rotate(-35deg);
}

/* Prkno na kterém leží oběť */
.g-plank {
    position: absolute;
    left: 150px;
    bottom: 120px;
    width: 200px;
    height: 20px;
    background: linear-gradient(180deg, #8d6e63 0%, #5d4037 100%);
    border: 2px solid #3e2723;
    border-radius: 3px;
}

/* Oběť ležící na prkně */
.g-victim-lying {
    position: absolute;
    bottom: 18px;
    left: 20px;
    width: 160px;
    height: 30px;
}

/* Tělo oběti */
.g-body-lying {
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 90px;
    height: 28px;
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
    border-radius: 10px 5px 5px 10px;
}

.g-arm-lying-1 {
    position: absolute;
    left: 50px;
    bottom: 25px;
    width: 30px;
    height: 10px;
    background: linear-gradient(90deg, #c0392b 0%, #ffdbac 100%);
    border-radius: 5px;
    transform: rotate(-20deg);
}

.g-arm-lying-2 {
    position: absolute;
    left: 80px;
    bottom: 25px;
    width: 30px;
    height: 10px;
    background: linear-gradient(90deg, #c0392b 0%, #ffdbac 100%);
    border-radius: 5px;
    transform: rotate(10deg);
}

.g-legs-lying {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 25px;
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    border-radius: 5px 15px 15px 5px;
}

.g-victim-lying.headless .g-body-lying {
    background: linear-gradient(180deg, #8B0000 0%, #96281b 100%);
}

/* Hlava oběti v gilotině */
.g-victim-head {
    position: absolute;
    left: 155px;
    bottom: 140px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e94560;
    overflow: hidden;
    z-index: 8;
}

.g-victim-head.hidden {
    display: none !important;
}

.g-victim-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.g-blood-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9) 0%, rgba(200, 0, 0, 0.5) 100%);
    border-radius: 0 0 30px 30px;
    transition: height 0.3s ease;
    pointer-events: none;
}

/* Koš na hlavu */
.g-basket {
    position: absolute;
    left: 80px;
    bottom: 50px;
    width: 70px;
    height: 50px;
    background: linear-gradient(180deg, #8d6e63 0%, #5d4037 100%);
    border-radius: 5px 5px 50% 50%;
    border: 3px solid #4e342e;
}

.g-basket-front {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 15px;
    background: linear-gradient(180deg, #3e2723 0%, #2d1f1a 100%);
    border-radius: 3px;
}

/* Upadlá hlava - do koše */
.g-fallen-head {
    position: absolute;
    left: 90px;
    bottom: 45px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #8B0000;
    overflow: hidden;
    z-index: 15;
}

.g-fallen-head.hidden {
    display: none;
}

.g-fallen-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.g-fallen-head.head-fall {
    animation: headFallToBasket 0.6s ease-in forwards;
}

@keyframes headFallToBasket {
    0% {
        left: 155px;
        bottom: 140px;
        transform: rotate(0deg);
    }
    50% {
        left: 115px;
        bottom: 100px;
        transform: rotate(-180deg);
    }
    100% {
        left: 90px;
        bottom: 55px;
        transform: rotate(-360deg);
    }
}

/* Louže krve */
.g-blood-pool {
    position: absolute;
    left: 100px;
    bottom: 45px;
    width: 0;
    height: 15px;
    background: radial-gradient(ellipse, #8B0000 0%, #5c0000 70%, transparent 100%);
    border-radius: 50%;
    z-index: 14;
}

.g-blood-pool.hidden {
    display: none;
}

.g-blood-pool.blood-spread {
    animation: gBloodSpread 1.5s ease-out forwards;
}

@keyframes gBloodSpread {
    0% {
        width: 0;
        opacity: 0;
    }
    30% {
        width: 60px;
        opacity: 1;
    }
    100% {
        width: 100px;
        opacity: 1;
    }
}

/* ========== KAT (EXECUTIONER) ========== */
.g-executioner {
    position: absolute;
    right: 80px;
    bottom: 50px;
}

.ge-head {
    width: 50px;
    height: 50px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.ge-eyes {
    position: absolute;
    top: 16px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: 18px 0 0 #333;
}

/* Nahněvané obočí */
.ge-eyes::before,
.ge-eyes::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 3px;
    background: #333;
}

.ge-eyes::before {
    left: -2px;
    transform: rotate(-15deg);
}

.ge-eyes::after {
    left: 16px;
    transform: rotate(15deg);
}

.ge-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 5px;
    background: #333;
    border-radius: 10px 10px 0 0;
}

.ge-mouth.happy {
    border-radius: 0 0 10px 10px;
    background: #c9302c;
    height: 8px;
}

.ge-body {
    width: 45px;
    height: 70px;
    background: linear-gradient(180deg, #5d4037 0%, #3e2723 100%);
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

/* Ruka tahající za provaz */
.ge-arm {
    position: absolute;
    width: 70px;
    height: 14px;
    background: linear-gradient(90deg, #5d4037 0%, #ffdbac 100%);
    border-radius: 7px;
    top: 55px;
    left: -55px;
    transform-origin: right center;
    transform: rotate(-25deg);
    z-index: 6;
}

.ge-arm.pulling {
    animation: armPull 0.4s ease;
}

@keyframes armPull {
    0% { transform: rotate(-25deg); }
    50% { transform: rotate(-40deg); }
    100% { transform: rotate(-25deg); }
}

.ge-arm.final-pull {
    transform: rotate(-45deg);
}

.ge-hand {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #ffdbac;
    border-radius: 50%;
    z-index: 10;
}

/* Druhá ruka vzadu */
.ge-arm-back {
    position: absolute;
    width: 40px;
    height: 12px;
    background: linear-gradient(90deg, #3e2723 0%, #ffdbac 100%);
    border-radius: 6px;
    top: 70px;
    right: -20px;
    transform: rotate(20deg);
}

/* Nohy kata */
.ge-legs {
    width: 40px;
    height: 55px;
    margin: 5px auto 0;
    background: linear-gradient(180deg, #4a4a4a 0%, #333 100%);
    border-radius: 5px;
    position: relative;
}

.ge-legs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 14px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 3px;
    box-shadow: 18px 0 0 #1a1a1a;
}

/* Provaz v ruce kata */
.ge-rope-hand {
    position: absolute;
    top: 55px;
    left: -50px;
    width: 8px;
    height: 8px;
    background: #5d4037;
    border-radius: 50%;
}

/* ========== UPOZORNĚNÍ NA OTOČENÍ TELEFONU ========== */
.rotate-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

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

.rotate-icon {
    font-size: 80px;
    animation: rotatePhone 2s ease-in-out infinite;
}

.rotate-arrow {
    font-size: 60px;
    color: #e94560;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

.rotate-content p {
    font-size: 1.5rem;
    color: #8BC34A;
    margin-top: 20px;
}

@keyframes rotatePhone {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
}

/* Zobrazit upozornění pouze na mobilu v portrait módu během hry */
@media (max-width: 900px) and (orientation: portrait) {
    #game-screen.active ~ .rotate-warning,
    .bonus-arena:not(.hidden) ~ .rotate-warning,
    #stairs-arena:not(.hidden) ~ .rotate-warning,
    #guillotine-arena:not(.hidden) ~ .rotate-warning,
    #gallows-arena:not(.hidden) ~ .rotate-warning,
    #car-arena:not(.hidden) ~ .rotate-warning {
        display: flex;
    }
}

/* Responzivita */
@media (max-width: 768px) {
    .intro-container h1 {
        font-size: 2rem;
    }

    .weapon-btn {
        padding: 8px 12px;
        min-width: 60px;
    }

    .weapon-icon {
        font-size: 1.5rem;
    }

    .weapon-name {
        font-size: 0.7rem;
    }

    .attacker-section, .target-section {
        width: 30%;
    }
}

/* Mobilní landscape - zmenšené elementy */
@media (max-height: 500px) {
    .attacker-section {
        width: 20%;
    }

    .target-section {
        width: 20%;
    }

    .attacker-body {
        transform: scale(0.5);
        transform-origin: center center;
    }

    .target-body {
        transform: scale(0.5) !important;
        transform-origin: center center;
    }

    .target-head {
        width: 80px;
        height: 80px;
    }

    .controls-panel {
        padding: 8px 15px;
    }

    .weapon-btn {
        padding: 5px 10px;
        min-width: 50px;
    }

    .weapon-icon {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .weapon-name {
        font-size: 0.6rem;
    }

    .tank-btn {
        padding: 8px 15px;
        min-width: 70px;
    }

    .tank-icon {
        font-size: 1.5rem;
    }

    .tank-name {
        font-size: 0.7rem;
    }

    .score-panel span {
        font-size: 0.9rem;
    }

    #hit-count {
        font-size: 1.2rem;
    }

    .instruction, .hint {
        font-size: 0.7rem !important;
    }

    .projectile {
        font-size: 28px;
    }

    .level-indicator {
        font-size: 60px;
    }

    /* Bonus arena zmenšení */
    .bonus-arena {
        padding: 10px;
    }

    .arena-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .arena-container {
        gap: 30px;
        margin-bottom: 20px;
    }

    .arena-head {
        width: 50px;
        height: 50px;
    }

    .arena-body {
        width: 40px;
        height: 50px;
    }

    .arena-body::after {
        bottom: -30px;
        width: 14px;
        height: 30px;
        left: 5px;
        box-shadow: 20px 0 0 #34495e;
    }

    .arena-body.victim-color::after {
        box-shadow: 20px 0 0 #7f8c8d;
    }

    .arena-body::before {
        bottom: -38px;
        width: 18px;
        height: 8px;
        left: 2px;
        box-shadow: 20px 0 0 #1a1a1a;
    }

    .arena-arm {
        top: 55px;
        font-size: 24px;
        right: -30px;
    }

    .arena-hits {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .arena-instruction {
        font-size: 0.9rem;
    }

    /* Popup zmenšení */
    .arena-popup-content {
        padding: 30px 40px;
    }

    .arena-popup-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .arena-popup-content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .fight-btn {
        padding: 15px 40px;
        font-size: 1.3rem;
    }

    /* Schody zmenšení */
    .stairs-container {
        transform: scale(0.5);
        transform-origin: center center;
    }

    #stairs-arena .arena-title {
        font-size: 1.3rem;
    }

    /* Gilotina zmenšení */
    .guillotine-container {
        transform: scale(0.5);
        transform-origin: center center;
    }

    #guillotine-arena .arena-title {
        font-size: 1.3rem;
    }

    /* Šibenice zmenšení */
    .gallows-container {
        transform: scale(0.5);
        transform-origin: center center;
    }

    #gallows-arena .arena-title {
        font-size: 1.3rem;
    }

    /* Auto zmenšení */
    .car-container {
        transform: scale(0.5);
        transform-origin: center center;
    }

    #car-arena .arena-title {
        font-size: 1.3rem;
    }
}

/* ========== BONUS ARENA 4 - ŠIBENICE ========== */
#gallows-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 50%, #05050a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#gallows-arena.hidden {
    display: none;
}

.gallows-container {
    position: relative;
    width: 500px;
    height: 450px;
    margin-bottom: 30px;
}

.gallows {
    position: absolute;
    top: 0;
    right: 50px;
}

/* Svislý sloup */
.gallows-post {
    position: absolute;
    width: 30px;
    height: 350px;
    background: linear-gradient(90deg, #5d4037 0%, #3e2723 50%, #5d4037 100%);
    border: 2px solid #2d1f1a;
    right: 0;
    top: 50px;
}

/* Vodorovný trám */
.gallows-beam {
    position: absolute;
    width: 200px;
    height: 25px;
    background: linear-gradient(180deg, #5d4037 0%, #3e2723 100%);
    border: 2px solid #2d1f1a;
    right: 0;
    top: 50px;
}

/* Podpěra/vzpěra */
.gallows-support {
    position: absolute;
    width: 80px;
    height: 15px;
    background: linear-gradient(180deg, #4a3228 0%, #3e2723 100%);
    border: 2px solid #2d1f1a;
    right: 20px;
    top: 120px;
    transform: rotate(-45deg);
    transform-origin: right center;
}

/* Provaz */
.gallows-rope {
    position: absolute;
    width: 6px;
    height: 68px;
    background: linear-gradient(90deg, #8d6e63 0%, #5d4037 50%, #8d6e63 100%);
    right: 180px;
    top: 73px;
    border-radius: 3px;
    transition: height 0.3s ease;
}

.gallows-rope.taut {
    height: 95px;
}

/* Smyčka kolem krku */
.gallows-noose {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 5px solid #5d4037;
    border-radius: 50%;
    right: 163px;
    top: 140px;
    background: transparent;
    z-index: 10;
}

/* Plošina pod nohama */
.gallows-platform {
    position: absolute;
    width: 100px;
    height: 20px;
    background: linear-gradient(180deg, #5d4037 0%, #3e2723 100%);
    border: 2px solid #2d1f1a;
    right: 135px;
    top: 330px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.gallows-platform.shaking {
    animation: platformShake 0.3s ease;
}

@keyframes platformShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.gallows-platform.fallen {
    animation: platformFall 0.5s ease-in forwards;
}

@keyframes platformFall {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: rotate(-90deg);
        opacity: 0.5;
    }
}

/* Oběť na šibenici - pod provazem */
.gallows-victim {
    position: absolute;
    right: 158px;
    top: 140px;
    transition: top 0.5s ease;
}

.gallows-victim.shaking {
    animation: gallowsShake 0.5s ease;
}

@keyframes gallowsShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-5px) rotate(-2deg); }
    40% { transform: translateX(5px) rotate(2deg); }
    60% { transform: translateX(-3px) rotate(-1deg); }
    80% { transform: translateX(3px) rotate(1deg); }
}

.gallows-victim.hanging {
    top: 175px;
    animation: hangingSwing 2s ease-in-out infinite;
}

@keyframes hangingSwing {
    0%, 100% { transform: rotate(-5deg); transform-origin: top center; }
    50% { transform: rotate(5deg); transform-origin: top center; }
}

/* Hlava oběti */
.gv-head {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #e94560;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.gv-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gv-blood-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9) 0%, rgba(200, 0, 0, 0.5) 100%);
    border-radius: 0 0 30px 30px;
    transition: height 0.3s ease;
    pointer-events: none;
}

/* Tělo */
.gv-body {
    width: 45px;
    height: 65px;
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

/* Ruce */
.gv-arm-left, .gv-arm-right {
    position: absolute;
    width: 12px;
    height: 45px;
    background: linear-gradient(180deg, #c0392b 0%, #ffdbac 100%);
    border-radius: 6px;
    top: 60px;
}

.gv-arm-left {
    left: 8px;
    transform: rotate(15deg);
}

.gv-arm-right {
    right: 8px;
    transform: rotate(-15deg);
}

/* Nohy */
.gv-leg-left, .gv-leg-right {
    position: absolute;
    width: 14px;
    height: 55px;
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    border-radius: 5px;
    top: 125px;
}

.gv-leg-left {
    left: 20px;
}

.gv-leg-right {
    right: 20px;
}

/* Nohy při visení */
.gallows-victim.hanging .gv-leg-left,
.gallows-victim.hanging .gv-leg-right {
    animation: legsHanging 2s ease-in-out infinite;
}

@keyframes legsHanging {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ========== ÚTOČNÍK NA ŠIBENICI ========== */
.gallows-attacker {
    position: absolute;
    right: 280px;
    top: 220px;
}

.ga-head {
    width: 50px;
    height: 50px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.ga-eyes {
    position: absolute;
    top: 15px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    box-shadow: 18px 0 0 #333;
}

.ga-eyes::before,
.ga-eyes::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 3px;
    background: #333;
}

.ga-eyes::before {
    left: -2px;
    transform: rotate(-15deg);
}

.ga-eyes::after {
    left: 16px;
    transform: rotate(15deg);
}

.ga-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 5px;
    background: #333;
    border-radius: 10px 10px 0 0;
}

.ga-mouth.happy {
    border-radius: 0 0 10px 10px;
    background: #c9302c;
    height: 8px;
}

.ga-body {
    width: 45px;
    height: 60px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

.ga-leg-back {
    position: absolute;
    width: 14px;
    height: 50px;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 5px;
    top: 115px;
    left: 12px;
}

.ga-leg-back::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 20px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 3px;
}

.ga-leg-kick {
    position: absolute;
    width: 14px;
    height: 50px;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 5px;
    top: 115px;
    right: 12px;
    transform-origin: top center;
    transition: transform 0.15s ease;
}

.ga-leg-kick::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 20px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 3px;
}

.ga-leg-kick.kicking {
    animation: kickAnim 0.4s ease;
}

@keyframes kickAnim {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(-60deg) translateX(30px); }
    100% { transform: rotate(0deg); }
}

/* ========== BONUS ARENA 5 - AUTO ========== */
#car-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#car-arena.hidden {
    display: none;
}

.car-container {
    position: relative;
    width: 700px;
    height: 350px;
    margin-bottom: 30px;
}

/* Země/silnice */
.car-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border-top: 4px solid #555;
}

.car-ground::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #fff 0px, #fff 30px, transparent 30px, transparent 60px);
    transform: translateY(-50%);
}

/* Auto */
.car {
    position: absolute;
    left: 30px;
    bottom: 60px;
    transition: left 1.5s ease-in;
}

.car.revving {
    animation: carRevving 0.3s ease;
}

@keyframes carRevving {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.car.driving {
    left: 520px;
}

.car.crashed {
    left: 500px;
}

/* Karoserie - spodní část */
.car-body {
    width: 180px;
    height: 50px;
    background: linear-gradient(180deg, #c0392b 0%, #8e1c1c 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Kabina - horní část */
.car-body::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 45px;
    background: linear-gradient(180deg, #d44 0%, #c0392b 100%);
    border-radius: 5px 15px 0 0;
    top: -40px;
    right: 30px;
}

/* Okno */
.car-window {
    position: absolute;
    width: 70px;
    height: 30px;
    background: linear-gradient(180deg, #87ceeb 0%, #5dade2 100%);
    border-radius: 3px 10px 0 0;
    top: -35px;
    right: 35px;
    border: 2px solid #222;
}

/* Řidič v okně */
.car-driver {
    position: absolute;
    right: 55px;
    top: -30px;
    z-index: 5;
}

.driver-head {
    width: 22px;
    height: 22px;
    background: #ffdbac;
    border-radius: 50%;
    border: 2px solid #daa520;
}

.driver-head::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 15px;
    background: #ffdbac;
    top: 18px;
    left: 7px;
    border-radius: 3px;
}

/* Kapota */
.car-hood {
    position: absolute;
    width: 50px;
    height: 35px;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 10px 5px 0 0;
    left: -45px;
    bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Světla */
.car-hood::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 8px;
    background: #f1c40f;
    border-radius: 3px;
    left: 2px;
    top: 15px;
}

/* Tažné zařízení */
.car-body::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 8px;
    background: #333;
    right: -18px;
    top: 20px;
    border-radius: 0 5px 5px 0;
}

/* Kola */
.car-wheel {
    position: absolute;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, #555 0%, #222 50%, #444 60%, #111 80%);
    border-radius: 50%;
    bottom: -12px;
    border: 3px solid #111;
    box-shadow: 0 3px 5px rgba(0,0,0,0.4);
}

/* Disk kola */
.car-wheel::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #888 0%, #555 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.car-wheel-front {
    left: -30px;
}

.car-wheel-back {
    right: 25px;
}

.car.driving .car-wheel {
    animation: wheelSpin 0.3s linear infinite;
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Výfuk */
.car-exhaust {
    position: absolute;
    width: 15px;
    height: 10px;
    background: #333;
    border-radius: 3px;
    right: -10px;
    bottom: 5px;
}

/* Kouř z výfuku */
.car-smoke {
    position: absolute;
    right: -30px;
    bottom: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.car-smoke::before,
.car-smoke::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0);
    transition: all 0.3s ease;
}

.car-smoke.smoke-1::before {
    width: 15px;
    height: 15px;
    background: rgba(150, 150, 150, 0.3);
    animation: smokeFloat 1s ease-out infinite;
}

.car-smoke.smoke-2::before,
.car-smoke.smoke-2::after {
    width: 20px;
    height: 20px;
    background: rgba(150, 150, 150, 0.4);
    animation: smokeFloat 0.8s ease-out infinite;
}
.car-smoke.smoke-2::after {
    left: 10px;
    animation-delay: 0.2s;
}

.car-smoke.smoke-3::before,
.car-smoke.smoke-3::after {
    width: 25px;
    height: 25px;
    background: rgba(120, 120, 120, 0.5);
    animation: smokeFloat 0.6s ease-out infinite;
}
.car-smoke.smoke-3::after {
    left: 15px;
    animation-delay: 0.15s;
}

.car-smoke.smoke-4::before,
.car-smoke.smoke-4::after {
    width: 30px;
    height: 30px;
    background: rgba(100, 100, 100, 0.6);
    animation: smokeFloat 0.5s ease-out infinite;
}
.car-smoke.smoke-4::after {
    left: 20px;
    animation-delay: 0.1s;
}

.car-smoke.smoke-5::before,
.car-smoke.smoke-5::after {
    width: 35px;
    height: 35px;
    background: rgba(80, 80, 80, 0.7);
    animation: smokeFloat 0.4s ease-out infinite;
}
.car-smoke.smoke-5::after {
    left: 25px;
    animation-delay: 0.05s;
}

@keyframes smokeFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-30px) translateX(20px) scale(2);
        opacity: 0;
    }
}

/* Provaz */
.car-rope {
    position: absolute;
    height: 6px;
    width: 280px;
    background: linear-gradient(180deg, #8d6e63 0%, #5d4037 100%);
    left: 230px;
    bottom: 130px;
    border-radius: 3px;
    transform-origin: left center;
}

.car-rope.taut {
    background: linear-gradient(180deg, #a1887f 0%, #6d4c41 100%);
}

.car-rope.pulling {
    animation: ropePull 0.8s ease-in forwards;
}

@keyframes ropePull {
    0% { width: 280px; }
    100% { width: 400px; }
}

.car-rope.snapped {
    opacity: 0;
}

/* Oběť */
.car-victim {
    position: absolute;
    right: 120px;
    bottom: 60px;
    transition: transform 0.3s ease;
}

.car-victim.shaking {
    animation: victimCarShake 0.5s ease;
}

@keyframes victimCarShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Exploze oběti při nárazu */
.car-victim.exploded {
    pointer-events: none;
}

/* Hlava letí nahoru doprava a hodně se kutálí */
.cv-head.fly-head {
    position: absolute !important;
    animation: flyHead 2s ease-out forwards;
}

@keyframes flyHead {
    0% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(100px, -180px) rotate(360deg); }
    60% { transform: translate(200px, -50px) rotate(900deg); }
    100% { transform: translate(280px, 120px) rotate(1440deg); opacity: 0.9; }
}

/* Trup letí doprava a rotuje */
.cv-torso.fly-torso {
    position: absolute !important;
    animation: flyTorso 1.8s ease-out forwards;
}

@keyframes flyTorso {
    0% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(80px, -60px) rotate(180deg); }
    100% { transform: translate(150px, 80px) rotate(540deg); opacity: 0.8; }
}

/* Levá ruka letí doleva nahoru */
.cv-arm-left.fly-arm-left {
    position: absolute !important;
    animation: flyArmLeft 1.6s ease-out forwards;
}

@keyframes flyArmLeft {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-100px, -200px) rotate(-540deg); }
    100% { transform: translate(-180px, 50px) rotate(-1080deg); opacity: 0.7; }
}

/* Pravá ruka letí doprava nahoru */
.cv-arm-right.fly-arm-right {
    position: absolute !important;
    animation: flyArmRight 1.7s ease-out forwards;
}

@keyframes flyArmRight {
    0% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(150px, -180px) rotate(450deg); }
    100% { transform: translate(250px, 30px) rotate(1080deg); opacity: 0.7; }
}

/* Levá noha letí doleva a kutálí se */
.cv-leg-left.fly-leg-left {
    position: absolute !important;
    animation: flyLegLeft 1.5s ease-out forwards;
}

@keyframes flyLegLeft {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-80px, -100px) rotate(-360deg); }
    100% { transform: translate(-150px, 100px) rotate(-720deg); opacity: 0.8; }
}

/* Pravá noha letí doprava dolů */
.cv-leg-right.fly-leg-right {
    position: absolute !important;
    animation: flyLegRight 1.6s ease-out forwards;
}

@keyframes flyLegRight {
    0% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(100px, -80px) rotate(360deg); }
    100% { transform: translate(200px, 120px) rotate(900deg); opacity: 0.8; }
}

/* Hlava oběti */
.cv-head {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #e94560;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.cv-head.hidden {
    display: none;
}

.cv-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cv-blood-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9) 0%, rgba(200, 0, 0, 0.5) 100%);
    border-radius: 0 0 30px 30px;
    transition: height 0.3s ease;
    pointer-events: none;
}

/* Trup/Tělo */
.cv-torso {
    width: 45px;
    height: 70px;
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

/* Ruce */
.cv-arm-left, .cv-arm-right {
    position: absolute;
    width: 12px;
    height: 45px;
    background: linear-gradient(180deg, #c0392b 0%, #ffdbac 100%);
    border-radius: 6px;
    top: 65px;
}

.cv-arm-left {
    left: 5px;
    transform: rotate(15deg);
}

.cv-arm-right {
    right: 5px;
    transform: rotate(-15deg);
}

/* Nohy */
.cv-leg-left, .cv-leg-right {
    position: absolute;
    width: 14px;
    height: 55px;
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    border-radius: 5px;
    top: 135px;
}

.cv-leg-left {
    left: 18px;
}

.cv-leg-right {
    right: 18px;
}

/* Odpadlá hlava */
.cv-fallen-head {
    position: absolute;
    right: 150px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #8B0000;
    overflow: hidden;
    z-index: 15;
}

.cv-fallen-head.hidden {
    display: none;
}

.cv-fallen-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cv-fallen-head.head-roll {
    animation: carHeadRoll 1s ease-out forwards;
}

@keyframes carHeadRoll {
    0% {
        transform: translateX(0) rotate(0deg);
        right: 150px;
    }
    100% {
        transform: translateX(-100px) rotate(-360deg);
        right: 150px;
    }
}

/* Kaluž krve */
.car-blood-pool {
    position: absolute;
    right: 80px;
    bottom: 55px;
    width: 0;
    height: 40px;
    background: radial-gradient(ellipse, #8B0000 0%, #5c0000 70%, transparent 100%);
    border-radius: 50%;
}

.car-blood-pool.hidden {
    display: none;
}

.car-blood-pool.blood-spread {
    animation: carBloodSpread 1.5s ease-out forwards;
}

@keyframes carBloodSpread {
    0% {
        width: 0;
        opacity: 0;
    }
    30% {
        width: 120px;
        opacity: 1;
    }
    100% {
        width: 200px;
        opacity: 1;
    }
}

/* ========== BONUS ARENA 6 - HRANICE (UPÁLENÍ) ========== */
#stake-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d1a0a 0%, #1a0d05 50%, #0d0502 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#stake-arena.hidden {
    display: none;
}

.stake-container {
    position: relative;
    width: 600px;
    height: 400px;
    margin-bottom: 30px;
}

/* Země */
.stake-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, #4a3728 0%, #2d1f15 100%);
    border-top: 3px solid #5d4037;
}

/* Hromada dřeva */
.stake-wood {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
}

.log {
    position: absolute;
    height: 25px;
    background: linear-gradient(180deg, #8d6e63 0%, #5d4037 50%, #4e342e 100%);
    border-radius: 12px;
    border: 2px solid #3e2723;
}

.log-1 {
    width: 180px;
    bottom: 0;
    left: 10px;
}

.log-2 {
    width: 160px;
    bottom: 0;
    left: 30px;
    transform: rotate(-5deg);
}

.log-3 {
    width: 150px;
    bottom: 20px;
    left: 25px;
    transform: rotate(3deg);
}

.log-4 {
    width: 140px;
    bottom: 20px;
    left: 40px;
    transform: rotate(-8deg);
}

.log-5 {
    width: 120px;
    bottom: 40px;
    left: 50px;
    transform: rotate(5deg);
}

.log-6 {
    width: 100px;
    bottom: 45px;
    left: 60px;
    transform: rotate(-3deg);
}

/* Kůl uprostřed */
.stake-post {
    position: absolute;
    width: 20px;
    height: 180px;
    background: linear-gradient(90deg, #5d4037 0%, #3e2723 50%, #5d4037 100%);
    border: 2px solid #2d1f1a;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    border-radius: 3px;
}

/* Oběť připoutaná ke kůlu */
.stake-victim {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.stake-victim.shaking {
    animation: stakeVictimShake 0.5s ease;
}

@keyframes stakeVictimShake {
    0%, 100% { transform: translateX(-50%); }
    20% { transform: translateX(calc(-50% - 5px)); }
    40% { transform: translateX(calc(-50% + 5px)); }
    60% { transform: translateX(calc(-50% - 3px)); }
    80% { transform: translateX(calc(-50% + 3px)); }
}

/* Hlava oběti */
.sv-head {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #e94560;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.sv-head img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sv-blood-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.9) 0%, rgba(200, 0, 0, 0.5) 100%);
    border-radius: 0 0 30px 30px;
    transition: height 0.3s ease;
    pointer-events: none;
}

/* Tělo */
.sv-body {
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #c0392b 0%, #96281b 100%);
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

/* Ruce */
.sv-arm-left, .sv-arm-right {
    position: absolute;
    width: 10px;
    height: 40px;
    background: linear-gradient(180deg, #c0392b 0%, #ffdbac 100%);
    border-radius: 5px;
    top: 60px;
}

.sv-arm-left {
    left: 0px;
    transform: rotate(30deg);
}

.sv-arm-right {
    right: 0px;
    transform: rotate(-30deg);
}

/* Nohy */
.sv-leg-left, .sv-leg-right {
    position: absolute;
    width: 12px;
    height: 50px;
    background: linear-gradient(180deg, #7f8c8d 0%, #636e72 100%);
    border-radius: 5px;
    top: 120px;
}

.sv-leg-left {
    left: 12px;
}

.sv-leg-right {
    right: 12px;
}

/* Provaz kolem oběti */
.sv-rope {
    position: absolute;
    width: 60px;
    height: 8px;
    background: linear-gradient(180deg, #8d6e63 0%, #5d4037 100%);
    border-radius: 4px;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
}

.sv-rope::before,
.sv-rope::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 6px;
    background: linear-gradient(180deg, #8d6e63 0%, #5d4037 100%);
    border-radius: 3px;
    left: 0;
}

.sv-rope::before {
    top: -25px;
}

.sv-rope::after {
    top: 40px;
}

/* Oběť hoří */
.stake-victim.burning {
    animation: victimBurning 0.5s ease-in-out infinite;
}

@keyframes victimBurning {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) sepia(0.5); }
}

.stake-victim.charred {
    filter: brightness(0.3) sepia(1);
    animation: victimCharred 0.3s ease-in-out infinite;
}

@keyframes victimCharred {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(calc(-50% + 2px)); }
}

/* Oheň */
.stake-fire {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 150px;
    z-index: 4;
    pointer-events: none;
}

.stake-fire.hidden {
    display: none;
}

.flame {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flameFlicker 0.3s ease-in-out infinite alternate;
}

.flame-1 {
    width: 60px;
    height: 100px;
    background: linear-gradient(to top, #ff6600 0%, #ffcc00 50%, #ffff99 100%);
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.flame-2 {
    width: 45px;
    height: 80px;
    background: linear-gradient(to top, #ff4400 0%, #ff9900 50%, #ffcc66 100%);
    left: 30%;
    animation-delay: 0.1s;
}

.flame-3 {
    width: 45px;
    height: 85px;
    background: linear-gradient(to top, #ff4400 0%, #ff9900 50%, #ffcc66 100%);
    right: 30%;
    animation-delay: 0.15s;
}

.flame-4 {
    width: 35px;
    height: 60px;
    background: linear-gradient(to top, #ff3300 0%, #ff6600 50%, #ffaa00 100%);
    left: 15%;
    animation-delay: 0.05s;
}

.flame-5 {
    width: 35px;
    height: 65px;
    background: linear-gradient(to top, #ff3300 0%, #ff6600 50%, #ffaa00 100%);
    right: 15%;
    animation-delay: 0.2s;
}

@keyframes flameFlicker {
    0% {
        transform: scaleY(1) scaleX(1);
        opacity: 0.9;
    }
    100% {
        transform: scaleY(1.15) scaleX(0.9);
        opacity: 1;
    }
}

.stake-fire.burning .flame {
    animation: flameBurn 0.2s ease-in-out infinite alternate;
}

@keyframes flameBurn {
    0% {
        transform: scaleY(0.8) scaleX(1);
        filter: brightness(0.9);
    }
    100% {
        transform: scaleY(1.1) scaleX(0.85);
        filter: brightness(1.1);
    }
}

.stake-fire.inferno .flame {
    animation: flameInferno 0.15s ease-in-out infinite alternate;
}

.stake-fire.inferno .flame-1 {
    height: 180px;
}

.stake-fire.inferno .flame-2,
.stake-fire.inferno .flame-3 {
    height: 150px;
}

.stake-fire.inferno .flame-4,
.stake-fire.inferno .flame-5 {
    height: 120px;
}

@keyframes flameInferno {
    0% {
        transform: scaleY(0.9) scaleX(1.1);
        filter: brightness(1);
    }
    100% {
        transform: scaleY(1.1) scaleX(0.8);
        filter: brightness(1.3);
    }
}

/* Útočník se zápalkami */
.stake-attacker {
    position: absolute;
    left: 80px;
    bottom: 80px;
}

.sa-head {
    width: 45px;
    height: 45px;
    background: #ffdbac;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
}

.sa-eyes {
    position: absolute;
    top: 14px;
    left: 10px;
    width: 7px;
    height: 7px;
    background: #333;
    border-radius: 50%;
    box-shadow: 16px 0 0 #333;
}

.sa-eyes::before,
.sa-eyes::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 3px;
    background: #333;
}

.sa-eyes::before {
    left: -2px;
    transform: rotate(-15deg);
}

.sa-eyes::after {
    left: 14px;
    transform: rotate(15deg);
}

.sa-mouth {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 4px;
    background: #333;
    border-radius: 10px 10px 0 0;
}

.sa-mouth.happy {
    border-radius: 0 0 10px 10px;
    background: #c9302c;
    height: 7px;
}

.sa-body {
    width: 40px;
    height: 55px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    margin: 5px auto 0;
    border-radius: 8px 8px 5px 5px;
}

.sa-arm {
    position: absolute;
    width: 50px;
    height: 14px;
    background: linear-gradient(90deg, #2c3e50 0%, #ffdbac 100%);
    border-radius: 7px;
    top: 55px;
    right: -30px;
    transform-origin: left center;
    transition: transform 0.15s ease;
}

.sa-arm.striking {
    animation: armStrike 0.4s ease;
}

@keyframes armStrike {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(30deg); }
    100% { transform: rotate(0deg); }
}

.sa-hand {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffdbac;
    border-radius: 50%;
}

.sa-legs {
    width: 35px;
    height: 45px;
    margin: 3px auto 0;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
    border-radius: 5px;
    position: relative;
}

.sa-legs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 12px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 3px;
    box-shadow: 15px 0 0 #1a1a1a;
}

/* Krabička sirek */
.matchbox {
    position: absolute;
    top: 60px;
    right: -60px;
    width: 50px;
    height: 30px;
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 3px;
    border: 2px solid #7f0000;
}

.matchbox-side {
    position: absolute;
    right: -8px;
    top: 5px;
    width: 8px;
    height: 20px;
    background: linear-gradient(90deg, #795548 0%, #5d4037 100%);
    border-radius: 0 2px 2px 0;
}

/* Sirka v krabičce */
.match {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 35px;
    background: linear-gradient(180deg, #d7ccc8 0%, #bcaaa4 100%);
    border-radius: 2px;
    transform-origin: bottom center;
}

.match-head {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 10px;
    background: linear-gradient(180deg, #ff5722 0%, #e64a19 50%, #bf360c 100%);
    border-radius: 50% 50% 30% 30%;
}

.match.strike {
    animation: matchStrike 0.4s ease;
}

@keyframes matchStrike {
    0% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(-20deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

/* Jiskry ze sirky */
.match-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffcc00;
    border-radius: 50%;
    animation: sparkFly 0.5s ease-out forwards;
    z-index: 100;
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

/* Letící hořící sirka */
.flying-match {
    position: absolute;
    left: 130px;
    bottom: 200px;
    z-index: 10;
}

.flying-match.hidden {
    display: none;
}

.match-stick {
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, #d7ccc8 0%, #bcaaa4 100%);
    border-radius: 2px;
}

.match-flame {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 18px;
    background: linear-gradient(to top, #ff6600 0%, #ffcc00 50%, #ffff99 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: matchFlame 0.1s ease-in-out infinite alternate;
}

@keyframes matchFlame {
    0% { transform: translateX(-50%) scaleY(0.9); }
    100% { transform: translateX(-50%) scaleY(1.1); }
}

.flying-match.flying {
    animation: matchFly 0.8s ease-in forwards;
}

@keyframes matchFly {
    0% {
        left: 130px;
        bottom: 200px;
        transform: rotate(0deg);
    }
    50% {
        left: 250px;
        bottom: 280px;
        transform: rotate(-180deg);
    }
    100% {
        left: 300px;
        bottom: 100px;
        transform: rotate(-360deg);
    }
}

/* Mobilní responzivita */
@media (max-height: 500px) {
    .stake-container {
        transform: scale(0.5);
        transform-origin: center center;
    }

    #stake-arena .arena-title {
        font-size: 1.3rem;
    }
}

/* Portrait mód upozornění */
@media (max-width: 900px) and (orientation: portrait) {
    #stake-arena:not(.hidden) ~ .rotate-warning {
        display: flex;
    }
}
