/* Shared flyer overlay + theming for green/red/pink. */

.fr-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.5rem);
  background: rgba(0, 0, 0, 0.78);
}
.fr-overlay.hidden { display: none !important; }

.fr-flyer {
  position: relative;
  width: min(520px, 94vw);
  border-radius: 22px;
  padding: clamp(1.1rem, 3.5vw, 2rem);
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}
.fr-flyer.fr-green {
  background: linear-gradient(180deg, rgba(10,47,26,0.98) 0%, rgba(13,77,42,0.95) 50%, rgba(10,47,26,0.98) 100%);
  border-color: rgba(201, 162, 39, 0.85);
}
.fr-flyer.fr-red {
  background: linear-gradient(180deg, rgba(45, 10, 10, 0.98) 0%, rgba(90, 15, 15, 0.95) 50%, rgba(45, 10, 10, 0.98) 100%);
  border-color: rgba(255, 107, 107, 0.85);
}
.fr-flyer.fr-pink {
  background: linear-gradient(180deg, rgba(14, 45, 18, 0.98) 0%, rgba(20, 80, 30, 0.95) 50%, rgba(14, 45, 18, 0.98) 100%);
  border-color: rgba(27, 94, 32, 0.9);
}

.fr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.fr-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.fr-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.fr-datetime {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.fr-title {
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.92);
}
.fr-sub {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.65rem;
}
.fr-divider {
  height: 2px;
  margin: 0.85rem 0;
  opacity: 0.65;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
}

.fr-super {
  text-align: center;
  margin: 0.6rem 0 0.2rem;
}
.fr-super-label { font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.fr-super-num {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.6rem;
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
  color: #ffd700;
  text-shadow: 0 0 18px rgba(255,215,0,0.45);
}

.fr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}
.fr-red .fr-grid,
.fr-pink .fr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fr-cell {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}
.fr-green .fr-cell { border-color: rgba(0,217,79,0.35); background: rgba(0,217,79,0.12); }
.fr-red .fr-cell { border-color: rgba(220,53,69,0.4); background: rgba(220,53,69,0.14); }
.fr-pink .fr-cell { border-color: rgba(27,94,32,0.45); background: rgba(27,94,32,0.14); }

.fr-find {
  width: 18ch;
  max-width: 100%;
  margin: 0.85rem auto 0;
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.fr-hit { opacity: 1; filter: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.18); }
.fr-dim { opacity: 0.22; filter: grayscale(1); pointer-events: none; }

.fr-close {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.22);
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  display: grid;
  place-items: center;
  line-height: 1;
}
.fr-close:hover { background: rgba(0,0,0,0.28); }

@media (max-width: 768px) {
  .fr-flyer { width: min(560px, 96vw); }
  .fr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem 0.45rem; }
  .fr-cell { font-size: 0.8rem; padding: 0.4rem 0.45rem; }
  .fr-super-num { font-size: 1.35rem; }
}

