@font-face {
    font-family: 'Squid Game';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2110@1.0/SquidGame.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 600px;
    background-image: url('background.png');
    background-size: cover;
    background-position: center bottom;
    position: relative;
    border: 5px solid #D90D69;
    box-shadow: 0 0 20px #D90D69;
}

#start-screen, #game-over-screen, #win-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

h1 {
    font-family: 'Squid Game', sans-serif;
    font-size: 5rem;
    color: #FF006E;
    text-shadow: 3px 3px 0px #fff, 0 0 30px #FF006E;
    margin: 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #eee;
}

p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 80%;
}

button {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    padding: 10px 30px;
    font-size: 1.5rem;
    background-color: #D90D69;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #FF006E;
    transform: scale(1.05);
    box-shadow: 0 0 15px #FF006E;
}

.hidden {
    display: none !important;
}

#game-area {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#timer {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    font-weight: bold;
    background-color: rgba(0,0,0,0.7);
    padding: 5px 15px;
    border-radius: 5px;
    color: #FF006E;
    border: 2px solid #FF006E;
}

#finish-line {
    position: absolute;
    top: 100px;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
    opacity: 0.7;
    box-shadow: 0 0 10px white;
}

#player {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 70px;
    background-image: url('player.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: bottom 0.1s linear;
}

#doll {
    position: absolute;
    top: 40px;
    left: 50%;
    transform-origin: center bottom;
    transform: translateX(-50%) rotateY(0deg) scale(0.9);
    width: 60px;
    height: 110px;
    background-image: url('doll.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease-in-out;
}

.doll-red {
    transform: translateX(-50%) rotateY(180deg) scale(1) !important;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

