:root {
  color-scheme: dark;
  --bg: #07040c;
  --ink: #fff8f8;
  --soft-ink: rgba(255, 241, 245, 0.72);
  --muted: rgba(255, 233, 241, 0.46);
  --faint: rgba(255, 225, 238, 0.22);
  --line: rgba(255, 225, 238, 0.15);
  --line-strong: rgba(255, 225, 238, 0.26);
  --rose: #ff8fbd;
  --rose-hot: #ff5d9f;
  --gold: #ffd6a2;
  --violet: #bd9bff;
  --ice: #dbe7ff;
  --glass: rgba(15, 8, 22, 0.42);
  --font-sans: "Inter", "SF Pro Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
    "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  color: #190b13;
  background: var(--gold);
}

[hidden] {
  display: none !important;
}

.app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 68% 22%, #1a0c27 0, transparent 35%),
    radial-gradient(circle at 30% 80%, #14091c 0, transparent 38%),
    #07040c;
}

/* ------------------------------------------------------------------ */
/* World                                                               */
/* ------------------------------------------------------------------ */

.scene-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(45, 18, 47, 0.72), transparent 58%),
    #07040c;
}

.camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scaleX(-1) scale(1.015);
  filter: saturate(0.62) contrast(1.06) brightness(0.56) blur(0.7px);
  transition: opacity 1.4s var(--ease-soft);
  z-index: 0;
}

body[data-mode="live"] .camera-feed.is-ready {
  opacity: 0.34;
}

body[data-mode="live"].camera-veiled .camera-feed {
  opacity: 0;
}

.camera-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(8, 4, 13, 0.04) 0, rgba(8, 4, 13, 0.36) 54%, rgba(7, 4, 12, 0.84) 100%),
    linear-gradient(180deg, rgba(6, 3, 10, 0.44), transparent 28%, transparent 65%, rgba(6, 3, 10, 0.78));
}

.ambient {
  position: absolute;
  width: 54vw;
  height: 54vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.25;
  z-index: 1;
  mix-blend-mode: screen;
}

.ambient--rose {
  top: -30%;
  right: -12%;
  background: radial-gradient(circle, rgba(255, 93, 159, 0.28), transparent 66%);
  animation: ambientDrift 24s ease-in-out infinite alternate;
}

.ambient--violet {
  bottom: -42%;
  left: -18%;
  background: radial-gradient(circle, rgba(143, 100, 255, 0.22), transparent 68%);
  animation: ambientDrift 31s ease-in-out infinite alternate-reverse;
}

#flower-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hand-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}

.hand-canvas.is-hidden {
  opacity: 0;
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 46%, rgba(4, 2, 7, 0.42) 78%, rgba(4, 2, 7, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 2, 7, 0.38), transparent 23%, transparent 72%, rgba(4, 2, 7, 0.58));
}

.grain {
  position: absolute;
  inset: -30%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}

/* ------------------------------------------------------------------ */
/* Chrome                                                              */
/* ------------------------------------------------------------------ */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 31;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding:
    max(clamp(18px, 3.6vw, 46px), env(safe-area-inset-top))
    max(clamp(18px, 3.9vw, 58px), env(safe-area-inset-right))
    0
    max(clamp(18px, 3.9vw, 58px), env(safe-area-inset-left));
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(15, 7, 22, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 0.9s var(--ease-out), border-color 0.6s ease;
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
  border-color: rgba(255, 214, 162, 0.42);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
}

.brand-copy small span {
  color: var(--rose);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-7px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

body[data-mode="live"] .top-actions,
body[data-mode="demo"] .top-actions {
  opacity: 1;
  transform: none;
}

body[data-mode="live"] .top-actions .status-chip,
body[data-mode="live"] .top-actions .tool-group,
body[data-mode="demo"] .top-actions .status-chip,
body[data-mode="demo"] .top-actions .tool-group {
  pointer-events: auto;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--soft-ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
}

.status-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 214, 162, 0.7);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0;
}

