/* ============================================================
   Shared minigame arenas — extracted from 03-panel-contract.css
   Obstacle / Tag / Treasure / Race / Karate / Class / Adventure
   ============================================================ */

/* ============================
   Chao Trainer Styles
   ============================ */
#chao-trainer-panel {
  background: rgba(10, 20, 30, 0.95);
  border: 2px solid #415a77;
  border-radius: 10px;
  overflow: hidden;
}



#trainer-bar,
#trainer-zone,
#trainer-cursor {
  transition: all 0.1s linear;
}

#trainer-container .btn {
  margin: 0 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #1b263b;
  color: #fff;
  border: 1px solid #778da9;
}
#trainer-container .btn:hover {
  background: #415a77;
}

/* ============================
   Obstacle Garden Styles (final with HUD + teleport flow)
   ============================ */
/* Root container */


/* Background layer */
#obstacle-garden-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("../assets/bgs/obstacleground_temp.png") repeat-x bottom;
  background-size: cover;
  background-position-y: bottom;
  z-index: 0;
}

/* Gameplay entities */
#obstacle-garden-container .chao,
#obstacle-garden-container .obstacle-block {
  position: absolute;
  z-index: 1;
}

/* Obstacle appearance */
.obstacle-block {
  background: #c22;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

/* UI button bar */
.obstacle-ui {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.obstacle-ui .btn {
  margin: 0 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: #1b263b;
  border: 1px solid #778da9;
  color: #fff;
  transition: background 0.2s ease;
}

.obstacle-ui .btn:hover {
  background: #415a77;
}

/* ============================
   HUD Overlay
   ============================ */
#obstacle-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  z-index: 3;
  font-family: "Arial", sans-serif;
  font-size: 16px;
  text-shadow: 1px 1px 2px black;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#obstacle-lives {
  margin-bottom: 6px;
}

.hp-icon {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  filter: drop-shadow(0 0 2px black);
  transition: opacity 0.2s ease;
}

/* ============================
   Tag Arena Styles (v1.9 Final)
   ============================ */
/* Arena background */

#tag-container:focus {
  outline: none;
}

/* Persistent HUD */
#tag-hud {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  display: flex !important;
  justify-content: space-between;
  color: #fff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 15px;
  text-shadow: 1px 1px 2px #000;
  z-index: 9999 !important;
  pointer-events: none;
}

/* Chao + CPU placeholders */
.tag-chao,
.tag-fakechao {
  position: absolute;
  width: 60px;
  height: 60px;
  transition: left 0.05s linear, top 0.05s linear;
  z-index: 2;
}
.tag-fakechao {
  background: #aaa;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Flash effect */
.tag-flash {
  animation: flash-green 0.3s ease;
}
@keyframes flash-green {
  0%   { box-shadow: 0 0 0px #0f0; }
  50%  { box-shadow: 0 0 20px #0f0; }
  100% { box-shadow: 0 0 0px #0f0; }
}

/* Exit button */
.tag-ui {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}
.tag-ui .btn {
  margin: 0 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #1b263b;
  color: #fff;
  border: 1px solid #778da9;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  transition: background 0.15s ease;
}
.tag-ui .btn:hover {
  background: #415a77;
}

/* Prevent page scroll interference */
html, body {
  overscroll-behavior: contain;
}

/* ============================
   Treasure Hunt Styles
   ============================ */
#treasure-hunt-panel {
  background: rgba(12, 20, 30, 0.95);
  border: 2px solid #415a77;
  border-radius: 10px;
  overflow: hidden;
}



#treasure-hottext {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 6px #000;
  pointer-events: none;
}

.dig-marker {
  border: 1px solid #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.treasure-ui .btn {
  margin: 0 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #1b263b;
  color: #fff;
  border: 1px solid #778da9;
}
.treasure-ui .btn:hover {
  background: #415a77;
}

/* ============================
   Race + Karate Arenas
   ============================ */
#race-banner-canvas{
  border: 2px solid #415a77;
  background: #1b263b;
  display: block;
  margin: 10px 0;
}

/* ============================
   Karate Arena (absolute positioning)
   ============================ */


/* ============================
   Karate2 Arena (absolute positioning)
   ============================ */




#karate2-chao-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#karate-chao-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#karate-ui-overlay.karate-overlay-modernized {
  position: absolute;
  inset: 8px 8px auto 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
  pointer-events: none;
  z-index: 6;
  padding: 0;
}
#karate-ui-overlay.karate-overlay-modernized .fighter-ui {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 6px 8px;
  min-width: 170px;
  width: auto;
}
#karate-ui-overlay.karate-overlay-modernized .fighter-ui.right { justify-self: end; text-align: right; }
#karate-ui-overlay.karate-overlay-modernized .name,
#karate-ui-overlay.karate-overlay-modernized .karate-match-label {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  font-weight: 700;
}
#karate-ui-overlay.karate-overlay-modernized .hp-bar {
  margin-top: 4px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
  width: 100px;
}
#karate-ui-overlay.karate-overlay-modernized .hp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5ad0ff, #4cff88);
}
#karate-ui-overlay.karate-overlay-modernized .karate-center-ui {
  min-width: 180px;
  text-align: center;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 6px 10px;
  justify-self: center;
}
#karate-ui-overlay.karate-overlay-modernized .karate-round-tracker {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
}
#karate-ui-overlay.karate-overlay-modernized .karate-round-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
}
#karate-ui-overlay.karate-overlay-modernized .karate-round-dot.filled-left { background: #42b7ff; border-color: #42b7ff; }
#karate-ui-overlay.karate-overlay-modernized .karate-round-dot.filled-right { background: #ff5a5a; border-color: #ff5a5a; }
#karate2-ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#karate2-ui-overlay button {
  pointer-events: auto;
}

