﻿.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.bug-rate-hud {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 25;
  display: grid;
  gap: 2px;
  min-width: 150px;
  border: 1px solid rgba(103, 212, 178, 0.46);
  border-radius: 8px;
  background: rgba(4, 7, 10, 0.7);
  box-shadow: 0 0 24px rgba(103, 212, 178, 0.12);
  padding: 10px 12px;
  pointer-events: none;
}

.bug-rate-hud span {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.bug-rate-hud strong {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.bug-rate-hud.is-surging {
  animation: bug-hud-surge 680ms steps(2, end) both;
}

.bug-level-mid .bug-rate-hud {
  border-color: rgba(242, 199, 92, 0.7);
  box-shadow: 0 0 30px rgba(242, 199, 92, 0.18);
}

.bug-level-mid .bug-rate-hud strong {
  color: var(--accent-2);
}

.bug-level-high .bug-rate-hud,
.bug-level-critical .bug-rate-hud,
.bug-level-collapse .bug-rate-hud {
  border-color: rgba(239, 107, 115, 0.86);
  box-shadow: 0 0 34px rgba(239, 107, 115, 0.26);
}

.bug-level-high .bug-rate-hud strong,
.bug-level-critical .bug-rate-hud strong,
.bug-level-collapse .bug-rate-hud strong {
  color: var(--danger);
}

.bug-level-high .bug-rate-hud {
  animation: bug-hud-pulse 1400ms steps(2, end) infinite;
}

.bug-level-critical .bug-rate-hud,
.bug-level-collapse .bug-rate-hud {
  animation: bug-hud-glitch 520ms steps(2, end) infinite;
}

.screen {
  display: none;
  width: 100%;
  height: 100%;
  padding: 22px;
}

.screen.is-active {
  display: block;
}

.boot-screen,
.login-screen {
  display: none;
  place-items: center;
  background: #0b0f14;
}

.boot-screen.is-active,
.login-screen.is-active {
  display: grid;
}

.center-panel {
  width: min(460px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.boot-loader {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.boot-orbit {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 900ms linear infinite;
}

.loading-bar {
  height: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.loading-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  animation: loading-fill 2200ms ease-out both;
}

.boot-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.center-panel h1,
.window h2,
.sidebar-title {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.desktop-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  max-width: 720px;
}

.demo-mission-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.78);
  box-shadow: var(--shadow);
  padding: 16px;
}

.demo-mission-panel h2 {
  margin: 4px 0 6px;
}

.mission-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.demo-progress {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.demo-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-progress span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}

.demo-progress .is-complete {
  color: var(--text);
}

.demo-progress .is-complete span {
  border-color: var(--accent);
  color: #101318;
  background: var(--accent);
}

.desktop-wallpaper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(103, 212, 178, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(239, 107, 115, 0.10), transparent 35%);
}

.desktop-watermark {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 48px;
  font-weight: 700;
}

.desktop-icon {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  min-height: 96px;
  padding: 12px;
}

.icon-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #111820;
  background: var(--accent);
  font-weight: 700;
}

.window {
  position: absolute;
  inset: 28px;
  display: none;
  grid-template-rows: auto 1fr;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(25, 31, 39, 0.98);
  box-shadow: var(--shadow);
  transform-origin: center;
}

.window.is-open {
  display: grid;
  animation: window-open 180ms ease both;
}

.window.is-active {
  border-color: rgba(103, 212, 178, 0.76);
}

.window.is-minimized {
  display: none;
}

.window.is-closing {
  animation: window-close 140ms ease both;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.window-body {
  overflow: auto;
  padding: 18px;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.story-runtime {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr) 240px;
  gap: 14px;
  min-height: 100%;
}

.story-video,
.story-panel,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.72);
}

.story-video {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 360px;
  color: var(--muted);
}

.video-badge {
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  padding: 6px 12px;
}

