/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-First Optimizations (Poki-Style) */
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 50px; /* Platz für AdSense Banner */
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    width: 100%;
    height: 100vh;
    position: relative;
    /* Prevent pull-to-refresh and overscroll */
    overscroll-behavior-y: none;
    /* Disable text selection and callouts for gaming */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent tap highlight */
    -webkit-tap-highlight-color: transparent;
    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

/* Google AdSense Banner - Oberer Rand */
.ad-banner-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    max-height: 90px;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ad-banner-top ins {
    min-height: 50px;
}

#game-container {
    position: absolute;
    top: 50px; /* Unter dem AdSense Banner */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Gaming touch optimization */
    touch-action: none;
}

/* Home Screen Styles */
.home-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.2) 0%, transparent 40%),
        linear-gradient(45deg, #1a1a1a 0%, #2d1810 25%, #4a2c17 50%, #8b4513 75%, #daa520 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    pointer-events: auto;
    overflow: hidden;
}

/* Werewolf Background Elements */
.home-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Dark forest trees */
        radial-gradient(ellipse at 15% 90%, transparent 0%, transparent 25%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.3) 35%, transparent 40%),
        radial-gradient(ellipse at 85% 85%, transparent 0%, transparent 20%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.4) 30%, transparent 35%),
        radial-gradient(ellipse at 50% 88%, transparent 0%, transparent 15%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.2) 25%, transparent 30%),
        /* Full moon */
        radial-gradient(circle at 80% 15%, rgba(255, 255, 200, 0.3) 0%, rgba(255, 255, 200, 0.1) 15%, transparent 25%),
        /* Werewolf silhouettes */
        radial-gradient(ellipse at 25% 70%, rgba(139, 69, 19, 0.4) 0%, transparent 12%),
        radial-gradient(ellipse at 75% 75%, rgba(139, 69, 19, 0.3) 0%, transparent 10%),
        /* Glowing eyes */
        radial-gradient(circle at 20% 65%, rgba(255, 0, 0, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.3) 0%, transparent 2%),
        /* Forest mist */
        linear-gradient(135deg, transparent 0%, rgba(139, 69, 19, 0.1) 25%, transparent 50%, rgba(255, 140, 0, 0.05) 75%, transparent 100%);
    animation: spookyFloat 12s ease-in-out infinite;
    pointer-events: none;
}

.home-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Howling wolves */
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.3) 0%, transparent 8%),
        radial-gradient(ellipse at 60% 25%, rgba(139, 69, 19, 0.25) 0%, transparent 6%),
        radial-gradient(ellipse at 85% 35%, rgba(139, 69, 19, 0.35) 0%, transparent 7%),
        /* Forest rocks */
        radial-gradient(ellipse at 30% 85%, rgba(100, 100, 100, 0.2) 0%, transparent 12%),
        radial-gradient(ellipse at 70% 90%, rgba(100, 100, 100, 0.15) 0%, transparent 10%),
        /* Wolf eyes glowing */
        radial-gradient(circle at 15% 25%, rgba(255, 0, 0, 0.3) 0%, transparent 1.5%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 0, 0.25) 0%, transparent 1%),
        radial-gradient(circle at 60% 20%, rgba(255, 0, 0, 0.2) 0%, transparent 1%),
        /* Forest shadows */
        linear-gradient(225deg, transparent 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    animation: spookyFloat 18s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes spookyFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-10px) translateX(5px) rotate(1deg);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-5px) translateX(-3px) rotate(-0.5deg);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-15px) translateX(8px) rotate(0.5deg);
        opacity: 0.6;
    }
}

.home-screen.hidden {
    display: none;
}

.home-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    animation: fadeInUp 1s ease-out;
}

