/* Hamster Hustle — Rebel Radio Room (Wave 5b secret scene).
 *
 * Logical 800x450. All selectors scoped under .hh-root to prevent
 * cross-scene CSS bleed.
 */

.hh-root .hh-scene-rebel-radio .hh-rr-slot,
.hh-root .hh-scene-rebel-radio .hh-rr-door,
.hh-root .hh-scene-rebel-radio .hh-rr-tray,
.hh-root .hh-scene-rebel-radio .hh-rr-hint,
.hh-root .hh-scene-rebel-radio .hh-rr-broadcast {
  position: absolute;
  user-select: none;
}

/* Empty slot silhouette — dashed outline pulses gently to telegraph that
 * something belongs here. Mounted state hides the outline and reveals
 * the component sprite. */
.hh-root .hh-scene-rebel-radio .hh-rr-slot {
  border: 2px dashed rgba(245, 200, 90, 0.55);
  border-radius: 4px;
  background-color: rgba(20, 12, 8, 0.25);
  z-index: var(--hh-z-prop);
  animation: hh-rr-slot-pulse 1600ms ease-in-out infinite;
}

.hh-root .hh-scene-rebel-radio .hh-rr-slot.is-mounted {
  border-color: transparent;
  background-color: transparent;
  animation: none;
}

.hh-root .hh-scene-rebel-radio .hh-rr-slot > img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  pointer-events: none;
}

@keyframes hh-rr-slot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 200, 90, 0.0); }
  50%      { box-shadow: 0 0 10px 2px rgba(245, 200, 90, 0.45); }
}

/* Door back — minimal hover affordance. */
.hh-root .hh-scene-rebel-radio .hh-rr-door {
  cursor: pointer;
  z-index: var(--hh-z-interactive);
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.hh-root .hh-scene-rebel-radio .hh-rr-door:hover {
  border-color: var(--hh-color-meadow);
  background-color: rgba(45, 122, 77, 0.18);
}

/* Component tray — bottom strip of collected, unmounted parts. */
.hh-root .hh-scene-rebel-radio .hh-rr-tray {
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(20, 12, 8, 0.78);
  border: 2px solid var(--hh-color-rust, #8b4a26);
  border-radius: 6px;
  z-index: var(--hh-z-dialog);
  pointer-events: auto;
}

.hh-root .hh-scene-rebel-radio .hh-rr-tray-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: transparent;
  border: 2px solid rgba(245, 200, 90, 0.5);
  border-radius: 4px;
  color: #f6efe1;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  cursor: pointer;
  transition: transform 100ms ease-out, border-color 100ms ease-out;
}

.hh-root .hh-scene-rebel-radio .hh-rr-tray-item:hover,
.hh-root .hh-scene-rebel-radio .hh-rr-tray-item:focus-visible {
  transform: translateY(-2px);
  border-color: #f5c85a;
  outline: none;
}

.hh-root .hh-scene-rebel-radio .hh-rr-tray-item img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  pointer-events: none;
}

.hh-root .hh-scene-rebel-radio .hh-rr-tray-label {
  letter-spacing: 0.04em;
}

/* Hint shown when no components collected yet. */
.hh-root .hh-scene-rebel-radio .hh-rr-hint {
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 70%;
  padding: 10px 14px;
  background: rgba(20, 12, 8, 0.78);
  border: 2px solid var(--hh-color-rust, #8b4a26);
  border-radius: 6px;
  color: #f6efe1;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  text-align: center;
  z-index: var(--hh-z-dialog);
}

.hh-root .hh-scene-rebel-radio .hh-rr-hint p {
  margin: 0;
}

/* Broadcast cutscene — full-screen black panel with monospace crawl
 * and a gentle scanline bias so it reads like a CRT broadcast. */
.hh-root .hh-scene-rebel-radio .hh-rr-broadcast {
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.0) 0px,
      rgba(0, 0, 0, 0.0) 3px,
      rgba(0, 0, 0, 0.25) 3px,
      rgba(0, 0, 0, 0.25) 4px
    ),
    rgba(8, 4, 2, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  z-index: calc(var(--hh-z-dialog) + 10);
  animation: hh-rr-broadcast-fade 600ms ease-out both;
}

@keyframes hh-rr-broadcast-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hh-root .hh-scene-rebel-radio .hh-rr-broadcast-crawl {
  margin: 0;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #7cf57c;
  text-shadow: 0 0 6px rgba(124, 245, 124, 0.55);
  white-space: pre-wrap;
  max-width: 640px;
}

.hh-root .hh-scene-rebel-radio .hh-rr-broadcast-cta {
  margin-top: 20px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid #7cf57c;
  border-radius: 4px;
  color: #7cf57c;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
  animation: hh-rr-broadcast-fade 400ms ease-out 200ms both;
}

.hh-root .hh-scene-rebel-radio .hh-rr-broadcast-cta:hover,
.hh-root .hh-scene-rebel-radio .hh-rr-broadcast-cta:focus-visible {
  background-color: #7cf57c;
  color: #0a0604;
  outline: none;
}
