:root {
  --bg: #090914;
  --bg-deep: #0b0b15;
  --bg-elevated: rgba(18, 18, 30, 0.82);
  --surface: rgba(25, 25, 40, 0.78);
  --surface-hover: rgba(35, 35, 54, 0.9);
  --surface-strong: rgba(43, 43, 64, 0.92);
  --text: #eaeaf0;
  --text-secondary: #9d9db0;
  --text-tertiary: #6b6b80;
  --text-soft: #b8b8cc;
  --brand: #9b7cff;
  --brand-hover: #c0aaff;
  --brand-deep: #7c5cfc;
  --brand-subtle: rgba(155, 124, 255, 0.14);
  --brand-glow: rgba(155, 124, 255, 0.28);
  --accent-blue: #60a5fa;
  --accent-pink: #f0a3ff;
  --accent-amber: #f7c873;
  --accent-green: #34d399;
  --danger: #f97066;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.085);
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.48);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 14% -8%, rgba(155, 124, 255, 0.24), transparent 36vw),
    radial-gradient(circle at 90% 2%, rgba(96, 165, 250, 0.18), transparent 34vw),
    radial-gradient(circle at 55% 112%, rgba(240, 163, 255, 0.11), transparent 40vw),
    linear-gradient(180deg, #090914 0%, #10101e 48%, #0b0b15 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0, transparent 76%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 20, 0.52) 68%, rgba(9, 9, 20, 0.86) 100%);
}
button {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c5cfc 0%, #9b7cff 52%, #60a5fa 100%);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.28);
}
a { color: inherit; }

.film {
  --film-cycle: 80s;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 24px 24px 56px;
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: min(820px, calc(100vh - 118px));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 15% 18%, rgba(155, 124, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(96, 165, 250, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(24, 20, 43, 0.94) 0%, rgba(18, 22, 39, 0.9) 55%, rgba(15, 16, 30, 0.96) 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
  backdrop-filter: blur(16px) saturate(1.14);
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 34%, rgba(155, 124, 255, 0.06));
  opacity: 0.45;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(7px);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}
.ambient-a { width: 320px; height: 320px; left: 8%; top: 18%; background: radial-gradient(circle, rgba(155, 124, 255, 0.22), transparent 68%); animation: filmCloudA var(--film-cycle) ease-in-out infinite; }
.ambient-b { width: 250px; height: 250px; right: 8%; bottom: 12%; background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 70%); animation: filmCloudB var(--film-cycle) ease-in-out infinite; }
.ambient-c { width: 180px; height: 180px; left: 52%; bottom: 8%; background: radial-gradient(circle, rgba(240, 163, 255, 0.13), transparent 70%); animation: filmCloudC var(--film-cycle) ease-in-out infinite; }

