:root {
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-3: #0ea5e9;
  --good: #059669;
  --warn: #d97706;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 24px -12px rgba(30, 41, 59, .28), 0 4px 12px -6px rgba(30, 41, 59, .12);
  --shadow-lg: 0 30px 60px -24px rgba(30, 41, 59, .34), 0 12px 28px -18px rgba(30, 41, 59, .22);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #eef2f9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.bg__orb--1 { width: 46vw; height: 46vw; background: #c7d2fe; top: -14vw; left: -10vw; animation: drift 18s ease-in-out infinite; }
.bg__orb--2 { width: 40vw; height: 40vw; background: #bae6fd; bottom: -16vw; right: -12vw; animation: drift 22s ease-in-out infinite reverse; }
.bg__orb--3 { width: 28vw; height: 28vw; background: #a7f3d0; top: 40%; left: 55%; opacity: .35; animation: drift 26s ease-in-out infinite; }
.bg__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(79, 70, 229, .09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 78%);
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.5vw, 3vw, 0) scale(1.08); }
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
  transform: perspective(300px) rotateX(8deg) rotateY(-8deg);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand__text small { font-size: 11.5px; color: var(--ink-2); }
.topbar__credit {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8); transition: .25s;
}
.topbar__credit:hover { color: var(--brand); border-color: #c7d2fe; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(5, 150, 105, .18); }

/* ---------- shell ---------- */
.shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 46px) clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

/* ---------- stage (left) ---------- */
.stage { display: flex; flex-direction: column; gap: 20px; }
.scene { perspective: 1000px; display: grid; place-items: center; padding: 6px 0 0; }
.scene__inner { transform-style: preserve-3d; transition: transform .25s ease-out; width: min(320px, 78vw); }
.scene__float { position: relative; transform-style: preserve-3d; animation: floaty2 6s ease-in-out infinite; }
.house { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 30px rgba(30, 41, 59, .18)); }
.chip {
  position: absolute; z-index: 4; font-size: 12px; font-weight: 700; font-family: var(--font-head);
  color: var(--brand); background: rgba(255, 255, 255, .9); border: 1px solid #e0e7ff;
  padding: 8px 13px; border-radius: 999px; box-shadow: var(--shadow-md);
  transform: translateZ(60px);
  backdrop-filter: blur(6px);
}
.chip--top { top: 6%; right: -8%; animation: floaty 5s ease-in-out infinite .4s; }
.chip--bottom { bottom: 12%; left: -10%; color: var(--good); border-color: #d1fae5; animation: floaty 5s ease-in-out infinite .8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) translateZ(60px); }
  50% { transform: translateY(-12px) translateZ(60px); }
}
@keyframes floaty2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.stage__copy { text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
  background: #eef2ff; border: 1px solid #e0e7ff; padding: 6px 13px; border-radius: 999px;
}
.stage__copy h1 {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; margin: 16px 0 10px;
}
.stage__copy p { color: var(--ink-2); font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.6; margin: 0; }

