:root {
    --primary: #FFDE59;
    --secondary: #7ED957;
    --accent: #FF5757;
    --dark: #2d2d2d;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

.main-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    width: 85%;
    max-width: 380px;
}

.game-title {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 30px;
    text-shadow: 3px 3px 0px var(--primary);
    letter-spacing: -2px;
}

.game-title span {
    display: block;
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: -10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"] {
    padding: 15px;
    border: 3px solid #eee;
    border-radius: 15px;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
}

.custom-file-upload {
    display: block;
    padding: 12px;
    cursor: pointer;
    background: #f0f0f0;
    border: 2px dashed #bbb;
    border-radius: 12px;
    color: #555;
    font-size: 0.9rem;
}

#imageUpload { display: none; }

.btn-start {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 0 #5eb33d;
}

.btn-start:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #5eb33d;
}

/* Game Elements */
#game-screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
}

#gameCanvas {
    width: 90vmin;
    height: 90vmin;
    background-color: #000;
    border: 6px solid var(--primary);
    border-radius: 15px;
}

.stats { color: white; font-size: 1.5rem; margin-bottom: 10px; }
.controls-hint { color: #888; margin-top: 10px; font-size: 0.8rem; }
.hidden { display: none !important; }