* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Baloo 2', cursive, sans-serif;
}

body {
    background-color: #2c3e50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cdefs%3E%3Cg id='dep'%3E%3Cellipse cx='0' cy='0' rx='16' ry='10' fill='%23d4ac0d' opacity='0.3'/%3E%3Cpath d='M 0,-10 A 16 10 0 0 1 0 10 Q 4 0 0 -10' fill='%23f1c40f' opacity='0.4'/%3E%3Cpath d='M 0,-10 Q 4 0 0 10' stroke='%23d4ac0d' fill='none' opacity='0.5'/%3E%3Ccircle cx='5' cy='-4' r='1' fill='%231a252f' opacity='0.3'/%3E%3Ccircle cx='5' cy='0' r='1' fill='%231a252f' opacity='0.3'/%3E%3Ccircle cx='5' cy='4' r='1' fill='%231a252f' opacity='0.3'/%3E%3Ccircle cx='9' cy='-2' r='1' fill='%231a252f' opacity='0.3'/%3E%3Ccircle cx='9' cy='2' r='1' fill='%231a252f' opacity='0.3'/%3E%3Ccircle cx='12' cy='0' r='1' fill='%231a252f' opacity='0.3'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23dep' x='40' y='50' transform='rotate(-20 40 50) scale(1.6)' /%3E%3Cuse href='%23dep' x='180' y='30' transform='rotate(55 180 30) scale(1.2)' /%3E%3Cuse href='%23dep' x='90' y='140' transform='rotate(135 90 140) scale(1.4)' /%3E%3Cuse href='%23dep' x='220' y='180' transform='rotate(-85 220 180) scale(1.8)' /%3E%3Cuse href='%23dep' x='20' y='210' transform='rotate(10 20 210) scale(1)' /%3E%3Cuse href='%23dep' x='150' y='220' transform='rotate(-40 150 220) scale(1.5)' /%3E%3C/svg%3E");
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 20px;
    background-color: #7fb069; /* Grass color */
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.screen {
    background: rgba(44, 62, 80, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    pointer-events: auto;
    border: 5px solid #f39c12;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 80%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 3rem;
    color: #f1c40f;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.instruction {
    color: #e74c3c;
    font-weight: bold;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
}

button {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Baloo 2', cursive;
    text-transform: uppercase;
    box-shadow: 0 5px 0 #d35400;
}

button:hover {
    background-color: #f39c12;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #d35400;
}

button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #d35400;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.hud-item {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.5rem;
    border: 2px solid #f1c40f;
}

input[type="text"] {
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    border: 3px solid #f39c12;
    margin-bottom: 20px;
    width: 80%;
    text-align: center;
    outline: none;
    font-family: 'Baloo 2', cursive;
    background: #ecf0f1;
    color: #2c3e50;
}

input[type="text"]:focus {
    border-color: #e67e22;
    box-shadow: 0 0 10px #f39c12;
}

.gender-select {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gender-select label {
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
    color: #f1c40f;
}

.gender-select label:hover {
    background: rgba(255,255,255,0.2);
}

.gender-select input[type="radio"] {
    transform: scale(1.5);
    margin-right: 10px;
    cursor: pointer;
}
