/* activity/styles/blobio.css */
/* BLOB.IO — Agar.io-style arena overlay styles */


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

/* ── Entry card ── */
.bio-card {
  background: rgba(5,8,16,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 420px;
  width: 95vw;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(125,249,255,.1);
  animation: bio-pop-in .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bio-pop-in {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.bio-title {
  font-family: 'Orbitron', monospace;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #7DF9FF 0%, #A78BFA 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 20px rgba(125,249,255,.3));
}
.bio-subtitle {
  font-family: 'Rajdhani', sans-serif;
  color: rgba(255,255,255,.4);
  letter-spacing: 4px;
  font-size: 13px;
  margin-bottom: 24px;
}
.bio-story {
  color: rgba(255,255,255,.6);
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.5;
}
.bio-controls {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.25);
  line-height: 2;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.bio-btn {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.bio-btn-primary {
  background: linear-gradient(135deg, #7DF9FF, #A78BFA);
  border: none;
  color: #050810;
}
.bio-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(125,249,255,.3);
}
.bio-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.4);
  font-size: 13px;
  letter-spacing: 2px;
}
.bio-btn-ghost:hover {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.6);
}

/* ── Game wrapper ── */
.bio-game-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.bio-game-wrapper canvas {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── Close button ── */
.bio-game-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 25;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.bio-game-close-btn:hover {
  background: rgba(244,114,182,.3);
  border-color: #F472B6;
  color: #fff;
}

/* ── HUD ── */
.bio-hud {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}
.bio-score-panel {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 20px;
  backdrop-filter: blur(10px);
}
.bio-score-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}
.bio-score-value {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.bio-leaderboard {
  position: absolute;
  top: 20px; right: 60px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  min-width: 160px;
}
.bio-leaderboard h3 {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.bio-lb-entry {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  padding: 3px 0;
  color: rgba(255,255,255,.8);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.bio-lb-entry.bio-me {
  color: #7DF9FF;
  font-weight: 700;
}
.bio-lb-rank {
  color: rgba(255,255,255,.3);
}

/* ── Powerup bar ── */
.bio-powerup-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}
.bio-pu-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform 0.15s;
  overflow: hidden;
}
.bio-pu-icon.bio-pu-active {
  border-color: #7DF9FF;
  box-shadow: 0 0 12px rgba(125,249,255,.4);
  transform: scale(1.1);
}
.bio-cooldown-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.7);
  border-radius: 0 0 12px 12px;
  transition: height 0.1s linear;
  pointer-events: none;
}
.bio-pu-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  margin-bottom: 4px;
  font-family: 'Orbitron', monospace;
}

/* ── Active effects badges ── */
.bio-active-effects {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.bio-effect-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  animation: bio-fadeInUp 0.3s ease;
  white-space: nowrap;
}
@keyframes bio-fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Death screen ── */
.bio-deathScreen {
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
}
.bio-deathScreen h2 {
  font-family: 'Orbitron', monospace;
  font-size: 48px;
  font-weight: 900;
  color: #F472B6;
  letter-spacing: 6px;
  margin-bottom: 10px;
  animation: bio-pulse 1s ease-in-out infinite;
}
@keyframes bio-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.bio-final-score {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  color: rgba(255,255,255,.6);
  margin-bottom: 30px;
  letter-spacing: 3px;
}
.bio-respawn-btn {
  background: linear-gradient(135deg, #F472B6, #A78BFA);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 14px 36px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bio-respawn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,114,182,.3);
}