/* ============================
   Arena Panels (true sizes)
   ============================ */


#adventure-arena-panel {
  width: 480px;
  height: 220px;
}

/* ============================
   Arena Overrides (no ghost box)
   ============================ */

/* ============================
   Karate HUD Overlay
   ============================ */
#karate-ui-overlay {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.fighter-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

.fighter-ui .name {
  font-weight: bold;
  font-size: 16px;
  color: white;
  text-shadow: 1px 1px 2px black;
  margin-bottom: 4px;
}

.fighter-ui .hp-bar {
  width: 100px;
  height: 10px;
  background: #333;
  border: 1px solid #000;
  position: relative;
}

.fighter-ui .hp-fill {
  height: 100%;
  background: red;
  width: 100%; /* dynamically updated */
}

/* ============================
   Karate VS Transition Overlay
   ============================ */
#karate-vs-panel {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}

#karate-vs-text {
  font-size: 64px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 30px;
}

#karate-vs-panel canvas {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  image-rendering: pixelated;
}

#karate-vs-left {
  border: 3px solid #ff3333;
}

#karate-vs-right {
  border: 3px solid #33aaff;
}

#karate-vs-panel .vs-label {
  font-size: 72px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000;
  margin: 0 30px;
}

/* ============================
   Karate Round Tracker
   ============================ */
#karate-round-tracker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 61;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid #fff;
}

#karate-round-tracker .round-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

#karate-round-tracker .round-dot.player {
  background: #0099ff;
  border-color: #0099ff;
}

#karate-round-tracker .round-dot.cpu {
  background: #ff4444;
  border-color: #ff4444;
}

/* ============================
   Class Progress
   ============================ */
#class-progress {
  z-index: 3 !important;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;

  height: 20px;
  border: 2px solid #415a77;
  border-radius: 6px;
  background: #222;
  overflow: hidden;
}

#class-progress-fill {
  height: 100%;
  width: 0%;
  background: #5b63ff;
  transition: width 1s linear;
}

/* ============================
   LEFT: Class Roster Panel
   ============================ */
#class-roster-panel {
  z-index: 3 !important;
  position: absolute;
  left: 10px;
  top: 44px;

  width: 220px;
  max-height: 420px;

  padding: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #415a77;
  border-radius: 8px;

  font-size: 14px;
  overflow-y: auto;
}

.class-roster-title {
  text-align: center;
  font-weight: bold;
  color: #ffd60a;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #415a77;
}

/* ============================
   Roster Entries
   ============================ */
#class-roster-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.class-roster-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 6px;
  background: rgba(27, 38, 59, 0.9);
  border-radius: 4px;
}

.roster-name {
  font-weight: bold;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 140px;
}

.roster-rank {
  font-weight: bold;
  color: #ffd60a;
}

/* ============================
   Roster Stars
   ============================ */
.roster-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.roster-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  line-height: 12px;
  font-size: 12px;
  color: #888;
  opacity: 0.45;
}

.roster-star.filled {
  color: #ffd60a;
  opacity: 1;
}

/* ============================
   RIGHT: Class Status Box
   (Subject / Timing only)
   ============================ */
#class-status-box {
  z-index: 3 !important;
  position: absolute;
  right: 10px;
  top: 44px;

  width: 220px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #415a77;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
}

#class-status-box p {
  margin: 2px 0;
}

/* ============================
   Legacy Rank / Stars (Safe to keep)
   ============================ */
