/* Jornada do Bem — folha de estilo
   O jogo é desenhado inteiro no <canvas>; aqui só garantimos que ele fique
   centralizado, com proporção 16:9 e sem barras de rolagem em qualquer tela. */

:root {
  --fundo-1: #16213e;
  --fundo-2: #0b1020;
  --laranja: #f28c1e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--fundo-2);
}

body {
  /* cor da areia: se o canvas demorar um instante a desenhar, não pisca escuro */
  background: #e4c890;
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

#palco {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* toque rápido na tela não vira zoom de dois toques */
#jogo { touch-action: manipulation; }

.painel-nome {
  position: fixed;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(92vw, 440px);
  padding: 9px 12px;
  border: 1px solid rgba(255, 210, 63, 0.8);
  border-radius: 16px;
  background: rgba(27, 27, 47, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.painel-nome[hidden] { display: none; }

.painel-nome label {
  flex: 0 0 auto;
  color: #ffd23f;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.painel-nome input {
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d6dbea;
  border-radius: 10px;
  outline-color: #f28c1e;
  background: #fff;
  color: #1b1b2f;
  font: 800 16px 'Nunito', 'Segoe UI', system-ui, sans-serif;
  -webkit-user-select: text;
  user-select: text;
}
