/* Il codice d'accesso a una modalità (engine/ModeAccess.js, docs/mode-access.md): un dialogo minimale sopra al menu
   principale, coi colori della scheda della modalità (shell.css, `.mode-card`: SIGNAL arancio, FRAGMENTS viola). Sta nel
   livello in cima del browser (`showModal`) e in `body`: non sposta e non veste niente del menu, e le regole del menu non
   vestono lui. Il campo riscrive ogni proprietà dello `input` globale di styles.css (altezza, margine, fondo). */
.access-dialog {
  --tone: #ff6b2c;
  --ground: #231722;
  --ground-deep: #140e1d;
  width: min(100% - 32px, 340px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.access-dialog[data-mode="fragments"] { --tone: #9a6cff; --ground: #1d1846; --ground-deep: #110d2e; }
/* La classifica non ha una scheda sua: l'indaco del menu principale. */
.access-dialog[data-mode="ranking"] { --tone: #8f78ff; --ground: #201d4a; --ground-deep: #110d2e; }
.access-dialog::backdrop { background: #04030dcc; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.access-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 18px 16px;
  border: 2px solid var(--tone);
  border-radius: 16px;
  background:
    radial-gradient(80% 110% at 0% 0%, color-mix(in oklab, var(--tone) 8%, transparent), transparent 70%),
    linear-gradient(165deg, var(--ground), var(--ground-deep));
  box-shadow: 0 24px 30px -16px #020110e6, 0 0 18px color-mix(in oklab, var(--tone) 50%, transparent), 0 0 3px var(--tone);
}
.access-title { font: 600 16px/1.15 Orbitron, Manrope, sans-serif; letter-spacing: .3em; color: #fff; }
.access-input {
  display: block;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  border: 1px solid color-mix(in oklab, var(--tone) 60%, transparent);
  border-radius: 10px;
  background: #0a0818cc;
  box-shadow: none;
  color: #fff;
  font: 500 16px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
}
.access-input::placeholder { color: #8a85b8; letter-spacing: .06em; text-transform: none; opacity: 1; }
.access-input:focus { outline: 0; border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tone) 30%, transparent); }
.access-error { min-height: 16px; margin: -4px 0 0; font: 600 12px/1.3 Manrope, sans-serif; color: #ffb27a; }
.access-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.access-button {
  height: 42px;
  margin: 0;
  padding: 0 8px;
  border-radius: 10px;
  font: 700 12px/1 Orbitron, Manrope, sans-serif;
  letter-spacing: .16em;
  cursor: pointer;
}
.access-button.cancel { border: 1px solid #5d56b0; background: transparent; color: #c9c3f2; }
.access-button.enter { border: 1px solid transparent; background: var(--tone); color: #fff; text-shadow: 0 1px 2px #0006; }
.access-button:focus-visible { outline: 2px solid #fff3e6; outline-offset: 2px; }
.access-button:disabled { opacity: .6; cursor: progress; }
