/* ===================================================================
   Demo Cinema Engine v3 — Cinematic Onboarding Styles
   =================================================================== */

/* ── Instant black cover (prevents white flash on page load) ───────── */
.cinema-instant-cover {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100001;
}

/* ── Black overlay ─────────────────────────────────────────────────── */
.cinema-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.cinema-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Subtitle with dark scrim ──────────────────────────────────────── */
.cinema-subtitle-wrap {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.cinema-subtitle-wrap.visible {
  opacity: 1;
  pointer-events: auto;
}
.cinema-subtitle-wrap.exit {
  opacity: 0;
}

.cinema-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  color: #fff;
  text-align: center;
  max-width: 700px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.cinema-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}
.cinema-subtitle.exit {
  opacity: 0;
  transform: translateY(-8px);
}

/* ── Continue button ───────────────────────────────────────────────── */
.cinema-continue-btn {
  margin-top: 2rem;
  padding: 12px 36px;
  border: 1px solid rgba(0, 170, 255, 0.45);
  border-radius: 12px;
  background: rgba(0, 170, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s,
              border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: auto;
}
.cinema-continue-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.cinema-continue-btn:hover {
  border-color: var(--accent-1, #0af);
  background: rgba(0, 170, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
}

/* ── Spotlight hole (stacking-context-proof) ───────────────────────── */
.cinema-spotlight-hole {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    left 0.5s ease,
    top 0.5s ease,
    width 0.5s ease,
    height 0.5s ease,
    border-radius 0.5s ease;
  box-shadow:
    0 0 0 3px rgba(0, 170, 255, 0.85),
    0 0 20px 4px rgba(0, 170, 255, 0.3),
    0 0 0 9999px rgba(0, 0, 0, 0.75);
}
.cinema-spotlight-hole.visible {
  opacity: 1;
}
.cinema-spotlight-hole.cinema-spotlight-exit {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cinema-spotlight-hole.pulse {
  animation: cinema-hole-pulse 2s ease-in-out infinite;
}
@keyframes cinema-hole-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(0, 170, 255, 0.85),
      0 0 20px 4px rgba(0, 170, 255, 0.3),
      0 0 0 9999px rgba(0, 0, 0, 0.75);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(0, 170, 255, 1),
      0 0 32px 8px rgba(0, 170, 255, 0.45),
      0 0 0 9999px rgba(0, 0, 0, 0.75);
  }
}

/* Small label under spotlight */
.cinema-spotlight-label {
  position: fixed;
  z-index: 100000;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
  border-radius: 8px;
  background: rgba(0, 170, 255, 0.15);
  border: 1px solid rgba(0, 170, 255, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.45s ease 0.15s,
    transform 0.45s ease 0.15s,
    left 0.5s ease,
    top 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.cinema-spotlight-label.visible {
  opacity: 1;
  transform: translateY(0);
}
.cinema-spotlight-label.cinema-spotlight-exit {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ── Typewriter (prologue) ─────────────────────────────────────────── */
.cinema-typewriter-wrap {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #000;
}
.cinema-typewriter {
  font-family: 'MonaspaceNeon', 'Courier New', monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
  text-align: center;
  line-height: 1.7;
  min-height: 3.4em;
}
.cinema-typewriter .cinema-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-1, #0af);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cinema-cursor-blink 0.9s step-end infinite;
}
@keyframes cinema-cursor-blink {
  50% { opacity: 0; }
}

.cinema-enter-btn {
  margin-top: 2.5rem;
  padding: 14px 40px;
  border: 1px solid rgba(0, 170, 255, 0.5);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s,
              border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.03em;
}
.cinema-enter-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
.cinema-enter-btn:hover {
  border-color: var(--accent-1, #0af);
  box-shadow: 0 0 24px rgba(0, 170, 255, 0.3);
}

/* ── Elevator doors ────────────────────────────────────────────────── */
.cinema-elevator-left,
.cinema-elevator-right {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100%;
  background: #000;
  z-index: 100001;
}
.cinema-elevator-left { left: 0; }
.cinema-elevator-right { right: 0; }
.cinema-elevator-left.open {
  animation: cinema-elev-l 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.cinema-elevator-right.open {
  animation: cinema-elev-r 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
@keyframes cinema-elev-l {
  to { transform: translateX(-100%); }
}
@keyframes cinema-elev-r {
  to { transform: translateX(100%); }
}

/* ── Swipe ─────────────────────────────────────────────────────────── */
.cinema-swipe-cover {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100001;
}
.cinema-swipe-cover.exit-left {
  animation: cinema-swipe-l 0.7s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
@keyframes cinema-swipe-l {
  to { transform: translateX(-100%); }
}

/* ── Glitch ────────────────────────────────────────────────────────── */
.cinema-glitch-layer {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: #000;
}
.cinema-glitch-layer.active {
  animation: cinema-glitch 0.6s steps(1) forwards;
}
@keyframes cinema-glitch {
  0%    { opacity: 1; clip-path: inset(40% 0 30% 0); transform: translate(-4px, 2px); }
  10%   { clip-path: inset(10% 0 60% 0); transform: translate(3px, -1px); background: #111; }
  20%   { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 3px); background: #0af; opacity: 0.15; }
  30%   { clip-path: inset(20% 0 40% 0); transform: translate(4px, -2px); background: #000; opacity: 1; }
  40%   { clip-path: inset(50% 0 20% 0); transform: translate(-3px, 1px); background: #111; }
  50%   { clip-path: inset(5% 0 70% 0); transform: translate(2px, -3px); }
  60%   { clip-path: inset(60% 0 10% 0); transform: translate(-1px, 2px); background: #0af; opacity: 0.1; }
  70%   { clip-path: inset(30% 0 50% 0); transform: translate(3px, -1px); background: #000; opacity: 1; }
  80%   { clip-path: inset(15% 0 45% 0); transform: translate(-2px, 1px); }
  90%   { clip-path: inset(0); transform: translate(0); opacity: 0.5; }
  100%  { clip-path: inset(0); transform: translate(0); opacity: 0; }
}

/* ── Hyperspace ────────────────────────────────────────────────────── */
.cinema-hyperspace {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: #000;
  overflow: hidden;
}
.cinema-hyperspace-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 80% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 60%, #fff, transparent),
    radial-gradient(1px 1px at 10% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 50%, #fff, transparent),
    radial-gradient(1px 1px at 40% 10%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 70%, #fff, transparent),
    radial-gradient(1px 1px at 30% 90%, #fff, transparent);
  animation: cinema-hyper-fly 1.1s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes cinema-hyper-fly {
  0%   { transform: scale(1); opacity: 1; }
  60%  { transform: scale(8); opacity: 1; }
  100% { transform: scale(25); opacity: 0; }
}
.cinema-hyperspace-streak {
  position: absolute;
  top: 50%; left: 50%;
  width: 2px; height: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 170, 255, 0.8), #fff);
  transform-origin: top center;
  animation: cinema-streak 0.9s ease-in forwards;
}
@keyframes cinema-streak {
  0%   { height: 0; opacity: 0; }
  30%  { height: 40vh; opacity: 1; }
  100% { height: 100vh; opacity: 0; }
}

/* ── Neon HUD (trainer) ────────────────────────────────────────────── */
.cinema-neon-hud {
  border: 1px solid var(--accent-1, #0af) !important;
  box-shadow:
    0 0 8px rgba(0, 170, 255, 0.4),
    0 0 24px rgba(0, 170, 255, 0.2),
    inset 0 0 12px rgba(0, 170, 255, 0.08) !important;
  animation: cinema-neon-pulse 1.5s ease-in-out infinite;
}
@keyframes cinema-neon-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0,170,255,0.4), 0 0 24px rgba(0,170,255,0.2), inset 0 0 12px rgba(0,170,255,0.08);
  }
  50% {
    box-shadow: 0 0 16px rgba(0,170,255,0.6), 0 0 40px rgba(0,170,255,0.3), inset 0 0 20px rgba(0,170,255,0.12);
  }
}

/* ── AI tooltip ────────────────────────────────────────────────────── */
.cinema-ai-tooltip {
  position: fixed;
  z-index: 100003;
  background: rgba(10, 10, 18, 0.97);
  border: 1px solid var(--accent-1, #0af);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  max-width: 400px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 170, 255, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateY(10px);
}
.cinema-ai-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}
.cinema-ai-tooltip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-1, #0af);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ── Flash ─────────────────────────────────────────────────────────── */
.cinema-flash {
  position: fixed;
  inset: 0;
  z-index: 100004;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.cinema-flash.active {
  animation: cinema-flash-pop 0.5s ease-out forwards;
}
@keyframes cinema-flash-pop {
  0%   { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ── Correct badge ─────────────────────────────────────────────────── */
.cinema-correct-badge {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 100005;
  background: var(--success, #22c55e);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: 16px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
}
.cinema-correct-badge.visible {
  animation: cinema-correct-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cinema-correct-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  50%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ── CTA (epilogue) ────────────────────────────────────────────────── */
.cinema-cta-wrap {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cinema-cta-btn {
  padding: 18px 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-1, #0af), var(--accent-3, #a855f7));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 170, 255, 0.3);
  text-decoration: none;
  display: inline-block;
}
.cinema-cta-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cinema-cta-glow 2s ease-in-out infinite;
}
.cinema-cta-btn:hover {
  box-shadow: 0 12px 48px rgba(0, 170, 255, 0.5);
  transform: translateY(-2px) scale(1.03);
}
@keyframes cinema-cta-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 170, 255, 0.3); }
  50%      { box-shadow: 0 8px 48px rgba(0, 170, 255, 0.5), 0 0 0 2px rgba(0, 170, 255, 0.15); }
}

/* ── Controls widget ───────────────────────────────────────────────── */
.cinema-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100010;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cinema-ctrl-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 12, 18, 0.92);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.cinema-ctrl-btn:hover {
  border-color: var(--accent-1, #0af);
  color: #fff;
}
.cinema-progress-pip {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-right: 4px;
}
.cinema-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.cinema-pip.done { background: var(--accent-1, #0af); }
.cinema-pip.current {
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  width: 8px; height: 8px;
}

/* ── Spotlight prompt (text + button under spotlight) ──────────────── */
.cinema-spotlight-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100002;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 50%, rgba(0, 0, 0, 0.4) 80%, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.cinema-spotlight-prompt.visible {
  opacity: 1;
  pointer-events: auto;
}
.cinema-spotlight-prompt.cinema-spotlight-exit {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cinema-spotlight-prompt-text {
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  text-align: center;
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

/* ── Typing indicator ──────────────────────────────────────────────── */
.cinema-typing-indicator {
  position: fixed;
  z-index: 100003;
  background: rgba(10, 10, 18, 0.95);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 10px;
  padding: 8px 16px;
  color: rgba(0, 170, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cinema-typing-indicator.visible { opacity: 1; }

/* ── CodeMirror line highlights ───────────────────────────────────── */
.cinema-error-line {
  background: rgba(255, 60, 60, 0.25) !important;
  border-left: 3px solid #f44 !important;
}
.cinema-fixed-line {
  background: rgba(0, 255, 100, 0.2) !important;
  border-left: 3px solid #0f6 !important;
}

/* ── Freeze ────────────────────────────────────────────────────────── */
body.cinema-freeze { overflow: hidden !important; }

/* ── Быстрый переход к сцене (демо) ─────────────────────────────────── */
.cinema-scene-jump {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 99998;
  background: rgba(10, 10, 18, 0.92);
  border: 1px solid rgba(0, 170, 255, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.cinema-scene-jump-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  font-weight: 600;
}
.cinema-scene-jump-link {
  display: block;
  font-size: 0.8rem;
  color: rgba(0, 170, 255, 0.95);
  text-decoration: none;
  padding: 4px 0;
  border-radius: 4px;
}
.cinema-scene-jump-link:hover {
  color: #fff;
  background: rgba(0, 170, 255, 0.2);
}

/* ── Демо: окно «Помощник» — в едином стиле с тренажёром и платформой ── */
.cinema-demo-chat-window {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: cinema-demo-chat-back 0.35s ease-out;
}
@keyframes cinema-demo-chat-back {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cinema-demo-chat-window-box {
  width: min(460px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: var(--tv2-surface-1, var(--surface-card, #151518));
  border: 1px solid var(--tv2-stroke-1, var(--stroke-1, rgba(255, 255, 255, 0.08)));
  border-radius: var(--tv2-radius-lg, var(--radius-lg, 14px));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  padding: 1.25rem 1.5rem;
  animation: cinema-demo-chat-box 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
@keyframes cinema-demo-chat-box {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cinema-demo-chat-window-title {
  font-family: var(--tv2-font-ui, inherit);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tv2-text, var(--text-primary, #EDEDED));
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.cinema-demo-chat-window-list .tv2-chat-msg { margin-bottom: 1rem; }
.cinema-demo-chat-window-list .tv2-chat-meta {
  font-family: var(--tv2-font-mono, monospace);
  font-size: 0.78rem;
  color: var(--tv2-muted, var(--text-muted, #A0A0AB));
  margin-bottom: 0.3rem;
}
.cinema-demo-chat-window-list .tv2-chat-bubble {
  margin-top: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--tv2-radius-md, var(--radius-md, 10px));
  font-size: 0.9rem;
  line-height: 1.55;
  border: none;
  background: var(--tv2-surface-2, rgba(255, 255, 255, 0.04));
  color: var(--tv2-text, var(--text-primary, #EDEDED));
}
.cinema-demo-chat-window-list .tv2-chat-msg.is-user .tv2-chat-bubble {
  background: rgba(108, 108, 255, 0.1);
  color: var(--tv2-text, var(--text-primary, #EDEDED));
}
.cinema-demo-chat-window-list .tv2-chat-msg.is-assistant .tv2-chat-bubble {
  background: var(--tv2-surface-2, rgba(255, 255, 255, 0.04));
  color: var(--tv2-text, var(--text-primary, #EDEDED));
}
.cinema-demo-chat-window-list .tv2-chat-bubble.cinema-demo-thinking {
  color: var(--tv2-muted, var(--text-muted, #A0A0AB));
  animation: cinema-demo-pulse 0.9s ease-in-out infinite;
}
.cinema-demo-chat-window-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tv2-stroke-1, var(--stroke-1, rgba(255, 255, 255, 0.08)));
}
.cinema-demo-chat-window-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--tv2-font-ui, inherit);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tv2-text, var(--text-primary, #fff));
  background: var(--tv2-surface-2, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--tv2-stroke-1, rgba(255, 255, 255, 0.12));
  border-radius: var(--tv2-radius-md, var(--radius-md, 10px));
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cinema-demo-chat-window-btn:hover {
  background: var(--tv2-surface-3, rgba(255, 255, 255, 0.1));
  border-color: var(--tv2-stroke-2, rgba(255, 255, 255, 0.18));
  box-shadow: 0 0 0 1px var(--tv2-stroke-2, rgba(255, 255, 255, 0.18));
}
@keyframes cinema-demo-pulse {
  50% { opacity: 0.7; }
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cinema-subtitle { font-size: clamp(0.95rem, 3.5vw, 1.2rem); }
  .cinema-typewriter { font-size: clamp(0.85rem, 3vw, 1.1rem); }
  .cinema-cta-btn { padding: 14px 32px; font-size: 1rem; }
  .cinema-controls { bottom: 12px; right: 12px; }
  .cinema-ai-tooltip { max-width: 280px; font-size: 0.85rem; }
  .cinema-continue-btn { padding: 10px 28px; font-size: 0.9rem; }
}
