/* Attic Breaker — mobile-first shell styles */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #05040c;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #05040c;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
canvas#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #05040c;
  touch-action: none;
  -webkit-touch-callout: none;
}
/* Invisible probe: lets JS read env(safe-area-inset-*) in px via
   getComputedStyle (canvas 2D has no direct access to CSS env()). */
#safeAreaProbe {
  position: fixed;
  inset: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  pointer-events: none;
  visibility: hidden;
  z-index: -1;
}

#gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #12102a 0%, #05040c 70%);
  z-index: 20;
  cursor: pointer;
}
#gate.hidden { display: none; }
#gateInner { text-align: center; color: #eafcff; }
#gateTitle {
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #5ee6ff, #ff5ec8 50%, #b0ff5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#gateSub {
  margin-top: 14px;
  font-size: clamp(14px, 3.5vw, 20px);
  color: rgba(255,255,255,0.7);
  animation: pulseSub 1.6s ease-in-out infinite;
}
@keyframes pulseSub {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
