*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{

font-family:
"Comic Sans MS",
"Trebuchet MS",
sans-serif;

min-height:100vh;

background:
linear-gradient(
180deg,
#7bdcff,
#c8f7ff,
#c7ff9b
);

overflow-x:hidden;
overflow-y:auto;

}

.game{

min-height:100vh;

display:flex;

flex-direction:column;

align-items:center;

padding:10px;

}

.logo{

width:clamp(110px,22vw,180px);

margin-bottom:10px;

}

h1{

color:#ff5ca8;

font-size:clamp(28px,5vw,44px);

margin-bottom:5px;

}

#subtitle{

font-size:20px;

margin-bottom:20px;

}

#levelBox{

display:flex;

justify-content:space-between;

align-items:center;

width:min(900px,95%);

margin-bottom:20px;

gap:15px;

}

#category,
#score{

background:white;

padding:12px 22px;

border-radius:25px;

box-shadow:
0 5px 15px rgba(0,0,0,.12);

font-size:20px;

font-weight:bold;

color:#ff5ca8;

}

#gameArea{

width:min(1100px,95%);

min-height:400px;

display:flex;

justify-content:space-between;

gap:40px;

align-items:center;

}

#animals{

display:flex;

flex-direction:column;

gap:18px;

}

.animal{

font-size:48px;

cursor:grab;

transition:.25s;

user-select:none;

touch-action:none;

}

.animal:hover{

transform:scale(1.15);

}

.animal.dragging{

opacity:.45;

transform:scale(.9);

}

#targets{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:20px;

width:55%;

}

.dropzone{

height:90px;

background:white;

border:4px dashed #ff77bb;

border-radius:20px;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

font-size:20px;

font-weight:bold;

transition:.25s;

box-shadow:
0 5px 15px rgba(0,0,0,.1);

}

.dropzone.hover{

transform:scale(1.04);

background:#fff8cc;

}

.dropzone.correct{

background:#baffc5;

border-color:#39b54a;

animation:success .4s;

}

@keyframes success{

50%{

transform:scale(1.12);

}

}

#message{

margin-top:15px;

font-size:20px;

font-weight:bold;

color:#ff5ca8;

text-align:center;

}

#progress{

margin-top:10px;

font-size:22px;

font-weight:bold;

color:#444;

}

.back-button,
#restart{

position:absolute;

top:15px;

padding:10px 18px;

border:none;

border-radius:30px;

background:rgba(255,255,255,.75);

font-size:22px;

cursor:pointer;

box-shadow:
0 4px 10px rgba(0,0,0,.1);

transition:.2s;

text-decoration:none;

}

.back-button{

left:15px;

}

#restart{

right:15px;

}

.back-button:hover,
#restart:hover{

transform:scale(1.08);

}

.back-button:active,
#restart:active{

transform:scale(.95);

}

#confetti{

position:fixed;

left:0;

top:0;

width:100%;

height:100%;

pointer-events:none;

}

@media(max-width:900px){

#gameArea{

flex-direction:column;

gap:20px;

}

#animals{

flex-direction:row;

flex-wrap:wrap;

justify-content:center;

}

#targets{

width:100%;

grid-template-columns:repeat(2,1fr);

}

.animal{

font-size:60px;

}

.dropzone{

height:120px;

font-size:24px;

}

}

@media(max-width:600px){

h1{

font-size:34px;

}

#subtitle{

font-size:18px;

}

#category,
#score{

padding:8px 15px;

font-size:16px;

}

.dropzone{

height:100px;

font-size:20px;

}

.animal{

font-size:52px;

}

#message{

font-size:20px;

}

#progress{

font-size:18px;

}

}

#lives,
#stars{

background:white;

padding:10px 20px;

border-radius:25px;

font-size:22px;

color:#ff5ca8;

box-shadow:
0 4px 10px rgba(0,0,0,.1);

margin:5px;

}



#mascot{

position:absolute;

bottom:80px;

left:20px;

font-size:48px;

animation:bounce 2s infinite;

}



@keyframes bounce{

50%{

transform:translateY(-10px);

}

}

#startScreen{

position:fixed;

inset:0;
min-height:100vh;

overflow-y:auto;
background:
linear-gradient(
180deg,
#7bdcff,
#c7ff9b
);

display:flex;

flex-direction:column;

align-items:center;

justify-content:center;

z-index:100;

}



#hatta{

font-size:70px;

animation:bounce 2s infinite;

}



#playerName{

padding:15px;

border-radius:30px;

border:none;

font-size:20px;

text-align:center;

margin:20px;

}



#startButton{

padding:12px 30px;

border:none;

border-radius:40px;

background:#ff5ca8;

color:white;

font-size:20px;

cursor:pointer;

}



#bookInfo{

background:white;

padding:20px;

border-radius:25px;

margin-top:30px;

font-size:22px;

}



#mapScreen{

display:none;

}



.map{

display:grid;

grid-template-columns:repeat(2,200px);

gap:25px;

justify-content:center;

}



.area{

height:150px;

border-radius:30px;

font-size:25px;

border:none;

background:white;

box-shadow:
0 5px 15px #999;

}



.locked{

opacity:.5;

}

#bookScreen{

display:none;

position:fixed;

inset:0;
overflow-y:auto;
background:

linear-gradient(
180deg,
#fff2a8,
#c8f7ff
);

z-index:200;

padding:30px;

text-align:center;

}



#bookAnimals{

display:grid;

grid-template-columns:
repeat(4,120px);

gap:20px;

justify-content:center;

margin-top:30px;

}



.bookAnimal{

background:white;

border-radius:25px;

padding:15px;

font-size:55px;

box-shadow:

0 5px 15px rgba(0,0,0,.15);

cursor:pointer;

}



.bookAnimal:hover{

transform:scale(1.1);

}



#closeBook,
#openBook{

background:#ff5ca8;

color:white;

border:none;

padding:15px 30px;

border-radius:30px;

font-size:20px;

cursor:pointer;

margin:20px;

}



.fact{

font-size:20px;

margin-top:15px;

background:white;

border-radius:20px;

padding:20px;

}

@media(max-width:600px){

.game{

padding-top:70px;

}


#levelBox{

flex-wrap:wrap;

justify-content:center;

}


#gameArea{

min-height:auto;

}


#animals{

max-width:100%;

}


.animal{

font-size:45px;

}


.dropzone{

min-height:90px;

height:auto;

padding:10px;

}


#targets{

gap:10px;

}


#message{

margin-bottom:30px;

}

}

@media(min-width:900px){

.game{
    transform:scale(.85);
    transform-origin:top center;
}

#gameArea{
    max-width:900px;
}

.dropzone{
    height:90px;
}

.animal{
    font-size:50px;
}

}

@media(max-width:600px){

#mascot{

font-size:45px;
bottom:20px;
left:5px;
z-index:0;

}

.game{

position:relative;
z-index:1;

}

}