.topline {
  position: absolute;
  z-index: 4;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #7c5cfc, #9b7cff 48%, #60a5fa);
  box-shadow: 0 18px 52px rgba(124,92,252,0.34), inset 0 1px 0 rgba(255,255,255,0.22);
}
.brand-mark.large { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 32px; font-size: 24px; }
.top-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: end;
  color: var(--text-secondary);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(16px);
}
.top-copy strong { color: #d8cbff; font-weight: 600; }

.film-controls {
  position: absolute;
  z-index: 6;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(34px, 5vw, 58px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-full);
  background: rgba(12, 12, 24, 0.72);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px) saturate(1.14);
}
.film-controls::before {
  content: attr(data-mode);
  padding: 0 8px 0 10px;
  color: var(--text-tertiary);
  font-size: 12px;
  white-space: nowrap;
}
.film-controls button {
  width: auto;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
  cursor: pointer;
}
.film-controls button:hover {
  color: var(--text);
  background: rgba(155, 124, 255, 0.12);
}
.film-controls [data-toggle-play] {
  color: #fff;
  background: linear-gradient(135deg, #7c5cfc 0%, #9b7cff 52%, #60a5fa 100%);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.22);
}

.scenes { position: absolute; inset: 0; z-index: 2; }
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(96px, 12vw, 138px) clamp(26px, 6vw, 76px) clamp(64px, 7vw, 92px);
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  animation: filmScene var(--film-cycle) ease-in-out infinite both;
}
.scene-opening { animation-delay: 0s; }
.scene-product { animation-delay: 8s; }
.scene-home { animation-delay: 16s; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr); }
.scene-register { animation-delay: 24s; grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr); }
.scene-public { animation-delay: 32s; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr); }
.scene-public-chat { animation-delay: 40s; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr); }
.scene-create { animation-delay: 48s; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr); }
.scene-own-chat { animation-delay: 56s; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr); }
.scene-summary { animation-delay: 64s; }
.scene-ending { animation-delay: 72s; }
.film.is-paused .scene,
.film.is-paused .progress span::before,
.film.is-paused .ambient,
.film.is-paused .floating-roles span,
.film.is-paused .tap,
.film.is-paused .toast,
.film.is-paused .role-grid .picked,
.film.is-paused .bubble.role,
.film.is-paused .reply-length-card {
  animation-play-state: paused !important;
}
.film.is-manual .scene {
  animation: none !important;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  z-index: 1;
}
.film.is-manual[data-scene="0"] .scene:nth-child(1),
.film.is-manual[data-scene="1"] .scene:nth-child(2),
.film.is-manual[data-scene="2"] .scene:nth-child(3),
.film.is-manual[data-scene="3"] .scene:nth-child(4),
.film.is-manual[data-scene="4"] .scene:nth-child(5),
.film.is-manual[data-scene="5"] .scene:nth-child(6),
.film.is-manual[data-scene="6"] .scene:nth-child(7),
.film.is-manual[data-scene="7"] .scene:nth-child(8),
.film.is-manual[data-scene="8"] .scene:nth-child(9),
.film.is-manual[data-scene="9"] .scene:nth-child(10) {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 3;
}
.film.is-manual .progress span::before {
  animation: none !important;
  transform: scaleX(0);
}
.film.is-manual[data-scene="0"] .progress span:nth-child(1)::before,
.film.is-manual[data-scene="1"] .progress span:nth-child(2)::before,
.film.is-manual[data-scene="2"] .progress span:nth-child(3)::before,
.film.is-manual[data-scene="3"] .progress span:nth-child(4)::before,
.film.is-manual[data-scene="4"] .progress span:nth-child(5)::before,
.film.is-manual[data-scene="5"] .progress span:nth-child(6)::before,
.film.is-manual[data-scene="6"] .progress span:nth-child(7)::before,
.film.is-manual[data-scene="7"] .progress span:nth-child(8)::before,
.film.is-manual[data-scene="8"] .progress span:nth-child(9)::before,
.film.is-manual[data-scene="9"] .progress span:nth-child(10)::before {
  transform: scaleX(1);
}