/* progress */
.progress { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.progress__track { height: 9px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.progress__bar {
  display: block; height: 100%; width: 14%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 0 12px rgba(99, 102, 241, .6);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.progress__meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* summary */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.summary__empty { margin: 0; font-size: 13px; color: var(--ink-3); font-style: italic; }
.summary__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.summary__list li {
  font-size: 12.5px; font-weight: 600; color: #3730a3;
  background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 999px; padding: 6px 12px;
  animation: pop .3s cubic-bezier(.22, 1, .36, 1);
}
.summary__list li span { color: var(--ink-2); font-weight: 500; }

@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- chat (right) ---------- */
.chat {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 620px;
}
.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.chat__avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 8px 16px -6px rgba(79, 70, 229, .55);
}
.chat__avatar svg { width: 20px; height: 20px; }
.chat__head strong { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.chat__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); } 50% { box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); } }
.chat__reset {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  cursor: pointer; transition: .2s;
}
.chat__reset svg { width: 15px; height: 15px; }
.chat__reset:hover { color: var(--brand); border-color: #c7d2fe; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chat__reset:active { transform: translateY(0) scale(.97); }

.chat__body {
  flex: 1; overflow-y: auto; padding: 20px 18px;
  max-height: min(60vh, 580px);
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.chat__body::-webkit-scrollbar { width: 8px; }
.chat__body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.msg { display: flex; gap: 10px; max-width: 92%; animation: rise .35s cubic-bezier(.22, 1, .36, 1) both; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.bubble {
  padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.55;
  box-shadow: var(--shadow-sm); border: 1px solid transparent;
}
.msg--bot .bubble { background: #fff; border-color: var(--line); border-top-left-radius: 5px; color: var(--ink); }
.msg--user .bubble {
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  border-top-right-radius: 5px; box-shadow: 0 12px 22px -12px rgba(79, 70, 229, .8);
}
.avatar-dot {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-head);
}
.msg--bot .avatar-dot { background: #eef2ff; color: var(--brand); border: 1px solid #e0e7ff; }
.msg--user .avatar-dot { background: #0f172a; color: #fff; }
.msg--bot .avatar-dot svg { width: 16px; height: 16px; }

.typing { display: flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* composer */
.chat__composer { padding: 16px 18px; border-top: 1px solid var(--line); background: linear-gradient(0deg, #fff, #f8fafc); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer; padding: 13px 15px; border-radius: 13px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .04);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  transform-style: preserve-3d;
}
.opt:hover { border-color: #a5b4fc; transform: translateY(-2px) rotateX(6deg); box-shadow: 0 14px 24px -14px rgba(79, 70, 229, .7); background: #fbfbff; }
.opt:active { transform: translateY(0) scale(.98); box-shadow: var(--shadow-sm); }
.opt:focus-visible { outline: 3px solid rgba(99, 102, 241, .4); outline-offset: 2px; }

.number-box { display: flex; gap: 10px; }
.number-box input {
  flex: 1; font: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line); background: #fff;
  transition: .2s; min-width: 0;
}
.number-box input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); }
.number-box input::placeholder { color: var(--ink-3); }
.send {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer;
  padding: 13px 20px; border: none; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 12px 22px -12px rgba(79, 70, 229, .9);
  transition: transform .16s, box-shadow .2s;
}
.send svg { width: 17px; height: 17px; }
.send:hover { transform: translateY(-2px); box-shadow: 0 18px 28px -14px rgba(79, 70, 229, .95); }
.send:active { transform: translateY(0) scale(.98); }
.send:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.hint { font-size: 12px; color: var(--ink-3); margin: 9px 2px 0; }

/* result card */
.result { margin-top: 2px; }
.result__price {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(30px, 5vw, 42px);
  background: linear-gradient(135deg, #4338ca, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result__range { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--good); background: #ecfdf5; border: 1px solid #d1fae5; border-radius: 999px; padding: 6px 12px; }
.result__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.result__item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.result__item dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.result__item dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.result__item--wide { grid-column: 1 / -1; }
.result__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.result__cta {
  margin-top: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--brand); cursor: pointer;
  padding: 14px; border-radius: 14px; background: #eef2ff; border: 1px solid #e0e7ff; transition: .2s;
}
.result__cta:hover { background: #e0e7ff; transform: translateY(-2px); }
.result__cta svg { width: 17px; height: 17px; }

/* ---------- credits ---------- */
.credits { width: min(1200px, 100%); margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 40px; }
.credits__card {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(24px, 3.5vw, 40px);
  background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 55%, #eef6ff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}
.credits__glow { position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, .3), transparent 70%); }
.credits__badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #4338ca; background: #fff; border: 1px solid #e0e7ff; padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.credits__person { display: flex; align-items: center; gap: 16px; margin: 18px 0 24px; }
.credits__avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 20px;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 16px 30px -14px rgba(79, 70, 229, .9), inset 0 2px 0 rgba(255, 255, 255, .35);
  transform: perspective(400px) rotateY(12deg) rotateX(6deg);
}
.credits__person h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; margin: 0; font-size: clamp(21px, 3vw, 27px); }
.credits__person p { margin: 5px 0 0; color: var(--ink-2); font-size: 14px; }
.credits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.credits__grid > div { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.credits__grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.credits__grid dd { margin: 6px 0 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }

.tilt { transition: transform .25s ease-out; will-change: transform; }
.credits__card.tilt:hover { transform: perspective(1000px) rotateX(1.2deg) rotateY(-1.2deg) translateY(-3px); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 0 24px 40px; color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.footer p { margin: 4px 0; }
.footer__mark { font-weight: 600; color: var(--ink-2); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(16px, 2vw, 21px); color: var(--brand); letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--ink-2); }

/* ---------- city combobox ---------- */
.combo { position: relative; }
.combo__field { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; transition: .2s; }
.combo__field:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); }
.combo__field svg { width: 18px; height: 18px; color: var(--ink-3); flex: 0 0 auto; }
.combo__field input { flex: 1; border: none; background: transparent; font: inherit; font-size: 15px; padding: 14px 0; color: var(--ink); outline: none; min-width: 0; }
.combo__field input::placeholder { color: var(--ink-3); }
.combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  max-height: 264px; overflow-y: auto; display: none;
}
.combo__list.is-open { display: block; animation: drop .18s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.combo__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; cursor: pointer; }
.combo__item:hover, .combo__item.is-active { background: #eef2ff; }
.combo__pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e0e7ff; color: var(--brand); }
.combo__pin svg { width: 15px; height: 15px; }
.combo__name { font-weight: 600; font-size: 14px; color: var(--ink); }
.combo__state { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.combo__feedback { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.combo__feedback.is-ok { color: var(--good); }
.combo__feedback.is-warn { color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot--info { background: var(--brand-3); }
.dot--ok { background: var(--good); }
.dot--warn { background: var(--warn); }

/* ---------- factor bars ---------- */
.factors { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.factors__title { margin: 0 0 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.factor { display: grid; grid-template-columns: 118px 1fr 50px; align-items: center; gap: 10px; margin-bottom: 8px; }
.factor__label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.factor__bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.factor__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); transition: width .8s cubic-bezier(.22, 1, .36, 1); }
.factor__val { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.result__note--warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 9px 12px; margin-top: 12px; }

/* ---------- download buttons ---------- */
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--brand); background: #eef2ff; border: 1px solid #e0e7ff; padding: 9px 14px; border-radius: 11px; transition: .2s;
}
.btn-download svg { width: 16px; height: 16px; }
.btn-download:hover { background: #e0e7ff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-download--solid { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); border-color: transparent; box-shadow: 0 12px 22px -12px rgba(79, 70, 229, .9); }
.btn-download--solid:hover { background: linear-gradient(135deg, var(--brand-2), var(--brand)); filter: brightness(1.06); }
.credits__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.credits__host { margin: 0; font-size: 12.5px; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .shell { grid-template-columns: 1fr; }
  .scene__inner { width: min(260px, 62vw); }
  .chat { min-height: 520px; }
}
@media (max-width: 560px) {
  .topbar__credit { display: none; }
  .topbar__actions .btn-download { padding: 9px 11px; }
  .shell { padding: 16px 14px 28px; gap: 18px; }
  .stage__copy h1 { font-size: 24px; }
  .scene { padding-top: 0; }
  .chip { font-size: 11px; padding: 6px 10px; }
  .stats { gap: 8px; }
  .stat { padding: 10px 6px; }
  .chat { border-radius: 20px; min-height: 480px; }
  .chat__body { padding: 16px 13px; max-height: 56vh; }
  .chat__composer { padding: 13px; }
  .options { grid-template-columns: 1fr; }
  .result__grid { grid-template-columns: 1fr; }
  .factor { grid-template-columns: 92px 1fr 44px; }
  .credits__person { gap: 13px; }
  .combo__state { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scene__inner, .credits__card.tilt:hover { transform: none !important; }
}
