/* DANKNOTE INC. · reparto pittura. Qualsiasi colore, purché sia viola. */
:root {
  --nero: #0B0B0F; --notte: #120D1A; --viola-scuro: #2B1A3D; --viola: #6D2AFF; --lilla: #9B5CFF; --bianco: #EDE6FF;
  --testo: #cfc4f2; --muto: #9a8cc4;
  --display: "Chakra Petch", sans-serif; --runic: "Noto Sans Runic", serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--nero); color: var(--bianco); overflow: hidden; overscroll-behavior: none; }
body { font: 400 16px/1.55 Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lilla); outline-offset: 3px; }
.kicker { font: 600 12px/1.4 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--lilla); }

#tana { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; image-rendering: pixelated; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; cursor: pointer;
  font: 700 14px/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--bianco); background: var(--viola); border: 1px solid var(--lilla); padding: 12px 20px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.btn i { font-style: normal; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(18, 13, 26, .92); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 12px; }

/* l'ingresso: l'occhio di rune sopra la tana, poi sparisce */
#occhio { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; cursor: pointer; transition: opacity .9s; touch-action: manipulation; }
#occhio.via { opacity: 0; pointer-events: none; }
.soglia {
  position: fixed; z-index: 31; left: 0; right: 0; bottom: calc(26px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 0 20px; pointer-events: none; transition: opacity .5s;
}
.soglia .kicker { font-family: var(--runic); letter-spacing: .5em; }
.soglia-invito { display: flex; flex-direction: column; align-items: center; margin: 0; }
/* (27/11) l'invito a toccare l'occhio, grande e tremante come "Spedita." del mare: deve essere chiaro che si entra da lì */
.si-freccia { display: block; font: 700 22px var(--display); color: var(--lilla); text-shadow: 0 0 12px #6D2AFF; animation: siSu 1.1s ease-in-out infinite; }
.si-grande { display: block; font: 700 clamp(34px, 10vw, 56px)/1.05 var(--display); color: #EDE6FF; text-shadow: 0 0 18px #6D2AFF, 0 0 4px #000, 0 0 2px #000; }
.si-trema { display: block; margin-top: 6px; font: 700 clamp(22px, 6.5vw, 32px)/1.2 var(--display); color: #b98aff; text-shadow: 0 0 14px #6D2AFF, 2px 0 #ff3b6b, -2px 0 #3bf0ff, 0 0 4px #000; animation: spTrema .12s steps(2) infinite, spEntra .5s ease-out; }
@keyframes siSu { 50% { transform: translateY(-8px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .si-trema, .si-freccia { animation: none; } }
/* "salta": piccolo, nell'angolo, compare dopo qualche secondo (chi entra dall'occhio si gode la discesa) */
.soglia-salta {
  position: fixed; right: 8px; bottom: calc(6px + var(--safe-b)); pointer-events: auto; min-width: 44px; min-height: 44px; padding: 0 10px; cursor: pointer;
  background: none; border: 0; color: #6f6390; font: 500 11px var(--display); letter-spacing: .14em; text-transform: lowercase; text-decoration: underline; text-underline-offset: 3px;
  opacity: 0; animation: saltaAppare .6s 7s forwards;
}
@keyframes saltaAppare { to { opacity: .7; } }
.soglia.via { opacity: 0; }
.soglia.via * { pointer-events: none; }
@keyframes respiro { 50% { opacity: .55; } }

/* finché non sei dentro, niente comandi della stanza */
.stazioni, .voce { transition: opacity .5s; }
body:not(.dentro) .stazioni { opacity: 0; pointer-events: none; }

/* i punti: pallini viola con una runa, pulsano. Etichetta solo dove serve. */
.punti { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
.punto {
  position: absolute; left: 0; top: 0; display: none; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 10px; cursor: pointer; pointer-events: auto; color: var(--bianco);
}
.punto.on { display: flex; }
.punto i {
  position: relative; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f3ecff 0 22%, #9B5CFF 45%, #6D2AFF 100%);
  box-shadow: 0 0 0 2px rgba(11, 11, 15, .55), 0 0 12px 2px rgba(155, 92, 255, .9);
  animation: battito 2.2s ease-in-out infinite;
}
.punto i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(199, 168, 255, .9); opacity: 0; animation: onda 2.2s ease-out infinite; }
@keyframes battito { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes onda { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.punto.piccolo i { width: 11px; height: 11px; }
.punto span { /* fuori dal flusso: così il pulsante è centrato sul pallino, non su pallino + etichetta */
  position: absolute; left: 50%; top: calc(100% - 4px); transform: translateX(-50%); white-space: nowrap;
  font: 600 13px/1 var(--display); letter-spacing: .02em; color: #f6f1ff;
  padding: 6px 11px 7px;
  background: linear-gradient(180deg, rgba(52, 26, 84, .94), rgba(20, 11, 32, .94));
  border: 1px solid rgba(186, 150, 255, .6); border-radius: 999px;
  box-shadow: 0 0 16px rgba(109, 42, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.punto span::before { /* il filo che lega il cartellino al punto */
  content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 7px; background: linear-gradient(rgba(199, 168, 255, 0), rgba(199, 168, 255, .9));
}
.punto:active i { transform: scale(.85); }
@media (hover: hover) { .punto:hover i { background: #7d40ff; } }

/* la lettera in bottiglia */
.spedizione { position: fixed; inset: 0; z-index: 45; background: #07050b; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.spedizione[hidden] { display: none; }
#spCanvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.sp-testo { position: relative; z-index: 1; text-align: center; padding: 0 20px calc(40px + var(--safe-b)); font: 700 26px/1.3 var(--display); text-shadow: 0 0 12px #000; }
.sp-testo small { font: 500 16px var(--display); color: var(--testo); }
.sp-testo a { display: inline-block; margin-top: 14px; font: 500 14px Inter, sans-serif; color: var(--lilla); }
.sp-testo .btn { margin-top: 14px; }

/* la pergamena */
.pergamena { position: fixed; inset: 0; z-index: 44; display: flex; align-items: center; justify-content: center; padding: 64px 12px calc(20px + var(--safe-b)); background: rgba(5, 4, 8, .55); }
.pergamena[hidden] { display: none; }
.perg { position: relative; width: min(100%, 460px); display: flex; flex-direction: column; align-items: stretch; transform-origin: 50% 50%; --k: 0; --h: 400px; }
.perg-asta {
  position: relative; z-index: 2; height: 22px; margin: 0 -14px; border-radius: 11px;
  background: linear-gradient(#6b4a3a, #3a251c 55%, #24160f); box-shadow: 0 3px 8px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 220, 180, .25);
}
.perg-asta::before, .perg-asta::after { content: ""; position: absolute; top: -4px; width: 16px; height: 30px; border-radius: 6px; background: linear-gradient(#8a5fff, #3c1f8a); box-shadow: 0 0 10px rgba(109, 42, 255, .6); }
.perg-asta::before { left: -8px; } .perg-asta::after { right: -8px; }
.perg-asta.bassa { transform: translateY(calc((var(--k) - 1) * var(--h))); }
.perg-foglio {
  position: relative; z-index: 1; max-height: calc(100vh - 150px); overflow: auto; padding: 18px 20px 20px; color: #2a1f36;
  clip-path: inset(0 0 calc((1 - var(--k)) * 100%) 0);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(120, 80, 30, .18), transparent 40%),
    radial-gradient(ellipse at 85% 80%, rgba(110, 70, 30, .22), transparent 45%),
    radial-gradient(ellipse at 60% 40%, rgba(255, 250, 230, .35), transparent 60%),
    #e5d4ac;
  box-shadow: inset 0 0 40px rgba(110, 70, 20, .45), inset 0 0 6px rgba(60, 30, 10, .5);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.perg-rune { font: 14px var(--runic); letter-spacing: .3em; color: #6D2AFF; text-align: center; opacity: .8; }
.perg-apertura { font-size: 22px; font-style: italic; margin: 8px 0 6px; }
.campo { position: relative; display: block; }
.campo textarea, .campo input, .specchio {
  font: 19px/1.55 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: .01em;
  padding: 6px 2px; margin: 0; border: 0; width: 100%; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: break-word;
}
.campo textarea, .campo input {
  position: relative; z-index: 1; display: block; background: transparent; color: transparent; caret-color: #3a1f7a;
  border-radius: 0; resize: none; -webkit-text-fill-color: transparent;
}
.campo textarea { min-height: 9em; background-image: repeating-linear-gradient(transparent 0 calc(1.55em + 5px), rgba(90, 60, 30, .28) calc(1.55em + 5px) calc(1.55em + 6px)); background-attachment: local; }
.campo input { min-height: 44px; border-bottom: 1px solid rgba(90, 60, 30, .5); white-space: pre; }
.campo textarea::placeholder, .campo input::placeholder { color: rgba(60, 40, 20, .45); -webkit-text-fill-color: rgba(60, 40, 20, .45); font-style: italic; }
.campo textarea:focus, .campo input:focus { outline: none; }
.specchio { position: absolute; inset: 0; z-index: 0; color: #24183a; overflow: hidden; pointer-events: none; }
.campo.riga .specchio, .riga .specchio { white-space: pre; }
.specchio .r { position: relative; color: transparent; }
.specchio .r::after { content: attr(data-r); position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: #6D2AFF; text-shadow: 0 0 6px rgba(155, 92, 255, .9); font-family: var(--runic); }
.riga { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.riga .etc { flex: none; font-style: italic; font-size: 16px; color: #5a4060; }
.riga .campo { flex: 1; min-width: 0; }
.perg-sigilla {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 18px; cursor: pointer;
  background: #2a1a3d; color: #f1e6c8; border: 1px solid #6D2AFF; font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase;
}
.ceralacca { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9B5CFF, #4a14b0 70%); color: #EDE6FF; font: 16px var(--runic); box-shadow: 0 0 10px rgba(155, 92, 255, .8); }
.perg-nastro { position: absolute; z-index: 3; left: 50%; top: 0; width: 22px; height: 52px; margin-left: -11px; background: #6D2AFF; box-shadow: 0 0 12px rgba(109, 42, 255, .8); opacity: 0; transform: scaleY(0); transition: opacity .3s, transform .4s; }
.perg-nastro span { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) scale(0); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c7a8ff, #5a1fd0 70%); color: #fff; font: 15px var(--runic); transition: transform .35s .25s cubic-bezier(.3, 1.6, .5, 1); }
.perg.legata .perg-nastro { opacity: 1; transform: scaleY(1); }
.perg.legata .perg-nastro span { transform: translateX(-50%) scale(1); }
.perg-chiudi { position: fixed; top: max(12px, var(--safe-t)); right: 12px; z-index: 46; width: 48px; height: 48px; cursor: pointer; background: rgba(11, 11, 15, .85); border: 1px solid var(--lilla); color: var(--bianco); font-size: 18px; }
.spedizione { transition: opacity .6s; }
.spedizione.entra { opacity: 0; }

/* il sito in parole: nascosto alla vista ma leggibile da Google e dai lettori di schermo; visibile se manca il 3D */
.testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.senza-3d { overflow: auto; }
body.senza-3d .testo { position: static; width: auto; height: auto; clip: auto; white-space: normal; padding: 90px 20px 40px; max-width: 640px; margin: 0 auto; }
body.senza-3d .testo a { color: var(--lilla); }
body.senza-3d #occhio, body.senza-3d .soglia, body.senza-3d .stazioni, body.senza-3d #tana { display: none; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; padding-top: max(10px, var(--safe-t)); background: linear-gradient(rgba(11, 11, 15, .8), transparent); pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 700 17px var(--display); letter-spacing: .08em; min-height: 44px; }
.topbar-logo img { width: 30px; height: 30px; }
.topbar-logo b { color: var(--lilla); }

/* la voce del demone: testo battuto lettera per lettera, le parole forti tremano */
.voce {
  position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b));
  width: min(92vw, 640px); text-align: center; cursor: pointer; pointer-events: auto;
  font: 600 clamp(17px, 4.6vw, 22px)/1.35 var(--display); letter-spacing: .02em; color: var(--bianco);
  text-shadow: 0 0 10px #000, 0 0 3px #000, 0 2px 0 #000; transition: opacity .4s; padding: 8px 4px;
}
.voce.muta { opacity: 0; pointer-events: none; }
.voce em { font-style: normal; color: var(--lilla); display: inline-block; animation: trema .12s steps(2) infinite; }
.voce-next { display: block; font-size: 12px; color: var(--lilla); opacity: 0; animation: bob 1.2s ease-in-out infinite; }
.voce.finita .voce-next { opacity: 1; }
@keyframes trema { 0% { transform: translate(0, 0); } 50% { transform: translate(1px, -1px); } 100% { transform: translate(-1px, 1px); } }
@keyframes bob { 50% { transform: translateY(4px); } }

/* le stazioni: frecce grandi che dicono dove portano, il nome della stanza e dove sei nel giro */
.stazioni {
  position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b));
  display: grid; grid-template-columns: 84px 1fr 84px; gap: 6px; width: min(96vw, 520px);
}
.freccia {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; cursor: pointer;
  color: var(--bianco); background: var(--viola); border: 1px solid #b48cff; box-shadow: 0 0 22px rgba(109, 42, 255, .45);
}
.freccia span { font-size: 20px; line-height: 1; }
.freccia small { font: 600 12px/1.1 var(--display); letter-spacing: .02em; color: #f1eaff; }
.freccia:active { background: #5a1fe0; transform: scale(.97); }
.stazione {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 6px 8px;
  background: rgba(11, 11, 15, .9); border: 1px solid var(--viola-scuro);
}
.stazione b { font: 700 15px/1.15 var(--display); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pallini { display: flex; gap: 6px; }
.pallini i { width: 6px; height: 6px; border-radius: 50%; background: #4a3d63; }
.pallini i.qui { background: var(--lilla); box-shadow: 0 0 6px var(--lilla); }
.guida {
  position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); top: calc(64px + var(--safe-t)); width: min(90vw, 360px);
  margin: 0; padding: 10px 14px; text-align: center; font: 500 14px/1.35 Inter, sans-serif; color: var(--bianco);
  background: rgba(18, 13, 26, .94); border: 1px solid var(--lilla); box-shadow: 0 0 20px rgba(109, 42, 255, .35);
}
.guida[hidden] { display: none; }

/* il foglio: la reliquia aperta */
.foglio { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 4, 8, .6); }
.foglio[hidden] { display: none; }
.foglio-box {
  position: relative; width: min(100%, 560px); max-height: 88vh; overflow: auto; padding: 22px 18px calc(22px + var(--safe-b));
  background: var(--notte); border: 1px solid var(--lilla); border-bottom: 0; box-shadow: 0 -10px 50px rgba(109, 42, 255, .35);
  animation: sale .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes sale { from { transform: translateY(100%); } }
.chiudi { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; cursor: pointer; background: rgba(11, 11, 15, .8); border: 1px solid var(--viola-scuro); font-size: 18px; z-index: 3; }
.f-cover { position: relative; overflow: hidden; aspect-ratio: 1; margin-bottom: 16px; }
.f-cover img { width: 100%; height: 100%; object-fit: cover; }
.f-cover.ritratto { aspect-ratio: 3 / 4; max-width: 300px; margin: 0 auto 16px; }
.runatico { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.foglio h2 { font: 700 30px/1.1 var(--display); padding-right: 50px; }
.f-sub { color: var(--muto); font-size: 14px; margin-top: 4px; }
.f-plays { margin-top: 10px; color: var(--testo); }
.f-plays b { font: 700 24px var(--display); color: var(--bianco); }
.f-voce { margin: 12px 0 16px; padding: 12px 14px; border-left: 2px solid var(--lilla); background: rgba(109, 42, 255, .08); font-size: 17px; }
.f-azioni { display: grid; gap: 10px; }
.f-azioni .doppio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-player iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.f-rune { font: 18px var(--runic); color: var(--lilla); letter-spacing: .25em; }

/* il pulsante della musica: una nota in pixel che dondola se la radio suona */
.topbar-dx { display: flex; align-items: center; gap: 8px; }
.muto { width: 44px; height: 40px; display: grid; place-items: center; cursor: pointer; background: rgba(18, 13, 26, .85); border: 1px solid var(--viola-scuro); color: var(--lilla); }
.nota { width: 18px; height: 18px; image-rendering: pixelated; animation: nota-dondola 1.1s steps(4) infinite; }
@keyframes nota-dondola { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-2px) rotate(6deg); } }
.muto.spento { color: var(--muto); }
.muto.spento .nota { animation: none; }
.muto[aria-expanded="true"] { border-color: var(--lilla); }

/* il menù audio: un pannello da pausa di videogioco, bordo doppio e barre a tacche */
.menu-audio { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 4, 10, .62); }
.menu-audio[hidden] { display: none; }
.ma-box { width: min(340px, 100%); padding: 18px 18px 16px; background: var(--notte); border: 2px solid var(--lilla); box-shadow: 0 0 0 4px var(--notte), 0 0 0 6px var(--viola-scuro), 0 18px 50px rgba(0, 0, 0, .6); animation: ma-entra .18s steps(3) both; }
@keyframes ma-entra { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.ma-titolo { font: 700 20px var(--display); color: var(--bianco); display: flex; align-items: center; gap: 10px; }
.ma-rune { font: 14px var(--runic); color: var(--lilla); letter-spacing: .2em; }
.ma-voce { font: 500 14px/1.4 Inter, sans-serif; color: var(--muto); margin: 4px 0 16px; }
.ma-riga { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 10px; padding: 10px 0; font: 600 15px var(--display); color: var(--testo); cursor: pointer; }
.ma-riga output { font: 700 15px var(--display); color: var(--bianco); text-align: right; font-variant-numeric: tabular-nums; }
.ma-riga input { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.ma-riga input::-webkit-slider-runnable-track { height: 14px; border: 2px solid var(--viola-scuro);
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--notte) calc(10% - 2px) 10%), linear-gradient(90deg, var(--lilla) var(--p), #1c1428 var(--p)); }
.ma-riga input::-moz-range-track { height: 10px; border: 2px solid var(--viola-scuro);
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--notte) calc(10% - 2px) 10%), linear-gradient(90deg, var(--lilla) var(--p), #1c1428 var(--p)); }
.ma-riga input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 24px; margin-top: -7px; background: var(--bianco); border: 2px solid var(--viola); box-shadow: 2px 2px 0 var(--nero); }
.ma-riga input::-moz-range-thumb { width: 10px; height: 20px; border-radius: 0; background: var(--bianco); border: 2px solid var(--viola); box-shadow: 2px 2px 0 var(--nero); }
.ma-chiudi { display: block; width: 100%; margin-top: 14px; padding: 12px; cursor: pointer; font: 700 15px var(--display); color: var(--bianco); background: var(--viola); border: 0; box-shadow: 0 3px 0 #3d1590; }
.ma-chiudi:active { transform: translateY(2px); box-shadow: 0 1px 0 #3d1590; }
@media (prefers-reduced-motion: reduce) { .nota, .ma-box { animation: none; } }

/* la barra in alto resta sopra l'occhio: chi arriva per lavoro vede subito "Collabora" */
.topbar { z-index: 33; }
.menu-btn { width: 44px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; background: rgba(18, 13, 26, .85); border: 1px solid var(--viola-scuro); }
.menu-btn span { width: 18px; height: 2px; background: var(--bianco); }
@media (max-width: 420px) { .topbar-logo span { display: none; } }

/* il menu */
.menu { position: fixed; inset: 0; z-index: 42; display: flex; justify-content: flex-end; background: rgba(5, 4, 8, .6); }
.menu[hidden] { display: none; }
.menu-box { position: relative; width: min(88vw, 360px); height: 100%; overflow: auto; padding: calc(64px + var(--safe-t)) 20px calc(24px + var(--safe-b)); background: var(--notte); border-left: 1px solid var(--lilla); animation: entra-dx .3s ease-out; }
@keyframes entra-dx { from { transform: translateX(100%); } }
.menu-titolo { font: 700 13px var(--display); letter-spacing: .04em; color: var(--muto); margin: 8px 0 6px; }
.menu-stanze, .menu-link { list-style: none; margin: 0 0 18px; }
.menu-stanze button, .menu-link a {
  display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0 4px; cursor: pointer; text-align: left; text-decoration: none;
  background: none; border: 0; border-bottom: 1px solid var(--viola-scuro); color: var(--bianco); font: 600 18px var(--display);
}
.menu-collabora { width: 100%; margin: 4px 0 22px; }

/* la scheda Collabora */
.c-intro { font-size: 17px; line-height: 1.5; color: var(--testo); margin: 10px 0 16px; max-width: 60ch; }
.c-numeri { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.c-numeri li { padding: 10px 8px; background: rgba(109, 42, 255, .12); border: 1px solid var(--viola-scuro); }
.c-numeri b { display: block; font: 700 21px var(--display); color: var(--bianco); }
.c-numeri span { font-size: 12px; line-height: 1.3; color: var(--muto); }
.c-sez { font: 700 20px var(--display); margin: 6px 0 10px; }
.c-servizi { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.c-servizi b { font: 700 16px var(--display); color: var(--lilla); }
.c-servizi p { margin-top: 2px; color: var(--testo); font-size: 15px; }
.c-prova { padding: 12px 14px; border-left: 2px solid var(--lilla); background: rgba(109, 42, 255, .08); margin-bottom: 22px; }
.c-link { display: inline; padding: 0; background: none; border: 0; color: var(--lilla); text-decoration: underline; cursor: pointer; font: inherit; }
.c-form { display: grid; gap: 12px; }
.c-form label { display: grid; gap: 5px; font: 600 14px var(--display); color: var(--bianco); }
.c-form small { font: 500 12px Inter, sans-serif; color: var(--muto); }
.c-form input, .c-form select, .c-form textarea {
  font: 16px/1.4 Inter, sans-serif; color: var(--bianco); background: #0d0a12; border: 1px solid #4a3d63; padding: 12px; min-height: 48px; border-radius: 0;
}
.c-form input:focus, .c-form select:focus, .c-form textarea:focus { outline: 2px solid var(--lilla); outline-offset: 1px; border-color: var(--lilla); }
.c-form .btn { margin-top: 4px; }
.c-form .btn:disabled { opacity: .7; }
.c-stato { color: #ffb4c8; font-size: 14px; min-height: 1em; }
.c-stato a { color: var(--lilla); }
.c-privacy { font-size: 12px; color: var(--muto); }
.c-ok { padding: 16px; border: 1px solid var(--lilla); background: rgba(109, 42, 255, .14); font-size: 16px; }
.miele { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* la corruzione runica: il nome trema in rune, la copertina è coperta da un canvas che si rigenera */
.corrotto { font-family: var(--runic); color: var(--lilla); text-shadow: 2px 0 var(--viola), -2px 0 rgba(237, 230, 255, .35); letter-spacing: .06em; }
.corruzione { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; image-rendering: pixelated; }

/* ---------- il dankcaveau: HUD (cronometro, candele, "?") e istruzioni ---------- */
.caveau-hud { position: fixed; z-index: 17; left: 0; right: 0; top: calc(62px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.caveau-hud[hidden] { display: none; }
.ch-tempo { font: 700 44px/1 var(--display); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--bianco); text-shadow: 0 0 14px rgba(109, 42, 255, .8), 0 2px 0 #000; }
.ch-candele { display: flex; gap: 14px; padding: 6px 12px; background: rgba(11, 11, 15, .7); border: 1px solid var(--viola-scuro); }
.ch-candele i { position: relative; width: 8px; height: 22px; margin-top: 10px; background: #d9d0c4; box-shadow: inset -2px 0 0 #9c9286; }
.ch-candele i::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 8px; height: 11px; transform: translateX(-50%); border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 70%, #fff 0 25%, #c7a8ff 45%, rgba(109, 42, 255, 0) 75%); animation: fiammella .5s steps(2) infinite alternate; }
.ch-candele i.spenta { background: #5a5560; box-shadow: none; }
.ch-candele i.spenta::before { background: none; width: 2px; height: 8px; border-radius: 0; background-color: #6e6878; animation: none; opacity: .6; }
@keyframes fiammella { to { transform: translateX(-50%) scale(.85, 1.1); } }
.ch-aiuto { position: fixed; top: calc(62px + var(--safe-t)); right: 12px; width: 48px; height: 48px; pointer-events: auto; cursor: pointer;
  font: 700 22px var(--display); color: var(--bianco); background: rgba(18, 13, 26, .9); border: 1px solid var(--lilla); }
.cv-passi { list-style: none; display: grid; gap: 10px; margin: 14px 0 12px; padding: 0; }
.cv-passi li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-size: 16px; line-height: 1.35; color: var(--testo); }
.cv-passi span { font-size: 24px; text-align: center; }
.cv-nota { margin-bottom: 14px; padding: 10px 12px; border-left: 2px solid var(--lilla); background: rgba(109, 42, 255, .08); font-size: 15px; color: var(--bianco); }
/* ?trailer=1: niente barra, frecce e guida; cronometro e candele più grandi (per girare i video in 9:16) */
body.trailer .topbar, body.trailer .stazioni, body.trailer .guida { display: none !important; }
body.trailer .caveau-hud { top: calc(20px + var(--safe-t)); }
body.trailer .ch-tempo { font-size: 64px; }
body.trailer .ch-candele { transform: scale(1.4); transform-origin: top center; }
body.trailer .ch-aiuto { display: none; }

/* M2: uscita, libro dei capitoli, capitolo, fine */
.ch-esci { position: fixed; top: calc(62px + var(--safe-t)); left: 12px; min-width: 64px; height: 48px; padding: 0 14px; pointer-events: auto; cursor: pointer;
  font: 700 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--bianco); background: rgba(18, 13, 26, .9); border: 1px solid var(--lilla); }
.ch-prova { pointer-events: auto; margin-top: 8px; padding: 10px 16px; font: 700 13px var(--display); color: #1a0f2a; background: #ffd75a; border: 0; cursor: pointer; }
.ch-tempo.pausa { opacity: .5; }
body.trailer .ch-esci { opacity: .35; }
.punto.prossimo i { width: 26px; height: 26px; box-shadow: 0 0 22px rgba(155, 92, 255, .95); }
.cv-frase { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 16px; font: 700 18px var(--display); letter-spacing: .06em; }
.cv-frase span { padding: 6px 8px; background: rgba(109, 42, 255, .18); border: 1px solid var(--viola); }
.cv-frase .vuota { color: var(--muto); background: none; border-style: dashed; min-width: 54px; text-align: center; }
.cv-capitoli { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.cv-capitoli li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: rgba(11, 11, 15, .6); border: 1px solid var(--viola-scuro); }
.cv-capitoli li > b { font: 700 18px var(--display); color: var(--lilla); text-align: center; }
.cv-capitoli li.bloccato { opacity: .6; }
.cv-capitoli li.giocabile, .cv-capitoli li.incorso { border-color: var(--lilla); box-shadow: 0 0 16px rgba(109, 42, 255, .3); }
.cv-capitoli .btn { padding: 12px 14px; min-height: 48px; }
.cv-t { font: 700 16px/1.2 var(--display); }
.cv-s { font-size: 14px; color: var(--muto); margin-top: 2px; }
.cv-lucchetto { font-size: 20px; padding: 0 8px; }
.cv-soglie { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0 0 8px; }
.cv-soglie li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.cv-soglie i { width: 6px; height: 16px; background: #d9d0c4; box-shadow: 0 -6px 6px -2px #c7a8ff; justify-self: center; }
.cv-soglie span { color: var(--muto); font-variant-numeric: tabular-nums; }
.cv-inizia { font-size: 18px; padding: 18px 20px; }
.cv-tempo { font: 700 64px/1 var(--display); text-align: center; margin: 14px 0 6px; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(109, 42, 255, .8); }
.cv-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 22px var(--display); color: #c7a8ff; }
.cv-candeline { display: flex; gap: 12px; }
.cv-candeline i { width: 8px; height: 22px; background: #d9d0c4; box-shadow: 0 -8px 8px -2px #c7a8ff; }
.cv-candeline i.spenta { background: #5a5560; box-shadow: none; }
.cv-card img { display: block; width: min(60%, 240px); margin: 6px auto 8px; border: 1px solid var(--viola-scuro); }
.cv-card { text-align: center; margin-bottom: 10px; }

/* M3: minigiochi a schermo pieno (sotto l'HUD), Wordle, mixer */
.gioco { position: fixed; inset: 0; z-index: 16; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden;
  padding: calc(158px + var(--safe-t)) 12px calc(10px + var(--safe-b)); background: rgba(8, 6, 12, .97); --lato: 46px; }
.gioco[hidden] { display: none; }
body.in-gioco .stazioni, body.in-gioco .ch-esci, body.in-gioco .punti, body.in-gioco .guida { display: none; }
body.in-gioco .voce { bottom: calc(186px + var(--safe-b)); z-index: 18; font-size: 15px; }
.g-chiudi { position: fixed; top: calc(62px + var(--safe-t)); left: 12px; z-index: 17; height: 48px; padding: 0 14px; cursor: pointer;
  font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--bianco); background: rgba(18, 13, 26, .9); border: 1px solid var(--lilla); }
.wd-scena { width: min(100%, 230px); aspect-ratio: 96 / 44; image-rendering: pixelated; border: 1px solid var(--viola-scuro); }
.wd-griglia { display: grid; gap: 5px; }
.wd-riga { display: grid; grid-template-columns: repeat(5, var(--lato)); gap: 5px; }
.wd-riga i { width: var(--lato); height: var(--lato); display: grid; place-items: center; font: 700 calc(var(--lato) * .5) var(--display); font-style: normal;
  border: 2px solid #2b2236; color: var(--bianco); text-transform: uppercase; }
.wd-riga i.piena { border-color: #6a5c80; }
.wd-riga i.giusta { background: #6D2AFF; border-color: #9B5CFF; }
.wd-riga i.presente { background: #c9a227; border-color: #e8c34a; color: #1a0f2a; }
.wd-riga i.assente { background: #1c1724; border-color: #1c1724; color: #6e6480; }
.wd-riga.gira i { animation: gira .45s ease both; } .wd-riga.gira i:nth-child(2) { animation-delay: .09s; } .wd-riga.gira i:nth-child(3) { animation-delay: .18s; } .wd-riga.gira i:nth-child(4) { animation-delay: .27s; } .wd-riga.gira i:nth-child(5) { animation-delay: .36s; }
@keyframes gira { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
.wd-riga.trema { animation: tremaRiga .35s steps(4); } @keyframes tremaRiga { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.wd-riga-msg { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 420px); min-height: 40px; }
.wd-msg { font: 600 15px var(--display); color: var(--testo); display: flex; align-items: center; gap: 10px; }
.wd-msg .btn { padding: 10px 16px; }
.wd-indizio { padding: 8px 12px; min-height: 40px; font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--lilla); background: none; border: 1px solid var(--viola-scuro); cursor: pointer; }
.wd-tastiera { width: min(100%, 460px); display: grid; gap: 6px; margin-top: auto; }
.wd-tastiera div { display: flex; gap: 4px; justify-content: center; }
.wd-tastiera button { flex: 1 1 0; max-width: 42px; height: 52px; padding: 0; font: 700 16px var(--display); color: var(--bianco); background: #2b2236; border: 0; border-radius: 3px; cursor: pointer; touch-action: manipulation; }
.wd-tastiera button.largo { max-width: 64px; flex: 1.6 1 0; font-size: 12px; text-transform: uppercase; }
.wd-tastiera button.giusta { background: #6D2AFF; } .wd-tastiera button.presente { background: #c9a227; color: #1a0f2a; } .wd-tastiera button.assente { background: #141019; color: #5a5070; }
.wd-tastiera button:active { transform: scale(.94); }
.mx { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mx-titolo { font: 700 22px var(--display); }
.mx-piste { touch-action: none; cursor: grab; border: 1px solid var(--viola-scuro); }
.mx-msg { font: 700 17px var(--display); color: var(--bianco); min-height: 24px; }
.mx-aiuto { font-size: 14px; color: var(--muto); }
.mx-avanti { width: 100%; }
.cv-pergamena img { width: min(80%, 320px); }
.mx-avanti[hidden], .gioco [hidden] { display: none; }

/* M4: L'onda */
.on { width: min(100%, 460px); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1; }
.on-round { font: 700 12px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--lilla); }
.on-schermo { border: 2px solid #2b1a3d; border-radius: 10px; box-shadow: inset 0 0 30px rgba(109, 42, 255, .25), 0 0 24px rgba(109, 42, 255, .2); }
.on-segnale { width: min(100%, 460px); height: 6px; background: #1c1724; } .on-segnale i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6D2AFF, #fff); transition: width .1s; }
.on-lettere { display: flex; gap: 8px; } .on-lettere span { width: 40px; height: 44px; display: grid; place-items: center; font: 700 22px var(--display); border: 1px dashed var(--viola-scuro); color: var(--muto); }
.on-lettere span.svelata { border: 1px solid #9B5CFF; background: #6D2AFF; color: #fff; animation: gira .45s ease both; }
.on-msg { font: 600 14px/1.35 var(--display); color: var(--testo); min-height: 38px; }
.on-manopole { display: flex; gap: 28px; justify-content: center; margin-top: auto; padding-bottom: 6px; }
.on-manopola { display: flex; flex-direction: column; align-items: center; gap: 8px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.on-pomo { position: relative; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #4a3a5e, #1a1220 70%); border: 3px solid #2b1a3d; box-shadow: 0 6px 18px rgba(0, 0, 0, .6), 0 0 0 6px rgba(109, 42, 255, .12); }
.on-pomo i { position: absolute; left: 50%; top: 8px; width: 6px; height: 30px; margin-left: -3px; border-radius: 3px; background: #c7a8ff; box-shadow: 0 0 10px #9B5CFF; }
.on-manopola.presa .on-pomo { box-shadow: 0 6px 18px rgba(0, 0, 0, .6), 0 0 0 6px rgba(155, 92, 255, .45); }
.on-manopola span { font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--testo); }

/* M5: il DANKBOY */
.db { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.db-cornice { padding: 8px 8px 4px; border-radius: 12px 12px 40px 12px; background: linear-gradient(160deg, #3a1a52, #24112f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .5); }
.db-schermo { position: relative; padding: 6px; background: #1a1020; border-radius: 6px 6px 22px 6px; box-shadow: inset 0 0 0 2px #0b0612; touch-action: none; }
.db-schermo canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.db-scritta { position: absolute; inset: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(11, 6, 18, .72); pointer-events: none; text-align: center; }
.db-scritta[hidden] { display: none; }
.db-scritta b { font: 700 20px var(--display); letter-spacing: .06em; color: #e8dcff; text-shadow: 2px 2px 0 #3a1a52; }
.db-scritta span { font: 600 12px var(--display); letter-spacing: .14em; color: #9b5cff; animation: respiro 1.2s ease-in-out infinite; }
.db-scritta.vinta b { color: #fff; }
.db-marchio { margin-top: 4px; font: italic 700 15px var(--display); letter-spacing: .12em; color: #c7a8ff; } .db-marchio small { font-size: 10px; color: var(--muto); letter-spacing: .2em; }
.db-pad { flex: 1; width: min(100%, 360px); min-height: 120px; margin-bottom: 4px; border-radius: 22px; cursor: pointer; touch-action: manipulation;
  background: radial-gradient(circle at 50% 35%, #3a2a4e, #1a1222 75%); border: 2px solid #3a1a52; box-shadow: inset 0 -6px 18px rgba(0, 0, 0, .5), 0 0 0 4px rgba(109, 42, 255, .08); color: var(--muto); }
.db-pad span { font: 700 13px var(--display); letter-spacing: .2em; text-transform: uppercase; }
.db-pad:active { transform: scale(.98); box-shadow: inset 0 -2px 8px rgba(0, 0, 0, .5), 0 0 0 4px rgba(155, 92, 255, .35); }
.cv-copertina canvas { display: block; width: min(80%, 300px); margin: 0 auto 12px; image-rendering: pixelated; }
body.in-gioco .voce { pointer-events: none; } /* durante i giochi il fumetto non ruba i tocchi */
.db { gap: 10px; }

/* ---------- il DANKBOY a minigiochi (25/11/2026): menu a 4 slot, istruzioni, superato ---------- */
.db-schermo { position: relative; }
.db-strato { position: absolute; inset: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; text-align: center; background: rgba(11, 6, 18, .78); overflow: auto; }
.db-strato[hidden] { display: none; }
.db-strato.menu { justify-content: flex-start; background: rgba(11, 6, 18, .55); padding: 8px; gap: 6px; }
.db-titolo { font: 700 13px var(--display); letter-spacing: .2em; color: #e8dcff; text-transform: uppercase; }
.db-slot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; flex: 1; }
.db-gioco { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; cursor: pointer; border: 2px solid #3a1a52; background: #140b1e; color: #e8dcff; touch-action: manipulation; }
.db-gioco canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.db-gioco b { font: 700 11px/1.1 var(--display); }
.db-gioco small { font: 700 9px var(--display); letter-spacing: .08em; color: #9b5cff; }
.db-gioco.nuovo { border-color: #9b5cff; box-shadow: 0 0 12px rgba(155, 92, 255, .6); animation: respiro 1.6s ease-in-out infinite; }
.db-gioco.superato { border-color: #6D2AFF; } .db-gioco.superato small { color: #c7a8ff; }
.db-gioco.chiuso { opacity: .55; cursor: default; } .db-gioco.chiuso small { color: var(--muto); }
.db-gioco.no { animation: tremaRiga .35s steps(4); }
.db-righe { font: 500 13px/1.4 Inter, sans-serif; color: #e8dcff; } .db-righe em { font-style: normal; color: #c7a8ff; }
.db-info { font: 500 12px/1.45 Inter, sans-serif; color: var(--testo); } .db-info b { color: #e8dcff; }
.db-azioni { display: flex; gap: 8px; margin-top: 4px; }
.db-btn { min-height: 44px; padding: 0 16px; cursor: pointer; font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #6D2AFF; border: 1px solid #9b5cff; }
.db-btn.ghost { background: transparent; color: #c7a8ff; }
.db-grande { font: 700 22px var(--display); letter-spacing: .06em; color: #e8dcff; text-shadow: 2px 2px 0 #3a1a52; }
.db-sub { font: 700 12px var(--display); letter-spacing: .1em; color: #c7a8ff; text-transform: uppercase; }
.db-lampeggia { font: 600 12px var(--display); letter-spacing: .14em; color: #9b5cff; animation: respiro 1.2s ease-in-out infinite; }
.db-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 15px var(--display); color: #c7a8ff; } .db-badge span { font-size: 16px; }
.db-file { font: 600 12px var(--display); color: #e8dcff; }
.db-card img { width: 90px; } .db-card .cv-s { font-size: 11px; } .db-card .btn { padding: 8px 10px; font-size: 11px; }
.db-strato.morte, .db-strato.superato { background: rgba(11, 6, 18, .7); }
.db-scrittina { position: absolute; left: 0; right: 0; top: 22px; margin: 0; text-align: center; pointer-events: none; font: 700 13px var(--display); letter-spacing: .08em; color: #fff; text-shadow: 2px 2px 0 #3a1a52, 0 0 8px #6D2AFF; }
.db-scrittina.via { animation: scrittina .9s ease-out both; }
@keyframes scrittina { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.ch-tempo { font-size: 26px; }

/* il computer con gli spoiler: un desktop vecchio stile */
.pc { width: min(100%, 440px); background: #120d1a; border: 2px solid #9b5cff; box-shadow: 0 0 0 4px #120d1a, 0 0 0 6px #3a1a52, 0 18px 50px rgba(0, 0, 0, .6); }
.pc-barra { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font: 700 12px var(--display); letter-spacing: .1em; color: #e8dcff; background: #3a1a52; }
.pc-barra i { width: 10px; height: 10px; border-radius: 50%; background: #6D2AFF; } .pc-barra i:first-child { margin-right: 0; }
.pc-corpo { padding: 14px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 260px); overflow: auto; }
.pc-file { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pc-icona { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 92px; cursor: pointer; background: none; border: 1px solid transparent; color: #e8dcff; touch-action: manipulation; }
.pc-icona span { font-size: 30px; } .pc-icona b { font: 600 11px/1.2 var(--display); word-break: break-all; } .pc-icona small { font: 500 10px/1.2 Inter, sans-serif; color: var(--muto); }
.pc-icona:active { border-color: #9b5cff; background: rgba(109, 42, 255, .15); }
.pc-icona.chiuso { opacity: .5; cursor: default; }
.pc-indietro { align-self: flex-start; min-height: 44px; padding: 0 12px; cursor: pointer; font: 700 13px var(--display); color: #c7a8ff; background: none; border: 1px solid #3a1a52; }
.pc-testo { font: 500 15px/1.4 Inter, sans-serif; color: var(--testo); } .pc-testo.piccolo { font-size: 13px; min-height: 18px; }
.pc-tracce { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-traccia { min-height: 48px; cursor: pointer; font: 700 14px var(--display); letter-spacing: .06em; color: #fff; background: #6D2AFF; border: 1px solid #9b5cff; }
.pc-traccia.off { background: transparent; color: #9b5cff; } .pc-traccia.chiusa { background: #1c1724; color: #5a5070; border-color: #1c1724; }
.pc-immagine img, .pc-immagine canvas { display: block; width: min(100%, 320px); margin: 0 auto; image-rendering: pixelated; }
.gioco.computer { justify-content: flex-start; }
.pc-traccia { display: grid; place-items: center; }

/* i sottotitoli del demone: un riquadro scuro, appena viola, che segue le righe del testo (come i sottotitoli dei film) */
.voce p { display: inline; padding: 3px 10px; line-height: 1.75; background: rgba(14, 8, 24, .78); box-shadow: 0 0 0 1px rgba(155, 92, 255, .25);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 3px; }
.voce p:empty { display: none; }

/* il DANKBOY: rune animate accanto al marchio, giorno/notte, scritte solo per i lettori di schermo */
.db-rune { margin-left: 6px; font: 400 13px var(--runic); letter-spacing: .25em; color: #9b5cff; text-shadow: 0 0 8px rgba(155, 92, 255, .8); font-style: normal; }
.db-schermo canvas { transition: filter .8s steps(4); }
.db-schermo canvas.notte { filter: invert(1) hue-rotate(180deg); }
.db-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* l'accensione del DANKBOY: schermo chiaro, il nome, una barra nera che si riempie */
.db-strato.avvio { background: #cbb8f0; gap: 10px; }
.db-boot-nome { font: italic 700 26px var(--display); letter-spacing: .1em; color: #1a0b2e; animation: bootScende .5s steps(5) both; }
.db-boot-barra { width: 62%; height: 12px; padding: 2px; border: 2px solid #0b0612; background: #cbb8f0; }
.db-boot-barra i { display: block; height: 100%; width: 0; background: #0b0612; animation: bootBarra 1.3s steps(12) .25s forwards; }
.db-boot-sotto { font: 700 9px var(--display); letter-spacing: .3em; color: #3a1a52; opacity: .8; }
@keyframes bootScende { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bootBarra { to { width: 100%; } }
.db-righe.piccole { font-size: 12px; color: var(--testo); }

/* l'accensione di DankOS sul computer del caveau */
.pc-boot { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 300px; cursor: pointer; }
.pc-sigillo { width: min(100%, 340px); height: auto; filter: drop-shadow(0 0 6px rgba(155, 92, 255, .6)); }
.pc-log { align-self: stretch; margin: 0; min-height: 96px; font: 500 12px/1.5 ui-monospace, Menlo, monospace; color: #c7a8ff; white-space: pre-wrap; }
.pc-salta { font: 600 10px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muto); }

/* il tastierino runico della porta del caveau */
.gioco.tastierino { justify-content: center; padding-top: calc(110px + var(--safe-t)); }
.tz { width: min(100%, 320px); padding: 16px 16px 14px; background: linear-gradient(160deg, #3a3446, #1e1a26); border: 2px solid #0b0612; border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 4px rgba(155, 92, 255, .15); }
.tz-marca { font: 700 10px var(--display); letter-spacing: .2em; color: #a89cc0; text-align: center; margin-bottom: 10px; }
.tz-lcd { height: 56px; display: grid; place-items: center; margin-bottom: 14px; border: 3px solid #0b0612; border-radius: 4px;
  background: linear-gradient(#c7a8ff, #8c5af0); box-shadow: inset 0 0 12px rgba(26, 15, 42, .5); }
.tz-cifre { font: 700 28px var(--display), var(--runic); letter-spacing: .25em; color: #1a0f2a; }
.tz-lcd.giusto { background: linear-gradient(#d8ffd0, #7ad070); } .tz-lcd.sbagliato { background: linear-gradient(#ffc0c0, #e06060); animation: tremaRiga .35s steps(4); }
.tz-griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tz-tasto { aspect-ratio: 1; min-height: 64px; cursor: pointer; font: 30px var(--runic); color: #e8dcff; touch-action: manipulation;
  background: radial-gradient(circle at 40% 30%, #4a3a5e, #1a1220 75%); border: 2px solid #0b0612; border-radius: 8px; box-shadow: 0 4px 0 #0b0612, inset 0 0 10px rgba(155, 92, 255, .25); text-shadow: 0 0 8px #9b5cff; }
.tz-tasto:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0612, inset 0 0 14px rgba(155, 92, 255, .6); }
.tz-sotto { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tz-canc { min-height: 44px; padding: 0 14px; cursor: pointer; font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #c7a8ff; background: none; border: 1px solid #4a3a5e; }
.tz-aiuto { font: 500 12px/1.3 Inter, sans-serif; color: var(--muto); text-align: right; }

/* la scheda del personaggio: la maschera in 3D e le statistiche */
.araldo-3d { width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto 8px; background: radial-gradient(circle at 50% 45%, rgba(109, 42, 255, .3), transparent 65%); touch-action: none; }
.araldo-cv { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: grab; }
.araldo-stats { list-style: none; display: grid; gap: 7px; padding: 0; margin: 12px 0 4px; }
.araldo-stats li { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; font: 600 14px var(--display); color: var(--testo); }
.araldo-stats i { display: flex; gap: 3px; }
.araldo-stats b, .araldo-stats em { flex: 1; height: 12px; background: #9b5cff; box-shadow: 0 0 6px rgba(155, 92, 255, .6); }
.araldo-stats em { background: #241a30; box-shadow: none; }
.pc-titolo { font: 700 20px var(--display); color: var(--bianco); }
.pc-svelato { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.pc-svelato[hidden], .pc-rotto[hidden] { display: none; }

/* i tasti per uscire: chiari e a portata d'occhio (26/11) */
.g-chiudi { background: #6D2AFF; border-color: #c7a8ff; color: #fff; box-shadow: 0 0 18px rgba(109, 42, 255, .6); font-size: 14px; }
.g-esci-basso { position: fixed; z-index: 17; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); min-width: min(84vw, 320px); min-height: 52px; padding: 0 22px; cursor: pointer;
  font: 700 15px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #6D2AFF; border: 2px solid #c7a8ff; box-shadow: 0 0 22px rgba(109, 42, 255, .7), 0 8px 24px rgba(0, 0, 0, .5); }
.g-esci-basso:active { transform: translateX(-50%) scale(.97); }
.gioco.computer, .gioco.tastierino { padding-bottom: calc(86px + var(--safe-b)); }
.gioco.computer .pc-corpo { max-height: calc(100vh - 300px); }
/* lo snippet: la voce al centro nella seconda riga, le onde sotto */
.pc-tracce .pc-traccia:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
.pc-traccia.on { background: var(--c, #6D2AFF); border-color: #fff; }
.pc-onde { display: block; width: 100%; height: 105px; background: #0d0716; border: 1px solid #2b1a3d; }
/* il glitch cambia solo il segno, mai la forma del tasto: la scritta sta in una scatola fissa */
.tz-tasto { display: grid; place-items: center; padding: 0; }
.tz-tasto span { display: block; width: 1.4em; height: 36px; line-height: 36px; text-align: center; overflow: hidden; white-space: nowrap; }
.tz-tasto.glitch span { color: var(--lilla); text-shadow: 2px 0 var(--viola), -2px 0 rgba(237, 230, 255, .35); }
.tz-tasto.latino span { font-family: var(--display); font-weight: 700; color: #b98aff; text-shadow: 0 0 10px #6D2AFF, 1px 0 #ff3b6b, -1px 0 #3bf0ff; }

/* la lettera: carta come la pergamena del testo della canzone (26/11) */
.perg-asta { display: none; }
.perg-foglio { padding: 26px 26px 22px; color: #1a0f2a; font-family: var(--display);
  background: radial-gradient(ellipse at center, rgba(120, 80, 30, 0) 55%, rgba(90, 55, 20, .5) 100%),
    radial-gradient(circle at 20% 30%, rgba(120, 80, 30, .1) 0 2px, transparent 3px) 0 0 / 23px 19px,
    radial-gradient(circle at 70% 60%, rgba(90, 60, 30, .08) 0 2px, transparent 3px) 0 0 / 31px 27px, #e6d6b4;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.perg-foglio::before, .perg-foglio::after { content: ""; position: absolute; pointer-events: none; border: 4px solid rgba(70, 40, 20, .5); inset: 8px; }
.perg-foglio::after { border-width: 1.5px; inset: 15px; }
.perg-titolo { font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #2b1a3d; text-align: center; margin: 4px 0 10px; }
.perg-apertura { font: 700 21px var(--display); font-style: normal; color: #1a0f2a; }
.campo textarea, .campo input, .specchio { font: 500 18px/1.55 var(--display); }
.specchio { color: #1a0f2a; }
.riga .etc { font: 600 14px var(--display); font-style: normal; color: #4a2f24; }
.ceralacca img, .perg-nastro span img { width: 70%; height: 70%; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .4)); }
/* il timbro: la ceralacca con la runa che si stampa sulla lettera */
.perg-timbro { position: absolute; z-index: 4; left: 50%; bottom: 70px; width: 96px; height: 96px; margin-left: -48px; display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #9B5CFF, #4a14b0 70%); box-shadow: 0 0 0 5px rgba(74, 20, 176, .55), 0 6px 18px rgba(0, 0, 0, .5); opacity: 0; transform: scale(2.6) rotate(-20deg); }
.perg-timbro img { width: 68%; height: 68%; }
.perg.timbrata .perg-timbro { animation: timbro .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes timbro { 60% { opacity: 1; transform: scale(.9) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.sp-esci { z-index: 46; }
.sp-esci[hidden] { display: none; }

/* il caricamento runico (e il ripiego per i browser troppo vecchi) */
.caricamento { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #0B0B0F; transition: opacity .6s; }
.caricamento.via { opacity: 0; pointer-events: none; }
.car-rune { font: 34px var(--runic); letter-spacing: .25em; color: #9B5CFF; text-shadow: 0 0 14px rgba(155, 92, 255, .8); }
.car-testo { font: 600 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--testo); text-align: center; padding: 0 20px; }
.car-testo small { display: block; margin-top: 8px; font: 500 14px/1.4 Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--muto); }
.caricamento.fermo { position: static; min-height: 0; padding: 90px 20px 0; background: none; }
.sp-testo { padding-bottom: calc(96px + var(--safe-b)); } /* sopra il tasto "Torna a casa di danknote" */

/* la lettera (27/11): il corpo scorre da solo, allegati, timbro al centro, la lettera si chiude in un rotolo legato */
.campo textarea { max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; }
.campo.area .specchio { overflow: hidden; }
.perg-file { align-items: center; flex-wrap: wrap; }
.perg-file-btn { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; cursor: pointer; font: 600 13px var(--display); color: #2a1a3d; border: 1px dashed rgba(70, 40, 20, .6); }
.perg-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.perg-file-nome { font: 500 13px var(--display); color: #5a4060; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.perg-foglio { transition: clip-path .8s cubic-bezier(.6, 0, .4, 1), filter .8s; }
.perg.chiusa .perg-foglio { clip-path: inset(calc(50% - 24px) 0 calc(50% - 24px) 0) !important; filter: brightness(.85); }
.perg-rotolo { position: absolute; z-index: 2; left: -6px; right: -6px; top: 50%; height: 56px; margin-top: -28px; border-radius: 28px; pointer-events: none; opacity: 0; transform: scaleX(.7);
  background: linear-gradient(#a8875a, #e6d6b4 30%, #f3e6c8 45%, #c9ab7c 75%, #7a5a34); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); transition: opacity .35s .55s, transform .45s .55s cubic-bezier(.3, 1.4, .5, 1); }
.perg.chiusa .perg-rotolo { opacity: 1; transform: none; }
.perg-nastro { top: 50%; height: 76px; margin-top: -38px; z-index: 3; }
.perg-nastro span { display: none; }
.perg-sigillo { position: absolute; z-index: 5; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; transition: transform .6s .5s cubic-bezier(.3, 1.3, .5, 1); }
.perg.chiusa .perg-sigillo { transform: scale(.58); }
.perg-sigillo .perg-timbro { position: static; margin: 0; left: auto; bottom: auto; width: 100%; height: 100%; }
/* dentro il quadro: "Spedita." e "Arriverà… prima o poi" grandi, che tremano di viola */
.sp-grande { display: block; font: 700 clamp(40px, 12vw, 64px)/1.05 var(--display); color: #EDE6FF; text-shadow: 0 0 18px #6D2AFF, 0 0 2px #000; }
.sp-trema { display: block; margin-top: 12px; font: 700 clamp(24px, 7vw, 36px)/1.2 var(--display); color: #b98aff; text-shadow: 0 0 14px #6D2AFF, 2px 0 #ff3b6b, -2px 0 #3bf0ff; animation: spTrema .12s steps(2) infinite, spEntra .5s ease-out; }
@keyframes spTrema { 0% { transform: translate(0, 0) skewX(0); } 25% { transform: translate(-2px, 1px) skewX(-3deg); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, -2px) skewX(3deg); } }
@keyframes spEntra { from { opacity: 0; filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .sp-trema { animation: none; } }
.sp-testo small { display: block; margin-top: 10px; }
/* le carte legali, in fondo al menu */
.menu-legale { display: block; width: 100%; margin-top: 8px; padding: 12px 0; cursor: pointer; text-align: left; font: 500 13px var(--display); color: var(--muto); background: none; border: 0; border-top: 1px solid var(--viola-scuro); }
.legale h3 { margin: 18px 0 6px; font: 700 15px var(--display); color: var(--bianco); }
.legale p { margin: 0 0 8px; font: 400 14px/1.55 Inter, sans-serif; color: var(--testo); }
.legale a { color: var(--lilla); }
.legale-fine { margin-top: 18px !important; font: 600 15px var(--display) !important; color: #b98aff !important; }

/* solo da pc (mouse) o solo da telefono (dito) */
.solo-pc { display: none; }
@media (hover: hover) and (pointer: fine) { .solo-pc { display: inline; } .solo-tel { display: none; } }

/* niente zoom col doppio tocco né selezione del testo (iPhone/iPad, soprattutto nel DANKBOY); nei campi si scrive normalmente */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable], .legale, .legale *, .f-voce, .c-ok { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.gioco, .gioco *, canvas { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; }

/* IL BENVENUTO (27/11): la finestrella della prima visita, animata, si chiude e non torna */
.benvenuto { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 8, .55); animation: bvFondo .4s ease-out; }
.benvenuto[hidden] { display: none; }
.benvenuto.via { opacity: 0; transition: opacity .35s; pointer-events: none; }
@keyframes bvFondo { from { opacity: 0; } }
.bv-box { position: relative; width: min(100%, 420px); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 20px 20px; text-align: center;
  background: var(--notte); border: 1px solid var(--lilla); box-shadow: 0 0 0 4px rgba(11, 11, 15, .8), 0 0 40px rgba(109, 42, 255, .45); animation: bvEntra .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes bvEntra { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.bv-box h2 { font: 700 clamp(24px, 7vw, 30px)/1.1 var(--display); color: var(--bianco); text-shadow: 0 0 14px #6D2AFF; margin: 4px 0 8px; }
.bv-box > p { font: 400 15px/1.5 Inter, sans-serif; color: var(--testo); margin-bottom: 16px; }
.bv-lista { list-style: none; display: grid; gap: 10px; margin: 0 0 16px; padding: 0; text-align: left; }
.bv-lista li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--viola-scuro); background: rgba(11, 11, 15, .6);
  opacity: 0; animation: bvRiga .45s ease-out forwards; }
.bv-lista li:nth-child(1) { animation-delay: .25s; } .bv-lista li:nth-child(2) { animation-delay: .45s; } .bv-lista li:nth-child(3) { animation-delay: .65s; }
@keyframes bvRiga { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.bv-lista b { display: block; font: 700 15px/1.2 var(--display); color: var(--bianco); }
.bv-lista span { font: 400 13px/1.35 Inter, sans-serif; color: var(--muto); }
.bv-fine { font: 600 13px var(--display) !important; color: #b98aff !important; margin: 0 0 14px !important; }
.bv-box .btn { width: 100%; }
.bv-chiudi { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; cursor: pointer; background: none; border: 0; color: var(--muto); font-size: 18px; }
/* le icone animate */
.bv-ic { position: relative; width: 64px; height: 52px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(109, 42, 255, .25), transparent 70%); }
.bv-ic svg { position: absolute; }
.bv-mouse svg { left: 22px; top: 10px; width: 20px; height: 30px; animation: bvTrascina 2.2s ease-in-out infinite; }
.bv-dito svg { left: 20px; top: 12px; width: 24px; height: 30px; animation: bvTrascina 2.2s ease-in-out infinite; }
@keyframes bvTrascina { 0%, 100% { transform: translateX(-14px); } 50% { transform: translateX(14px); } }
.bv-ic .scia { position: absolute; left: 8px; right: 8px; top: 46px; height: 2px; background: linear-gradient(90deg, transparent, #9b5cff, transparent); opacity: .7; }
.bv-pallino i { position: absolute; left: 25px; top: 19px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f3ecff 0 22%, #9B5CFF 45%, #6D2AFF 100%); box-shadow: 0 0 12px 2px rgba(155, 92, 255, .9); animation: bvPulsa 1.4s ease-in-out infinite; }
.bv-pallino i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #9b5cff; animation: bvOnda 1.4s ease-out infinite; }
.bv-pallino svg { left: 30px; top: 24px; width: 18px; height: 24px; animation: bvClic 1.4s ease-in-out infinite; }
@keyframes bvPulsa { 50% { transform: scale(1.2); } }
@keyframes bvOnda { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes bvClic { 0%, 100% { transform: translate(8px, 8px); } 40%, 60% { transform: translate(0, 0) scale(.9); } }
.bv-frecce { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 18px var(--display); color: var(--bianco); }
.bv-frecce em { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--lilla); background: rgba(11, 11, 15, .9); }
.bv-frecce em:first-child { animation: bvPremi 2s infinite; } .bv-frecce em:last-child { animation: bvPremi 2s 1s infinite; }
@keyframes bvPremi { 0%, 40%, 100% { background: rgba(11, 11, 15, .9); transform: none; } 15% { background: #6D2AFF; transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .bv-ic *, .bv-lista li, .bv-box, .bv-frecce em { animation: none !important; opacity: 1; } }
/* (27/11) il glitch d'arrivo della copertina nella scheda */
.cop-glitch { transition: opacity .25s; } .cop-glitch.via { opacity: 0; }
/* (27/11 sera) il menu del DANKBOY: si capisce che il gioco si tocca sullo schermo di sopra */
.db-aiuto-menu { margin-top: -4px; font: 700 10px var(--display); letter-spacing: .1em; color: #c7a8ff; animation: respiro 1.6s ease-in-out infinite; }
.db-gioco { position: relative; }
.db-gioco:not(.chiuso)::after { content: ""; position: absolute; inset: -2px; border: 2px solid rgba(199, 168, 255, .9); pointer-events: none; opacity: 0; animation: ondaSlot 2.2s ease-out infinite; }
.db-gioco:not(.chiuso):nth-child(2)::after { animation-delay: .3s; } .db-gioco:not(.chiuso):nth-child(3)::after { animation-delay: .6s; } .db-gioco:not(.chiuso):nth-child(4)::after { animation-delay: .9s; }
@keyframes ondaSlot { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.04, 1.08); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .db-gioco::after, .db-aiuto-menu { animation: none !important; } }
.menu-pagine { margin: 12px 0 0; font: 600 14px var(--display); color: var(--muto); }
.menu-pagine a { display: inline-block; padding: 10px 2px; color: var(--lilla); }
