:root {
  color-scheme: dark;
  --bg: #030711;
  --bg-deep: #01030a;
  --text: #eaf9ff;
  --text-soft: rgba(218, 241, 255, 0.7);
  --muted: rgba(174, 211, 237, 0.48);
  --faint: rgba(174, 211, 237, 0.2);
  --cyan: #65d8ff;
  --cyan-bright: #c9f5ff;
  --blue: #2f68ff;
  --blue-deep: #1832c8;
  --line: rgba(147, 215, 255, 0.14);
  --line-strong: rgba(147, 215, 255, 0.26);
  --glass: rgba(4, 14, 28, 0.46);
  --glass-deep: rgba(2, 8, 18, 0.72);
  --sans: "Avenir Next", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Bodoni 72", "Didot", "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

html {
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(90% 70% at 50% 38%, #071528 0%, #030711 48%, #010309 100%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

button {
  font: inherit;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   Camera + WebGL layers
   -------------------------------------------------------------------------- */

.webcam {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scaleX(-1) scale(1.06);
  filter: blur(28px) saturate(0.62) brightness(0.48) contrast(1.08);
  transition: opacity 1.4s var(--ease-out);
  pointer-events: none;
}

.webcam.is-live {
  opacity: 0.34;
}

.webcam-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 44%, rgba(24, 89, 191, 0.17) 0%, rgba(3, 8, 19, 0.18) 55%, rgba(2, 5, 12, 0.82) 100%),
    linear-gradient(180deg, rgba(2, 6, 15, 0.5) 0%, transparent 27%, transparent 63%, rgba(2, 5, 12, 0.72) 100%);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  will-change: transform;
}

.aurora-a {
  left: -18vw;
  top: 16vh;
  background: radial-gradient(circle, rgba(41, 107, 255, 0.55), transparent 64%);
  animation: aurora-drift-a 26s ease-in-out infinite alternate;
}

.aurora-b {
  right: -24vw;
  bottom: -12vh;
  background: radial-gradient(circle, rgba(73, 205, 255, 0.3), transparent 64%);
  animation: aurora-drift-b 32s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: -30%;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  animation: grain-shift 0.7s steps(2) infinite;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 76% at 50% 47%, transparent 42%, rgba(1, 3, 9, 0.38) 74%, rgba(1, 3, 9, 0.82) 100%);
}

@keyframes aurora-drift-a {
  from { transform: translate3d(0, -2%, 0) scale(1); }
  to { transform: translate3d(12vw, 7vh, 0) scale(1.18); }
}

@keyframes aurora-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-10vw, -5vh, 0) scale(0.9); }
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2%, 1.3%, 0); }
  50% { transform: translate3d(1.4%, -1.7%, 0); }
  75% { transform: translate3d(1.7%, 2%, 0); }
  100% { transform: translate3d(-1.2%, -1%, 0); }
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: absolute;
  z-index: 10;
  top: max(24px, env(safe-area-inset-top));
  left: 32px;
  right: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  text-decoration: none;
  pointer-events: auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(101, 216, 255, 0.25));
}

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

.brand-en {
  color: rgba(216, 243, 255, 0.76);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  white-space: nowrap;
}

.brand-cn {
  color: rgba(226, 245, 255, 0.43);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.42em;
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 11, 23, 0.36);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  color: rgba(201, 234, 252, 0.64);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}

.status-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-pill.is-live {
  border-color: rgba(101, 216, 255, 0.3);
  color: var(--cyan);
  background: rgba(11, 44, 73, 0.3);
}

.status-pill.is-live .status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: status-ping 2s ease-out infinite;
}

.status-pill.is-loading {
  color: #f4d28d;
}

.status-pill.is-loading .status-dot {
  animation: status-blink 1s ease-in-out infinite;
}

.status-pill.is-error {
  border-color: rgba(255, 128, 145, 0.35);
  color: #ff95a4;
}

