:root {
  color-scheme: dark;
  --bg-top: #06101d;
  --bg-bottom: #010204;
  --panel: rgba(7, 14, 24, 0.54);
  --panel-strong: rgba(7, 14, 24, 0.78);
  --panel-border: rgba(186, 220, 255, 0.16);
  --text: rgba(245, 248, 255, 0.96);
  --muted: rgba(202, 216, 230, 0.68);
  --accent: #90d5ff;
  --gold: #f0c986;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(71, 132, 196, 0.18), transparent 34%),
    radial-gradient(circle at 80% 26%, rgba(234, 192, 123, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1.3px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 74%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.8px);
  background-size: 240px 240px, 320px 320px, 280px 280px;
  opacity: 0.34;
  pointer-events: none;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

#webcam {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  left: 0;
  top: 0;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(143, 208, 255, 0.16), transparent 66%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 2;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.brand,
.status-pill,
button,
.info-panel {
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 20, 0.44);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 28% 28%, #fff9dc, #ebb96f 58%, #8d5818);
  box-shadow: 0 0 22px rgba(236, 185, 101, 0.72);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 20, 0.44);
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f2a75f;
  box-shadow: 0 0 18px currentColor;
}

.status-dot.live {
  background: #88ffcb;
}

button {
  appearance: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(7, 14, 24, 0.56);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-copy {
  position: fixed;
  left: 20px;
  bottom: 56px;
  z-index: 5;
  max-width: min(560px, calc(100vw - 40px));
  pointer-events: none;
  animation: rise-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 600;
}

.description {
  margin: 16px 0 0;
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.info-panel {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 7;
  width: min(420px, calc(100vw - 28px));
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.info-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.info-inner {
  padding: 18px;
}

.info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.info-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.panel-text,
.panel-line {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.panel-text + .panel-text {
  margin-top: 10px;
}

.info-block + .info-block {
  margin-top: 18px;
}

.panel-line + .panel-line {
  margin-top: 6px;
}

.readout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.readout-grid > div {
  display: grid;
  gap: 3px;
}

.readout-value {
  font-size: 24px;
  font-weight: 600;
}

.readout-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bottom-hint {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  gap: 14px;
  color: rgba(220, 229, 239, 0.52);
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .status-pill {
    max-width: 34vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
    align-items: flex-start;
  }

  .brand {
    padding: 8px 12px;
  }

  .brand-sub,
  .description,
  .bottom-hint {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .status-pill {
    display: none;
  }

  button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-copy {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: calc(100vw - 24px);
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(22px, 8vw, 36px);
    max-width: 12ch;
  }

  .info-panel {
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 84px);
    overflow: auto;
  }
}
