:root {
    --primary: #f1c40f;
    --secondary: #2ecc71;
    --danger: #e74c3c;
    --dark: #1a1a1a;
    --bg-gradient: radial-gradient(circle, #2c3e50, #000);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    width: 400px;
    position: relative;
}

.screen {
    background: rgba(30, 30, 30, 0.95);
    padding: 30px;
    border-radius: 20px;
    border: 4px solid var(--primary);
    text-align: center;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.hidden { display: none; }

/* Typography */
.game-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    text-shadow: 3px 3px #000;
}

.subtitle { color: #bdc3c7; margin-bottom: 30px; }

/* Buttons */
button {
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background 0.2s;
}

button:active { transform: scale(0.95); }

.btn-main {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 10px;
}

.lvl-btn {
    background: #34495e;
    color: white;
    padding: 20px;
    font-size: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--primary);
}

.btn-back { background: #95a5a6; margin-top: 20px; padding: 10px 20px; border-radius: 5px; }
.btn-finish { background: var(--secondary); padding: 15px 30px; border-radius: 10px; font-weight: bold; width: 100%; }

/* Game Canvas */
#game-canvas {
    height: 250px;
    background: #333;
    margin: 20px 0;
    position: relative;
    border: 2px inset #111;
    overflow: hidden;
}

#bob-character {
    width: 40px; height: 40px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    bottom: 20px; left: 20px;
    border: 3px solid white;
}

.item {
    font-size: 30px;
    position: absolute;
    top: 40%; right: 40px;
    animation: bounce 1s infinite;
}

.guard {
    width: 30px; height: 30px;
    background: var(--danger);
    position: absolute;
    top: 20px; right: 20px;
    border-radius: 4px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.points-container {
    text-align: left;
    background: #222;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}