/* Base común de nuestros juegos para probar. Cada demo pone sus colores en
   :root (--bg, --ink, --accent...) y su propio CSS encima. */
@font-face {
  font-family: "Jakarta";
  src: url("../../empresas/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../../empresas/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page, var(--bg));
  color: var(--ink);
  font: 16px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .display { font-family: "Jakarta", "Inter", system-ui, sans-serif; margin: 0; line-height: 1.1; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 2px; }

/* La app: una columna de móvil, centrada en pantallas grandes. */
.app {
  position: relative;
  width: 100%; max-width: 440px; min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex; flex-direction: column;
}
@media (min-width: 600px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 90px); border-radius: 28px; overflow: clip; box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
  .gg-notice { margin-top: 14px; border-radius: 12px; }
}
.screen { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 24px; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 800 1.15rem/1 "Jakarta", system-ui, sans-serif;
  text-decoration: none; box-shadow: 0 4px 0 var(--accent-shadow, rgb(0 0 0 / .25));
  transition: transform .08s ease;
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-shadow, rgb(0 0 0 / .25)); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; }
.link { background: none; border: 0; padding: 10px; text-decoration: underline; font-weight: 700; min-height: 44px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input {
  min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--line, currentColor); background: var(--field, #fff); color: var(--field-ink, #111);
  font-size: 16px;
}
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.pill-note { display: inline-block; margin-left: 4px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 700; vertical-align: 1px; }

/* El aviso de demo y los mensajes cortos */
/* Va después de la app, no encima: no tapa nada (en los móviles, al
   final de la página). */
.gg-notice {
  width: 100%; max-width: 440px; margin: 0 auto; padding: 10px 14px;
  background: rgb(0 0 0 / .78); color: #fff; font: 12px/1.35 "Inter", system-ui, sans-serif; text-align: center;
}
.gg-notice a { color: #fff; font-weight: 700; }
.gg-toast {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 60;
  padding: 10px 18px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; font-size: .95rem;
}
.gg-qr { display: inline-block; background: #fff; line-height: 0; }
.gg-qr svg { display: block; width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