.game-title {
    font-size: 7rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-shadow:
        0 0 20px #cc0000,
        0 0 30px #cc0000,
        0 0 40px #cc0000,
        0 0 50px #cc0000,
        0 0 60px #cc0000,
        0 8px 16px rgba(0, 0, 0, 0.9);
    background: linear-gradient(45deg, #cc0000, #990000, #660000, #cc0000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: spookyGlow 3s ease-in-out infinite;
    position: relative;
    letter-spacing: 3px;
    line-height: 1.1;
}

.game-title::before {
    content: '🐺';
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    animation: spookyFloat 2s ease-in-out infinite;
    text-shadow:
        0 0 25px rgba(204, 0, 0, 0.9),
        0 0 35px rgba(204, 0, 0, 0.7);
}

.game-title::after {
    content: '🌙';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 5rem;
    animation: spookyFloat 2.5s ease-in-out infinite reverse;
    text-shadow:
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 35px rgba(255, 255, 255, 0.7);
}

@keyframes spookyGlow {

    0%,
    100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }

    50% {
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

.game-subtitle {
    font-size: 3.5rem;
    margin-bottom: 40px;
    opacity: 0.98;
    text-shadow:
        0 0 15px #ff6b6b,
        0 0 25px #ff6b6b,
        0 0 35px #ff6b6b,
        0 0 45px #ff6b6b,
        0 6px 12px rgba(0, 0, 0, 0.9);
    color: #ff6b6b;
    font-style: italic;
    font-weight: bold;
    animation: spookyFloat 4s ease-in-out infinite;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Version Info - Top Right */
.version-info-topright {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2100;
    pointer-events: none;
}

.version-info-topright #version-display {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    display: inline-block;
}


.home-buttons {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    z-index: 2100;
    pointer-events: auto;
}

.play-button {
    background: linear-gradient(135deg, #8b0000 0%, #ff0000 50%, #8b0000 100%);
    border: 4px solid #ff6b6b;
    border-radius: 50px;
    padding: 25px 60px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow:
        0 10px 30px rgba(255, 0, 0, 0.7),
        0 0 25px rgba(255, 107, 107, 0.5),
        inset 0 0 25px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    text-shadow:
        0 0 15px rgba(255, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: spookyPulse 2s ease-in-out infinite;
    letter-spacing: 1px;
}

.home-shop-button {
    background: linear-gradient(135deg, #4a2c17 0%, #8b4513 50%, #daa520 100%);
    border: 4px solid #ffd700;
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(218, 165, 32, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    text-shadow:
        0 0 12px rgba(255, 215, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: spookyPulse 2.5s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes spookyPulse {

    0%,
    100% {
        box-shadow:
            0 8px 25px rgba(255, 0, 0, 0.6),
            0 0 20px rgba(255, 107, 107, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(255, 0, 0, 0.8),
            0 0 30px rgba(255, 107, 107, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

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

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 50%, #ff0000 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(255, 0, 0, 0.8),
        0 0 40px rgba(255, 107, 107, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 15px rgba(255, 0, 0, 1);
    animation: none;
}

.home-shop-button:hover {
    background: linear-gradient(135deg, #daa520 0%, #ffd700 50%, #daa520 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.7),
        0 0 25px rgba(218, 165, 32, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(255, 215, 0, 1);
    animation: none;
}

.home-leaderboard-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border: 4px solid #FFD700;
    border-radius: 50px;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 165, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    text-shadow:
        0 0 12px rgba(255, 215, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: spookyPulse 2.5s ease-in-out infinite;
    letter-spacing: 1px;
}

.home-leaderboard-button:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 50%, #FFA500 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.7),
        0 0 25px rgba(255, 165, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(255, 215, 0, 1);
    animation: none;
}

.play-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 6px 20px rgba(255, 0, 0, 0.7),
        0 0 25px rgba(255, 107, 107, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.play-icon {
    font-size: 2.2rem;
    transition: transform 0.3s ease;
    text-shadow:
        0 0 15px rgba(255, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: spookyFloat 1.5s ease-in-out infinite;
}

.play-button:hover .play-icon {
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 0 15px rgba(255, 0, 0, 1);
    animation: none;
}

.play-text {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow:
        0 0 15px rgba(255, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

#game {
    width: 100%;
    height: 100vh;
    border: 2px solid #333;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* HUD Styles */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#hud {
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-radius: 15px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: bold;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 255, 255, 0.3);
}

.hud-label {
    color: #ff6b6b;
    font-size: 20px;
    font-weight: bold;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 107, 107, 0.5);
}

.heart {
    color: #ff4757;
    font-size: 32px;
    margin: 0 5px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 71, 87, 0.8);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hud-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 0, 0, 0.6));
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hud-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9), rgba(255, 107, 107, 0.8));
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Mobile Controls */
#mobile-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    pointer-events: auto;
    z-index: 1000;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    display: none;
    /* Standardmäßig versteckt auf Desktop */
}

.control-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.control-btn {
    width: 77px;
    height: 77px;
    min-width: 77px;
    min-height: 77px;
    padding: 0;
    margin: 0;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    font-size: 24px;
    font-weight: bold;
    color: #333;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.1s;
    touch-action: manipulation;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.control-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.7);
}

.control-btn.jump {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    font-size: 27px;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 6px 20px rgba(255, 71, 87, 0.6),
        0 0 20px rgba(255, 55, 66, 0.4);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: jumpPulse 2s ease-in-out infinite;
}

@keyframes jumpPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.control-btn.jump:active {
    background: linear-gradient(135deg, #ff3742, #ff2f3a);
    transform: scale(0.9);
    box-shadow:
        0 4px 15px rgba(255, 71, 87, 0.8),
        0 0 25px rgba(255, 55, 66, 0.6);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: auto;
}

/* Auth Modal needs higher z-index than home screen */
.auth-modal {
    z-index: 2500;
}

/* Admin Modals need higher z-index than home screen */
#admin-password-modal {
    z-index: 2500;
}

#admin-modal {
    z-index: 2500;
}

/* Info Modal needs higher z-index than home screen */
#info-modal {
    z-index: 2500;
}

/* Leaderboard Modal needs higher z-index than home screen */
#leaderboard-modal {
    z-index: 2500;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-content button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-content button:hover {
    background: #5a67d8;
}

/* Button group styling */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1;
    min-width: 150px;
    font-size: 18px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Special styling for restart button */
#restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#restart-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Styling for back to menu button */
#back-to-menu-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

#back-to-menu-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.modal-content a {
    color: #667eea;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Info Modal Content */
.info-content {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.info-content h3 {
    color: #667eea;
    margin: 20px 0 10px 0;
    font-size: 20px;
}

.info-content h3:first-child {
    margin-top: 0;
}

.info-content p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.info-content ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #555;
}

.info-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Clock Icon */
.clock-icon {
    font-size: 24px;
    margin-right: 5px;
}

/* Game Over Stats */
#final-stats {
    margin: 20px 0;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#final-stats p {
    margin: 10px 0;
    color: #333;
}

/* Leaderboard */
#leaderboard-modal {
    z-index: 2500;
}

#leaderboard-list {
    max-height: 70vh;
    overflow-y: auto;
    margin: 20px 0;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 5px;
}

.leaderboard-item:nth-child(1) {
    background: #ffd700;
}

.leaderboard-item:nth-child(2) {
    background: #c0c0c0;
}

.leaderboard-item:nth-child(3) {
    background: #cd7f32;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.leaderboard-table th:nth-child(1),
.leaderboard-table td:nth-child(1) {
    width: 15%;
    text-align: center;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
    width: 50%;
}

.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
    width: 35%;
    text-align: right;
    font-weight: bold;
}

.leaderboard-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 15px;
}

.leaderboard-table tr:nth-child(2) {
    background: #ffd700;
    font-weight: bold;
}

.leaderboard-table tr:nth-child(3) {
    background: #c0c0c0;
    font-weight: bold;
}

.leaderboard-table tr:nth-child(4) {
    background: #cd7f32;
    font-weight: bold;
}

.leaderboard-table tr:hover {
    background: #f0f0f0;
}

.leaderboard-table tr:nth-child(2):hover,
.leaderboard-table tr:nth-child(3):hover,
.leaderboard-table tr:nth-child(4):hover {
    opacity: 0.9;
}

/* Desktop Button Styles */
.secret-admin-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    z-index: 2100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: auto;
}

.secret-admin-button::before {
    content: '🔧';
    opacity: 0.6;
}

.secret-admin-button:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.secret-admin-button:hover::before {
    opacity: 1;
}

.logout-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    border: 4px solid #e74c3c;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 8px 25px rgba(231, 76, 60, 0.6),
        0 0 20px rgba(192, 57, 43, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    text-shadow:
        0 0 12px rgba(231, 76, 60, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logout-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 25px rgba(231, 76, 60, 0.7),
        0 0 25px rgba(192, 57, 43, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(231, 76, 60, 1);
}

.logout-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    text-shadow:
        0 0 15px rgba(231, 76, 60, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.logout-text {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow:
        0 0 12px rgba(231, 76, 60, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-info-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #5dade2 100%);
    border: 4px solid #2980b9;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 8px 25px rgba(52, 152, 219, 0.6),
        0 0 20px rgba(41, 128, 185, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    text-shadow:
        0 0 12px rgba(52, 152, 219, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-info-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 50%, #2980b9 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 25px rgba(52, 152, 219, 0.7),
        0 0 25px rgba(41, 128, 185, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(52, 152, 219, 1);
}

.info-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    text-shadow:
        0 0 15px rgba(52, 152, 219, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.info-text {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow:
        0 0 12px rgba(52, 152, 219, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    #game {
        width: 100%;
        height: calc(100vh - 160px);
        /* Platz für Controls: 119px button + 30px padding + 11px Puffer */
        border: none;
        border-radius: 0;
        max-width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
    }

    /* Canvas optimization for mobile */
    #game canvas {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    #ui-overlay {
        height: calc(100vh - 160px);
        /* Auch Overlay anpassen */
        position: fixed;
        top: 0;
        left: 0;
    }

    #mobile-controls {
        display: block;
        /* Mobile Controls auf Mobile anzeigen */
    }

    #hud {
        font-size: 20px;
        padding: 15px;
        top: 60px;
    }

    .hud-item {
        font-size: 18px;
    }

    .hud-label {
        font-size: 16px;
    }

    .hud-btn {
        font-size: 20px;
        padding: 10px 15px;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .control-btn {
        width: 119px;
        height: 119px;
        font-size: 41px;
    }

    .control-btn.jump {
        font-size: 48px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group button {
        min-width: auto;
        width: 100%;
    }

    .home-buttons {
        bottom: 20px;
        right: 20px;
        gap: 15px;
    }

    .play-button {
        padding: 20px 40px;
        font-size: 1.5rem;
    }

    .home-shop-button {
        padding: 18px 35px;
        font-size: 1.3rem;
    }

    .game-title {
        font-size: 5rem;
        letter-spacing: 2px;
    }

    .game-title::before,
    .game-title::after {
        font-size: 3.5rem;
        left: -60px;
        right: -60px;
    }

    .game-subtitle {
        font-size: 2.5rem;
        margin-bottom: 60px;
        letter-spacing: 1px;
    }

    .play-icon {
        font-size: 1.8rem;
    }

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

    .play-text {
        font-size: 1.5rem;
    }

    .shop-text {
        font-size: 1.3rem;
    }

    .leaderboard-text {
        font-size: 1.3rem;
    }

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

    .admin-text {
        font-size: 1.3rem;
    }

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

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .admin-content {
        margin: 10px;
        padding: 15px;
    }

    .fullscreen-text {
        font-size: 1.3rem;
    }

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

    .leaderboard-icon {
        font-size: 1.8rem;
        transition: transform 0.3s ease;
        text-shadow:
            0 0 15px rgba(255, 215, 0, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        animation: spookyFloat 1.5s ease-in-out infinite;
    }

    .leaderboard-text {
        font-size: 1.5rem;
        font-weight: bold;
        text-shadow:
            0 0 12px rgba(255, 215, 0, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    /* Secret Admin Button - Top Left Corner */
    .secret-admin-button {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        cursor: pointer;
        z-index: 2100;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: rgba(255, 255, 255, 0.5);
        pointer-events: auto;
    }

    .secret-admin-button::before {
        content: '🔧';
        opacity: 0.5;
    }

    .secret-admin-button:hover {
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
    }

    .secret-admin-button:hover::before {
        opacity: 1;
    }

    /* Info Button */
    .home-info-button {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #5dade2 100%);
        border: 4px solid #2980b9;
        border-radius: 50px;
        padding: 20px 50px;
        font-size: 1.5rem;
        font-weight: bold;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow:
            0 8px 25px rgba(52, 152, 219, 0.6),
            0 0 20px rgba(41, 128, 185, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        overflow: hidden;
        text-shadow:
            0 0 12px rgba(52, 152, 219, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        animation: spookyPulse 2.5s ease-in-out infinite;
        letter-spacing: 1px;
    }

    .home-info-button:hover {
        background: linear-gradient(135deg, #2980b9 0%, #5dade2 50%, #2980b9 100%);
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            0 8px 25px rgba(52, 152, 219, 0.7),
            0 0 25px rgba(41, 128, 185, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
        text-shadow: 0 0 12px rgba(52, 152, 219, 1);
        animation: none;
    }

    .info-icon {
        font-size: 1.8rem;
        transition: transform 0.3s ease;
        text-shadow:
            0 0 15px rgba(52, 152, 219, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        animation: spookyFloat 1.5s ease-in-out infinite;
    }

    .info-text {
        font-size: 1.5rem;
        font-weight: bold;
        text-shadow:
            0 0 12px rgba(52, 152, 219, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    /* Logout Button */
    .logout-button {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
        border: 4px solid #e74c3c;
        border-radius: 50px;
        padding: 20px 50px;
        font-size: 1.5rem;
        font-weight: bold;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow:
            0 8px 25px rgba(231, 76, 60, 0.6),
            0 0 20px rgba(192, 57, 43, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        overflow: hidden;
        text-shadow:
            0 0 12px rgba(231, 76, 60, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        animation: spookyPulse 2.5s ease-in-out infinite;
        letter-spacing: 1px;
    }

    .logout-button:hover {
        background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            0 8px 25px rgba(231, 76, 60, 0.7),
            0 0 25px rgba(192, 57, 43, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
        text-shadow: 0 0 12px rgba(231, 76, 60, 1);
        animation: none;
    }

    .logout-icon {
        font-size: 1.8rem;
        transition: transform 0.3s ease;
        text-shadow:
            0 0 15px rgba(231, 76, 60, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        animation: spookyFloat 1.5s ease-in-out infinite;
    }

    .logout-text {
        font-size: 1.5rem;
        font-weight: bold;
        text-shadow:
            0 0 12px rgba(231, 76, 60, 0.9),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/* Extra small screens (iPhone portrait) */
@media (max-width: 430px) {
    #game {
        height: calc(100vh - 150px);
        /* Platz für Controls: 102px button + 30px padding + 18px Puffer */
    }

    #ui-overlay {
        height: calc(100vh - 150px);
    }

    #mobile-controls {
        display: block;
        /* Mobile Controls auch auf kleinen Screens anzeigen */
    }

    #hud {
        font-size: 14px;
        padding: 8px;
        top: 55px;
        left: 10px;
        right: 10px;
        gap: 5px;
        flex-wrap: wrap;
    }

    .hud-item {
        font-size: 14px;
        min-width: auto;
        flex-shrink: 1;
    }

    .hud-label {
        font-size: 12px;
        display: none;
        /* Hide labels on very small screens */
    }

    #hearts {
        font-size: 16px;
    }

    .hud-btn {
        font-size: 18px;
        padding: 8px 12px;
    }

    /* Larger mobile controls for better usability */
    .control-btn {
        width: 102px;
        height: 102px;
        font-size: 34px;
    }

    .control-btn.jump {
        font-size: 41px;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* In-Game Menu Styles */
.in-game-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    pointer-events: auto;
}

.in-game-menu.hidden {
    display: none;
}

.menu-content {
    background: linear-gradient(135deg, #2d1810 0%, #4a2c17 50%, #8b4513 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 69, 19, 0.3);
    border: 3px solid rgba(255, 140, 0, 0.3);
    position: relative;
}

.menu-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow:
        0 0 10px #ff6b6b,
        0 0 20px #ff6b6b,
        0 4px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #ff6b6b, #ff0000, #8b0000, #ff6b6b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: spookyGlow 3s ease-in-out infinite;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-btn {
    background: linear-gradient(135deg, #8b4513 0%, #daa520 100%);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.menu-btn:hover {
    background: linear-gradient(135deg, #daa520 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.6);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}


.shop-icon {
    font-size: 1.8rem;
    animation: spookyFloat 1.5s ease-in-out infinite;
    text-shadow:
        0 0 12px rgba(255, 215, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.shop-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow:
        0 0 12px rgba(255, 215, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Shop Styles */
.shop-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.shop-header h2 {
    font-size: 2.5rem;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    margin: 0;
}

.coin-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 15px 25px;
    border-radius: 25px;
    border: 3px solid #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b4513;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.coin-icon {
    font-size: 2rem;
    animation: coinSpin 2s ease-in-out infinite;
}

@keyframes coinSpin {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.shop-item {
    background: linear-gradient(135deg, #2d1810, #4a2c17);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shop-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.item-preview {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: itemFloat 3s ease-in-out infinite;
}

@keyframes itemFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.shop-item h3 {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

.shop-item p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 1rem;
}

.item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.buy-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff0000);
    border: 2px solid #ff6b6b;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    width: 100%;
}

.buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.buy-btn:disabled {
    background: linear-gradient(135deg, #666, #444);
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.buy-btn.owned {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
}

.buy-btn.owned:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.close-btn {
    background: linear-gradient(135deg, #666, #444);
    border: 2px solid #666;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.close-btn:hover {
    background: linear-gradient(135deg, #555, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Admin Panel Styles */
.admin-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
}

.admin-header h2 {
    font-size: 2.5rem;
    color: #8B4513;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
    margin: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #2d1810, #4a2c17);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card h3 {
    font-size: 1.5rem;
    color: #8B4513;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    padding-bottom: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #ccc;
    font-size: 1rem;
}

.stat-item span:last-child {
    color: #8B4513;
    font-weight: bold;
    font-size: 1.1rem;
}

.users-list,
.sessions-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
}

.user-item,
.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.user-item:hover,
.session-item:hover {
    background: rgba(139, 69, 19, 0.3);
}

.user-name,
.session-info {
    color: #ccc;
    font-size: 0.9rem;
}

.user-stats,
.session-stats {
    color: #8B4513;
    font-size: 0.8rem;
    font-weight: bold;
}

/* iOS Install Prompt Styles */
.ios-install-prompt {
    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: 10000;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.ios-install-prompt.hidden {
    display: none;
}

.ios-prompt-content {
    background: linear-gradient(135deg, #2d1810, #4a2c17);
    border: 3px solid #8B4513;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

.ios-prompt-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ios-prompt-content h3 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.ios-prompt-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ios-prompt-content ol {
    text-align: left;
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 20px;
}

.ios-prompt-content li {
    margin: 10px 0;
    padding-left: 10px;
}

.ios-prompt-content strong {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.ios-prompt-benefit {
    background: rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    font-size: 1rem !important;
    color: #ffd700 !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.ios-prompt-btn {
    background: linear-gradient(135deg, #8B4513, #654321);
    border: 2px solid #8B4513;
    border-radius: 25px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.5);
    margin-top: 10px;
}

.ios-prompt-btn:hover {
    background: linear-gradient(135deg, #654321, #4a2c17);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.7);
}

/* Mobile Gaming Optimizations (Poki-Style) */
/* Prevent double-tap zoom */
button,
a,
input {
    touch-action: manipulation;
}

/* Game area - no touch delay */
#game,
canvas {
    touch-action: none;
    -ms-touch-action: none;
}

/* Prevent address bar behavior issues on mobile */
@media screen and (max-width: 768px) {

    html,
    body {
        height: 100%;
        overflow: hidden;
    }
}

/* Legal Footer - Dezent und professionell */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    text-align: center;
    font-size: 11px;
    z-index: 4500;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.legal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.legal-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

.legal-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    white-space: nowrap;
}

/* Mobile Anpassungen für Legal Footer */
@media (max-width: 768px) {
    .legal-footer {
        padding: 10px 15px;
        font-size: 10px;
    }

    .legal-footer-content {
        flex-direction: column;
        gap: 8px;
    }

    .legal-links {
        gap: 6px;
        justify-content: center;
    }

    .legal-link {
        padding: 3px 6px;
        font-size: 10px;
    }

    .legal-separator {
        font-size: 8px;
    }

    .legal-copyright {
        font-size: 9px;
    }
}

/* Extra small screens */
@media (max-width: 430px) {
    .legal-footer {
        padding: 8px 10px;
    }

    .legal-links {
        gap: 4px;
    }

    .legal-link {
        padding: 2px 5px;
        font-size: 9px;
    }
}