/* Game Central - estilos compartidos (menu y todos los juegos). Estilo Tagttoo. */
:root {
  --bg: #000000;
  --panel: #111111;
  --panel-2: #1a1a1a;
  --line: #2a2a2a;
  --gold: #fccb68;
  --red: #ff4444;
  --text: #ffffff;
  --muted: #9a9a9a;
  --radius: 14px;
  --font: Montserrat, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; min-height: 100dvh; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background: rgba(0,0,0,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.bar h1 { margin: 0; font-size: 15px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px;
  padding: 0 8px 0 2px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text);
  justify-self: start;
}
.bar-right { justify-self: end; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

main { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
h2 { font-size: 22px; font-weight: 900; margin: 6px 0 6px; line-height: 1.2; }
p { line-height: 1.5; margin: 0 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--gold);
  background: var(--gold); color: #000; font-weight: 900; font-size: 15px; cursor: pointer;
  letter-spacing: .02em; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.block { display: flex; width: 100%; }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .card:focus-visible, input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.grid { display: grid; gap: 12px; }
.card {
  display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 84px;
}
a.card:hover, a.card:active { border-color: var(--gold); }
.card .icon { font-size: 34px; line-height: 1; width: 52px; text-align: center; flex: none; }
.card h3 { margin: 0 0 2px; font-size: 16px; font-weight: 900; }
.card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.card .badge { margin-left: auto; flex: none; font-size: 11px; font-weight: 900; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold); }
.card.soon { opacity: .6; }
.card.soon .badge { border-color: var(--muted); color: var(--muted); }

.error { background: #2a0d0d; border: 1px solid var(--red); color: #ffb3b3; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 12px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
