/* Word Runner — shell styling. No CSS viewport units in the critical path:
   main.js sizes #game-shell / #game-container in px from visualViewport, so the
   Instagram / WebView browsers that don't support dvh can't collapse the canvas. */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #070b1e;
  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: #070b1e;
}

#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, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(10, 16, 40, 0.72);
  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: #cfe0ff;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  letter-spacing: 1px;
  background: #070b1e;
  z-index: 30;
  transition: opacity 0.4s ease;
}
#loading.hidden { opacity: 0; pointer-events: none; }