@keyframes status-ping {
  0% { transform: scale(0.7); opacity: 0.8; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

@keyframes status-blink {
  50% { opacity: 0.25; }
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(3, 11, 23, 0.34);
  color: rgba(215, 241, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  color: var(--cyan-bright);
  border-color: rgba(101, 216, 255, 0.32);
  background: rgba(12, 37, 67, 0.48);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(101, 216, 255, 0.35);
}

.icon-button:focus-visible,
.brand:focus-visible,
.button:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Hand sensor monitor
   -------------------------------------------------------------------------- */

.hand-panel {
  position: absolute;
  z-index: 8;
  left: 32px;
  bottom: 32px;
  width: 204px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--glass);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.hand-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hand-panel-head,
.hand-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hand-panel-head {
  padding: 1px 2px 9px;
}

.hand-panel-foot {
  padding: 8px 2px 1px;
  color: var(--faint);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.sensor-state {
  color: rgba(188, 233, 255, 0.38);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.sensor-state.is-active {
  color: var(--cyan);
}

.hand-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(127, 207, 255, 0.11);
  border-radius: 8px;
  background: #01040b;
}

.hand-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  filter: saturate(0.8) contrast(1.08) brightness(0.94);
}

.hand-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(110, 195, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 195, 255, 0.22) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(94, 210, 255, 0.1), transparent);
  animation: scan 4.8s linear infinite;
}

@keyframes scan {
  to { transform: translateY(520%); }
}

.corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(124, 218, 255, 0.55);
  border-style: solid;
}

.corner-tl { top: 5px; left: 5px; border-width: 1px 0 0 1px; }
.corner-tr { top: 5px; right: 5px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 5px; left: 5px; border-width: 0 0 1px 1px; }
.corner-br { bottom: 5px; right: 5px; border-width: 0 1px 1px 0; }

/* --------------------------------------------------------------------------
   Finger aura
   -------------------------------------------------------------------------- */

.finger-aura {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(circle, rgba(214, 249, 255, 0.2) 0%, rgba(87, 206, 255, 0.12) 15%, rgba(43, 118, 255, 0.05) 36%, transparent 68%);
}

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

