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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f4f8;
    font-family: 'DotGothic16', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-scaler {
    width: 485px;
    height: 850px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
}

#game-container {
    width: 485px;
    height: 850px;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#game-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/IMG_4419.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.6;
}

.hidden {
    display: none !important;
}

#opening-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: opacity 1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.opening-logo {
    width: 70%;
}

#game-over-screen,
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 5px solid #FFA500;
    width: 92%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.title-logo {
    width: 70%;
    margin-bottom: 10px;
}

.description {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #555;
}

.evolution-box {
    background: #fff5e0;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.evolution-box p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.evo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    margin-bottom: 3px;
}

.evo-row img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.evo-row span {
    font-size: 0.7rem;
    color: #bbb;
}

button {
    font-family: 'DotGothic16', sans-serif;
    background: #FFA500;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #cc8400;
}

button:active {
    transform: translateY(3px);
    box-shadow: none;
}

#game-ui {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    z-index: 80;
    pointer-events: none;
}

.score-board {
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.4rem;
    border: 3px solid #eee;
}

.next-tooth-display {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#next-tooth-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#lips-cursor {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    z-index: 70;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lips-image {
    width: 100%;
}

#current-tooth-preview {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 5px;
    position: relative;
    z-index: 2;
}

#drop-guide {
    position: absolute;
    top: 75px;
    left: 50%;
    width: 0;
    height: 750px;
    border-left: 2px dashed rgba(255, 165, 0, 0.4);
    z-index: 1;
}

#canvas-area {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.game-over-text {
    color: #2b2322;
    font-size: 2rem;
    margin-bottom: 10px;
}

.result-box {
    background: #e67e22;
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

#final-score {
    font-size: 2.8rem;
    font-weight: bold;
}