.story-panel,
.history-panel {
  padding: 14px;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.dialog-box {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.speaker-name {
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 8px;
}

.story-controls,
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.story-controls button {
  min-width: 72px;
}

.choice-list {
  display: grid;
}

.history-panel ol {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pov-runtime {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 280px;
  gap: 14px;
  min-height: 100%;
}

.pov-frame {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.pov-video-surface,
.runtime-movie-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(103, 212, 178, 0.54);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(242, 199, 92, 0.12), transparent 28%),
    linear-gradient(180deg, #26343e 0 22%, #121920 22% 65%, #070a0d 65% 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.62), var(--shadow);
}

.runtime-movie-frame {
  background: #05070a;
}

.runtime-video,
.runtime-video-fallback,
.runtime-overlay,
.runtime-black-fade {
  position: absolute;
  inset: 0;
}

.runtime-video {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.runtime-video-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(38, 52, 62, 0.84), rgba(7, 10, 13, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 54px);
  text-align: center;
}

.runtime-video-fallback span {
  color: var(--accent-2);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.runtime-video-fallback strong {
  font-size: 20px;
}

.runtime-overlay {
  z-index: 2;
  pointer-events: none;
}

.runtime-black-fade {
  z-index: 4;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.runtime-movie-frame.is-crossfading .runtime-black-fade {
  animation: runtime-black-fade 760ms ease both;
}

.runtime-movie-frame.is-crossfading .runtime-video,
.runtime-movie-frame.is-crossfading .runtime-video-fallback {
  animation: runtime-crossfade-in 760ms ease both;
}

.runtime-movie-frame.is-boss-fight {
  border-color: rgba(239, 107, 115, 0.9);
  box-shadow: inset 0 0 90px rgba(239, 107, 115, 0.18), 0 0 36px rgba(239, 107, 115, 0.22);
  animation: boss-hud-shake 520ms steps(2, end) infinite;
}

.runtime-movie-frame.is-boss-fight .pov-top-hud,
.runtime-movie-frame.is-boss-fight .pov-meter-stack,
.runtime-movie-frame.is-boss-fight .runtime-log {
  animation: boss-hud-jitter 240ms steps(2, end) infinite;
}

.runtime-overlay .pov-freeze-overlay,
.runtime-overlay .choice-list,
.runtime-overlay button {
  pointer-events: auto;
}

.pov-video-surface.is-camera-push,
.runtime-movie-frame.is-camera-push {
  animation: camera-push-in 420ms ease both;
}

.bug-level-mid .pov-video-surface,
.bug-level-mid .runtime-movie-frame,
.bug-level-mid .map-stage {
  animation: bug-video-flicker 1800ms steps(2, end) infinite;
}

.bug-level-high .pov-video-surface,
.bug-level-high .runtime-movie-frame,
.bug-level-high .map-stage {
  animation: bug-video-flicker 980ms steps(2, end) infinite, bug-frame-stutter 2100ms steps(3, end) infinite;
}

.bug-level-critical .pov-video-surface,
.bug-level-critical .runtime-movie-frame,
.bug-level-critical .map-stage {
  animation: bug-video-flicker 420ms steps(2, end) infinite, bug-frame-stutter 860ms steps(2, end) infinite;
}

.bug-level-mid .pov-video-surface.is-camera-push,
.bug-level-mid .runtime-movie-frame.is-camera-push {
  animation: camera-push-in 420ms ease both, bug-video-flicker 1800ms steps(2, end) infinite;
}

.bug-level-high .pov-video-surface.is-camera-push,
.bug-level-high .runtime-movie-frame.is-camera-push {
  animation: camera-push-in 420ms ease both, bug-video-flicker 980ms steps(2, end) infinite, bug-frame-stutter 2100ms steps(3, end) infinite;
}

.bug-level-critical .pov-video-surface.is-camera-push,
.bug-level-critical .runtime-movie-frame.is-camera-push {
  animation: camera-push-in 420ms ease both, bug-video-flicker 420ms steps(2, end) infinite, bug-frame-stutter 860ms steps(2, end) infinite;
}

.pov-scanline {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 5px);
  opacity: 0.28;
}

.pov-top-hud,
.pov-meter-stack,
.rec-indicator,
.pov-dialog,
.runtime-subtitle,
.runtime-log,
.runtime-notification,
.pov-center-copy,
.pov-freeze-overlay {
  position: absolute;
  z-index: 2;
}

.pov-top-hud {
  left: 18px;
  right: 18px;
  top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-weight: 700;
}

.pov-top-hud span:first-child {
  font-family: Consolas, "Courier New", monospace;
}

.pov-meter-stack {
  right: 18px;
  top: 54px;
  display: grid;
  gap: 8px;
  width: min(240px, 34%);
}

.pov-meter-stack div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.36);
  padding: 7px 9px;
  color: var(--muted);
}

.pov-meter-stack strong {
  color: var(--text);
  transition: color 160ms ease, text-shadow 160ms ease;
}

.pov-meter-stack strong.is-rising {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(103, 212, 178, 0.56);
}

.pov-meter-stack strong.is-falling {
  color: var(--danger);
  text-shadow: 0 0 12px rgba(239, 107, 115, 0.5);
}

.rec-indicator {
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6b6b;
  font-weight: 700;
}

.rec-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 14px rgba(255, 107, 107, 0.72);
}

.pov-center-copy {
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
}

.pov-center-copy p {
  max-width: 560px;
  margin: 0;
  font-size: 20px;
}

.pov-center-copy small {
  color: var(--accent-2);
}

.runtime-log {
  left: 18px;
  bottom: 146px;
  max-width: min(560px, calc(100% - 300px));
  color: var(--accent-2);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-shadow: 0 0 12px rgba(242, 199, 92, 0.32);
}

.runtime-notification {
  left: 50%;
  top: 58px;
  max-width: min(520px, calc(100% - 300px));
  border: 1px solid rgba(242, 199, 92, 0.44);
  border-radius: 8px;
  color: var(--accent-2);
  background: rgba(0, 0, 0, 0.54);
  box-shadow: 0 0 24px rgba(242, 199, 92, 0.14);
  padding: 9px 12px;
  opacity: 0;
  transform: translate(-50%, -8px);
}

.runtime-notification.is-visible {
  animation: runtime-notification-in 2400ms ease both;
}

.runtime-config-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 28px;
  pointer-events: none;
  text-align: center;
}

