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

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

.fr-header { position: relative; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.fr-centro { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.fr-punti { background: #d3f9d8; }
.fr-livello { background: #e5dbff; }
.fr-su { font-size: .75em; opacity: .7; font-weight: bold; margin-left: 1px; }
/* barra dei punti del livello, in cima all'arena */
.fr-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; }
.fr-barra-in { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--verde), var(--azzurro)); transition: width .25s; }

.fr-arena { position: relative; min-height: 0; border-radius: var(--raggio); overflow: hidden; box-shadow: var(--ombra); background: #fff5fb; }
.fr-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

.fr-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; }
.fr-overlay[hidden] { display: none; }
.fr-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; }
.fr-big { font-size: clamp(2.2rem, 10vmin, 4rem); line-height: 1.1; }
.fr-h2 { font-size: clamp(1.1rem, 4.5vmin, 1.7rem); font-weight: 900; color: var(--ttitolo); }
.fr-p { margin: 0; font-size: clamp(.8rem, 3vmin, 1rem); font-weight: bold; opacity: .85; }
.fr-punteggio { font-size: clamp(1.6rem, 8vmin, 2.8rem); font-weight: 900; color: var(--verde); }
.fr-record { background: var(--sfondo); border-radius: 999px; padding: 4px 14px; font-weight: bold; }
/* scelta dell'arma: le bloccate mostrano il prezzo in stelline */
.fr-armi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 100%; }
.fr-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; }
.fr-arma-e { font-size: clamp(1.8rem, 7vmin, 2.6rem); line-height: 1.1; }   /* l'emoji dell'arma (scelta di Ray), bella grande */
.fr-arma-n { font-size: .66rem; font-weight: bold; letter-spacing: 0; white-space: nowrap; }
.fr-start { font-size: 1.2rem; padding: 12px 28px; }

@media (max-height: 520px) {
  .fr-card { padding: 8px 12px; gap: 3px; border-width: 4px; }
  .fr-p { display: none; }
  .fr-arma-n { display: none; }
  .fr-arma { padding: 2px; }
  .fr-start { font-size: 1rem; padding: 8px 20px; }
}
