/* Paleta provisória (igual a theme.js): fundo quase preto, fogo e LED. */
:root {
  --bg: #08070B; --surface: #16111A; --fg: #F2E9E4; --muted: #7D6E78; --border: #3A2630;
  --ember: #B3121B; --red: #E8352B; --orange: #FF7A1A; --yellow: #FFC93C; --cyan: #3CF2FF;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; touch-action: none; }
body {
  background: var(--bg); color: var(--fg);
  font: 16px/1.35 ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  height: 100dvh; user-select: none; -webkit-user-select: none; overscroll-behavior: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; touch-action: manipulation; }

/* O jogo ocupa a área segura; o canvas é centralizado (letterbox) e escalado por inteiro em app.js. */
main {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#game { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #000; touch-action: none; }

.msg { padding: 16px; text-align: center; }
.list { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn { background: var(--surface); border: 1px solid var(--border); padding: 10px 16px; cursor: pointer; }

/* "gire o aparelho": por cima de tudo quando um aparelho de toque está em pé */
.rotate {
  position: fixed; inset: 0; z-index: 20; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--orange); text-align: center;
}
.rotate[hidden] { display: none; }
.rotate p { margin: 0; font-size: 18px; letter-spacing: 1px; }
.phone {
  width: 36px; height: 64px; border: 4px solid var(--cyan); border-radius: 6px;
  animation: girar 2s ease-in-out infinite;
}
@keyframes girar { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; transform: rotate(-90deg); } }

.banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10;
  max-width: calc(100% - 24px); padding: 8px 14px; background: var(--surface); border: 1px solid var(--orange);
  font-size: 14px; text-align: center; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.banner[hidden] { display: none; }
.banner.tap { cursor: pointer; color: var(--yellow); }