.runtime-config-overlay-black_filter {
  background: rgba(0, 0, 0, 0.72);
}

.runtime-config-overlay-text {
  max-width: min(560px, calc(100% - 48px));
  border: 1px solid rgba(103, 212, 178, 0.42);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  text-shadow: 0 0 14px rgba(103, 212, 178, 0.36);
}

.runtime-config-overlay-image {
  max-width: min(340px, 62%);
  max-height: 44%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(239, 107, 115, 0.34));
}

.pov-dialog,
.runtime-subtitle {
  left: 18px;
  right: 18px;
  bottom: 52px;
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  padding: 12px 14px;
}

.runtime-subtitle::before {
  content: "BUG TARGET " attr(data-bug-target) "%";
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.runtime-subtitle {
  animation: subtitle-fade-cycle 2400ms ease both;
}

.runtime-subtitle.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.pov-dialog p,
.runtime-subtitle p {
  margin: 0;
  max-width: 78%;
}

.bug-level-high .pov-dialog p::after,
.bug-level-high .runtime-subtitle p::after,
.bug-level-critical .runtime-subtitle p::after,
.bug-level-critical .pov-dialog p::after {
  content: " // LOG_LOG_LOG";
  color: var(--danger);
  opacity: 0.72;
}

.bug-level-critical .pov-dialog,
.bug-level-critical .runtime-subtitle,
.bug-level-critical .pov-side-panel,
.bug-level-critical .notification {
  animation: bug-ui-jitter 360ms steps(2, end) infinite;
}

.bug-level-critical .pov-side-panel ol li:nth-child(2n)::after {
  content: " 0xE_LOOP";
  color: var(--danger);
}

.pov-freeze-overlay {
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: rgba(4, 7, 10, 0.72);
  backdrop-filter: blur(2px);
}

.pov-freeze-overlay.is-choice-layer {
  animation: choice-layer-in 220ms ease both;
}

.freeze-label {
  color: var(--accent-2);
  font-weight: 700;
}

.pov-freeze-overlay .choice-list {
  width: min(520px, calc(100% - 40px));
}

.pov-freeze-overlay .choice-list button {
  border-color: rgba(103, 212, 178, 0.42);
  background: rgba(0, 0, 0, 0.38);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.pov-freeze-overlay .choice-list button:hover,
.pov-freeze-overlay .choice-list button:focus-visible {
  border-color: var(--accent-2);
  background: rgba(242, 199, 92, 0.14);
  box-shadow: 0 0 0 4px rgba(242, 199, 92, 0.12), 0 0 24px rgba(242, 199, 92, 0.2);
  transform: translateY(-2px) scale(1.012);
}

.pov-side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.72);
  padding: 14px;
}

.pov-side-panel h3,
.pov-side-panel h4,
.pov-allies p {
  margin: 0;
}