.class-rank {
  font-weight: bold;
  color: #ffd60a;
  text-align: center;
  margin-bottom: 4px;
}

.class-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.class-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  line-height: 18px;
  font-size: 18px;
  color: #888;
  opacity: 0.45;
}

.class-star.filled {
  color: #ffd60a;
  opacity: 1;
}

/* ============================
   Chao Container
   ============================ */
#class-chao-container {
  z-index: 2 !important;
  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================
   Class Buttons
   ============================ */
.class-btn {
  position: absolute;
  bottom: 10px;

  padding: 6px 12px;
  font-size: 14px;

  border-radius: 6px;
  border: 2px solid #415a77;
  background: #1b263b;
  color: #ffffff;

  cursor: pointer;
}

.class-btn.start {
  left: 10px;
}

.class-btn.exit {
  right: 10px;
}

.class-btn:hover {
  background: #243554;
}

/* === moved from 03-panel-contract.css in pass25: generic-minigame-arenas === */
/* ------------------------------------------------------------
   ARENA
------------------------------------------------------------ */



/* ------------------------------------------------------------
   CHAO CONTAINER
------------------------------------------------------------ */

#karate-mp-chao-container {
  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
  z-index: 2;                  /* above floor */
}

/* ------------------------------------------------------------
   FLOOR
------------------------------------------------------------ */

.karate-mp-floor {
  position: absolute;
  left: 0;
  bottom: 20px;

  width: 100%;
  height: 10px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.6)
  );

  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   MULTIPLAYER TAG ARENA PANEL
   ============================================================ */







.tmp-info {
  padding: 8px;
  background: #162637;
  border: 1px solid #30445b;
  border-radius: 6px;
  min-height: 40px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.3em;
}







/* ============================================================
   Shared: 2× MP panels (bigger panel + scaled content)
   - Outer panel is 2× size.
   - Inner content stays authored at 780×540 and is scaled to 2×.
============================================================ */




/* ============================================================
   TRON TRAILS MP
============================================================ */


#tron-mp-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 780px;
  height: calc(540px - 94px);
  image-rendering: pixelated;
}

#tron-mp-chao-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 780px;
  height: calc(540px - 94px);
  pointer-events: none;
}

/* ============================================================
   Bumper Balls MP
============================================================ */




#tag-mp-chao-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}



#hotrope-mp-chao-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#bumperballs-mp-chao-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Bumper Balls: per-chao underlay + ability meter */
.bb-ball-underlay {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Slightly smaller than the source sprite so the Chao reads as standing on it */
  width: 84px;
  height: 84px;
  /* Push the ball a bit downward relative to the Chao's anchor */
  transform: translate(-50%, -28%);
  background-size: 84px 84px;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  opacity: 0.95;
  z-index: -1;
  pointer-events: none;
}

/* Lift the Chao slightly so it looks like it's standing on the ball. */
.bb-chao-onball {
  margin-top: -12px;
}

.bb-bump-meter {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 34px;
  height: 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(0,0,0,0.65);
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  box-shadow: 0 1px 2px rgba(0,0,0,0.45);
  overflow: hidden;
  pointer-events: none;
}

.bb-bump-meter-fill {
  height: 100%;
  width: 100%;
  background: rgba(120, 255, 120, 0.85);
}

#speedhockey-mp-chao-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================================
   SPEED HOCKEY (MP)
============================================================ */





.sh-rink::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.25);
}

.sh-rink::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.18);
}



.sh-goal-left {
  left: 44px;
}

.sh-goal-right {
  right: 44px;
}

.sh-puck {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 2px 0 rgba(0,0,0,0.65);
  pointer-events: none;
}

.sh-chao {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.70);
  border: 3px solid rgba(0,0,0,0.35);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
}

.sh-chao[data-team="A"] {
  outline: 3px solid rgba(140, 220, 255, 0.55);
}

.sh-chao[data-team="B"] {
  outline: 3px solid rgba(255, 170, 140, 0.55);
}

/* ============================================================
   METEOR DODGE (MP)
============================================================ */



.md-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.md-warn {
  position: absolute;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 220, 120, 0.85) inset;
  background: rgba(255, 180, 0, 0.12);
}

.md-warn[data-phase="hit"] {
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.75) inset;
  background: rgba(255, 80, 80, 0.10);
}

/* ============================================================
   SKY DIVE RINGS (MP)
============================================================ */



.sd-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

#skydive-mp-chao-container {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.sd-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 235, 160, 0.75) inset;
  background: rgba(255, 235, 160, 0.10);
}