.status-chip[data-state="searching"] .status-dot,
.status-chip[data-state="hand"] .status-dot {
  animation: statusPulse 2.2s ease-out infinite;
}

.status-chip[data-state="hand"] .status-dot {
  background: #fbebd2;
  box-shadow: 0 0 12px rgba(255, 211, 166, 0.8);
}

.status-chip[data-state="demo"] .status-dot {
  background: var(--violet);
  box-shadow: 0 0 12px rgba(189, 155, 255, 0.8);
}

.status-chip[data-state="error"] .status-dot {
  background: #ff707d;
  box-shadow: 0 0 10px rgba(255, 100, 120, 0.7);
}

.tool-group {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
}

.tool {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  color: var(--soft-ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  white-space: nowrap;
  border: 0;
  border-right: 1px solid rgba(255, 225, 238, 0.09);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.tool:last-child {
  border-right: 0;
}

.tool svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.tool:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.tool[aria-pressed="false"] {
  color: var(--muted);
}

.tool[aria-pressed="false"] svg {
  opacity: 0.45;
}

.tool:disabled {
  opacity: 0.34;
  cursor: default;
}

.tool--icon {
  width: 39px;
  justify-content: center;
  padding: 0;
}

/* ------------------------------------------------------------------ */
/* Bloom HUD                                                           */
/* ------------------------------------------------------------------ */

.bloom-hud {
  position: absolute;
  z-index: 15;
  top: 50%;
  right: clamp(18px, 4.1vw, 64px);
  width: 238px;
  opacity: 0;
  transform: translateY(calc(-50% + 12px));
  pointer-events: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

body[data-mode="live"] .bloom-hud,
body[data-mode="demo"] .bloom-hud {
  opacity: 1;
  transform: translateY(-50%);
}

.hud-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--line);
}

.hud-heading i {
  color: var(--rose);
  font-style: normal;
}

.hud-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 232, 239, 0.38);
  font-size: 7px;
  letter-spacing: 0.17em;
}

.hud-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px rgba(255, 107, 163, 0.75);
}

.hud-metric {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 17px 0 4px;
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.hud-metric > span:first-child {
  font-size: clamp(64px, 6.7vw, 96px);
  font-weight: 300;
}

.hud-metric sup {
  margin-top: 7px;
  color: var(--rose);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.hud-stage {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
}

.hud-stage strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hud-stage span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.bloom-scale {
  margin-top: 22px;
}

.scale-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 8px;
  color: rgba(255, 236, 243, 0.34);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.scale-labels span:nth-child(2) {
  text-align: center;
}

.scale-labels span:last-child {
  text-align: right;
}

.scale-track {
  position: relative;
  height: 2px;
  background: rgba(255, 234, 241, 0.1);
}

.scale-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(10% - 1px),
    rgba(255, 225, 238, 0.08) calc(10% - 1px),
    rgba(255, 225, 238, 0.08) 10%
  );
}

.scale-fill {
  position: relative;
  z-index: 1;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffb374, var(--rose-hot) 54%, var(--violet));
  box-shadow: 0 0 11px rgba(255, 105, 164, 0.52);
  transition: width 0.18s linear;
}

.scale-mark {
  position: absolute;
  top: -2px;
  z-index: 2;
  width: 1px;
  height: 6px;
  background: rgba(255, 231, 238, 0.22);
}

.scale-mark--bud {
  left: 32%;
}

.scale-mark--bloom {
  left: 66%;
}

.scale-mark b {
  position: absolute;
  top: 8px;
  left: 0;
  color: rgba(255, 232, 239, 0.27);
  font-size: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}

.scale-mark--bud b {
  left: 2px;
  transform: none;
}

.scale-mark--bloom b {
  left: -2px;
  transform: translateX(-100%);
}

.hud-readouts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hud-readouts div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-readouts span {
  color: rgba(255, 232, 239, 0.3);
  font-size: 6px;
  letter-spacing: 0.14em;
}

