/* assets/bingo-vhs.css — Cinemafreak VHS Edition v1.3 */
/* -----------------------------------------------------
   ✓ Vierkante cellen
   ✓ Tekst past altijd (wrap)
   ✓ VHS-flicker, glow & ruis zonder Base64
------------------------------------------------------ */

body {
  background-color: #000;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: vhsNoise 8s steps(2) infinite;
  overflow-x: hidden;
}

/* --- Wrapper --- */
.giallo-bingo-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 150, 0.15);
}

.giallo-bingo-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://image.tmdb.org/t/p/w1280/gSWmMfn36nGAZmnma3IvZhgCglj.jpg'); /* voorbeeld Zombie Flesh Eaters */
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.45) saturate(0.8) opacity(0.4);
  transform: scale(1.05);
  z-index: 0;
}

.giallo-bingo-wrapper > *:not(.giallo-bingo-bg) {
  position: relative;
  z-index: 1;
}

/* --- VHS scanlines & ruis --- */
.giallo-bingo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 2px
  );
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: flicker 2.8s infinite linear;
}

.giallo-bingo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/grain.svg");
  background-size: 200px 200px;
  opacity: 0.1;
  mix-blend-mode: overlay;
  animation: noiseShift 1s steps(8) infinite;
  pointer-events: none;
}

/* --- Title --- */
.giallo-bingo-title {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: #ffdf57;
  text-align: center;
  text-shadow: 0 0 8px #ffb700, 0 0 18px #ffd000;
  animation: titlePulse 3s infinite ease-in-out;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

/* --- Controls --- */
.giallo-bingo-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.giallo-btn {
  border: 2px solid #ffdf57;
  background: rgba(0, 0, 0, 0.6);
  color: #ffdf57;
  text-shadow: 0 0 8px #ffb700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.giallo-btn:hover {
  background: #ffdf57;
  color: #000;
  box-shadow: 0 0 10px #ffef90;
}

/* --- Grid --- */
.giallo-bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Bingo cells --- */
.giallo-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fffae0;
  border: 1px solid rgba(255, 240, 200, 0.2);
  border-radius: 8px;
  padding: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.15;
}

.giallo-cell:hover {
  background: rgba(255, 230, 100, 0.15);
  transform: scale(1.02);
}

.giallo-cell.checked {
  background: #ffd54a;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255,210,80,0.8);
}

/* --- Footer progress --- */
.giallo-progress {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  color: #ffd54a;
  font-size: 0.9rem;
}

/* --- Toast --- */
.giallo-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffdf57;
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 6px;
   font-weight: bold;
  text-transform: uppercase;
  animation: fadeOut 3s forwards;
  z-index: 9999;
}
