/* Pombo Osasco — styles.css v4.0 */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html, body {
  height: 100%;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #08080f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  user-select: none;
  overflow: hidden;
}

/* Moldura smartphone — prioriza altura máxima */
#phone {
  position: relative;
  background: linear-gradient(160deg, #2e2e42 0%, #1a1a28 100%);
  border-radius: 40px;
  padding: 16px 10px 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    0 0 0 1px #0a0a0a,
    0 0 0 3px #1e1e1e,
    0 24px 80px rgba(0,0,0,0.85),
    0 0 80px rgba(40,80,180,0.10);
}

/* Notch */
#phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 5px;
  background: #0e0e16;
  border-radius: 3px;
}

/* Barra home */
#phone::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 4px;
  background: #2a2a3a;
  border-radius: 3px;
}

/* Botões laterais */
.btn-vol {
  position: absolute;
  left: -5px; top: 72px;
  width: 5px; height: 30px;
  background: #111;
  border-radius: 3px 0 0 3px;
}
.btn-vol2 { top: 112px; }
.btn-power {
  position: absolute;
  right: -5px; top: 90px;
  width: 5px; height: 42px;
  background: #111;
  border-radius: 0 3px 3px 0;
}

canvas#view {
  display: block;
  /* Ocupa o máximo da altura disponível mantendo proporção */
  height: min(88vh, 800px);
  width: auto;
  aspect-ratio: 390 / 693;
  border-radius: 22px;
  cursor: crosshair;
  touch-action: none;
}

#hint {
  margin-top: 14px;
  font-size: 9px;
  color: #334;
  text-align: center;
  letter-spacing: 0.06em;
  font-family: 'Press Start 2P', monospace;
}