.hud-readouts strong {
  color: var(--soft-ink);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Hints, aura, footer                                                 */
/* ------------------------------------------------------------------ */

.hand-hint {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px 10px 11px;
  color: rgba(255, 239, 244, 0.65);
  font-size: 10px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 6, 18, 0.45);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.hand-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hand-hint__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(255, 214, 162, 0.08);
}

.hand-hint__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hand-aura {
  --aura-x: 50vw;
  --aura-y: 50vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 13;
  width: clamp(110px, 12vw, 170px);
  height: clamp(110px, 12vw, 170px);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate3d(var(--aura-x), var(--aura-y), 0) translate(-50%, -50%);
  transition: opacity 0.45s ease;
  will-change: transform;
}

.hand-aura.is-visible {
  opacity: 1;
}

.hand-aura__ring {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255, 160, 197, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(255, 80, 148, 0.05);
  animation: auraSpin 9s linear infinite;
}

.hand-aura__ring::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 213, 162, 0.8);
}

.hand-aura__ring--slow {
  inset: 20%;
  border-style: dashed;
  border-color: rgba(255, 214, 162, 0.12);
  animation-duration: 16s;
  animation-direction: reverse;
}

.hand-aura__ring--slow::before {
  display: none;
}

.hand-aura__core {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 238, 216, 0.24), rgba(255, 104, 168, 0.08) 46%, transparent 72%);
  filter: blur(9px);
}

.bottom-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding:
    0
    max(clamp(18px, 3.9vw, 58px), env(safe-area-inset-right))
    max(clamp(18px, 3.5vw, 42px), env(safe-area-inset-bottom))
    max(clamp(18px, 3.9vw, 58px), env(safe-area-inset-left));
  opacity: 0;
  transform: translateY(9px);
  pointer-events: none;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

body[data-mode="live"] .bottom-bar,
body[data-mode="demo"] .bottom-bar {
  opacity: 1;
  transform: none;
}

.gesture-guide {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: auto;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-glyph {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(255, 218, 173, 0.07);
}

.guide-glyph svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-step:nth-of-type(2) .guide-glyph {
  color: var(--rose);
  background: rgba(255, 128, 177, 0.07);
}

.guide-step > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-step b {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.guide-step small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.guide-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.bottom-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 26px;
}

.local-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 235, 241, 0.42);
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.local-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 157, 193, 0.72);
  box-shadow: 0 0 7px rgba(255, 117, 171, 0.5);
}

.shortcuts {
  color: rgba(255, 235, 241, 0.25);
  font-size: 7px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 214, 162, 0.24);
  background: none;
  cursor: pointer;
  pointer-events: auto;
}

.text-button span {
  font-size: 12px;
}

/* ------------------------------------------------------------------ */
/* Intro                                                               */
/* ------------------------------------------------------------------ */

.intro {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 50%, transparent 0, transparent 20%, rgba(7, 4, 12, 0.14) 54%, rgba(7, 4, 12, 0.6) 100%);
  transition: opacity 0.9s var(--ease-soft), visibility 0s linear 0s;
}

body[data-mode="loading"] .intro,
body[data-mode="live"] .intro,
body[data-mode="demo"] .intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s var(--ease-soft), visibility 0s linear 0.85s;
}

.intro-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 3, 9, 0.9) 0%, rgba(5, 3, 9, 0.68) 32%, rgba(5, 3, 9, 0.14) 62%, transparent 82%),
    radial-gradient(circle at 68% 44%, transparent 0, transparent 22%, rgba(5, 3, 9, 0.18) 52%, rgba(5, 3, 9, 0.6) 100%);
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 58vw);
  margin-left: clamp(26px, 8vw, 124px);
  padding: 86px 0 70px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(26px, 4vh, 48px);
  color: rgba(255, 221, 233, 0.48);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
  animation: introReveal 1.1s 0.08s var(--ease-out) both;
}

.kicker-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--rose), transparent);
}