.kicker,
.section-kicker {
  width: fit-content;
  margin: 0 0 14px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(155, 124, 255, 0.12);
  border: 1px solid rgba(155, 124, 255, 0.2);
  color: #cbbdff;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.title-lockup,
.ending-lockup,
.summary-card { max-width: 940px; margin: 0 auto; text-align: center; }
.title-lockup h1,
.ending-lockup h2,
.summary-card h2,
.copy-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.title-lockup p,
.ending-lockup p,
.summary-card p,
.copy-card p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.8;
}
.floating-roles { position: absolute; inset: auto 8% 14% 8%; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.floating-roles span,
.path-line span,
.public-ui header span,
.chat-head span,
.character-card span {
  padding: 7px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 13px;
}
.floating-roles span:nth-child(1) { animation: filmFloat 4.6s ease-in-out infinite; }
.floating-roles span:nth-child(2) { animation: filmFloat 5.2s ease-in-out infinite 0.5s; }
.floating-roles span:nth-child(3) { animation: filmFloat 4.9s ease-in-out infinite 1s; }

.copy-card,
.device,
.phone,
.chat-ui,
.summary-card,
.review-panel {
  position: relative;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.026)), var(--surface);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(1.14);
}
.copy-card.large { width: min(880px, 100%); margin: 0 auto; padding: clamp(30px, 5vw, 56px); text-align: center; }
.feature-grid { width: min(900px, 100%); margin: 24px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid div,
.home-ui,
.form-ui label em,
.editor label em,
.role-grid section,
.character-card,
.compose {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feature-grid div { min-height: 120px; display: grid; align-content: center; gap: 8px; padding: 18px; text-align: center; transition: all 250ms var(--ease-out); }
.feature-grid b { font-size: 22px; color: var(--text); }
.feature-grid span { color: var(--text-secondary); }

.device,
.phone { overflow: hidden; min-width: 0; }
.device.wide { width: min(820px, 100%); }
.phone { width: min(430px, 100%); justify-self: center; }
.browser {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  color: var(--text-tertiary);
  font-size: 13px;
}
.browser i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.browser i:first-child { background: var(--danger); }
.browser i:nth-child(2) { background: var(--accent-amber); }
.browser i:nth-child(3) { background: var(--accent-green); }
.browser strong { margin-left: auto; color: var(--text-secondary); font-weight: 500; }

.home-ui,
.public-ui,
.create-ui { padding: clamp(22px, 4vw, 42px); }
.home-ui small,
.form-ui h3,
.public-ui header b,
.chat-head b { color: var(--text); font-weight: 700; }
.home-ui h2 { max-width: 600px; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.04em; }
.home-ui p,
.role-grid p,
.character-card p { color: var(--text-secondary); line-height: 1.7; }
.ui-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ui-actions span,
.start-chat,
.save {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ui-actions span i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  font-style: normal;
  font-size: 12px;
}
.ui-actions span.secondary {
  border-color: rgba(155, 124, 255, 0.18);
  background: rgba(155, 124, 255, 0.08);
  color: #d8cbff;
}
.ui-actions .active,
.start-chat,
.save {
  color: #fff;
  background: linear-gradient(135deg, #7c5cfc 0%, #9b7cff 52%, #60a5fa 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.28);
}
.tap { position: absolute; right: 11%; bottom: 20%; padding: 8px 12px; border-radius: var(--radius-full); color: #0c1020; background: #fff; box-shadow: 0 18px 46px rgba(0,0,0,0.35); font-size: 13px; animation: filmTap var(--film-cycle) ease-in-out infinite; }

.narration { align-self: center; padding: 24px; border-left: 1px solid rgba(155, 124, 255, 0.24); }
.narration.right { border-left: 0; border-right: 1px solid rgba(155, 124, 255, 0.24); text-align: right; }
.narration span { color: #cbbdff; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; }
.narration h3 { font-size: clamp(28px, 3.2vw, 42px); color: var(--text); }
.narration p { color: var(--text-secondary); line-height: 1.8; }

.form-ui { display: grid; gap: 13px; padding: 24px; }
.form-ui label,
.editor label { margin: 0; color: var(--text-secondary); }
.form-ui em,
.editor em { display: block; margin-top: 7px; padding: 11px 13px; color: var(--text); font-style: normal; }
.toast { width: fit-content; margin: 0 auto 22px; padding: 8px 12px; border-radius: var(--radius-full); color: #b6f6db; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.22); animation: filmToast var(--film-cycle) ease-in-out infinite; }

.public-ui header,
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-grid section { min-height: 180px; display: grid; align-content: start; gap: 8px; padding: 17px; }
.role-grid .picked { background: rgba(155, 124, 255, 0.14); border-color: rgba(155, 124, 255, 0.28); box-shadow: var(--shadow-md), 0 0 20px rgba(124, 92, 252, 0.12); animation: filmPick var(--film-cycle) ease-in-out infinite; }
.role-grid em { margin-top: auto; color: var(--text-secondary); font-style: normal; font-size: 13px; }
.start-chat { margin-top: 16px; }

.chat-ui { width: min(720px, 100%); display: grid; gap: 13px; padding: 24px; justify-self: center; }
.chat-head { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.075); }
.bubble { max-width: 80%; padding: 18px; border-radius: var(--radius-xl); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); line-height: 1.8; }
.bubble.user { justify-self: end; border-color: rgba(96, 165, 250, 0.18); }
.bubble.role { justify-self: start; border-color: rgba(124, 92, 252, 0.18); }
.compose { margin-top: 10px; padding: 13px 15px; color: var(--text-tertiary); }
.reply-length-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: rgba(96, 165, 250, 0.06);
}
.reply-length-card strong {
  color: var(--accent-blue);
  font-size: 14px;
}
.reply-length-card div {
  display: inline-flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.reply-length-card span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.reply-length-card span.selected {
  border-color: rgba(155, 124, 255, 0.28);
  background: rgba(155, 124, 255, 0.14);
  color: #d8cbff;
  box-shadow: 0 0 18px rgba(124,92,252,0.13);
}
.scene-public-chat .reply-length-card {
  animation: filmLengthPulse var(--film-cycle) ease-in-out infinite;
}
.scene-public-chat .bubble.role,
.scene-own-chat .bubble.role { animation: filmReply var(--film-cycle) ease-in-out infinite; }
.scene-own-chat .bubble.second { animation-delay: 0.8s; }

.create-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr); gap: 16px; }
.editor { display: grid; gap: 12px; }
.editor h3 { color: var(--text); }
.character-card { align-self: center; display: grid; gap: 10px; padding: 22px; border-radius: var(--radius-2xl); }
.character-card b { font-size: 24px; color: var(--text); }
.character-card span { width: fit-content; color: var(--brand-hover); }

.summary-card { width: min(960px, 100%); padding: clamp(30px, 5vw, 58px); }
.path-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ending-lockup p { color: #d8cbff; font-weight: 700; letter-spacing: 0.03em; }

.progress { position: absolute; z-index: 5; left: clamp(18px, 3vw, 34px); right: clamp(18px, 3vw, 34px); bottom: clamp(16px, 2.4vw, 26px); display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.progress span { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.09); }
.progress span::before { content: ''; display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #7c5cfc, #60a5fa); animation: filmBar var(--film-cycle) linear infinite; }
.progress span:nth-child(1)::before { animation-delay: 0s; }
.progress span:nth-child(2)::before { animation-delay: 8s; }
.progress span:nth-child(3)::before { animation-delay: 16s; }
.progress span:nth-child(4)::before { animation-delay: 24s; }
.progress span:nth-child(5)::before { animation-delay: 32s; }
.progress span:nth-child(6)::before { animation-delay: 40s; }
.progress span:nth-child(7)::before { animation-delay: 48s; }
.progress span:nth-child(8)::before { animation-delay: 56s; }
.progress span:nth-child(9)::before { animation-delay: 64s; }
.progress span:nth-child(10)::before { animation-delay: 72s; }

.review-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr); gap: 22px; padding: clamp(22px, 4vw, 34px); }
.review-panel h2 { font-size: clamp(24px, 3.3vw, 42px); }
.review-panel p,
.review-panel li { color: var(--text-secondary); line-height: 1.8; }
.review-panel ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }

@keyframes filmScene { 0%, 8.4% { opacity: 0; transform: translateY(24px) scale(0.985); z-index: 1; } 1.6%, 9.7% { opacity: 1; transform: translateY(0) scale(1); z-index: 3; } 11.2%, 100% { opacity: 0; transform: translateY(-22px) scale(0.99); z-index: 1; } }
@keyframes filmBar { 0%, 10% { transform: scaleX(1); } 10.001%, 100% { transform: scaleX(0); } }
@keyframes filmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes filmTap { 0%, 20%, 28%, 100% { opacity: 0; transform: translate(18px, 12px) scale(0.92); } 21.5%, 25.5% { opacity: 1; transform: translate(0, 0) scale(1); } 26% { opacity: 1; transform: translate(0, 0) scale(0.94); } }
@keyframes filmToast { 0%, 30%, 36%, 100% { opacity: 0; transform: translateY(12px); } 31.5%, 34.5% { opacity: 1; transform: translateY(0); } }
@keyframes filmPick { 0%, 40%, 46%, 100% { transform: translateY(0); } 41%, 44.5% { transform: translateY(-8px); } }
@keyframes filmReply { 0%, 50%, 56%, 100% { opacity: 0.45; transform: translateY(8px); } 51.5%, 54.5% { opacity: 1; transform: translateY(0); } }
@keyframes filmLengthPulse { 0%, 48%, 56%, 100% { opacity: 0.72; transform: translateY(8px); } 50%, 54% { opacity: 1; transform: translateY(0); } }
@keyframes filmCloudA { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(25px,-20px,0) scale(1.08); } }
@keyframes filmCloudB { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-20px,22px,0) scale(1.06); } }
@keyframes filmCloudC { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(12px,-24px,0) scale(1.1); } }

@media (max-width: 980px) {
  .stage { min-height: 880px; }
  .scene-home,
  .scene-register,
  .scene-public,
  .scene-public-chat,
  .scene-create,
  .scene-own-chat,
  .review-panel { grid-template-columns: 1fr; }
  .narration,
  .narration.right { border-left: 1px solid rgba(155, 124, 255, 0.24); border-right: 0; text-align: left; }
  .feature-grid,
  .role-grid,
  .create-ui { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .film { padding: 14px; }
  .stage { border-radius: 24px; min-height: 980px; }
  .scene { padding: 112px 16px 64px; }
  .topline { align-items: start; }
  .top-copy { display: none; }
  .film-controls {
    left: 16px;
    right: 16px;
    bottom: 18px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 22px;
  }
  .film-controls::before { width: 100%; text-align: center; }
  .device,
  .phone,
  .chat-ui,
  .summary-card,
  .review-panel { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .film *, .film *::before, .film *::after { animation-play-state: paused !important; }
}
