/* Spaghetti Slurp! — full-screen kids game shell */
:root {
  --ink: #5b3a12;
  --tomato: #e23b2e;
  --tomato-dark: #b3221a;
  --cream: #fff6e3;
  --gold: #ffcf3d;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  background: #ffe9c9;
  font-family: "Baloo", "Comic Sans MS", "Chalkboard SE", "Arial Rounded MT Bold", "Comic Neue", sans-serif;
  position: fixed;
  inset: 0;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.iconbtn {
  pointer-events: auto;
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85);
  background: rgba(226, 59, 46, .88);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.22);
  transition: transform .08s ease;
}
.iconbtn:active { transform: scale(.9); }
.iconbtn svg { pointer-events: none; }

#fsBtn { right: calc(var(--safe-right) + 10px); }
#sndBtn { right: calc(var(--safe-right) + 76px); background: rgba(91, 58, 18, .82); }

#hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 12px);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  background: rgba(255, 246, 227, .94);
  color: var(--ink);
  font-size: clamp(15px, 4.2vw, 24px);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 16px rgba(0,0,0,.20);
  white-space: nowrap;
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 480px) {
  .iconbtn { width: 46px; height: 46px; }
}
