#trail-party-stats .party-stats {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.25em;
  margin-left: 0;
  min-width: 0;
}

/* ============================
   Chaoregon Minigame Panels
   ============================ */

/* Tree Shake */


#treeHUD {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 6px;
  font-family: monospace;
  font-weight: bold;
  margin-bottom: 8px;
}

#treeHUD div {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

#treeHUD span {
  margin: 0 8px;
}

#treeHUD small,
#treeHUD .controls-text {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #ffd60a;
}


#chaoCatcher {
  position: absolute;
  bottom: 10px;
  width: 32px;
  height: 32px;
  background-size: cover;
}

.fallingFruit {
  position: absolute;
  width: 24px;
  height: 24px;
  background-size: cover;
}

/* ✅ Results Summary */
.tree-results {
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 16px;
  border-radius: 8px;
  font-family: monospace;
}

.tree-results h3 {
  color: #ffd60a;
  margin-bottom: 8px;
}

.tree-results button {
  margin-top: 10px;
  padding: 6px 12px;
  background: #415a77;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

.tree-results button:hover {
  background: #537fa3;
}

/* ============================
   Toy Hunt Minigame
   ============================ */

#toy-hunt-panel.panel {
  background: url("../assets/camp/clearing.png") no-repeat center;
  background-size: cover;
  color: #fff;
  border: 2px solid #415a77;
  border-radius: 12px;
  padding: 10px;
}

#toyHUD {
  text-align: center;
  font-family: monospace;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 6px;
  color: #ffd60a;
}

#toy-instructions {
  text-align: center;
  font-size: 14px;
  margin-bottom: 8px;
}

#bushGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.bush {
  font-size: 20px;
  text-align: center;
  line-height: 28px;
  border: 1px solid #4a6fa5;
  border-radius: 6px;
  background: rgba(30, 30, 50, 0.6);
  transition: transform 0.1s ease;
}

.bush:hover {
  transform: scale(1.05);
}

.bush.searched {
  pointer-events: none;
  transform: scale(0.95);
  opacity: 0.7;
}

/* Results Section */
.toy-results {
  display: none;
  text-align: center;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-family: monospace;
}

.toy-results h3 {
  color: #ffd60a;
  margin-bottom: 6px;
}

.toy-results p {
  margin: 4px 0;
}

#toy-exit {
  margin-top: 10px;
  padding: 6px 12px;
  background: #415a77;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

#toy-exit:hover {
  background: #537fa3;
}

/* Bubble Pop */


#bubbleHUD {
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #fff;
  font-weight: bold;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 4px;
  font-family: monospace;
  font-size: 14px;
}


/* ✅ Post-Game Results */
.bubble-results {
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 16px;
  border-radius: 8px;
  font-family: monospace;
}

.bubble-results button {
  margin-top: 10px;
  padding: 6px 12px;
  background: #415a77;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
}

.bubble-results button:hover {
  background: #537fa3;
}

/* ============================
   Fishing Minigame Panel (Final Fixed)
   ============================ */


/* Scene area */


/* Party leader Chao holder */
#fishing-chao-holder {
  position: absolute;
  bottom: 18px;
  right: 46px;
  width: 96px;
  height: 96px;
  pointer-events: none;
  overflow: visible;
  transform: scale(1.15);
  transform-origin: center bottom;
}
.fishing-chao-visible {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scale(1.2);
  transform-origin: center bottom;
}

/* Bobble */
#bobble {
  position: absolute;
  bottom: 140px;
  left: 150px;
  width: 16px;
  height: 16px;
  background: url("../assets/ui/bobble.png") center/contain no-repeat;
  display: none;
  pointer-events: none;
}

/* Ripple */
#ripple {
  position: absolute;
  bottom: 140px;
  left: 150px;
  width: 32px;
  height: 32px;
  background: url("../assets/ui/ripple.png") center/contain no-repeat;
  opacity: 0;
  display: none;
  pointer-events: none;
}
#ripple.active {
  display: block;
  animation: rippleFade 1s ease-out forwards;
}

/* Bite alert */
#bite-alert {
  position: absolute;
  bottom: 160px;
  left: 150px;
  font-size: 28px;
  font-weight: bold;
  color: #ff3;
  text-shadow: 0 0 6px #000;
  display: none;
  pointer-events: none;
}
#bite-alert.active {
  display: block;
  animation: alertFlash 0.8s ease-in-out;
}

/* Gameplay UI */
#fishing-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 130px;
  background: rgba(13, 27, 42, 0.95);
  border-top: 2px solid #415a77;
  text-align: center;
}

/* Catch text */
#catchResult {
  height: 24px;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 4px #000;
}

/* Buttons (shared) */
.ui-btn {
  background: #1b263b;
  border: 1px solid #415a77;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.ui-btn:hover {
  background: #415a77;
}

/* Results panel (appears only at end) */
#fishing-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(13, 27, 42, 0.95);
  border-top: 2px solid #415a77;
  height: 130px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#fishing-results.active {
  display: flex;
  visibility: visible;
  opacity: 1;
}
#fishing-results h3 {
  margin: 6px 0;
  font-size: 18px;
  color: #ffd60a;
}
#fishing-results p {
  margin: 4px 0;
  color: #fff;
}
#fishing-results .ui-btn {
  margin-top: 8px;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Animations */
@keyframes rippleFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}
@keyframes alertFlash {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ============================
   Repair Minigame (Reflex Bar Edition)
   ============================ */


#repair-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Main horizontal hitbar */
#repair-hitbar {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  border: 1px solid #415a77;
  border-radius: 6px;
  overflow: hidden;
}

/* Color sections: total 100 pips ratioed to widths */
#repair-hitbar .bar-section.red {
  background: #a4161a;
  flex: 25;
}
#repair-hitbar .bar-section.yellow.left {
  background: #ffcc00;
  flex: 15;
}
#repair-hitbar .bar-section.green {
  background: #2ecc71;
  flex: 20;
}
#repair-hitbar .bar-section.yellow.right {
  background: #ffcc00;
  flex: 15;
}
#repair-hitbar .bar-section.red:last-child {
  background: #a4161a;
  flex: 25;
}

/* Moving marker */
#repair-marker {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 4px #fff;
  left: 0%;
  pointer-events: none;
}

/* Results display */
#repair-result {
  font-size: 16px;
  color: #fff;
  min-height: 20px;
}

/* Start button */
#repair-start {
  background: #1b263b;
  border: 1px solid #415a77;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
}
#repair-start:hover {
  background: #415a77;
}

/* Summary (end screen) */
.repair-summary {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.95);
  border-top: 2px solid #415a77;
  padding: 10px;
  gap: 6px;
}
.repair-summary p {
  margin: 4px 0;
  color: #ffd60a;
}

/* Story Panel */
#story-panel {
  background-size: cover;
  text-shadow: 1px 1px 2px #000;
}
#storyContent {
  margin-top: 10px;
  font-size: 14px;
  text-align: left;
}
#storyContent h3 {
  margin-bottom: 6px;
  color: #ffda77;
}