.sd-haz {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.65) inset;
  background: rgba(255, 80, 80, 0.08);
}

.sd-bull {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.40) inset,
    0 0 0 10px rgba(255,255,255,0.10) inset;
  background: rgba(0,0,0,0.10);
}

.sd-chao,
.sd-fallback {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.70);
  border: 3px solid rgba(0,0,0,0.35);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
}

/* ============================================================
   BOBSLED RUN (MP)
============================================================ */





.bs-finish {
  position: absolute;
  left: 50%;
  top: 190px;
  width: 600px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.65) 0,
    rgba(255,255,255,0.65) 14px,
    rgba(0,0,0,0.10) 14px,
    rgba(0,0,0,0.10) 28px
  );
  opacity: 0.55;
  pointer-events: none;
}

.bs-sled {
  position: absolute;
  top: 350px;
  width: 64px;
  height: 22px;
  border-radius: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  pointer-events: none;
}

.bs-sled-a {
  background: rgba(140, 220, 255, 0.70);
  border: 3px solid rgba(0,0,0,0.28);
}

.bs-sled-b {
  background: rgba(255, 170, 140, 0.70);
  border: 3px solid rgba(0,0,0,0.28);
}

#hotrope-mp-rope {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 6px;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(245,245,245,0.92), rgba(0,0,0,0));
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.7));
  border-radius: 6px;
  pointer-events: none;
}



.rg-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background-image: url("../assets/ui/ui_ring.png");
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6));
}

.tmp-floor {
  position: absolute;
  bottom: 12px;
  width: 100%;
  height: 8px;
  background: linear-gradient(#0000, #000c);
}

/* ============================================================
   BIG BLAST (MP)
============================================================ */



.bbg-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 720px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  border: 6px solid rgba(210, 235, 255, 0.18);
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.35) inset,
    0 12px 28px rgba(0,0,0,0.55);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), rgba(0,0,0,0.18) 70%),
    linear-gradient(90deg, rgba(0,0,0,0.10), rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.02) 60%, rgba(0,0,0,0.10));
  pointer-events: none;
}



.bbg-barrel {
  background: rgba(28, 40, 56, 0.92);
  border: 2px solid rgba(90, 130, 180, 0.40);
  border-radius: 12px;
  color: #e8f1ff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.38);
}

.bbg-barrel:hover {
  filter: brightness(1.10);
}

.bbg-barrel.is-picked {
  outline: 4px solid rgba(140, 220, 255, 0.55);
}

.bbg-barrel.is-blast {
  outline: 4px solid rgba(255, 170, 140, 0.65);
  filter: brightness(1.15);
}

.bbg-barrel:disabled {
  opacity: 0.60;
  cursor: default;
}

.garden-shadow {
  position: absolute;
  width: 28px;
  height: 8px;
  background: radial-gradient(ellipse at center,
      rgba(0,0,0,0.32) 0%,
      rgba(0,0,0,0.12) 56%,
      rgba(0,0,0,0) 78%);
  pointer-events: none;
  z-index: 0;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   MULTIPLAYER CHAT PANEL
============================================================ */

.mpchat-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 14px;
  background:#0d1c2b;
  border-bottom:2px solid #2a3d57;
}

.mpchat-title {
  font-size:20px;
  font-weight:bold;
  color:#fff;
}

.mpchat-close {
  width:30px;
  height:30px;
  background:#2b3e55;
  border:1px solid #3e587b;
  color:#eee;
  font-size:18px;
  border-radius:6px;
  cursor:pointer;
}

.mpchat-log {
  flex-grow:1;
  overflow-y:auto;
  padding:12px;
  background:#10202e;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.mpchat-row {
  padding:6px 8px;
  background:#1a2d3e;
  border-radius:6px;
  border:1px solid #2f4560;
}

.mpchat-author {
  font-size:13px;
  font-weight:bold;
}

.mpchat-content {
  font-size:14px;
  margin-top:2px;
}

.mpchat-time {
  font-size:10px;
  opacity:0.6;
  margin-top:4px;
}

.mpchat-input-row {
  display:flex;
  gap:8px;
  padding:10px;
  background:#0d1c2b;
}

.mpchat-input {
  flex-grow:1;
  padding:8px;
  background:#0e1a29;
  border:1px solid #39526d;
  border-radius:6px;
  color:#fff;
}

.mpchat-send {
  padding:8px 12px;
  background:#3d79ff;
  border:1px solid #2c62dd;
  border-radius:6px;
  cursor:pointer;
  color:#fff;
  font-size:15px;
}

/* ============================================================
   DIRECT MESSAGE PANEL
============================================================ */

