* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--tinta);
  color: var(--tinta);
  font-family: var(--fuente);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
#app {
  position: relative;
  max-width: var(--ancho-maximo);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--papel);
  overflow: hidden;
  touch-action: manipulation;
}
.pantalla {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding:
    max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
h1, h2 { text-align: center; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; margin: 8px 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; user-select: none; }
button:disabled { opacity: .4; cursor: default; }
.boton {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--tinta);
  border-radius: 10px;
  background: var(--papel);
}
.boton:active { transform: translateY(2px); }
.boton[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }
.boton--chico { padding: 4px 10px; }
.boton--principal {
  flex: none;
  min-height: 52px;
  background: var(--oro);
  font-weight: 700;
  font-size: 1.15rem;
}
#aviso-giro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  place-items: center;
  background: var(--tinta);
  color: var(--papel);
  font-size: 1.5rem;
}
@media (orientation: landscape) and (max-height: 500px) {
  #aviso-giro { display: grid; }
}