.intro h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(64px, 7.2vw, 112px);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
  animation: introReveal 1.2s 0.16s var(--ease-out) both;
}

.intro h1 em {
  display: inline-block;
  padding-right: 0.08em;
  color: transparent;
  font-style: normal;
  letter-spacing: -0.055em;
  background: linear-gradient(112deg, #fff0d6 0%, #ffc0c7 38%, #ff87b7 64%, #caa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(255, 123, 173, 0.1));
}

.lede {
  margin: clamp(24px, 3.4vh, 38px) 0 0;
  color: rgba(255, 237, 243, 0.64);
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.055em;
  animation: introReveal 1.2s 0.28s var(--ease-out) both;
}

.intro-specs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.3vw, 34px);
  margin-top: clamp(25px, 3.4vh, 38px);
  padding: 15px 0;
  border-top: 1px solid rgba(255, 225, 238, 0.11);
  border-bottom: 1px solid rgba(255, 225, 238, 0.11);
  color: rgba(255, 235, 241, 0.4);
  font-size: 8px;
  letter-spacing: 0.12em;
  animation: introReveal 1.2s 0.36s var(--ease-out) both;
}

.intro-specs span {
  white-space: nowrap;
}

.intro-specs b {
  margin-right: 4px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: clamp(24px, 3.2vh, 36px);
  animation: introReveal 1.2s 0.44s var(--ease-out) both;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: 0.09em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background 0.3s ease,
    border-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  gap: 12px;
  color: #221019;
  border: 1px solid rgba(255, 246, 226, 0.82);
  background: linear-gradient(128deg, #fff4dc 0%, #ffd1cb 54%, #ffb0c8 100%);
  box-shadow: 0 12px 44px rgba(255, 106, 164, 0.16);
}

.button--primary:hover {
  box-shadow: 0 16px 52px rgba(255, 106, 164, 0.28);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(42, 16, 27, 0.08);
}

.button-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border-radius: 50%;
  background: rgba(38, 13, 25, 0.1);
  transition: transform 0.4s var(--ease-out);
}

.button-arrow svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button--primary:hover .button-arrow {
  transform: translateX(2px);
}

.button--ghost {
  gap: 12px;
  color: rgba(255, 238, 243, 0.65);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.button--ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.button:disabled {
  opacity: 0.46;
  cursor: wait;
  transform: none;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 17px 0 0;
  color: rgba(255, 233, 241, 0.3);
  font-size: 8px;
  letter-spacing: 0.08em;
  animation: introReveal 1.2s 0.52s var(--ease-out) both;
}

.privacy-note svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-error {
  width: min(460px, 100%);
  margin-top: 18px;
  padding: 13px 15px;
  font-size: 11px;
  line-height: 1.65;
  border: 1px solid rgba(255, 121, 140, 0.24);
  border-radius: 12px;
  background: rgba(74, 18, 31, 0.24);
  animation: introReveal 0.55s var(--ease-out) both;
}

.intro-error strong {
  display: block;
  margin-bottom: 3px;
  color: #ffc8cf;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.intro-error p {
  margin: 0;
  color: rgba(255, 231, 236, 0.63);
}

.intro-error p:last-child {
  margin-top: 4px;
  color: rgba(255, 231, 236, 0.38);
}

.intro-side {
  position: absolute;
  top: 50%;
  right: clamp(20px, 3.9vw, 58px);
  bottom: 13%;
  z-index: 2;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 220, 234, 0.16) 22%, rgba(255, 220, 234, 0.16) 78%, transparent);
}

.intro-coordinate {
  position: absolute;
  right: 16px;
  width: max-content;
  color: rgba(255, 232, 240, 0.23);
  font-size: 7px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.intro-coordinate--top {
  top: 0;
}

.intro-coordinate--bottom {
  bottom: 0;
  transform: rotate(180deg);
}

.intro-line {
  position: absolute;
  top: 46%;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 213, 162, 0.8);
}

