/* ------------------------------------------------ HUD chrome */
.corner {
  position: fixed;
  width: 46px;
  height: 46px;
  pointer-events: none;
  z-index: 5;
}
.corner::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--cyan);
  opacity: 0.55;
}
.corner.tl {
  top: 14px;
  left: 14px;
}
.corner.tl::before {
  border-right: 0;
  border-bottom: 0;
}
.corner.tr {
  top: 14px;
  right: 358px;
}
.corner.tr::before {
  border-left: 0;
  border-bottom: 0;
}
.corner.bl {
  bottom: 14px;
  left: 14px;
}
.corner.bl::before {
  border-right: 0;
  border-top: 0;
}
.corner.br {
  bottom: 14px;
  right: 358px;
}
.corner.br::before {
  border-left: 0;
  border-top: 0;
}

#topbar {
  position: fixed;
  top: 20px;
  left: 80px;
  right: 420px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
#topbar .sys {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(64, 220, 255, 0.8);
}
#clock {
  color: var(--amber);
}

#stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
#orb {
  width: min(48vh, 440px);
  height: min(48vh, 440px);
  cursor: pointer;
  filter: drop-shadow(0 0 35px rgba(64, 220, 255, 0.25));
}
#status {
  margin-top: 6px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  font-family: var(--font-mono);
}
#status b {
  color: var(--cyan);
  font-weight: 600;
  text-shadow: 0 0 14px rgba(64, 220, 255, 0.9);
}
#hint {
  position: absolute;
  bottom: 22px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}
#transcript {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 68%;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #9fd4f5;
  min-height: 22px;
  text-shadow: 0 0 18px rgba(64, 220, 255, 0.35);
}

/* ------------------------------------------------ right panel */
#side {
  width: 340px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 18px;
  overflow-y: auto;
  z-index: 6;
}
#side h2 {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  text-shadow: 0 0 10px rgba(64, 220, 255, 0.6);
}
.task {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(64, 220, 255, 0.06), transparent);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  animation: materialize 0.35s ease;
}
.task .t {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.task .s {
  font-size: 11px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}
.task .out {
  font-size: 11px;
  color: #a9cbe4;
  margin-top: 8px;
  max-height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1s infinite alternate;
}
.task.done {
  border-left-color: var(--ok);
}
.task.done .dot {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: none;
}
.task.error {
  border-left-color: var(--err);
}
.task.error .dot {
  background: var(--err);
  box-shadow: 0 0 8px var(--err);
  animation: none;
}
.task.cancelled {
  border-left-color: var(--dim);
  opacity: 0.65;
}
.task.cancelled .dot {
  background: var(--dim);
  box-shadow: none;
  animation: none;
}
.task .cancel {
  margin-left: auto;
  cursor: pointer;
  color: var(--dim);
}
.task .cancel:hover {
  color: var(--err);
}
@keyframes blink {
  to {
    opacity: 0.2;
  }
}
#empty {
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
}