.pov-side-panel ol {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pov-allies {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.explore-runtime {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 280px;
  gap: 14px;
  min-height: 100%;
}

.map-stage {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #101820;
}

.hospital-lobby-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #24313c 0 24%, #17212a 24% 62%, #111820 62% 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.lobby-sign,
.lobby-desk,
.lobby-door {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(25, 31, 39, 0.8);
  padding: 10px 14px;
}

.lobby-sign {
  left: 36%;
  top: 8%;
}

.lobby-desk {
  left: 34%;
  top: 42%;
  width: 30%;
  height: 16%;
  display: grid;
  place-items: center;
}

.lobby-door {
  right: 8%;
  top: 22%;
  width: 12%;
  height: 34%;
  display: grid;
  place-items: center;
}

.map-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  min-height: 0;
  border: 1px solid rgba(103, 212, 178, 0.55);
  border-radius: 8px;
  color: var(--text);
  background: rgba(103, 212, 178, 0.13);
  box-shadow: 0 0 0 0 rgba(103, 212, 178, 0.3);
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  border-color: var(--accent-2);
  background: rgba(242, 199, 92, 0.18);
  box-shadow: 0 0 0 4px rgba(242, 199, 92, 0.14);
}

.map-hotspot.is-explored::after {
  content: "OK";
  position: absolute;
  right: -8px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #101318;
  background: var(--accent);
  font-weight: 700;
  font-size: 10px;
}

.map-hotspot span {
  pointer-events: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
}

.explore-panel,
.interaction-card,
.object-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 24, 0.72);
}

.explore-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.interaction-card {
  padding: 12px;
}

.interaction-card.is-active {
  border-color: var(--accent);
}

.interaction-card small {
  color: var(--accent-2);
}

.object-state-list {
  display: grid;
  gap: 8px;
}

.object-state {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--muted);
}

.world-map-runtime {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 100%;
  padding: 12px;
}

.world-map-header {
  max-width: 720px;
}

.world-map-header h2 {
  margin: 4px 0 8px;
}

.world-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.world-node {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-height: 132px;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
}

.world-node strong {
  font-size: 18px;
}

.world-node span {
  color: var(--muted);
}

.world-node.is-unlocked {
  border-color: rgba(103, 212, 178, 0.8);
  background:
    linear-gradient(135deg, rgba(103, 212, 178, 0.18), transparent),
    var(--panel-2);
  box-shadow: 0 0 26px rgba(103, 212, 178, 0.2);
  animation: world-node-ready 1800ms ease-in-out infinite;
}

.world-node.is-locked {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  opacity: 0.68;
  position: relative;
}

.world-node.is-locked::after {
  content: "LOCKED";
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  padding: 3px 7px;
}

.world-node.is-locked:hover,
.world-node.is-locked:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.task-button,
.start-button {
  min-width: 86px;
}

.task-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.task-button.is-minimized {
  color: var(--muted);
}

.taskbar-spacer {
  flex: 1;
}

.start-menu {
  position: fixed;
  left: 12px;
  bottom: 56px;
  z-index: 80;
  display: none;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 10px;
}

.start-menu.is-open {
  display: grid;
  gap: 8px;
}

.start-menu button {
  width: 100%;
  text-align: left;
  padding: 0 10px;
}

.notification {
  pointer-events: auto;
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
  animation: notification-enter 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transition: bottom 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.notification strong {
  display: block;
  margin-bottom: 4px;
}

.notification p {
  margin: 0;
  color: var(--muted);
}

.notification-permission,
.notification-ability,
.notification-achievement,
.notification-hidden-route {
  border-left-color: var(--accent);
  box-shadow: 0 0 30px rgba(103, 212, 178, 0.24), var(--shadow);
  animation: notification-enter 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both, permission-unlock-pop 1200ms ease both;
}

.notification.is-leaving {
  opacity: 0;
  transform: translateX(18px);
}

.popup-backdrop {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.36);
}

.popup {
  width: min(380px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.sidebar-list {
  display: grid;
  gap: 8px;
}

.sidebar-list button {
  width: 100%;
  text-align: left;
  padding: 0 10px;
}

.bug-ending-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-height: 100%;
  background: #000;
  color: var(--text);
  text-align: center;
  animation: bug-ending-boot 2200ms steps(3, end) both;
}

.permission-transfer {
  color: var(--accent-2);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.12em;
  animation: permission-transfer-pulse 900ms ease-in-out infinite;
}

.ending-bug-rate {
  display: grid;
  gap: 8px;
  font-family: Consolas, "Courier New", monospace;
}

.ending-bug-rate span {
  color: var(--danger);
  letter-spacing: 0.16em;
}

.ending-bug-rate strong {
  color: var(--danger);
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
  text-shadow: 0 0 28px rgba(239, 107, 115, 0.62);
}

.bug-ending-screen h1,
.bug-ending-screen h2,
.bug-ending-screen p {
  margin: 0;
}

.bug-ending-screen h1 {
  color: var(--accent);
  font-size: clamp(32px, 5vw, 64px);
  animation: permission-unlock-pop 1400ms ease both;
}

.ending-reward {
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  padding: 10px 16px;
  animation: permission-reward-scan 1800ms ease both;
}

.ending-continue {
  margin-top: 8px;
  border-color: rgba(242, 199, 92, 0.72);
  color: var(--accent-2);
  background: rgba(242, 199, 92, 0.08);
  animation: continue-prompt-pulse 1200ms ease-in-out infinite;
  font-size: 0;
}

.ending-continue::after {
  content: "Press any key to continue";
  font-size: 14px;
}

#world.is-world-map-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  background: #000;
  animation: world-map-transition 1100ms ease both;
}

