/* ===== Vola vola =====
   Regola del progetto: dentro il gioco NON si scorre mai. Solo CSS che i Chrome vecchi conoscono. */

.vv { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; overflow: hidden; }

.vv-header { position: relative; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.vv-centro { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.vv-punti { background: #d0ebff; }
.vv-livello { background: #e5dbff; }
.vv-su { font-size: .75em; opacity: .7; font-weight: bold; margin-left: 1px; }
/* barra dei punti del livello, in cima all'arena */
.vv-barra { position: absolute; left: 10px; right: 10px; top: 8px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 3px rgba(0,0,0,.15); z-index: 2; overflow: hidden; }
.vv-barra-in { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--verde), var(--azzurro)); transition: width .25s; }

.vv-arena { position: relative; min-height: 0; border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); background: #fff5fb; }
.vv-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.vv-vite { position: absolute; right: 10px; top: 6px; z-index: 2; font-size: 1.3rem; letter-spacing: 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }

.vv-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(255, 245, 251, .82); padding: 8px; }
.vv-overlay[hidden] { display: none; }
.vv-card { background: #fff; border-radius: 26px; padding: 14px 18px; width: min(420px, 100%); max-height: 100%; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vv-big { font-size: clamp(2.2rem, 10vmin, 4rem); line-height: 1.1; }
.vv-h2 { font-size: clamp(1.1rem, 4.5vmin, 1.7rem); font-weight: 900; color: var(--ttitolo); }
.vv-p { margin: 0; font-size: clamp(.8rem, 3vmin, 1rem); font-weight: bold; opacity: .85; }
.vv-punteggio { font-size: clamp(1.6rem, 8vmin, 2.8rem); font-weight: 900; color: var(--verde); }
.vv-record { background: var(--sfondo); border-radius: 999px; padding: 4px 14px; font-weight: bold; }
/* scelta del personaggio: i bloccati mostrano il prezzo in stelline */
.vv-armi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 100%; }
.vv-arma { position: relative; min-width: 0; padding: 4px 2px; cursor: pointer; font: inherit; color: var(--testo); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.vv-arma-e { font-size: clamp(1.3rem, 5vmin, 1.9rem); line-height: 1.1; }
.vv-arma-n { font-size: .66rem; font-weight: bold; letter-spacing: 0; white-space: nowrap; }
.vv-start { font-size: 1.2rem; padding: 12px 28px; }

@media (max-height: 520px) {
  .vv-card { padding: 8px 12px; gap: 3px; border-width: 4px; }
  .vv-p { display: none; }
  .vv-arma-n { display: none; }
  .vv-arma { padding: 2px; }
  .vv-start { font-size: 1rem; padding: 8px 20px; }
}
/* tasto turbo: in basso a sinistra, grande per il pollice */
.vv-turbo { position: absolute; left: 12px; bottom: 14px; z-index: 3; width: 74px; height: 74px; border-radius: 50%; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.vv-turbo b { position: absolute; right: -4px; top: -4px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--giallo); border: 2px solid var(--bordo-home); font-size: .8rem; line-height: 20px; }
.vv-turbo:disabled { filter: grayscale(1); opacity: .5; }
.vv-turbo.acceso { filter: none; opacity: 1; animation: turbo-pulsa .25s infinite alternate; }
@keyframes turbo-pulsa { to { transform: scale(1.08); } }
@media (max-height: 520px) { .vv-turbo { width: 56px; height: 56px; font-size: 1.5rem; } }

/* personaggi disegnati (VolaDisegno): miniature nella scelta e nella finestra del livello */
.vv-mini-img { display: block; width: clamp(44px, 11vmin, 64px); height: auto; margin: 0 auto; }
.vv-big-img { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: middle; margin-right: .1em; }
