*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
overflow:hidden;
font-family:Arial;
background:#87ceeb;
}

canvas{
display:block;
}

/* =========================
MENU
========================= */

#menu{
position:absolute;
inset:0;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
background:linear-gradient(#6ec6ff,#dff6ff);
z-index:20;
text-align:center;
padding:20px;
}

#menu h1{
font-size:70px;
color:white;
margin-bottom:20px;
text-shadow:4px 4px 10px rgba(0,0,0,0.4);
}

.menu-box{
background:rgba(255,255,255,0.25);
backdrop-filter:blur(8px);
padding:18px;
border-radius:18px;
width:360px;
margin-bottom:16px;
color:white;
font-size:20px;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

button{
padding:16px 34px;
font-size:24px;
font-weight:bold;
border:none;
border-radius:12px;
background:#4caf50;
color:white;
cursor:pointer;
transition:0.2s;
}

button:hover{
transform:scale(1.05);
background:#43a047;
}

/* =========================
UI
========================= */

#ui{
position:absolute;
top:15px;
left:15px;
font-size:24px;
font-weight:bold;
color:white;
display:none;
z-index:10;
text-shadow:2px 2px 5px rgba(0,0,0,0.7);
}

/* =========================
LEVEL MESSAGE
========================= */

#levelMessage{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
font-size:54px;
font-weight:bold;
color:white;
text-shadow:4px 4px 10px rgba(0,0,0,0.7);
opacity:0;
pointer-events:none;
transition:opacity 0.4s;
z-index:30;
}

/* =========================
TOUCH CONTROLS
========================= */

#touchControls{
position:absolute;
bottom:20px;
width:100%;
display:flex;
justify-content:space-between;
padding:0 20px;
z-index:50;
}

#touchControls div{
width:70px;
height:70px;
background:rgba(255,255,255,0.25);
backdrop-filter:blur(6px);
border-radius:15px;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
color:white;
user-select:none;
touch-action:none;
}

#touchControls div:active{
transform:scale(0.9);
background:rgba(255,255,255,0.4);
}