/* HEAT: full-screen canvas and HUD layers */
html, body { width: 100%; height: 100%; overscroll-behavior: none; }
body { background: #0b0d14; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#APP { touch-action: none; }
#CANVAS_3D, #CANVAS_2D { touch-action: none; image-rendering: pixelated; }

.heat-chip {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); z-index: 30;
  min-width: 44px; height: 44px; padding: 0 10px;
  border: 2px solid rgba(255,255,255,.35); border-radius: 8px;
  background: rgba(10,12,20,.55); color: #fff; font: 700 14px/1 ui-monospace, Menlo, Consolas, monospace;
  touch-action: manipulation;
}
.heat-chip-left { left: calc(8px + env(safe-area-inset-left)); }
.heat-chip-right { right: calc(8px + env(safe-area-inset-right)); }

.heat-debug {
  position: fixed; left: calc(8px + env(safe-area-inset-left)); top: calc(60px + env(safe-area-inset-top)); z-index: 29;
  max-width: min(92vw, 520px); padding: 8px 10px; border-radius: 6px;
  background: rgba(0,0,0,.72); color: #9cff9c; pointer-events: none;
  font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word;
}

.heat-overlay {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  background: rgba(5,6,12,.82); padding: 16px;
}
.heat-panel {
  width: min(92vw, 380px); padding: 22px 20px; border-radius: 12px; text-align: center; color: #fff;
  background: #151927; border: 2px solid #e23b2e; display: flex; flex-direction: column; gap: 12px;
}
.heat-panel h1 { margin: 0; font-size: 34px; letter-spacing: 6px; color: #ff5a3c; }
.heat-panel p { margin: 0; font-size: 16px; line-height: 1.4; }
.heat-panel small { font-size: 11px; line-height: 1.35; color: #8f96b3; }
.heat-btn {
  min-height: 52px; border: 0; border-radius: 10px; background: #e23b2e; color: #fff;
  font-size: 18px; font-weight: 700; touch-action: manipulation;
}
.heat-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.4); }
