/* The existing page palette/layout is untouched. These colors belong only to 3D decoration. */
:root {
  --cinema-green: #00ff9c;
  --cinema-cyan: #73eaff;
}
.cinema-host {
  pointer-events: none;
}
.cinema-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
/* Controls, navigation, and boot remain above the transparent decorative canvas. */
.site-header {
  z-index: 30;
}
#cyber-controls {
  position: relative;
  z-index: 20;
}
.cinema-tooltip {
  position: fixed;
  z-index: 31;
  width: min(304px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--primary);
  background: var(--bg);
  color: var(--text);
  font: 12px/1.6 var(--mono);
  box-shadow: 0 6px 28px #0006;
}
.cinema-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--primary);
  opacity: 0.5;
}
.cinema-static line {
  stroke: currentColor;
  stroke-opacity: 0.35;
}
.cinema-static circle {
  fill: currentColor;
}
.cinema-static text {
  fill: currentColor;
  text-anchor: middle;
  font: 12px monospace;
}
.toolkit-map > canvas {
  display: none;
}
.cinema-ready .cinema-static {
  visibility: hidden;
}
.cinema-portrait-active {
  opacity: var(--cinema-reveal, 0) !important;
}
.cinema-access {
  position: absolute;
  inset: auto 8px 16px;
  text-align: center;
  color: var(--primary);
  background: var(--bg);
  font: 700 12px/1.8 var(--mono);
  animation: cinema-access 0.2s steps(2, end) 2;
}
@keyframes cinema-access {
  50% {
    transform: translateX(2px);
    opacity: 0.65;
  }
}
.port-list li:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .cinema-canvas,
  .cinema-access {
    display: none;
  }
  .cinema-portrait-active {
    opacity: 1 !important;
  }
}
@media (max-width: 600px) {
  .cinema-tooltip {
    font-size: 11px;
  }
}
/* Phase 1: brand-only bursts do not filter or blur surrounding text. */
.brand.cyber-glitch { position:relative; isolation:isolate; }
.brand .cyber-glitch-layer { pointer-events:none; white-space:nowrap; }
.brand .glitch-accent { color:#27e5ff; }
.brand .glitch-split { color:#ff2e63; opacity:.16; }
[data-effects='off'] .cyber-glitch-layer { display:none; }
@media(prefers-reduced-motion:reduce) { .cyber-glitch-layer { display:none !important; } }
