/* JARVIS v2 · LA PORTA con la grafica della porta della v1 (26/10/2026; la v1 è tolta l'1/11/2026). Colori, caratteri e misure SOLO dai gettoni. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--fondo); color: var(--testo); font: 400 var(--t-base)/1.45 var(--f-testo); overflow: hidden; -webkit-font-smoothing: antialiased; }
.display { font-family: var(--f-titoli); font-weight: var(--display-peso); letter-spacing: var(--display-spazio); text-transform: var(--display-maiuscolo); }
.mono { font-family: var(--f-numeri); }
button { font: inherit; color: inherit; }
#fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.porta { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; padding: 24px 16px 70px; }
.aureola { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(70vw, 560px); aspect-ratio: 1; pointer-events: none; }
.aureola span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hud-3); animation: respira 9s ease-in-out infinite; }
.aureola span:nth-child(2) { inset: 12%; animation-delay: -3s; border-color: var(--vetro-bordo); }
.aureola span:nth-child(3) { inset: 24%; animation-delay: -6s; }
@keyframes respira { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.04); opacity: 1; } }
.scheda {
  width: min(100%, 400px); padding: 34px 30px 22px; border: 1px solid var(--vetro-bordo); border-radius: var(--raggio-4); background: var(--vetro); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--ombra-scheda), inset 0 1px 0 color-mix(in srgb, var(--luce) 6%, transparent); text-align: center; position: relative; transition: transform var(--tempo-1);
}
.scheda[hidden] { display: none; }
.scheda::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--oro), transparent); opacity: .8; }
.scheda.no { animation: scuoti .5s; }
.scheda.ok { box-shadow: 0 0 0 2px var(--stato-lavora), var(--ombra-scheda); }
.scheda.fermo .tasti button, .scheda.fermo .entra { opacity: .45; pointer-events: none; }
@keyframes scuoti { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.logo { display: block; width: 190px; height: 40px; margin: 0 auto 18px; background: var(--testo); -webkit-mask: url(/entra/logo.png) no-repeat center / contain; mask: url(/entra/logo.png) no-repeat center / contain; filter: drop-shadow(0 0 14px var(--hud-3)); }
h1 { margin: 0; font-size: var(--t-grande); color: var(--testo); }
.sopra { margin: 0 0 4px; font-size: var(--t-minimo); letter-spacing: .16em; text-transform: uppercase; color: var(--testo-3); }
.sotto { margin: 6px 0 18px; font-size: var(--t-piccolo); color: var(--testo-2); }
.entra { width: 100%; min-height: var(--tocco); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: var(--raggio-pillola); background: var(--oro); color: var(--sul-oro); font-weight: 700; font-size: var(--t-base); border: 0; cursor: pointer; box-shadow: 0 0 28px var(--hud-3); transition: transform var(--tempo-1), opacity var(--tempo-1); }
.entra:hover { transform: translateY(-1px); }
.entra[hidden] { display: none; }
.entra svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.oppure { display: flex; width: 100%; align-items: center; gap: 10px; margin: 16px 0 12px; font-family: var(--f-numeri); font-size: var(--t-minimo); letter-spacing: .14em; text-transform: uppercase; color: var(--testo-3); background: none; border: 0; cursor: pointer; padding: 6px 0; min-height: var(--tocco); }
.oppure::before, .oppure::after { content: ""; flex: 1; height: 1px; background: var(--linea-2); }
.oppure:hover span { color: var(--testo); }
.pin[hidden] { display: none; }
.campo { display: block; text-align: left; margin-bottom: 12px; }
.campo span { display: block; font-family: var(--f-numeri); font-size: var(--t-minimo); letter-spacing: .14em; text-transform: uppercase; color: var(--testo-3); margin-bottom: 4px; }
.campo input { width: 100%; padding: 10px 12px; border-radius: var(--raggio-2); border: 1px solid var(--linea-2); background: color-mix(in srgb, var(--fondo) 60%, transparent); color: var(--testo); font: 400 var(--t-base) var(--f-testo); outline: none; }
.campo input:focus { border-color: var(--oro); box-shadow: 0 0 0 3px var(--hud-3); }
.campo.manca input { border-color: var(--stato-errore); animation: scuoti .5s; }
.punti { display: flex; justify-content: center; gap: 10px; margin: 6px 0 12px; min-height: 9px; }
.punti i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--hud-2); display: block; }
.punti i.on { background: var(--oro); border-color: var(--oro); box-shadow: 0 0 8px var(--oro); }
.punti i.ora { border-color: var(--oro); }
.tasti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tasti button { min-height: var(--tocco); padding: 10px 0; border-radius: var(--raggio-2); border: 1px solid var(--linea); background: color-mix(in srgb, var(--luce) 3%, transparent); color: var(--testo); font: 500 var(--t-titolo) var(--f-numeri); cursor: pointer; transition: background var(--tempo-1), border-color var(--tempo-1); }
.tasti button:hover, .tasti button.pre { background: var(--hud-3); border-color: var(--vetro-bordo-2); }
.tasti button.piccolo { font-size: var(--t-piccolo); color: var(--testo-2); }
.msg { margin: 12px 0 0; font-size: var(--t-piccolo); color: var(--testo-2); min-height: 1.3em; }
.msg.avviso { color: color-mix(in srgb, var(--errore) 55%, var(--luce)); }
.msg.bene { color: var(--stato-lavora); }
.msg.fisso { margin: 6px 0 16px; }
.nota { margin: 10px 0 0; font-size: var(--t-minimo); color: var(--testo-3); }
.colonna { display: flex; flex-direction: column; gap: 10px; }
.colonna[hidden] { display: none; }
.link { background: none; border: 0; color: var(--testo-2); font-size: var(--t-piccolo); cursor: pointer; padding: 6px; min-height: var(--tocco); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--testo); }
.codice { display: flex; gap: 8px; margin: 8px 0; }
.codice[hidden] { display: none; }
.codice input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--raggio-2); border: 1px solid var(--linea-2); background: color-mix(in srgb, var(--fondo) 60%, transparent); color: var(--testo); font: 500 var(--t-titolo) var(--f-numeri); letter-spacing: .3em; text-align: center; outline: none; }
.codice .entra { width: auto; padding: 10px 18px; }
.pie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-minimo); letter-spacing: .12em; color: var(--testo-3); }
.stili { display: flex; gap: 6px; }
.stili button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--linea-2); background: none; color: var(--testo-2); font: 600 var(--t-minimo) var(--f-numeri); cursor: pointer; padding: 0; }
.stili button.attivo { background: var(--oro); color: var(--sul-oro); border-color: var(--oro); }
@media (max-width: 759px) {
  .pie .mono { display: none; }
  .pie { justify-content: center; }
  .stili button { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .aureola span { animation: none; } .scheda.no, .campo.manca input { animation: none; } }