.intro-footer {
  position: absolute;
  right: clamp(20px, 3.9vw, 58px);
  bottom: clamp(20px, 3.4vw, 40px);
  left: clamp(26px, 8vw, 124px);
  z-index: 2;
  display: flex;
  gap: 26px;
  color: rgba(255, 232, 240, 0.21);
  font-size: 7px;
  letter-spacing: 0.18em;
  animation: introReveal 1.2s 0.64s var(--ease-out) both;
}

.intro-footer span:last-child {
  margin-left: auto;
}

.intro-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

.intro-footer a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Loader                                                              */
/* ------------------------------------------------------------------ */

.loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(35, 13, 38, 0.62), rgba(5, 3, 10, 0.9) 60%),
    rgba(5, 3, 10, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}

.loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s ease;
}

.loader-inner {
  width: min(360px, 90vw);
  text-align: center;
}

.loader-flower {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 30px;
  animation: loaderSpin 7s linear infinite;
}

.loader-flower span {
  position: absolute;
  top: 9%;
  left: 38%;
  width: 24%;
  height: 41%;
  border: 1px solid rgba(255, 185, 209, 0.55);
  border-radius: 100% 0 100% 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 219, 224, 0.15), transparent 70%);
  box-shadow: 0 0 20px rgba(255, 119, 169, 0.08);
  transform-origin: 50% 100%;
}

.loader-flower span:nth-child(1) {
  transform: rotate(0deg);
}
.loader-flower span:nth-child(2) {
  transform: rotate(90deg);
}
.loader-flower span:nth-child(3) {
  transform: rotate(180deg);
}
.loader-flower span:nth-child(4) {
  transform: rotate(270deg);
}

.loader-flower i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 213, 162, 0.85);
  transform: translate(-50%, -50%);
}

.loader-kicker {
  margin: 0 0 9px;
  color: rgba(255, 224, 236, 0.36);
  font-size: 7px;
  letter-spacing: 0.24em;
}

.loader h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 31px;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.loader-detail {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.loader-track {
  position: relative;
  width: 100%;
  height: 1px;
  margin-top: 30px;
  background: rgba(255, 231, 238, 0.12);
  overflow: hidden;
}

.loader-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--violet));
  box-shadow: 0 0 12px rgba(255, 126, 180, 0.6);
  transition: width 0.65s var(--ease-out);
}

.loader-step {
  margin: 12px 0 0;
  color: rgba(255, 232, 240, 0.27);
  font-size: 7px;
  letter-spacing: 0.17em;
}

/* ------------------------------------------------------------------ */
/* Toast & no-script                                                   */
/* ------------------------------------------------------------------ */

.toast {
  position: absolute;
  bottom: clamp(104px, 12vh, 138px);
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  color: rgba(255, 242, 246, 0.72);
  font-size: 9px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 6, 19, 0.62);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 213, 162, 0.8);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  background: var(--bg);
}

/* ------------------------------------------------------------------ */
/* Animation                                                           */
/* ------------------------------------------------------------------ */

@keyframes introReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes ambientDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(0.94);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.08);
  }
}

