:root {
  --space: #07040f;
  --panel: rgba(24, 15, 46, 0.58);
  --panel-solid: #1b1430;
  --panel-2: #241a3d;
  --line: rgba(176, 148, 255, 0.18);
  --line-strong: rgba(176, 148, 255, 0.34);
  --violet: #8b5cf6;
  --violet-ink: #b39dff;
  --ink: #f6f3ff;
  --muted: #b3aad3;
  --display: "Outfit", "Roboto", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 60%, rgba(236, 72, 153, 0.1), transparent 60%),
    var(--space);
  -webkit-font-smoothing: antialiased;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.space-ready #space { opacity: 1; }
.no-webgl #space { display: none; }
.no-webgl body {
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 70% 80%, #d9ccff, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent),
    radial-gradient(1px 1px at 85% 20%, #a9c8ff, transparent),
    radial-gradient(900px 600px at 85% 10%, rgba(139, 92, 246, 0.22), transparent 60%),
    linear-gradient(var(--space), var(--space));
  background-attachment: fixed;
}

.nav, .hero, main, .footer { position: relative; z-index: 1; }

::selection { background: var(--violet); color: #fff; }

a { color: var(--violet-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 3px; border-radius: 6px; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.sprite { display: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }

section[id] { scroll-margin-top: 80px; }

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 80px rgba(3, 1, 10, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 4, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #9b6bff, #6d3df0);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
}
.nav-links a.nav-cta:hover { filter: brightness(1.1); }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 96px;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 26px;
  background: linear-gradient(180deg, #ffffff 0%, #e6dcff 55%, #b79cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(139, 92, 246, 0.25);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 34px; }
.store-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.play-badge { display: inline-block; line-height: 0; margin: -12px; transition: transform 0.2s ease, filter 0.2s ease; }
.play-badge img { width: 220px; height: auto; }
.play-badge:hover { text-decoration: none; transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(139, 92, 246, 0.5)); }
.store-note { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.version-link { color: var(--violet-ink); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.scroll-cue:hover { text-decoration: none; color: var(--ink); }
.scroll-cue i {
  width: 22px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--violet-ink);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .hero { justify-content: flex-end; padding-top: 42vh; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .hero .lead, .store-note { text-shadow: 0 1px 12px rgba(7, 4, 15, 0.95), 0 0 2px rgba(7, 4, 15, 0.9); }
}

.demo-section { padding: 10vh 0; }
.demo-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.demo-copy { padding: 32px; border-radius: 28px; max-width: 460px; }
.demo-copy h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.demo-copy p { margin: 0 0 22px; color: var(--muted); }
.demo-copy .scene-tabs { justify-content: flex-start; max-width: none; }
@media (max-width: 860px) {
  .demo-wrap { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .demo-copy { max-width: none; width: 100%; }
}

.phone-tilt { perspective: 1400px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-tilt .phone {
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 5deg));
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
}

.world {
  min-height: 105vh;
  display: flex;
  align-items: center;
  padding: 12vh 0;
}
.world .container { display: flex; }
.world[data-side="right"] .container { justify-content: flex-end; }
.world-panel {
  width: min(560px, 100%);
  padding: 30px 8px 12px;
  border-radius: 30px;
}
.world-panel h2,
.updates-panel h2,
.faq-panel h2,
.portal-panel h2 {
  margin: 0 22px 6px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.world-panel h2 {
  background: linear-gradient(120deg, #fff, var(--c1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.world-intro { margin: 0 22px 16px; color: var(--muted); font-size: 1.04rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; gap: 16px; padding: 12px 22px; border-radius: 16px; }
.rows li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.row-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c2) 45%, transparent);
}
.row-icon svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rows b { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.rows p { margin: 2px 0 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .world { align-items: flex-end; min-height: 120vh; padding-top: 48vh; }
  .world[data-side="right"] .container { justify-content: flex-start; }
  .world-panel { width: 100%; }
}

.updates { padding: 12vh 0; }
.updates-panel { max-width: 780px; padding: 30px 22px 24px; border-radius: 30px; }
.updates-panel .world-intro { margin-left: 0; margin-right: 0; }
.updates-panel h2 { margin-left: 0; margin-right: 0; }
.release {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(10, 6, 22, 0.55);
  border: 1px solid var(--line);
}
.release.latest { border-color: rgba(167, 123, 247, 0.6); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 0 50px rgba(139, 92, 246, 0.2); }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.release h3 { margin: 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
.release time { color: var(--muted); font-size: 0.95rem; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 6px 0; color: #e2dbfa; }
.earlier { margin-top: 16px; }
.earlier summary { cursor: pointer; color: var(--violet-ink); font-weight: 500; padding: 8px 0; }
.earlier .release { margin-top: 12px; padding: 18px 22px; }
.earlier .release h3 { font-size: 1.12rem; }

.portal-section {
  min-height: 130vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 12vh;
}
.portal-section .container { display: flex; justify-content: center; }
.portal-panel { text-align: center; padding: 34px 32px 30px; border-radius: 32px; max-width: 560px; width: 100%; }
.portal-panel h2 { margin: 0 0 8px; }
.portal-panel > p { margin: 0 0 22px; color: var(--muted); }
.portal-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.qr { margin: 0; display: flex; align-items: center; gap: 12px; max-width: 250px; text-align: left; }
.qr img { width: 96px; height: 96px; padding: 7px; background: #fff; border-radius: 14px; flex-shrink: 0; }
.qr figcaption { font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) {
  .qr { display: none; }
}

.faq { padding: 6vh 0 4vh; }
.faq-panel { padding: 30px 30px 26px; border-radius: 30px; }
.faq-panel h2 { margin: 0 0 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 500;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.disclaimer { margin: 24px 0 0; font-size: 0.86rem; color: #8f86b4; }

.footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 48px 0 28px; color: var(--muted); background: rgba(5, 3, 12, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 12px 0 0; font-size: 0.92rem; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-col strong { font-family: var(--display); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.footer-bottom p { margin: 0; }

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  color: var(--muted);
  font-size: 0.95rem;
}
.callout > svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--violet-ink); margin-top: 3px; }
.callout strong { color: var(--ink); }
.callout p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--violet);
  color: #fff;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

.steps { counter-reset: step; display: grid; gap: 14px; max-width: 760px; }
.step { position: relative; padding: 20px 22px 20px 70px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
}
.step h3 { margin: 0 0 4px; font-family: var(--body); font-size: 1.04rem; font-weight: 500; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.article { position: relative; z-index: 1; padding: 56px 20px 40px; max-width: 800px; }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; }
.article .updated { color: var(--muted); font-size: 0.92rem; margin: 0 0 32px; }
.article h2 { font-size: 1.4rem; font-weight: 600; margin: 42px 0 12px; }
.article h3 { font-family: var(--body); font-size: 1.08rem; font-weight: 500; margin: 24px 0 8px; }
.article p, .article li { color: #ddd6f3; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { text-decoration: underline; text-underline-offset: 3px; }

.toc { padding: 18px 22px; margin-bottom: 36px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); }
.toc strong { display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 600; color: var(--ink); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 0.94rem; }
.toc a:hover { color: var(--ink); }
@media (max-width: 560px) { .toc ul { columns: 1; } }

.demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.phone {
  width: 300px;
  height: 612px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2c2244, #0d0918 60%);
  box-shadow: 0 0 0 1px #3b2f5e, 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 120px rgba(139, 92, 246, 0.18);
}
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #17102a;
  font-family: var(--body);
}
.statusbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 500;
  color: #e9e4ff;
}
.status-icons { display: flex; gap: 4px; }
.status-icons i { width: 13px; height: 8px; border-radius: 2px; background: #e9e4ff; opacity: 0.85; }
.status-icons i:first-child { width: 8px; }

.scene {
  position: absolute;
  inset: 34px 0 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.scene.is-active { opacity: 1; visibility: visible; }

.appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px;
  background: #1f1636;
  border-bottom: 1px solid #2b2148;
}
.back { width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.back::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-left: 2px solid #d9d2f5;
  border-bottom: 2px solid #d9d2f5;
  transform: rotate(45deg);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, var(--c1, #a77bf7), var(--c2, #8457ea));
}
.appbar-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.appbar-title b { font-size: 14px; font-weight: 500; color: #fff; }
.appbar-title small { font-size: 11.5px; color: #a59bd0; }

.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.swap .b { opacity: 0; }

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 12px 10px;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(80, 160, 240, 0.08), transparent 45%),
    #140d24;
}
.msg {
  position: relative;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #f3f0ff;
}
.msg.in { align-self: flex-start; background: #2a2042; border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: #6d45d8; border-bottom-right-radius: 5px; }
.date-chip { align-self: center; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11.5px; color: #cfc6ee; }
.msg.tr { display: grid; }
.msg.tr .orig, .msg.tr .trans { grid-area: 1 / 1; }
.msg.tr .trans { opacity: 0; }
.show-orig { font-size: 12px; color: var(--violet-ink); opacity: 0; margin-top: 3px; }
.tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  opacity: 0;
  pointer-events: none;
}
.scene-caption {
  margin: 0;
  padding: 12px 16px 18px;
  font-size: 12.5px;
  text-align: center;
  color: #b6acdc;
  background: #140d24;
}

.video {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #000;
}
.video-art { position: absolute; inset: 0; background: linear-gradient(180deg, #3a2a7a 0%, #c45a8a 55%, #f0a060 100%); }
.video-art .sun { position: absolute; left: 58%; top: 34%; width: 54px; height: 54px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 40px #ffb85a; }
.video-art .hill { position: absolute; bottom: -40px; border-radius: 50%; background: #2a1a46; }
.video-art .h1 { left: -40px; width: 260px; height: 120px; }
.video-art .h2 { right: -60px; width: 240px; height: 140px; background: #1d1233; }
.subtitle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.boost {
  position: absolute;
  right: 12px;
  top: 18px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
}
.boost-track { position: relative; width: 6px; flex: 1; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.boost-track i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, #fff 0 66%, #ff9f43 66%); border-radius: 3px; }
.boost b { font-size: 11px; color: #fff; font-weight: 700; }
.seek { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 11px; color: #cfc6ee; background: #120b20; }
.seek-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); position: relative; }
.seek-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 18%; background: var(--violet-ink); border-radius: 2px; }

.panel-card { margin: 10px 12px 0; padding: 12px 14px 10px; border-radius: 16px; background: #221a38; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--violet-ink); font-weight: 500; margin-bottom: 8px; }
.panel-head b { color: #fff; font-weight: 700; }
.panel-head .aa { color: #fff; text-shadow: 0 1px 2px #000; }
.strip { position: relative; height: 12px; border-radius: 6px; margin: 6px 4px; background: rgba(255, 255, 255, 0.18); }
.strip .fill { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: #9e86ff; border-radius: 6px; }
.strip .tick { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.6); }
.strip .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #9e86ff;
}
.strip.rainbow {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff, #ff3b30, #ff9500, #ffeb3b, #4cd964, #00e5ff, #2979ff, #d500f9, #ff4081);
}
.strip.rainbow .knob { left: 2%; background: #fff; border-color: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.strip-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: #8f86b4; }

.code {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #120b20;
}
.code-scroll { padding: 8px 18px 8px 0; font-family: var(--mono); font-size: 10.5px; line-height: 17px; white-space: nowrap; }
.code-line { display: flex; gap: 10px; }
.code-line .n { width: 38px; text-align: right; color: #5f567f; flex-shrink: 0; }
.code-line .t { color: #8f86b4; }
.code-line .lv { color: #ffb454; }
.code-line .lv.err { color: #ff6b6b; }
.code-line .lv.info { color: #6cc4ff; }
.code-line .m { color: #e3dcff; }
.scroll-track { position: absolute; right: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.12); }
.scroll-thumb { position: absolute; left: -2px; top: 0; width: 6px; height: 48px; border-radius: 3px; background: #9e86ff; }
.scroll-bubble {
  position: absolute;
  right: 22px;
  top: 64%;
  padding: 6px 12px;
  border-radius: 999px;
  background: #9e86ff;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
}

.drawer-head { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 14px; background: linear-gradient(160deg, #3b2a6e, #241a3d); }
.avatar.big { width: 56px; height: 56px; font-size: 18px; margin-bottom: 6px; display: inline-grid; }
.swap-avatar > span { grid-area: 1 / 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; }
.swap-avatar .a { background: linear-gradient(160deg, #4aa3f5, #2f7fe6); }
.swap-avatar .b { background: linear-gradient(160deg, #f06ba0, #dd4a82); opacity: 0; }
.drawer-head b { font-family: var(--body); font-size: 15px; font-weight: 500; }
.drawer-head small { font-size: 12px; color: #c4b8f0; }
.accounts { position: relative; list-style: none; margin: 0; padding: 6px 0; flex: 1; }
.accounts li { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 37px; padding: 0 18px; font-size: 13.5px; color: #ece7ff; }
.accounts li .avatar { width: 26px; height: 26px; font-size: 10px; }
.accounts .highlight { position: absolute; left: 8px; right: 8px; top: 6px; height: 37px; border-radius: 12px; background: rgba(158, 134, 255, 0.2); z-index: 0; }
.toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 12px;
  background: #322653;
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
}

.sticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; flex: 1; align-content: start; background: #140d24; }
.sticker-grid span { display: grid; place-items: center; aspect-ratio: 1; font-size: 40px; border-radius: 18px; background: #21183a; }
.export {
  position: relative;
  overflow: hidden;
  margin: 0 16px 22px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #2b8a52;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.export-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #34c26a; }
.export .swap { position: relative; }

.scene-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; }
.scene-tabs button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.scene-tabs button:hover { color: var(--ink); border-color: #4a3d77; }
.scene-tabs button[aria-selected="true"] { color: #fff; background: var(--violet); border-color: var(--violet); }

.play .m1 { animation: pop 0.4s ease both 0.2s; }
.play .m2 { animation: pop 0.4s ease both 0.6s; }
.play .m2 .tap { animation: tap 0.7s ease-out both 1.9s; }
.play .m2 .orig { animation: fade-out 0.35s ease both 2.4s; }
.play .m2 .trans { animation: fade-in 0.35s ease both 2.45s; }
.play .m2 .show-orig { animation: fade-in 0.35s ease both 2.8s; }
.play .m3 { animation: pop 0.4s ease both 4.2s; }

.play .subtitle { animation: subtitle-color 0.6s ease both 4.8s; }
.play .boost { animation: fade-in 0.3s ease both 3.4s; }
.play .boost-track i { animation: boost 1s ease-out both 3.5s; }
.play .seek-bar i { animation: seek 7s linear both; }
.play .from-center .knob { animation: knob-speed 1s cubic-bezier(.3,.7,.3,1) both 1.2s; }
.play .from-center .fill { animation: fill-speed 1s cubic-bezier(.3,.7,.3,1) both 1.2s; }
.play .panel-head .swap .a { animation: fade-out 0.2s ease both 1.7s; }
.play .panel-head .swap .b { animation: fade-in 0.2s ease both 1.7s; }
.play .rainbow .knob { animation: knob-color 0.9s cubic-bezier(.3,.7,.3,1) both 4.4s; }
.play .panel-head .aa { animation: subtitle-color 0.6s ease both 4.8s; }

.play .code-scroll { animation: fling 2.6s cubic-bezier(.12,.75,.25,1) both 0.6s, drag 0.9s ease-in-out forwards 4.2s; }
.play .scroll-thumb { animation: thumb-fling 2.6s cubic-bezier(.12,.75,.25,1) both 0.6s, thumb-drag 0.9s ease-in-out forwards 4.2s; }
.play .scroll-bubble { animation: bubble 2s ease both 4.1s; }
.play .appbar-title .swap .a { animation: fade-out 0.2s ease both 4.6s; }
.play .appbar-title .swap .b { animation: fade-in 0.2s ease both 4.6s; }

.play .accounts .highlight { animation: highlight 0.6s cubic-bezier(.3,.7,.3,1) both 1.6s; }
.play .drawer-head .swap .a, .play .swap-avatar .a { animation: fade-out 0.3s ease both 2.2s; }
.play .drawer-head .swap .b, .play .swap-avatar .b { animation: fade-in 0.3s ease both 2.2s; }
.play .scene-accounts .toast { animation: toast 2.4s ease both 2.6s; }

.play .export-bar { animation: export 2.4s ease-in-out both 1.3s; }
.play .export .swap .a { animation: fade-out 0.25s ease both 3.8s; }
.play .export .swap .b { animation: fade-in 0.25s ease both 3.8s; }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes subtitle-color { to { color: #ffeb3b; } }
@keyframes boost { to { height: 75%; } }
@keyframes seek { from { width: 18%; } to { width: 24%; } }
@keyframes knob-speed { to { left: 65%; } }
@keyframes fill-speed { to { width: 15%; } }
@keyframes knob-color { to { left: 37.5%; background: #ffeb3b; } }
@keyframes fling { from { transform: translateY(0); } to { transform: translateY(-1100px); } }
@keyframes drag { to { transform: translateY(-2300px); } }
@keyframes thumb-fling { from { top: 0; } to { top: 30%; } }
@keyframes thumb-drag { to { top: 62%; } }
@keyframes bubble { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes highlight { to { transform: translateY(111px); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes export { to { width: 100%; } }


.scene-tabs button { background: rgba(10, 6, 22, 0.4); }

@media (max-width: 360px) {
  .demo { zoom: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene, .scene * { animation-duration: 1ms !important; animation-delay: 0s !important; transition: none !important; }
  .phone-tilt, .scroll-cue i::after { animation: none; }
  #space { transition: none; }
}
