/* CBE per-game interaction shells */

.cbe-interaction-host {
  margin-top: 1.25rem;
}

.cbe-int-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: rgba(196, 207, 255, 0.72);
  text-align: center;
}

.cbe-int-slide-in {
  animation: cbe-int-slide-in 0.45s ease-out both;
}

@keyframes cbe-int-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* G1 spotlight unlock */
.cbe-int-choices--locked {
  opacity: 0.35;
  pointer-events: none;
  filter: blur(2px);
}

.cbe-int-choices--unlocked {
  animation: cbe-int-spotlight-pulse 0.6s ease-out both;
}

@keyframes cbe-int-spotlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 214, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 40px rgba(125, 214, 255, 0.15);
  }
}

/* G2 door reveal */
.cbe-int-door-panel {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(255, 211, 105, 0.45);
  border-radius: 16px;
  background: rgba(26, 31, 74, 0.35);
}

.cbe-int-door-panel--open {
  animation: cbe-int-door-open 0.4s ease-out both;
}

@keyframes cbe-int-door-open {
  to {
    opacity: 0;
    transform: scale(1.05);
  }
}

.cbe-int-door-label {
  margin: 0 0 0.75rem;
  color: rgba(255, 211, 105, 0.9);
}

.cbe-int-door-btn {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 211, 105, 0.55);
  background: rgba(155, 93, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.cbe-int-door-btn:hover {
  filter: brightness(1.12);
}

/* G3 path picker — route cards, one tap commits */
.cbe-int-path-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cbe-int-path-node {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 214, 255, 0.35);
  background: rgba(26, 31, 74, 0.55);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cbe-int-path-node-letter {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(155, 93, 255, 0.35);
  border: 1px solid rgba(125, 214, 255, 0.45);
}

.cbe-int-path-node-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cbe-int-path-node:hover {
  border-color: rgba(255, 211, 105, 0.65);
  transform: translateY(-1px);
}

.cbe-int-path-preview {
  display: none;
}

/* G4 meter boost */
.cbe-int-meters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cbe-int-meter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 214, 255, 0.2);
  background: rgba(10, 14, 40, 0.45);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
}

.cbe-int-meter-row--active {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
}

.cbe-int-meter-bar {
  flex: 0 0 4.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cbe-int-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dd6ff, #9b5dff);
}

.cbe-int-meter-label {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.35;
}

/* G5 energy drain */
.cbe-int-energy-bar-wrap {
  margin-bottom: 1rem;
}

.cbe-int-energy-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(196, 207, 255, 0.65);
  margin-bottom: 0.35rem;
}

.cbe-int-energy-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cbe-int-energy-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d4ff, #9b5dff);
  transition: width 0.4s linear;
}

.cbe-int-energy--mid .cbe-int-energy-fill {
  background: linear-gradient(90deg, #ffd369, #ff6b9d);
}

.cbe-int-energy--low .cbe-int-energy-fill {
  background: linear-gradient(90deg, #ff6b9d, #ff3c64);
}

/* G6 fog reveal */
.cbe-int-fog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cbe-int-fog-patch {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(155, 93, 255, 0.25);
  background: rgba(40, 30, 70, 0.55);
  color: rgba(226, 232, 255, 0.75);
  cursor: pointer;
  text-align: left;
  filter: blur(0.5px);
}

.cbe-int-fog-patch--open {
  filter: none;
  background: rgba(26, 31, 74, 0.65);
  border-color: rgba(125, 214, 255, 0.35);
  color: #e2e8ff;
  text-align: left;
  line-height: 1.4;
}

.cbe-int-fog-patch--open:hover {
  border-color: rgba(255, 211, 105, 0.65);
}

/* G7 audience pulse (replaces bubble triage) */
.cbe-int-audience-pulse {
  text-align: center;
  padding: 0.75rem 0 1rem;
}

.cbe-int-audience-pulse-bar {
  height: 0.35rem;
  max-width: 12rem;
  margin: 0.5rem auto 0;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.2);
  animation: cbe-int-audience-pulse 0.9s ease-in-out infinite alternate;
}

@keyframes cbe-int-audience-pulse {
  from {
    transform: scaleX(0.55);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
    box-shadow: 0 0 16px rgba(255, 107, 157, 0.35);
  }
}

/* G8 countdown ring */
.cbe-int-countdown-ring {
  position: relative;
  margin: 0 auto 0.65rem;
  max-width: 16rem;
}

.cbe-int-countdown-ring-fill {
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d4ff, #ff6b9d);
  transition: width 0.25s linear;
}

.cbe-int-countdown-seconds {
  display: block;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.35rem;
  color: #ffd369;
}

.cbe-int-countdown-label {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(196, 207, 255, 0.7);
  margin: 0 0 0.5rem;
}

.cbe-int-countdown-hint {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 107, 157, 0.85);
  margin: 0 0 0.75rem;
}

.cbe-int-countdown--expired .cbe-int-countdown-seconds {
  color: #ff6b9d;
  animation: cbe-int-countdown-flash 0.8s ease-in-out infinite alternate;
}

@keyframes cbe-int-countdown-flash {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

/* G9 fog peek — single hazy choice buttons */
.cbe-int-fog-choice {
  filter: blur(0.35px);
  opacity: 0.88;
}

.cbe-int-fog-choice:hover,
.cbe-int-fog-choice:focus-visible {
  filter: none;
  opacity: 1;
}

/* G10 value stance */
.cbe-int-value-choices .cbe-choice:nth-child(1) {
  border-left: 3px solid rgba(125, 214, 255, 0.7);
}

.cbe-int-value-choices .cbe-choice:nth-child(2) {
  border-left: 3px solid rgba(196, 207, 255, 0.5);
}

.cbe-int-value-choices .cbe-choice:nth-child(3) {
  border-left: 3px solid rgba(255, 107, 157, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .cbe-int-slide-in,
  .cbe-int-choices--unlocked,
  .cbe-int-countdown--expired .cbe-int-countdown-seconds,
  .cbe-int-audience-pulse-bar {
    animation: none !important;
  }

  .cbe-int-choices--locked {
    opacity: 1;
    pointer-events: auto;
    filter: none;
  }
}

@media (max-width: 520px) {
  .cbe-int-path-node {
    padding: 0.75rem 0.85rem;
  }
}