.finger-aura span {
  position: absolute;
  inset: 34%;
  border: 1px solid rgba(166, 239, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(94, 211, 255, 0.18), inset 0 0 24px rgba(94, 211, 255, 0.08);
  animation: aura-breathe 3.4s ease-in-out infinite;
}

@keyframes aura-breathe {
  0%, 100% { transform: scale(0.72); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

/* --------------------------------------------------------------------------
   Gesture readout
   -------------------------------------------------------------------------- */

.hint {
  position: absolute;
  z-index: 7;
  top: max(88px, calc(env(safe-area-inset-top) + 72px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(196, 230, 250, 0.45);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.hint.is-visible {
  opacity: 1;
}

.hint.is-gone {
  opacity: 0;
}

.hint i {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(152, 222, 255, 0.5), transparent);
}

.gesture-panel {
  position: absolute;
  z-index: 9;
  bottom: max(30px, calc(env(safe-area-inset-bottom) + 18px));
  left: 50%;
  width: min(530px, calc(100vw - 48px));
  padding: 15px 20px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  transform: translateX(-50%);
  transition: border-color 0.6s;
}

.gesture-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.gesture-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.gesture-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.color-readout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(182, 224, 248, 0.4);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.13em;
  white-space: nowrap;
  transition: color 0.5s;
}

.color-readout i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #65d8ff;
  box-shadow: 0 0 8px #65d8ff;
  transition: background 0.6s, box-shadow 0.6s;
}

.color-readout.is-pulsing {
  color: rgba(235, 251, 255, 0.8);
}

.color-readout.is-pulsing i {
  animation: color-ping 0.7s var(--ease-out);
}

@keyframes color-ping {
  0% { transform: scale(1); box-shadow: 0 0 8px currentColor; }
  35% { transform: scale(2.1); box-shadow: 0 0 18px currentColor; }
  100% { transform: scale(1); box-shadow: 0 0 8px currentColor; }
}

.micro-label {
  color: rgba(175, 218, 245, 0.4);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.3;
  white-space: nowrap;
}

.gesture-copy strong {
  overflow: hidden;
  color: rgba(229, 248, 255, 0.9);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gesture-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}

.gesture-value span {
  color: var(--cyan-bright);
  font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(101, 216, 255, 0.28);
}

.gesture-value small {
  color: rgba(170, 218, 245, 0.34);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.tension-track {
  position: relative;
  height: 14px;
  margin: 13px 0 7px;
  overflow: visible;
}

.tension-track::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(129, 194, 232, 0.13);
}

.track-zone {
  position: absolute;
  top: 6px;
  height: 2px;
  opacity: 0.26;
}

.zone-bud {
  left: 0;
  width: 32%;
  background: #355cff;
}

.zone-mid {
  left: 32%;
  width: 34%;
  background: #49a9ff;
}

.zone-bloom {
  left: 66%;
  right: 0;
  background: #7feeff;
}

.track-fill {
  position: absolute;
  top: 6px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #294cff 0%, #48b7ff 55%, #d1f9ff 100%);
  box-shadow: 0 0 14px rgba(95, 208, 255, 0.55);
  transition: width 80ms linear;
}

.track-thumb {
  position: absolute;
  top: 7px;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -3.5px 0 0 -4.5px;
  border: 1px solid rgba(234, 253, 255, 0.9);
  border-radius: 50%;
  background: #a8efff;
  box-shadow: 0 0 0 5px rgba(89, 206, 255, 0.08), 0 0 20px rgba(88, 209, 255, 0.65);
  transition: left 80ms linear;
}

.track-fill.is-idle,
.track-thumb.is-idle {
  opacity: 0.28;
}

.track-tick {
  position: absolute;
  top: 3px;
  width: 1px;
  height: 8px;
  background: rgba(195, 235, 255, 0.18);
}

.tick-a { left: 32%; }
.tick-b { left: 66%; }

.gesture-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(172, 216, 244, 0.32);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.gesture-scale b {
  color: rgba(192, 233, 253, 0.5);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

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

.intro {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 72px 24px 104px;
  background:
    radial-gradient(ellipse 52% 56% at 50% 44%, rgba(7, 27, 54, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.68) 0%, rgba(2, 5, 12, 0.32) 38%, rgba(2, 5, 12, 0.58) 73%, rgba(1, 3, 9, 0.9) 100%);
  backdrop-filter: blur(3px) saturate(0.9);
  -webkit-backdrop-filter: blur(3px) saturate(0.9);
  opacity: 1;
  transition: opacity 1s var(--ease-out), backdrop-filter 1s var(--ease-out), -webkit-backdrop-filter 1s var(--ease-out);
}

.intro[hidden] {
  display: none;
}

.intro.is-leaving {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}

.intro-inner {
  position: relative;
  width: min(620px, calc(100vw - 48px));
  text-align: center;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 1.2s var(--ease-out);
}

.intro-inner::before {
  content: "";
  position: absolute;
  inset: -92px -110px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(2, 5, 12, 0.54) 0%,
    rgba(2, 5, 12, 0.3) 45%,
    rgba(2, 5, 12, 0) 72%
  );
  filter: blur(22px);
  pointer-events: none;
}

.intro.is-leaving .intro-inner {
  transform: translateY(-14px);
}

.intro-emblem {
  width: 104px;
  height: 104px;
  margin: 0 auto -2px;
  color: var(--cyan);
  filter: drop-shadow(0 0 22px rgba(67, 173, 255, 0.18));
  animation: emblem-arrive 2.4s var(--ease-out) both, emblem-float 8s 2.4s ease-in-out infinite;
}

.intro-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes emblem-arrive {
  from { opacity: 0; transform: scale(0.86) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.intro-kicker {
  margin: 4px 0 16px;
  color: rgba(188, 226, 249, 0.5);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1.5;
}

.intro-kicker span {
  margin: 0 0.35em;
  color: rgba(101, 216, 255, 0.55);
}

.intro h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(56px, 8.3vw, 88px);
  font-weight: 400;
  letter-spacing: 0.17em;
  line-height: 1.08;
  text-indent: 0.17em;
  text-shadow:
    0 2px 24px rgba(1, 3, 9, 0.72),
    0 0 65px rgba(58, 139, 255, 0.2);
}

.intro h1 span {
  color: rgba(239, 251, 255, 0.94);
  font-weight: 300;
}

.intro h1 em {
  position: relative;
  display: inline-block;
  margin-left: 0.04em;
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(135deg, #effeff 4%, #8de4ff 46%, #4a82ff 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(73, 177, 255, 0.18));
}

.intro-lede {
  margin: 22px auto 0;
  color: rgba(213, 238, 253, 0.62);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 2.05;
}

.gesture-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 11px;
  margin: 17px auto 0;
  color: rgba(189, 226, 247, 0.38);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.gesture-legend b {
  margin-right: 1px;
  color: rgba(219, 247, 255, 0.72);
  font-weight: 600;
}

.legend-rule {
  width: 1px;
  height: 9px;
  background: rgba(157, 215, 247, 0.2);
}

.intro-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none !important;
}

.button-primary {
  gap: 12px;
  min-width: 238px;
  padding: 10px 14px 10px 11px;
  border-radius: 999px;
  background: linear-gradient(115deg, #d9f9ff 0%, #85e2ff 35%, #52adff 70%, #3d72ff 100%);
  box-shadow:
    0 10px 38px rgba(48, 135, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #04101f;
  text-align: left;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(48, 135, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.button-primary:active {
  transform: translateY(0) scale(0.985);
}

.button-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(5, 30, 56, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.button-glyph svg {
  width: 17px;
  height: 17px;
}

.button-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.button-type strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.button-type small {
  color: rgba(4, 22, 39, 0.52);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.button-arrow {
  margin-left: auto;
  padding-left: 4px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
}

.button-ghost {
  gap: 12px;
  min-width: 126px;
  padding: 0 18px;
  border: 1px solid rgba(152, 217, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 18, 34, 0.34);
  color: rgba(220, 243, 255, 0.68);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button-ghost:hover {
  border-color: rgba(152, 217, 255, 0.32);
  background: rgba(12, 36, 63, 0.45);
  color: var(--cyan-bright);
  transform: translateY(-2px);
}

.load-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 18px;
  margin-top: 17px;
  color: rgba(187, 228, 248, 0.52);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.13em;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s, transform 0.3s;
}

.load-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.loader {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(134, 218, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

.load-status.is-error {
  color: #ff9eac;
}

.load-status.is-error .loader {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: none;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  color: rgba(167, 207, 233, 0.31);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.privacy-note svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.intro-mobile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: rgba(166, 207, 233, 0.3);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.intro-mobile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(190, 232, 252, 0.58);
  font: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

.intro-mobile-link svg {
  width: 11px;
  height: 11px;
}

.intro-mobile-link:hover {
  background: rgba(92, 181, 232, 0.08);
  color: var(--cyan-bright);
}

.intro-mobile-link:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Mobile access / QR panel
   -------------------------------------------------------------------------- */

.is-github-pages .mobile-access-button,
.is-github-pages .intro-mobile-row {
  display: none !important;
}

.mobile-access {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mobile-access[hidden] {
  display: none;
}

.mobile-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 10, 0.68);
  backdrop-filter: blur(9px) saturate(0.8);
  -webkit-backdrop-filter: blur(9px) saturate(0.8);
  animation: mobile-fade-in 0.35s var(--ease-out) both;
}

.mobile-access-card {
  position: relative;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 27px 28px 23px;
  border: 1px solid rgba(151, 215, 255, 0.18);
  border-radius: 23px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(36, 112, 190, 0.18), transparent 60%),
    rgba(3, 12, 24, 0.92);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  text-align: center;
  animation: mobile-card-in 0.45s var(--ease-out) both;
}

@keyframes mobile-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mobile-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mobile-access-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgba(190, 226, 246, 0.38);
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.mobile-access-close:hover {
  background: rgba(104, 194, 242, 0.09);
  color: var(--cyan-bright);
}

.mobile-access-card .micro-label {
  color: rgba(158, 211, 240, 0.42);
}

.mobile-access-card h2 {
  margin: 7px 0 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}

.mobile-access-lede {
  margin: 0 auto 18px;
  max-width: 340px;
  color: rgba(195, 225, 243, 0.46);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.mobile-qr-frame {
  position: relative;
  width: 222px;
  height: 222px;
  margin: 0 auto 15px;
  padding: 9px;
  border: 1px solid rgba(143, 219, 255, 0.22);
  border-radius: 15px;
  background: #effcff;
  box-shadow: 0 0 35px rgba(48, 154, 255, 0.12);
}

.mobile-qr-frame canvas {
  display: block;
  width: 202px;
  height: 202px;
  image-rendering: pixelated;
}

.mobile-qr-state {
  position: absolute;
  inset: 9px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(4, 14, 26, 0.93);
  color: rgba(196, 232, 250, 0.58);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  transition: opacity 0.3s;
}

.mobile-qr-state.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.mobile-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 8px 8px 11px;
  border: 1px solid rgba(138, 205, 238, 0.14);
  border-radius: 9px;
  background: rgba(2, 9, 19, 0.7);
}

.mobile-url-row code {
  overflow: hidden;
  flex: 1;
  color: rgba(200, 238, 255, 0.7);
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.01em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
  -webkit-user-select: text;
}

.mobile-copy {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(145, 216, 250, 0.18);
  border-radius: 6px;
  background: rgba(87, 184, 235, 0.08);
  color: rgba(209, 243, 255, 0.65);
  font-size: 8px;
  cursor: pointer;
}

.mobile-copy:hover {
  color: var(--cyan-bright);
  border-color: rgba(145, 216, 250, 0.34);
}

.mobile-access-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mobile-access-pill {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid rgba(130, 209, 255, 0.25);
  border-radius: 999px;
  background: rgba(64, 174, 234, 0.15);
  color: rgba(216, 247, 255, 0.86);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.mobile-access-pill:hover {
  border-color: rgba(158, 227, 255, 0.5);
  background: rgba(80, 193, 250, 0.24);
  color: #f1fdff;
}

.mobile-access-pill.is-ghost {
  border-color: rgba(135, 201, 236, 0.13);
  background: rgba(8, 25, 44, 0.48);
  color: rgba(191, 225, 244, 0.55);
}

.mobile-access-pill.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.mobile-ca-install {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid rgba(132, 202, 238, 0.11);
  border-radius: 11px;
  background: rgba(3, 12, 24, 0.48);
  text-align: left;
}

.mobile-ca-qr {
  flex: 0 0 auto;
  width: 98px;
  height: 98px;
  padding: 5px;
  border-radius: 8px;
  background: #effcff;
}

.mobile-ca-qr canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.mobile-ca-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mobile-ca-copy b {
  color: rgba(213, 243, 255, 0.72);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.mobile-ca-copy span {
  color: rgba(169, 210, 235, 0.35);
  font-size: 7.5px;
  line-height: 1.65;
}

.mobile-ca-copy code {
  overflow: hidden;
  color: rgba(151, 213, 246, 0.5);
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
  -webkit-user-select: text;
}

.mobile-access-note {
  min-height: 16px;
  margin: 12px 0 0;
  color: rgba(167, 211, 237, 0.38);
  font-size: 8px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.mobile-access-note.is-warning {
  color: #efb276;
}

.mobile-access-steps {
  margin: 14px 0 0;
  padding: 13px 0 0 16px;
  border-top: 1px solid rgba(132, 202, 238, 0.11);
  color: rgba(172, 214, 239, 0.4);
  font-size: 8.5px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  text-align: left;
}

.mobile-access-steps b {
  color: rgba(206, 240, 255, 0.66);
  font-weight: 500;
}

.mobile-access-steps li::marker {
  color: rgba(124, 211, 255, 0.5);
}

.intro-meta {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: max(25px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  color: rgba(164, 205, 231, 0.22);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.24em;
  pointer-events: none;
}

.intro-serial {
  position: absolute;
  top: 50%;
  right: 32px;
  color: rgba(164, 205, 231, 0.2);
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.18em;
  transform: translateY(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.two-hand-hud {
  position: absolute;
  z-index: 12;
  top: max(82px, calc(env(safe-area-inset-top) + 66px));
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(151, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 12, 25, 0.58);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(210, 242, 255, 0.86);
  font-family: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), border-color 0.4s;
}

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

.two-hand-hud.is-ok {
  border-color: rgba(255, 216, 142, 0.3);
  color: #ffe0a2;
}

.two-hand-hud .micro-label {
  color: rgba(172, 220, 247, 0.5);
  font-size: 7px;
}

.two-hand-hud i {
  width: 1px;
  height: 10px;
  background: rgba(154, 216, 247, 0.18);
}

.effect-cue {
  position: absolute;
  z-index: 12;
  top: 31%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--cyan-bright);
  text-align: center;
  text-shadow: 0 0 32px rgba(100, 214, 255, 0.32);
  opacity: 0;
  transform: translate(-50%, 4px) scale(0.96);
  pointer-events: none;
}

.effect-cue.is-visible {
  animation: cue-rise 2.6s var(--ease-out) both;
}

.effect-cue span {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
}

.effect-cue small {
  color: rgba(187, 236, 255, 0.54);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

@keyframes cue-rise {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.94); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  68% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -16px) scale(1.015); }
}

.toast {
  position: absolute;
  z-index: 60;
  bottom: max(126px, calc(env(safe-area-inset-bottom) + 112px));
  left: 50%;
  max-width: min(480px, calc(100vw - 40px));
  padding: 10px 16px;
  border: 1px solid rgba(144, 214, 255, 0.16);
  border-radius: 10px;
  background: rgba(3, 12, 24, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: rgba(215, 242, 255, 0.76);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

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

.toast.is-error {
  border-color: rgba(255, 126, 144, 0.25);
  color: rgba(255, 196, 205, 0.88);
}

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

@media (max-width: 900px) {
  .topbar {
    left: 22px;
    right: 22px;
  }

  .hand-panel {
    left: 22px;
    bottom: 24px;
    width: 172px;
  }

  .gesture-panel {
    width: min(480px, calc(100vw - 250px));
    margin-left: 70px;
  }
}

@media (max-width: 760px) {
  .aurora {
    display: none;
  }

  .webcam {
    filter: blur(20px) saturate(0.6) brightness(0.46) contrast(1.08);
  }

  .grain {
    opacity: 0.08;
    animation: none;
  }

  .topbar {
    top: max(16px, env(safe-area-inset-top));
    left: 18px;
    right: 18px;
  }

  .brand {
    gap: 9px;
  }

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

  .brand-en {
    font-size: 7.5px;
    letter-spacing: 0.22em;
  }

  .brand-cn {
    font-size: 9px;
    letter-spacing: 0.3em;
  }

  .status-pill {
    height: 30px;
    padding: 0 10px;
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .icon-button {
    width: 32px;
    height: 32px;
  }

  .mobile-access-button,
  .intro-mobile-row {
    display: none;
  }

  .mobile-access {
    padding: 12px;
  }

  .mobile-access-card {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 23px 18px 18px;
    border-radius: 18px;
  }

  .mobile-access-card h2 {
    font-size: 28px;
  }

  .mobile-access-lede {
    margin-bottom: 14px;
    font-size: 9.5px;
  }

  .mobile-qr-frame {
    width: min(200px, 58vw);
    height: auto;
    aspect-ratio: 1;
    padding: 8px;
  }

  .mobile-qr-frame canvas {
    width: 100%;
    height: 100%;
  }

  .mobile-qr-state {
    inset: 8px;
  }

  .mobile-ca-qr {
    width: 84px;
    height: 84px;
  }

  .mobile-url-row code {
    font-size: 8.5px;
  }

  .mobile-access-steps {
    font-size: 8px;
  }

  .hand-panel {
    top: 74px;
    right: auto;
    bottom: auto;
    left: 18px;
    width: 126px;
    padding: 7px;
    border-radius: 11px;
  }

  .hand-panel-head {
    padding-bottom: 6px;
  }

  .hand-panel-head .micro-label,
  .sensor-state,
  .hand-panel-foot {
    font-size: 6px;
  }

  .hand-panel-foot {
    padding-top: 5px;
  }

  .gesture-panel {
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
    left: 18px;
    width: calc(100vw - 36px);
    padding: 13px 15px 11px;
    border-radius: 16px;
    transform: none;
    margin-left: 0;
  }

  .gesture-copy strong {
    font-size: 14px;
  }

  .gesture-value span {
    font-size: 19px;
  }

  .gesture-scale {
    font-size: 7.5px;
    letter-spacing: 0.07em;
  }

  .hint {
    top: 70px;
    font-size: 8px;
    letter-spacing: 0.2em;
    gap: 9px;
  }

  .finger-aura {
    width: 132px;
    height: 132px;
  }

  .intro {
    padding: 58px 20px 88px;
  }

  .intro-inner {
    width: min(460px, calc(100vw - 40px));
  }

  .intro-emblem {
    width: 84px;
    height: 84px;
  }

  .intro-kicker {
    margin-top: 2px;
    font-size: 7px;
    letter-spacing: 0.24em;
  }

  .intro h1 {
    font-size: clamp(48px, 15vw, 66px);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
  }

  .intro-lede {
    margin-top: 17px;
    font-size: 12px;
    letter-spacing: 0.1em;
    line-height: 1.95;
  }

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

  .button-primary {
    width: 100%;
    min-width: 0;
  }

  .button-ghost {
    min-height: 44px;
  }

  .privacy-note {
    margin-top: 16px;
    font-size: 7.5px;
  }

  .intro-meta {
    left: 18px;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    font-size: 6px;
    letter-spacing: 0.16em;
  }

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

  .intro-serial {
    display: none;
  }

  .toast {
    bottom: max(132px, calc(env(safe-area-inset-bottom) + 118px));
    font-size: 9px;
  }
}

@media (max-width: 390px) {
  .status-pill span {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-actions {
    gap: 7px;
  }

  .gesture-value small {
    display: none;
  }

  .gesture-meta {
    gap: 8px;
  }

  .color-readout {
    font-size: 6.5px;
  }

  .intro h1 {
    font-size: 50px;
  }

  .gesture-legend {
    gap: 5px 8px;
    max-width: 280px;
    margin-top: 12px;
    font-size: 6.8px;
  }

  .gesture-legend .legend-rule {
    display: none;
  }
}

@media (max-width: 760px) {
  .two-hand-hud {
    top: 76px;
    right: 18px;
    left: auto;
    transform: translateY(-6px);
  }

  .two-hand-hud.is-visible {
    transform: translateY(0);
  }

  .effect-cue {
    top: 29%;
  }

  .effect-cue span {
    font-size: 34px;
  }
}

@media (max-width: 360px) {
  .brand-cn {
    display: none;
  }

  .status-pill {
    padding: 0 8px;
  }

  .status-pill span {
    max-width: 54px;
  }

  .top-actions {
    gap: 5px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .intro {
    padding: 38px 20px 64px;
  }

  .intro-emblem {
    width: 58px;
    height: 58px;
  }

  .intro-kicker {
    margin: 0 0 8px;
  }

  .intro h1 {
    font-size: 44px;
  }

  .intro-lede {
    margin-top: 11px;
    font-size: 11px;
    line-height: 1.75;
  }

  .gesture-legend {
    display: none;
  }

  .intro-actions {
    gap: 7px;
    margin-top: 17px;
  }

  .button-primary {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .button-ghost {
    min-height: 38px;
  }

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

  .intro-meta {
    display: none;
  }

  .hand-panel {
    width: 112px;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .intro-emblem {
    width: 76px;
    height: 76px;
  }

  .intro h1 {
    font-size: 64px;
  }

  .intro-lede {
    margin-top: 13px;
    line-height: 1.85;
  }

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

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

  .hand-panel {
    width: 164px;
  }
}

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

  .grain {
    animation: none;
  }

  .intro,
  .intro-inner,
  .hand-panel,
  .toast {
    transition-duration: 0.2s;
  }
}
