.zebes-ops-shell {
  width: min(100%, 1040px);
}

.zebes-ops {
  --ops-bg: #020606;
  --ops-panel: rgba(0, 0, 0, 0.84);
  --ops-line: rgba(111, 201, 223, 0.58);
  --ops-soft: rgba(111, 201, 223, 0.24);
  --ops-green: #8fd19a;
  --ops-warn: #f06b42;
  --ops-text: #d7f8ff;
  display: grid;
  gap: 12px;
}

.zebes-ops-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 1px solid var(--ops-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 50%, transparent 50%) 0 0 / 100% 4px,
    radial-gradient(circle at 52% 40%, rgba(68, 156, 118, 0.18), transparent 35%),
    var(--ops-bg);
  overflow: hidden;
}

.zebes-ops-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.zebes-ops-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--ops-text);
  font-family: "OCR A Extended", Bahnschrift, "Cascadia Mono", Consolas, monospace;
  text-transform: uppercase;
}

.zebes-ops-hud::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(111, 201, 223, 0.28);
  box-shadow: inset 0 0 20px rgba(111, 201, 223, 0.08);
}

.zebes-ops-status,
.zebes-ops-counter,
.zebes-ops-help {
  position: absolute;
  border: 1px solid rgba(111, 201, 223, 0.36);
  background: rgba(0, 0, 0, 0.62);
  padding: 5px 8px;
  font-size: 0.68rem;
}

.zebes-ops-status {
  left: 22px;
  top: 20px;
  color: var(--ops-green);
}

.zebes-ops-counter {
  right: 22px;
  top: 20px;
}

.zebes-ops-help {
  left: 22px;
  bottom: 20px;
  max-width: calc(100% - 44px);
}

.zebes-ops-start {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  min-width: 166px;
  min-height: 40px;
  border: 1px solid rgba(158, 211, 224, 0.82);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.84);
  color: var(--active);
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
}

.zebes-ops-start:hover,
.zebes-ops-start:focus-visible,
.zebes-ops-link:hover,
.zebes-ops-link:focus-visible {
  background: var(--active);
  color: #092c34;
  outline: none;
}

.zebes-ops-start.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.zebes-ops-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
  gap: 12px;
}

.zebes-ops-panel {
  border: 1px solid var(--ops-line);
  background: var(--ops-panel);
  padding: 12px;
}

.zebes-ops-panel h3 {
  margin: 0 0 9px;
  color: var(--ops-text);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.zebes-ops-panel p {
  margin: 0 0 10px;
  max-width: none;
  color: rgba(215, 248, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.45;
}

.zebes-ops-link {
  display: inline-grid;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #000;
  color: var(--active);
  font-size: 0.72rem;
  padding: 0 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.zebes-ops-log {
  display: grid;
  gap: 5px;
  max-height: 118px;
  margin: 0;
  padding-left: 18px;
  overflow: auto;
  color: rgba(215, 248, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.35;
}

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

  .zebes-ops-viewport {
    min-height: 280px;
  }
}
