/* Accesso · FLOWTHEGAME. Crema, luce neutra che si muove, un campo che si disegna
   appena accennato; titolo Playfair, testo Inter, etichette Space Mono. */
body.fia { --display: var(--serif); --testo: var(--sans); }
body.fia { background: var(--crema); color: var(--inchiostro); min-height: 100vh; overflow: hidden; }
.aurora { position: fixed; inset: 0; overflow: hidden; filter: blur(80px); opacity: .9; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; left: -10vw; top: -15vh; background: radial-gradient(circle, #E3DBCB 0%, rgba(227,219,203,0) 65%); animation: vaga1 30s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 55vw; height: 55vw; right: -12vw; top: 10vh; background: radial-gradient(circle, #FFFFFF 0%, rgba(255,255,255,0) 65%); animation: vaga2 36s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 45vw; height: 45vw; left: 30vw; bottom: -25vh; background: radial-gradient(circle, #CFC6B4 0%, rgba(207,198,180,0) 65%); animation: vaga3 33s ease-in-out infinite alternate; }
@keyframes vaga1 { to { transform: translate(20vw, 18vh) scale(1.15) } }
@keyframes vaga2 { to { transform: translate(-24vw, -10vh) scale(.9) } }
@keyframes vaga3 { to { transform: translate(-18vw, -22vh) scale(1.2) } }
.griglia { position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20,20,20,.07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 65% 60% at 50% 40%, #000 20%, transparent 100%); }

.strato { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 32px; }
.alto { align-self: flex-start; display: flex; align-items: center; gap: 10px; animation: entra .8s ease .1s both; }
.fia-sigla { font: 700 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--crema); background: var(--inchiostro); padding: 7px 10px; border-radius: 6px; }
.fia-esteso { font: 700 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--inchiostro); }
.basso { display: flex; align-items: center; gap: 7px; font: 700 9.5px var(--mono); color: var(--muto); animation: entra .8s ease .6s both; }
/* in alto il simbolo FF accanto al motto, in basso FLOWTHEGAME con le lettere del logo */
.fia-simbolo { height: 22px; width: auto; flex: none; }
.fia-scritta { height: 10px; width: auto; opacity: .75; }

.centro { display: flex; flex-direction: column; align-items: center; width: 100%; }
/* il logo FLOWTHEGAME del grafico (simbolo, FLOW grassetto + THEGAME sottile, motto):
   un SVG in verde bosco, sopra al campo come prima il titolo in Fraunces */
.titolo-ftg { margin: 0; line-height: 0; animation: entra 1s cubic-bezier(.2,.8,.2,1) .05s both; }
.titolo-ftg img { display: block; width: min(640px, 60vw, 92vh); height: auto; }
.sotto { margin: 20px 0 30px; max-width: 680px; text-align: center; font: 400 clamp(13.5px, 1.15vw, 15.5px)/1.6 var(--testo); color: #4A463F; animation: entra .9s cubic-bezier(.2,.8,.2,1) .3s both; }
.modulo { display: flex; gap: 10px; align-items: center; animation: entra .9s cubic-bezier(.2,.8,.2,1) .45s both; }
.modulo input { height: 50px; width: 260px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: rgba(20,20,20,.055); font: 500 15px var(--testo); color: var(--inchiostro); outline: 0; transition: background .15s, border-color .15s, box-shadow .15s; }
.modulo input::placeholder { color: #8C8578; }
.modulo input:focus { background: #fff; border-color: rgba(20,20,20,.35); box-shadow: 0 6px 20px -10px rgba(20,20,20,.3); }
.con-occhio { position: relative; }
.con-occhio input { padding-right: 42px; }
.occhio { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muto); padding: 6px; border-radius: 6px; }
.occhio:hover { color: var(--inchiostro); }
.entra { position: relative; height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--inchiostro); color: #fff; font: 700 14.5px var(--testo); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .15s; white-space: nowrap; }
.entra:hover { background: #2A2A2A; }
.entra:hover .freccia-btn { transform: translateX(3px); }
.freccia-btn { transition: transform .2s; }
.entra:active { transform: scale(.98); }
.entra[disabled] { opacity: .7; }
.entra[disabled] .freccia-btn { display: none; }
.attesa { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: gira .8s linear infinite; }
.entra[disabled] .attesa { display: block; }
.errore { margin-top: 14px; font-size: 13.5px; color: #A3202B; animation: scuoti .35s; }
@keyframes gira { to { transform: rotate(360deg) } }
.errore { font-size: 13px; color: #A3202B; background: #FCEDEE; border: 1px solid #F1C9CC; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; animation: scuoti .35s; }
@keyframes scuoti { 20% { transform: translateX(-4px) } 40% { transform: translateX(4px) } 60% { transform: translateX(-3px) } 80% { transform: translateX(3px) } }
@keyframes entra { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@media (max-width: 760px) { body.fia { overflow: auto; } .strato { padding: 20px 18px; }  .titolo-ftg img { width: min(100%, 420px); } .sotto { font-size: 14px; } .modulo { flex-direction: column; width: min(320px, 100%); } .modulo input, .con-occhio, .entra { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .strato *, .aurora i { animation: none !important; } .parola { transform: none; } }

/* ---- il campo sullo sfondo: le linee si disegnano all'apertura, poi restano appena accennate ---- */
.campo { position: fixed; left: 50%; top: 52%; width: min(1180px, 112vw); transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, rgba(0,0,0,.5) 0%, rgba(0,0,0,.5) 22%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, rgba(0,0,0,.5) 0%, rgba(0,0,0,.5) 22%, #000 48%, transparent 100%); }
.campo .linee > * { stroke: rgba(20,20,20,.17); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: traccia 2.4s cubic-bezier(.6,0,.2,1) forwards; }
.campo .linee > *:nth-child(2) { animation-delay: .5s; } .campo .linee > *:nth-child(3) { animation-delay: .8s; }
.campo .linee > *:nth-child(4) { animation-delay: 1s; } .campo .linee > *:nth-child(5) { animation-delay: 1.2s; } .campo .linee > *:nth-child(6) { animation-delay: 1.35s; }
.campo .punti circle { fill: rgba(20,20,20,.17); opacity: 0; animation: entra .6s ease 2.2s forwards; }
@keyframes traccia { to { stroke-dashoffset: 0 } }
.strato { position: relative; z-index: 1; }
@media (max-width: 760px) { .campo { width: 170vw; top: 46%; } .sotto br { display: none; } }
@media (prefers-reduced-motion: reduce) { .campo .linee > * { stroke-dashoffset: 0; } .campo .punti circle { opacity: 1; } }
