/* activity/styles/bomberbat.css */
/* Bomber Bat — Echo Strike overlay styles */


/* ── Overlay backdrop ── */
.bb-overlay {
  position: fixed;
  top: calc(var(--sait, 0px) + 48px);
  left: 0;
  right: 0;
  bottom: calc(50px + var(--saib, 0px));
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.bb-overlay.bb-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Card (lobby/entry/result) ── */
.bb-card {
  background: #1a1a2e;
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 20px;
  padding: 30px 28px;
  max-width: 440px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 50px rgba(124,58,237,.18);
  animation: bb-pop-in .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes bb-pop-in {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Typography ── */
.bb-title {
  font-family: 'Orbitron', 'Press Start 2P', monospace;
  font-weight: 900;
  font-size: 1.6rem;
  color: #ffcc02;
  text-shadow: 0 0 20px rgba(255,204,2,.7), 3px 3px 0 #ff6b35;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.bb-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: .65rem;
  color: rgba(255,255,255,.4);
  letter-spacing: 3px;
  margin-bottom: 22px;
}
.bb-lobby-id {
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.bb-lobby-id strong {
  color: rgba(255,255,255,.75);
  font-family: monospace;
  font-size: .7rem;
  letter-spacing: 4px;
}

/* ── Buttons ── */
.bb-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  border-radius: 12px;
  border: none;
  font-family: 'Press Start 2P', monospace;
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  letter-spacing: 2px;
  transition: transform .12s ease, opacity .12s ease;
}
.bb-btn:active { transform: scale(.97); }
.bb-btn-primary {
  background: linear-gradient(135deg,#ff6b35,#c2410c);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255,107,53,.45);
}
.bb-btn-primary:hover { opacity: .9; }
.bb-btn-ghost {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
}
.bb-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Players list ── */
.bb-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 14px;
}
.bb-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: .55rem;
  color: #fff;
  flex-wrap: wrap;
}
.bb-slot-empty { opacity: .55; }
.bb-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid;
  font-size: .5rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Press Start 2P', monospace;
}
.bb-slot-name { flex: 1; text-align: left; color: #ddd; font-size: .55rem; }
.bb-slot-waiting { flex: 1; text-align: left; color: rgba(255,255,255,.3); font-style: italic; font-size: .5rem; }

.bb-slot-tag {
  font-size: .45rem;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.bb-slot-tag.human { background: rgba(34,211,238,.15); color: #22d3ee; border: 1px solid rgba(34,211,238,.3); }
.bb-slot-tag.bot   { background: rgba(251,146,60,.15);  color: #fb923c; border: 1px solid rgba(251,146,60,.3); }

.bb-slot-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: .45rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .15s;
}
.bb-slot-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.bb-slot-add-bot  { border-color: rgba(251,146,60,.5); color: #fb923c; }
.bb-slot-add-bot:hover { background: rgba(251,146,60,.12); }
.bb-slot-join     { border-color: rgba(34,211,238,.5);  color: #22d3ee; }
.bb-slot-join:hover { background: rgba(34,211,238,.12); }
.bb-slot-remove   { border-color: rgba(244,63,94,.4); color: #f43f5e; padding: 4px 6px; }
.bb-slot-remove:hover { background: rgba(244,63,94,.1); }

/* Difficulty buttons */
.bb-diff-group { display: flex; gap: 4px; }
.bb-diff-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: .42rem;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .12s;
}
.bb-diff-btn:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.bb-diff-sel-easy   { background: rgba(52,211,153,.2); color: #34d399; border-color: rgba(52,211,153,.5); }
.bb-diff-sel-medium { background: rgba(255,204,2,.2);  color: #ffcc02; border-color: rgba(255,204,2,.5); }
.bb-diff-sel-hard   { background: rgba(244,63,94,.2);  color: #f43f5e; border-color: rgba(244,63,94,.5); }

/* ── Error ── */
.bb-error {
  color: #f87171;
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(239,68,68,.1);
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,.25);
}

/* ── Game wrapper ── */
.bb-game-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

#bb-canvas {
  display: block;
  image-rendering: pixelated;
  border: 2px solid rgba(124,58,237,.5);
  border-radius: 4px;
  /* Scale down so it fits even on small screens */
  max-width: min(600px, 95vw);
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Game header HUD ── */
#bb-game-header {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}
.bb-hud-player {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  color: #ddd;
  transition: opacity .3s;
}
.bb-hud-player.bb-elim { opacity: .3; }
.bb-bot-tag {
  font-size: .42rem;
  padding: 1px 4px;
  background: rgba(251,146,60,.2);
  color: #fb923c;
  border-radius: 3px;
}

/* ── Footer controls hint ── */
.bb-game-footer { width: 100%; text-align: center; }
.bb-controls-hint {
  font-family: 'Press Start 2P', monospace;
  font-size: .48rem;
  color: rgba(255,255,255,.25);
  letter-spacing: 1px;
}

/* ── Pause overlay ── */
.bb-pause-panel {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 10;
}
.bb-pause-inner {
  background: #1a1a2e;
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 16px;
  padding: 28px 32px;
  min-width: 240px;
  text-align: center;
}

/* ── Mode select (Solo/Versus) ── */
.bb-mode-select {
  margin: 16px 0 8px;
}
.bb-mode-desc {
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem;
  color: rgba(255,255,255,.35);
  margin: 4px 0 14px;
  letter-spacing: 1px;
  line-height: 1.6;
}
