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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.level-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

h1 {
    color: #333;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

#gameCanvas {
    border: 3px solid #667eea;
    border-radius: 10px;
    background: #FFFFFF;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.controls {
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
}

.controls p {
    margin: 5px 0;
}

.level-transition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.level-transition h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
}

.level-transition p {
    font-size: 1.2em;
    margin: 10px 0;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-over h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.game-over p {
    font-size: 1.2em;
    margin: 10px 0;
}

.hidden {
    display: none;
}

.color-selection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.color-selection h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 400px;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.skin-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 400px;
}

.skin-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    border: 3px solid #ddd;
    transition: all 0.2s;
    background: #f9f9f9;
    min-width: 100px;
}

.skin-option:hover:not(.locked) {
    transform: scale(1.05);
    border-color: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.skin-option.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e0e0e0;
}

.skin-option.unlocked {
    opacity: 1;
    background: #f9f9f9;
}

.skin-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #333;
}

.eyeball-preview {
    background: #FFFFFF;
    position: relative;
}

.eyeball-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #4A90E2;
    border-radius: 50%;
}

.eyeball-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #000000;
    border-radius: 50%;
}


.skin-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.unlock-requirement {
    font-size: 0.75em;
    color: #666;
    text-align: center;
}

.skin-option.unlocked .unlock-requirement {
    display: none;
}

.smiley-preview {
    background: #FFD700;
    position: relative;
    border: 2px solid #000000;
}

.smiley-preview::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    box-shadow: 20px 0 0 #000000;
}

.smiley-preview::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    border: 2px solid #000000;
    border-top: none;
    border-radius: 0 0 20px 20px;
}

.donut-preview {
    background: #8B4513;
    position: relative;
    border: 2px solid #654321;
    overflow: hidden;
}

.donut-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://media.giphy.com/media/3o7aD2saQqFKXtqjm/giphy.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

