/* Podstawowe style */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Bangers', cursive;
}

        .game-area {
            background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
                        url('../assets/images/jungla.jpg');
            background-size: cover;
            background-position: center;
            height: 80vh;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .game-ui {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 100;
        }

        .game-stats {
            display: flex;
            flex-direction: column;
            gap: 10px;
            font-size: 1.2em;
            font-weight: bold;
        }

        .timer {
            color: #FF8C00;
        }

        .banana {
            position: absolute;
            font-size: 2.5em;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.3s ease;
            filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
            animation: float 3s ease-in-out infinite;
        }

        .banana:hover {
            opacity: 1;
            transform: scale(1.2);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .game-controls {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
            z-index: 100;
        }

        .control-btn {
            background: #FFD700;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.2em;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .control-btn:hover {
            transform: scale(1.05);
        }

        .level-complete {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            display: none;
            z-index: 200;
        }

        .level-complete.show {
            display: block;
            animation: popIn 0.5s ease-out;
        }

        @keyframes popIn {
            0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
        }

        .highscores {
            background: white;
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .scores-list {
            margin-top: 15px;
        }

        .score-date {
            color: #666;
            font-size: 0.8em;
            margin-left: 10px;
        }

        .score-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: white;
            margin-bottom: 8px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.2s;
        }

        .score-entry:hover {
            transform: translateX(5px);
        }

        .score-entry.current-player {
            background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,140,0,0.1));
            border: 2px solid #FFD700;
        }

        .score-entry.separator {
            background: none;
            box-shadow: none;
            color: #666;
            text-align: center;
            padding: 5px;
        }

        .score-entry.empty-scores {
            text-align: center;
            color: #666;
            font-style: italic;
            justify-content: center;
        }

        .score-entry span {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .score-input {
            margin: 20px 0;
        }

        .score-input input {
            padding: 10px;
            border: 2px solid #FFD700;
            border-radius: 10px;
            margin: 10px 0;
            font-size: 1em;
            width: 200px;
        }

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

        .points-popup {
            position: absolute;
            color: #FFD700;
            font-size: 1.5em;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            pointer-events: none;
            z-index: 100;
            animation: pointsFloat 1s ease-out forwards;
        }

        @keyframes pointsFloat {
            0% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
            100% {
                transform: translateY(-50px) scale(1.5);
                opacity: 0;
            }
        }

        .game-stats div {
            background: rgba(255, 255, 255, 0.9);
            padding: 8px 15px;
            border-radius: 10px;
            margin-bottom: 5px;
        }

        #currentScore {
            color: #FFD700;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        .bonus-points {
            color: #FFD700;
            font-weight: bold;
            font-size: 1.2em;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        .total-points {
            margin-top: 15px;
            font-size: 1.1em;
        }

        .total-score {
            margin-top: 5px;
            font-size: 1.2em;
            color: #FF8C00;
        }

        .score-entry.empty-scores span:first-child {
            font-size: 1.5em;
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
        }

        .score-entry.empty-place {
            color: #999;
            font-style: italic;
            opacity: 0.7;
        }

        .game-header {
            position: relative;
            text-align: center;
            padding: 20px;
            margin-bottom: 20px;
        }

        .user-profile {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 100;
        }

        .user-status {
            background: white;
            padding: 10px 15px;
            border-radius: 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: transform 0.2s;
        }

        .user-status:hover {
            transform: translateY(-2px);
        }

        .login-link {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #2C1810;
        }

        .user-logged {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .user-icon {
            font-size: 1.5em;
        }

        .user-text {
            font-weight: bold;
        }

        .logout-btn {
            background: #FF8C00;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 15px;
            margin-left: 10px;
            cursor: pointer;
            font-size: 0.9em;
            transition: background 0.2s;
        }

        .logout-btn:hover {
            background: #FFD700;
            color: #2C1810;
        }

        @media (max-width: 768px) {
            .user-profile {
                position: static;
                margin-top: 10px;
                text-align: center;
            }

            .user-status {
                display: inline-flex;
                margin: 0 auto;
            }
        }