/* ─────────────────────────────────────────────────────────────────────────────
   MENÚ DE PARTIDA Y SMARTROTOM (js/ui/screens/screens-menus.js)
   Una hoja por zona, como js/ui/screens/. Ver "Estilos (CSS)" en AGENTS.md.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── MENÚ DE PARTIDA (Screens._showGameMenu) — mismo aspecto que el título ── */
.game-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  animation: fade-in 150ms ease;
}
.game-menu__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-lg);
  width: min(80vw, 300px);
  padding: var(--sp-lg);
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.game-menu__title {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--yellow-dark), 4px 4px 0 rgba(0,0,0,.3);
  letter-spacing: 2px;
}
.game-menu__check { gap: 10px; cursor: pointer; }
.game-menu__check input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
  cursor: pointer;
}
/* Fila de volumen (Screens._musicSettingsHtml): todo el ancho y el texto en blanco sobre el rojo */
.game-menu__row { width: 100%; }
.game-menu__label { color: var(--white); text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
/* Separado del resto, como DATOS en el título */
.game-menu__exit { margin-top: 8px; background: var(--grey-dark); color: var(--white); }
/* Con una lista larga de botones (SmartRotom): la lista hace scroll */
.game-menu__panel--list { max-height: 80vh; gap: var(--sp-md); }
.game-menu__head { display: flex; align-items: center; gap: var(--sp-sm); }
.game-menu__icon { width: 36px; height: 36px; image-rendering: pixelated; }
.game-menu__subtitle { margin-top: 6px; font-family: var(--font-pixel); font-size: var(--fs-7); color: var(--white); opacity: .8; }
.game-menu__list { min-height: 0; overflow-y: auto; padding: 0 6px 6px 0; scrollbar-width: thin; }
.game-menu__list .btn { flex-shrink: 0; }
/* La ruta actual: en rojo como CONTINUAR, sin atenuar aunque no se pueda pulsar */
.game-menu__list .btn--primary:disabled { opacity: 1; }
/* Hardcore: una sección plegable por región (<details>), con una flecha que gira al abrirse */
.rotom-region { display: block; width: 100%; }
.rotom-region__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-pixel);
  font-size: var(--fs-7);
  color: var(--yellow);
  text-shadow: 1px 1px 0 rgba(0,0,0,.4);
}
.rotom-region__head::-webkit-details-marker { display: none; }
.rotom-region__head::before { content: '▸'; font-size: 14px; transition: transform .15s; }
.rotom-region[open] > .rotom-region__head::before { transform: rotate(90deg); }
.rotom-region__list { max-width: none; padding-bottom: var(--sp-sm); }
.rotom-region__note { margin: 0; text-align: center; font-family: var(--font-pixel); font-size: var(--fs-7); line-height: 1.6; color: var(--white); opacity: .8; }