#world.is-world-map-transition .world-map-runtime {
  animation: world-map-enter 900ms ease both;
}

@keyframes camera-push-in {
  0% {
    opacity: 0.28;
    transform: scale(1.025);
    filter: brightness(1.4) blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes runtime-black-fade {
  0% {
    opacity: 1;
  }
  42% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

@keyframes runtime-crossfade-in {
  0% {
    opacity: 0;
    transform: scale(1.018);
    filter: brightness(0.35) blur(2px);
  }
  56% {
    opacity: 0.72;
    filter: brightness(0.8) blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes bug-hud-pulse {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    transform: translate(1px, 0);
    opacity: 0.76;
  }
}

@keyframes boss-hud-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(2px, -1px);
  }
  50% {
    transform: translate(-2px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
}

@keyframes boss-hud-jitter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2px, -1px);
  }
}

@keyframes bug-hud-surge {
  0%,
  100% {
    transform: translate(0, 0);
    filter: none;
  }
  20% {
    transform: translate(3px, -1px);
    filter: brightness(1.7) contrast(1.3);
  }
  42% {
    transform: translate(-2px, 1px);
    filter: hue-rotate(32deg);
  }
  66% {
    transform: translate(1px, 0);
    filter: brightness(1.25);
  }
}

@keyframes notification-enter {
  0% {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
  }
  72% {
    opacity: 1;
    transform: translateX(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes permission-unlock-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
    text-shadow: none;
  }
  36% {
    opacity: 1;
    transform: scale(1.06);
    text-shadow: 0 0 34px rgba(103, 212, 178, 0.84);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 0 18px rgba(103, 212, 178, 0.42);
  }
}

@keyframes permission-reward-scan {
  0% {
    opacity: 0;
    transform: translateY(10px);
    box-shadow: none;
  }
  48% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 0 4px rgba(103, 212, 178, 0.12), 0 0 30px rgba(103, 212, 178, 0.32);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 18px rgba(103, 212, 178, 0.2);
  }
}

@keyframes bug-hud-glitch {
  0%,
  100% {
    transform: translate(0, 0) skewX(0deg);
    filter: none;
  }
  35% {
    transform: translate(2px, -1px) skewX(2deg);
    filter: hue-rotate(18deg);
  }
  65% {
    transform: translate(-2px, 1px) skewX(-2deg);
    filter: contrast(1.4);
  }
}

@keyframes world-map-transition {
  0% {
    opacity: 1;
  }
  42% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
  }
}

@keyframes world-map-enter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: brightness(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes subtitle-fade-cycle {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  12%,
  86% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
}

@keyframes choice-layer-in {
  0% {
    opacity: 0;
    transform: scale(1.012);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bug-video-flicker {
  0%,
  100% {
    filter: none;
  }
  48% {
    filter: brightness(1.18) contrast(1.12);
  }
  52% {
    filter: brightness(0.72) saturate(1.4);
  }
}

@keyframes bug-frame-stutter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  44% {
    transform: translate(0, 0);
  }
  45% {
    transform: translate(3px, 0);
  }
  47% {
    transform: translate(-2px, 1px);
  }
  49% {
    transform: translate(0, 0);
  }
}

@keyframes bug-ui-jitter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
}

@keyframes bug-ending-boot {
  0% {
    opacity: 0;
    filter: brightness(0);
  }
  22% {
    opacity: 1;
    filter: brightness(1.8);
  }
  30% {
    opacity: 0.35;
  }
  42%,
  100% {
    opacity: 1;
    filter: none;
  }
}

@keyframes permission-transfer-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes continue-prompt-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-1px);
    opacity: 1;
  }
}

@keyframes runtime-notification-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  12%,
  82% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
}

@keyframes world-node-ready {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(103, 212, 178, 0.16);
  }
  50% {
    box-shadow: 0 0 32px rgba(103, 212, 178, 0.34);
  }
}

