:root {
  --bg: #07070f;
  --pink: #ff2d7a;
  --text: #b8b8d0;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
}

.hint {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 10px 12px;
  border: 1px solid var(--pink);
  background: rgba(7, 7, 15, 0.78);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(255, 45, 122, 0.72);
  box-shadow: 0 0 18px rgba(255, 45, 122, 0.2);
  pointer-events: none;
}

.scene-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.34) 100%);
}

.hint strong {
  color: var(--pink);
  font-weight: 700;
}

.tooltip {
  top: auto;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  min-width: min(420px, calc(100vw - 40px));
  text-align: center;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
}

.tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* YouTube playback can fail when the API iframe is display:none, so keep it rendered offscreen. */
.annex-mix-iframe {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.crt-overlay[hidden] {
  display: none;
}

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 2, 8, 0.78);
  pointer-events: auto;
}

.crt-overlay-panel {
  width: min(760px, calc(100vw - 40px));
  background: #09091a;
  border: 1px solid rgba(255, 45, 122, 0.34);
  box-shadow: 0 0 34px rgba(255, 45, 122, 0.14), inset 0 0 42px rgba(0, 0, 0, 0.72);
  padding: 14px;
}

.crt-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.crt-overlay-title {
  color: rgba(184, 184, 208, 0.76);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.crt-eject-button {
  border: 1px solid rgba(0, 245, 212, 0.5);
  background: rgba(0, 245, 212, 0.08);
  color: #00f5d4;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 7px 12px;
  text-transform: uppercase;
}

.crt-eject-button:hover,
.crt-eject-button:focus-visible {
  background: rgba(0, 245, 212, 0.16);
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.22);
  outline: none;
}

.crt-overlay-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.crt-overlay-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.24) 0 2px, rgba(0, 0, 0, 0.02) 2px 4px),
    radial-gradient(ellipse at 42% 34%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.72) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.crt-overlay-iframe,
#crt-overlay-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
