/* Bella Figura — shell styling. Warm trattoria palette. No CSS viewport units
   in the critical path: main.js sizes the shell in px from visualViewport so
   Instagram/WebView browsers without dvh support can't collapse the canvas. */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #160f0a;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

#game-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #160f0a;
}

#game-container { position: relative; }
#game-container canvas { display: block; }

.corner-btn {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 235, 200, 0.25);
  border-radius: 10px;
  background: rgba(38, 24, 14, 0.78);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background 0.15s ease;
}
.corner-btn:active { transform: scale(0.92); }

#mute-btn { right: max(10px, env(safe-area-inset-right)); }
#fullscreen-btn { right: calc(max(10px, env(safe-area-inset-right)) + 50px); }

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe9c2;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  background: #160f0a;
  z-index: 30;
  transition: opacity 0.4s ease;
}
#loading.hidden { opacity: 0; pointer-events: none; }