@keyframes auraSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 215, 0.34);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(255, 193, 215, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 215, 0);
  }
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .intro-copy {
    width: min(570px, 62vw);
    margin-left: clamp(24px, 6vw, 74px);
  }

  .bloom-hud {
    width: 214px;
  }

  .shortcuts {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding:
      max(16px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      0
      max(16px, env(safe-area-inset-left));
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .status-chip {
    display: none;
  }

  .tool {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .tool span {
    display: none;
  }

  .tool svg {
    width: 16px;
    height: 16px;
  }

  .tool--icon {
    border-right: 0;
  }

  .intro {
    align-items: flex-end;
    overflow-y: auto;
  }

  .intro-wash {
    background:
      linear-gradient(180deg, rgba(5, 3, 9, 0.12) 0%, rgba(5, 3, 9, 0.45) 34%, rgba(5, 3, 9, 0.88) 70%, rgba(5, 3, 9, 0.96) 100%);
  }

  .intro-copy {
    width: 100%;
    margin-left: 0;
    padding: 22vh 22px max(34px, env(safe-area-inset-bottom));
  }

  .kicker {
    margin-bottom: 16px;
    font-size: 7px;
  }

  .intro h1 {
    font-size: clamp(49px, 13.2vw, 72px);
    line-height: 1.04;
  }

  .lede {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.8;
  }

  .intro-specs {
    gap: 15px;
    margin-top: 19px;
    padding: 12px 0;
    font-size: 7px;
  }

  .intro-specs b {
    font-size: 14px;
  }

  .intro-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .privacy-note {
    margin-top: 13px;
    font-size: 7px;
  }

  .intro-side,
  .intro-footer {
    display: none;
  }

  .intro-error {
    margin-top: 14px;
    font-size: 10px;
  }

  .bloom-hud {
    top: 80px;
    right: 15px;
    width: 140px;
    transform: translateY(8px);
  }

  body[data-mode="live"] .bloom-hud,
  body[data-mode="demo"] .bloom-hud {
    transform: none;
  }

  .hud-heading {
    padding-bottom: 9px;
    font-size: 6px;
  }

  .hud-live {
    display: none;
  }

  .hud-metric {
    margin: 12px 0 2px;
  }

  .hud-metric > span:first-child {
    font-size: 43px;
  }

  .hud-metric sup {
    margin-top: 4px;
    font-size: 9px;
  }

  .hud-stage {
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
  }

  .hud-stage strong {
    font-size: 13px;
  }

  .hud-stage span {
    font-size: 6px;
  }

  .bloom-scale {
    margin-top: 15px;
  }

  .scale-labels {
    font-size: 6px;
  }

  .scale-mark b {
    display: none;
  }

  .hud-readouts {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 16px;
    padding-top: 10px;
  }

  .hud-readouts > div:nth-child(3) {
    display: none;
  }

  .hud-readouts span {
    font-size: 5px;
  }

  .hud-readouts strong {
    font-size: 8px;
  }

  .bottom-bar {
    gap: 12px;
    padding:
      0
      max(15px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(15px, env(safe-area-inset-left));
  }

  .gesture-guide {
    gap: 11px;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .guide-glyph {
    width: 27px;
    height: 27px;
  }

  .guide-glyph svg {
    width: 19px;
    height: 19px;
  }

  .guide-step {
    gap: 7px;
  }

  .guide-step b {
    font-size: 11px;
  }

  .guide-step small {
    font-size: 6px;
  }

  .bottom-meta {
    gap: 10px;
  }

  .local-note {
    display: none;
  }

  .text-button {
    font-size: 8px;
  }

  .hand-hint {
    bottom: 19%;
    font-size: 9px;
  }

  .toast {
    bottom: 98px;
    font-size: 8px;
  }

  .loader h2 {
    font-size: 27px;
  }
}

@media (max-width: 480px) {
  .intro-copy {
    padding-top: 18vh;
  }

  .intro-specs span:nth-child(2) {
    display: none;
  }

  .guide-step small {
    display: none;
  }

  .guide-divider {
    height: 22px;
  }

  .gesture-guide {
    gap: 9px;
    padding: 8px 11px;
  }

  .guide-step b {
    font-size: 10px;
  }

  .bottom-meta {
    display: none;
  }

  .hand-aura {
    width: 108px;
    height: 108px;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .intro-copy {
    padding-top: 64px;
    padding-bottom: 50px;
  }

  .intro h1 {
    font-size: clamp(52px, 6vw, 82px);
  }

  .kicker {
    margin-bottom: 22px;
  }

  .lede {
    margin-top: 18px;
    line-height: 1.7;
  }

  .intro-specs {
    margin-top: 20px;
    padding: 10px 0;
  }

  .intro-actions {
    margin-top: 20px;
  }

  .privacy-note {
    margin-top: 12px;
  }

  .bloom-hud {
    width: 200px;
  }

  .hud-metric > span:first-child {
    font-size: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
