/* Bullsy: Humans vs Zombies (HvZ) — v1 theme */
/* You can scope all of this under .bullsy-game-hvz to avoid cross-game bleed */

.bullsy-game-hvz{
  position: relative;
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
  background: rgba(10,12,14,.72);
  backdrop-filter: blur(10px);
}

.bullsy-hvz-header{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

#bullsy-hvz-round{
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .92;
}

#bullsy-hvz-score{
  font-size: 56px;
  font-weight: 950;
  line-height: 1;
  padding: 8px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  min-width: 120px;
  text-align: center;
}

.bullsy-hvz-status{
  text-align: right;
  opacity: .85;
  font-weight: 700;
}

.bullsy-hvz-panels{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bullsy-hvz-panel{
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
  overflow: hidden;
}

.bullsy-hvz-team-title{
  font-weight: 950;
  letter-spacing: .7px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.bullsy-hvz-btns{
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 10px;
}

.bullsy-hvz-scorebtn{
  border-radius: 18px;
  padding: 14px 10px;
  font-weight: 950;
  font-size: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #ffffff;
  cursor: pointer;
  transition: transform .08s ease, filter .08s ease, opacity .12s ease;
}
.bullsy-hvz-scorebtn:active{ transform: scale(.98); }
.bullsy-hvz-scorebtn:disabled{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Humans (alive) */
.bullsy-hvz-human{
  background: radial-gradient(1200px 420px at 20% 0%, rgba(80, 255, 170, .20), transparent 55%),
              rgba(255,255,255,.05);
}
.bullsy-hvz-human .bullsy-hvz-team-title::after{
  content: "ALIVE";
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(80,255,170,.16);
  border: 1px solid rgba(80,255,170,.26);
}
.bullsy-hvz-human .bullsy-hvz-scorebtn{
  background: rgba(80,255,170,.10);
  border-color: rgba(80,255,170,.22);
}

/* Zombies (dead) */
.bullsy-hvz-zombie{
  background: radial-gradient(1200px 420px at 80% 0%, rgba(255, 60, 60, .18), transparent 55%),
              rgba(255,255,255,.05);
}
.bullsy-hvz-zombie .bullsy-hvz-team-title::after{
  content: "UNDEAD";
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,60,60,.14);
  border: 1px solid rgba(255,60,60,.22);
}
.bullsy-hvz-zombie .bullsy-hvz-scorebtn{
  background: rgba(255,60,60,.10);
  border-color: rgba(255,60,60,.22);
}

/* Actions */
.bullsy-hvz-actions{
  margin-top: 14px;
  display:flex;
  justify-content: center;
}
.bullsy-btn{
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
}

/* FINAL THROW banner */
.bullsy-hvz-final{
  position: absolute;
  inset: 10px 10px auto 10px;
  z-index: 4;
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: center;
  background: rgba(0,0,0,.60);
  border: 1px solid rgba(255,255,255,.20);
}

/* Chaos escalation */
.bullsy-game-hvz.hvz-chaos-1 #bullsy-hvz-score{
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 26px rgba(255,255,255,.14);
}
.bullsy-game-hvz.hvz-chaos-2{
  animation: hvzPulse 1.2s ease-in-out infinite;
}
@keyframes hvzPulse{
  0%,100%{ filter: brightness(1); }
  50%{ filter: brightness(1.08); }
}
.bullsy-game-hvz.hvz-chaos-3{
  animation: hvzChaos .45s ease-in-out infinite;
}
@keyframes hvzChaos{
  0%,100%{ transform: translate3d(0,0,0); }
  25%{ transform: translate3d(1px,-1px,0); }
  50%{ transform: translate3d(-1px,1px,0); }
  75%{ transform: translate3d(1px,1px,0); }
}

/* Win overlay takeover */
.bullsy-hvz-win-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.bullsy-hvz-win-overlay.is-open{ display: flex; }

.bullsy-hvz-win-inner{
  width: min(820px, 92vw);
  border-radius: 26px;
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}

.bullsy-hvz-win-title{
  font-size: 46px;
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bullsy-hvz-win-sub{
  font-weight: 850;
  opacity: .9;
  margin-bottom: 14px;
}
.bullsy-hvz-win-score{
  font-size: 22px;
  font-weight: 900;
  opacity: .95;
  margin-bottom: 18px;
}
.bullsy-hvz-win-actions{
  display:flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.bullsy-hvz-win-btn{
  min-width: 160px;
}

/* Winner themes */
.bullsy-hvz-win-overlay.is-human{
  background: radial-gradient(1200px 900px at 50% 30%, rgba(80,255,170,.26), rgba(0,0,0,.84));
}
.bullsy-hvz-win-overlay.is-zombie{
  background: radial-gradient(1200px 900px at 50% 30%, rgba(255,60,60,.22), rgba(0,0,0,.90));
}

/* FX layer */
.bullsy-hvz-win-fx{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .9;
}

/* Simple confetti-ish shimmer for Humans (lightweight) */
.bullsy-hvz-win-overlay.is-human .bullsy-hvz-win-fx{
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.28) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.22) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 70%, rgba(255,255,255,.18) 0 2px, transparent 3px);
  animation: hvzSparkle 1.1s linear infinite;
}
@keyframes hvzSparkle{
  0%{ filter: brightness(1); transform: translateY(0); }
  50%{ filter: brightness(1.15); }
  100%{ filter: brightness(1); transform: translateY(10px); }
}

/* Splatter-ish haze for Zombies */
.bullsy-hvz-win-overlay.is-zombie .bullsy-hvz-win-fx{
  background-image:
    radial-gradient(circle at 18% 35%, rgba(255,60,60,.22) 0 80px, transparent 120px),
    radial-gradient(circle at 72% 55%, rgba(255,60,60,.18) 0 90px, transparent 140px),
    radial-gradient(circle at 50% 80%, rgba(40,40,40,.35) 0 120px, transparent 190px);
  animation: hvzGloom 1.4s ease-in-out infinite;
}
@keyframes hvzGloom{
  0%,100%{ filter: contrast(1) saturate(1); }
  50%{ filter: contrast(1.12) saturate(1.15); }
}

/* Mobile adjustments */
@media (max-width: 640px){
  .bullsy-hvz-header{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .bullsy-hvz-status{ text-align:center; }
  .bullsy-hvz-panels{
    grid-template-columns: 1fr;
  }
  #bullsy-hvz-score{ font-size: 44px; }
  .bullsy-hvz-btns{ grid-template-columns: repeat(5, minmax(40px, 1fr)); }
}
