/* ═══════════════════════════════════════════════════════════
   SITROOM-FX.CSS — Worker 4: Splash / Easter Eggs
   Удалено по решению Владельца msg 3989 (2026-04-27): CRT Scanlines + Controls panel.
   Зависит от --sit-* переменных, определённых Worker 1
═══════════════════════════════════════════════════════════ */

/* ── Splash overlay ──────────────────────────────────────── */
#sitroom-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050507; /* fallback до загрузки CSS variables */
  background: var(--sit-bg, #050507);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: all;
  transition: opacity 0.5s ease;
}

#sitroom-splash.fx-fade-out {
  opacity: 0;
  pointer-events: none;
}

#sitroom-splash.fx-hidden {
  display: none;
}

.fx-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 680px;
  width: 100%;
  padding: 0 32px;
}

.fx-splash-line {
  font-family: var(--sit-mono-font, 'JetBrains Mono', monospace);
  font-size: 13px;
  color: var(--sit-text-dim, #5A7090);
  white-space: pre;
  min-height: 1.5em;
}

.fx-splash-line.fx-ok      { color: var(--sit-ok,   #00D9A3); }
.fx-splash-line.fx-accent  { color: var(--sit-accent, #E6FF00); }
.fx-splash-line.fx-stby    { color: var(--sit-stby,  #00B0FF); }

.fx-splash-logo {
  font-family: var(--sit-mono-font, 'JetBrains Mono', monospace);
  font-size: 11px;
  line-height: 1.4;
  color: var(--sit-ok, #00D9A3);
  white-space: pre;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fx-splash-logo.fx-visible { opacity: 1; }

/* Курсор-мигалка при typewriter-анимации */
.fx-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--sit-ok, #00D9A3);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: fx-blink 0.7s step-end infinite;
}

@keyframes fx-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Пульсирующая точка "ESTABLISHED" */
.fx-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sit-ok, #00D9A3);
  margin-left: 8px;
  vertical-align: middle;
  animation: fx-pulse-glow 1s ease-in-out infinite;
}

@keyframes fx-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 4px var(--sit-ok, #00D9A3), 0 0 8px var(--sit-ok, #00D9A3);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 2px var(--sit-ok, #00D9A3);
    opacity: 0.6;
  }
}

/* Hint для пропуска */
.fx-splash-skip-hint {
  font-family: var(--sit-mono-font, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: var(--sit-text-muted, #3A4860);
  position: absolute;
  bottom: 24px;
  right: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Разделитель */
.fx-splash-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sit-ok, #00D9A3) 30%,
    var(--sit-ok, #00D9A3) 70%,
    transparent
  );
  opacity: 0.25;
}

/* ── CLASSIFIED MODE badge ───────────────────────────────── */
#sitroom-classified-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9995;
  font-family: var(--sit-mono-font, 'JetBrains Mono', monospace);
  font-size: 10px;
  color: var(--sit-warn, #FFB020);
  border: 1px solid var(--sit-warn, #FFB020);
  padding: 4px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(5, 5, 7, 0.85);
  animation: fx-classified-pulse 2s ease-in-out infinite;
  display: none;
  pointer-events: none;
}

#sitroom-classified-badge.fx-visible {
  display: block;
}

@keyframes fx-classified-pulse {
  /* rgba(255,176,32,…) == --sit-warn (#FFB020) с прозрачностью — см. SITROOM_CONTRACT.md §2 */
  0%, 100% { opacity: 1;   box-shadow: 0 0 8px rgba(255, 176, 32, 0.3); }
  50%       { opacity: 0.7; box-shadow: 0 0 4px rgba(255, 176, 32, 0.1); }
}

/* ── DOOM banner overlay ─────────────────────────────────── */
#sitroom-doom-banner {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#sitroom-doom-banner.fx-visible {
  display: flex;
}

.fx-doom-inner {
  font-family: var(--sit-mono-font, 'JetBrains Mono', monospace);
  font-size: 14px;
  color: var(--sit-accent, #E6FF00);
  text-align: center;
  white-space: pre;
  line-height: 1.8;
  padding: 24px 40px;
  background: rgba(5, 5, 7, 0.92);
  border: 1px solid var(--sit-accent, #E6FF00);
  animation: fx-doom-glow 0.3s ease-in-out infinite alternate;
}

@keyframes fx-doom-glow {
  /* rgba(230,255,0,…) == --sit-accent (#E6FF00) с прозрачностью — см. SITROOM_CONTRACT.md §2 */
  from { box-shadow: 0 0 12px rgba(230, 255, 0, 0.2); }
  to   { box-shadow: 0 0 24px rgba(230, 255, 0, 0.4); }
}

/* ── prefers-reduced-motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fx-cursor                { animation: none; opacity: 1; }
  .fx-pulse-dot             { animation: none; }
  #sitroom-classified-badge { animation: none; }
  .fx-doom-inner            { animation: none; }
}
