/*
  Sprint7 UI Release Skin
  Presentation-only overrides. No runtime, engine, story flow, or data logic changes.
*/

:root {
  --release-bg: #05070a;
  --release-panel: rgba(9, 13, 18, 0.84);
  --release-panel-strong: rgba(12, 18, 24, 0.94);
  --release-line: rgba(129, 238, 207, 0.24);
  --release-line-hot: rgba(129, 238, 207, 0.72);
  --release-text: #f4fbff;
  --release-muted: #8da3ad;
  --release-green: #81eecf;
  --release-amber: #ffd166;
  --release-red: #ff4d6d;
  --release-blue: #79a8ff;
  --release-shadow: 0 26px 90px rgba(0, 0, 0, 0.56);
  --release-glow-green: 0 0 34px rgba(129, 238, 207, 0.22);
  --release-glow-red: 0 0 34px rgba(255, 77, 109, 0.26);
}

body {
  color: var(--release-text);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.94), rgba(7, 10, 13, 1)),
    radial-gradient(circle at 18% 12%, rgba(129, 238, 207, 0.08), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(255, 77, 109, 0.08), transparent 30%);
}

button,
input {
  letter-spacing: 0;
}

button {
  border-color: rgba(129, 238, 207, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(11, 17, 22, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

button:hover,
button:focus-visible {
  border-color: var(--release-line-hot);
  background:
    linear-gradient(180deg, rgba(129, 238, 207, 0.12), rgba(129, 238, 207, 0.035)),
    rgba(12, 20, 25, 0.96);
  box-shadow: 0 0 0 3px rgba(129, 238, 207, 0.08), var(--release-glow-green);
}

#app {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 56px 56px;
}

#topBar,
#bottomBar,
#leftPanel,
#rightPanel {
  border-color: var(--release-line);
  background: rgba(5, 8, 11, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--release-green);
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(129, 238, 207, 0.34);
}

.status-pill {
  border-color: rgba(129, 238, 207, 0.2);
  background: rgba(129, 238, 207, 0.055);
}

.boot-screen,
.login-screen {
  background:
    radial-gradient(circle at center, rgba(129, 238, 207, 0.075), transparent 32%),
    linear-gradient(180deg, #070b0f, #030405);
}

.center-panel {
  border-color: var(--release-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    var(--release-panel);
  box-shadow: var(--release-shadow), var(--release-glow-green);
}

.center-panel h1 {
  color: var(--release-text);
  text-shadow: 0 0 22px rgba(129, 238, 207, 0.22);
}

.boot-orbit {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: var(--release-green);
  box-shadow: 0 0 22px rgba(129, 238, 207, 0.28);
}

.loading-bar {
  border-color: rgba(129, 238, 207, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.loading-bar span {
  background: linear-gradient(90deg, var(--release-green), var(--release-amber), var(--release-red));
  box-shadow: 0 0 18px rgba(129, 238, 207, 0.34);
}

.desktop-wallpaper {
  background:
    linear-gradient(135deg, rgba(129, 238, 207, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(255, 77, 109, 0.12), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 84px);
}

.desktop-watermark {
  color: rgba(255, 255, 255, 0.065);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(42px, 8vw, 92px);
}

.demo-mission-panel,
.pov-side-panel,
.explore-panel,
.interaction-card,
.object-state,
.pov-allies {
  border-color: var(--release-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(6, 10, 13, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.mission-kicker,
.speaker-name,
.runtime-video-fallback span,
.freeze-label,
.permission-transfer {
  color: var(--release-amber);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.22);
}

.desktop-icon {
  border-color: rgba(129, 238, 207, 0.18);
  background: rgba(5, 8, 11, 0.52);
  backdrop-filter: blur(10px);
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  transform: translateY(-2px);
}

.icon-mark {
  color: #04100d;
  background: linear-gradient(135deg, var(--release-green), #b8fff0);
  box-shadow: var(--release-glow-green);
}

.window {
  border-color: rgba(129, 238, 207, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--release-panel-strong);
  box-shadow: var(--release-shadow);
}

.window.is-active {
  border-color: var(--release-line-hot);
  box-shadow: var(--release-shadow), 0 0 0 1px rgba(129, 238, 207, 0.18), var(--release-glow-green);
}

.window-header {
  border-bottom-color: rgba(129, 238, 207, 0.22);
  background:
    linear-gradient(90deg, rgba(129, 238, 207, 0.12), transparent 42%),
    rgba(7, 12, 16, 0.96);
}

.window-header h2 {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.window-controls button {
  border-radius: 50%;
}

.bug-rate-hud {
  position: fixed;
  left: 18px;
  top: 16px;
  z-index: 120;
  min-width: 178px;
  border-color: rgba(129, 238, 207, 0.58);
  background:
    linear-gradient(180deg, rgba(129, 238, 207, 0.095), rgba(5, 8, 11, 0.76)),
    rgba(5, 8, 11, 0.82);
  box-shadow: var(--release-glow-green), inset 0 0 24px rgba(129, 238, 207, 0.055);
  backdrop-filter: blur(10px);
}

.bug-rate-hud span,
.bug-rate-hud strong,
.pov-top-hud span:first-child,
.runtime-log,
.runtime-config-overlay-text {
  font-family: Consolas, "Courier New", monospace;
}

.bug-rate-hud strong {
  color: var(--release-green);
  font-size: 28px;
  text-shadow: 0 0 16px rgba(129, 238, 207, 0.42);
}

.bug-level-high .bug-rate-hud,
.bug-level-critical .bug-rate-hud,
.bug-level-collapse .bug-rate-hud {
  border-color: rgba(255, 77, 109, 0.88);
  box-shadow: var(--release-glow-red), inset 0 0 24px rgba(255, 77, 109, 0.08);
}

.bug-level-high .bug-rate-hud strong,
.bug-level-critical .bug-rate-hud strong,
.bug-level-collapse .bug-rate-hud strong {
  color: var(--release-red);
  text-shadow: 0 0 18px rgba(255, 77, 109, 0.54);
}

.pov-runtime {
  grid-template-columns: minmax(560px, 1fr) 300px;
}

.runtime-movie-frame {
  border-color: rgba(129, 238, 207, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(121, 168, 255, 0.08), rgba(5, 7, 10, 0.1)),
    #030507;
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 26px 90px rgba(0, 0, 0, 0.48);
}

.runtime-movie-frame::before,
.runtime-movie-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 9%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.68);
}

.runtime-movie-frame::before {
  top: 0;
}

.runtime-movie-frame::after {
  bottom: 0;
}

.runtime-video-fallback {
  color: rgba(244, 251, 255, 0.62);
  background:
    radial-gradient(circle at 50% 42%, rgba(129, 238, 207, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(12, 18, 24, 0.94), rgba(3, 5, 7, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 54px);
}

.pov-scanline {
  opacity: 0.2;
  mix-blend-mode: screen;
}

.pov-top-hud {
  z-index: 5;
  color: var(--release-green);
  text-shadow: 0 0 14px rgba(129, 238, 207, 0.38);
}

.pov-meter-stack {
  z-index: 5;
  width: min(260px, 36%);
}

.pov-meter-stack div {
  border-color: rgba(129, 238, 207, 0.18);
  background: rgba(3, 5, 7, 0.62);
  backdrop-filter: blur(8px);
}

.rec-indicator {
  z-index: 5;
  color: var(--release-red);
  font-family: Consolas, "Courier New", monospace;
}

.rec-indicator span {
  background: var(--release-red);
  box-shadow: 0 0 16px rgba(255, 77, 109, 0.82);
}

.runtime-log {
  z-index: 5;
  border-left: 2px solid rgba(255, 209, 102, 0.48);
  color: var(--release-amber);
  background: rgba(0, 0, 0, 0.32);
  padding: 7px 10px;
}

.runtime-subtitle {
  z-index: 5;
  left: 28px;
  right: 28px;
  bottom: 58px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.runtime-subtitle p {
  font-size: 17px;
  line-height: 1.5;
}

.runtime-notification {
  z-index: 6;
  border-color: rgba(255, 209, 102, 0.54);
  background: rgba(4, 7, 10, 0.76);
  backdrop-filter: blur(12px);
}

.runtime-config-overlay {
  z-index: 4;
}

.runtime-config-overlay-red_alert {
  background:
    linear-gradient(180deg, rgba(255, 77, 109, 0.24), rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, rgba(255, 77, 109, 0.16) 0 2px, transparent 2px 26px);
  animation: release-red-alert-pulse 680ms steps(2, end) infinite;
}

.runtime-config-overlay-black_filter {
  background:
    radial-gradient(circle at center, rgba(129, 238, 207, 0.06), transparent 32%),
    rgba(0, 0, 0, 0.78);
}

.runtime-config-overlay-text {
  border-color: rgba(129, 238, 207, 0.62);
  color: var(--release-green);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: var(--release-glow-green);
}

.runtime-config-overlay-red_alert .runtime-config-overlay-text {
  border-color: rgba(255, 77, 109, 0.72);
  color: #ffe7ec;
  text-shadow: 0 0 18px rgba(255, 77, 109, 0.6);
  box-shadow: var(--release-glow-red);
}

.pov-freeze-overlay {
  z-index: 7;
  background:
    radial-gradient(circle at center, rgba(129, 238, 207, 0.07), transparent 34%),
    rgba(2, 4, 6, 0.78);
  backdrop-filter: blur(5px);
}

.pov-freeze-overlay .choice-list {
  display: grid;
  gap: 10px;
}

.pov-freeze-overlay .choice-list button {
  min-height: 48px;
  border-color: rgba(129, 238, 207, 0.34);
  background:
    linear-gradient(90deg, rgba(129, 238, 207, 0.12), transparent 44%),
    rgba(5, 8, 11, 0.76);
  text-align: left;
  padding: 0 16px;
}

.pov-freeze-overlay .choice-list button:hover,
.pov-freeze-overlay .choice-list button:focus-visible {
  border-color: var(--release-amber);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.2), transparent 52%),
    rgba(10, 12, 10, 0.86);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12), 0 0 28px rgba(255, 209, 102, 0.24);
}

.notification {
  border-color: rgba(129, 238, 207, 0.24);
  border-left-color: var(--release-amber);
  background: rgba(6, 10, 13, 0.92);
  backdrop-filter: blur(12px);
}

.notification-permission,
.notification-ability,
.notification-achievement,
.notification-hidden-route {
  border-left-color: var(--release-green);
  box-shadow: var(--release-glow-green), var(--release-shadow);
}

.bug-ending-screen {
  background:
    radial-gradient(circle at center, rgba(255, 77, 109, 0.1), transparent 28%),
    #000;
}

.ending-bug-rate strong {
  color: var(--release-red);
  text-shadow: 0 0 36px rgba(255, 77, 109, 0.74);
}

.bug-ending-screen h1 {
  color: var(--release-green);
  text-shadow: 0 0 32px rgba(129, 238, 207, 0.54);
}

.ending-reward {
  border-color: var(--release-green);
  color: var(--release-green);
  background: rgba(129, 238, 207, 0.055);
  box-shadow: var(--release-glow-green);
}

.world-node.is-unlocked {
  border-color: var(--release-line-hot);
  background:
    linear-gradient(135deg, rgba(129, 238, 207, 0.2), transparent),
    rgba(10, 16, 20, 0.96);
}

@keyframes release-red-alert-pulse {
  0%,
  100% {
    opacity: 0.78;
    filter: saturate(1.1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.7) brightness(1.08);
  }
}

@media (max-width: 900px) {
  .pov-runtime {
    grid-template-columns: 1fr;
  }

  .runtime-subtitle {
    left: 14px;
    right: 14px;
    bottom: 48px;
  }

  .pov-meter-stack {
    width: min(230px, 46%);
  }
}
