:root {
  --bg-0: #0c1210;
  --bg-1: #15201c;
  --ink: #e8f0eb;
  --muted: #8aa396;
  --accent: #3dba8a;
  --accent-soft: rgba(61, 186, 138, 0.22);
  --warn: #e0a45a;
  --line: rgba(232, 240, 235, 0.1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(61, 186, 138, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(45, 90, 110, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(180, 120, 60, 0.12), transparent 45%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage {
  min-height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 2.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  position: relative;
  text-align: center;
  animation: rise 0.8s ease both;
}

.back-link {
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.back-link:hover {
  color: var(--ink);
}

.home-stage {
  grid-template-rows: auto auto 1fr;
  align-content: center;
}

.home-lead {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  animation: rise 0.9s 0.06s ease both;
}

.entry-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  animation: rise 1s 0.1s ease both;
}

.entry {
  display: block;
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.entry:hover {
  background: rgba(61, 186, 138, 0.06);
  transform: translateY(-2px);
}

.entry-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.entry-desc {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 280px;
  animation: rise 0.9s 0.08s ease both;
}

.orb {
  position: relative;
  width: min(220px, 52vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-core {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9be8c4, var(--accent) 55%, #1a5c45);
  box-shadow:
    0 0 40px var(--accent-soft),
    inset 0 -8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.orb-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(61, 186, 138, 0.25);
  transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
}

.orb.state-listening .orb-core {
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 55px rgba(61, 186, 138, 0.45);
}

.orb.state-listening .orb-ring {
  animation: ring 1.8s ease-out infinite;
}

.orb.state-thinking .orb-core {
  filter: saturate(0.7) brightness(0.9);
  animation: think 1.2s ease-in-out infinite;
}

.orb.state-thinking .orb-ring {
  border-color: rgba(224, 164, 90, 0.45);
  animation: spin 3s linear infinite;
}

.orb.state-responding .orb-core {
  transform: scale(1.08);
  box-shadow: 0 0 70px rgba(61, 186, 138, 0.55);
  animation: speak 0.55s ease-in-out infinite alternate;
}

.orb.state-responding .orb-ring {
  transform: scale(1.12);
  border-color: rgba(61, 186, 138, 0.55);
}

.orb.state-idle .orb-core {
  filter: grayscale(0.35) brightness(0.85);
  opacity: 0.85;
}

.state-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-style: italic;
  letter-spacing: 0.02em;
}

.hint {
  margin: 0;
  max-width: 22rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  animation: rise 1s 0.12s ease both;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #062418;
  background: linear-gradient(135deg, #6ee7b0, var(--accent));
}

.btn.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.transcript {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  animation: rise 1.05s 0.16s ease both;
}

.line {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.role {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

.text {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.92;
}

.line.user .text {
  color: #c5ddd0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes ring {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes think {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes speak {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.record-stage {
  grid-template-rows: auto auto auto 1fr;
  align-items: stretch;
}

.record-setup {
  display: grid;
  gap: 1rem;
  animation: rise 0.9s 0.08s ease both;
}

.setup-row {
  display: grid;
  gap: 0.55rem;
}

.setup-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg {
  display: flex;
  gap: 0.5rem;
}

.seg-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}

.seg-btn.active {
  border-color: rgba(61, 186, 138, 0.55);
  background: rgba(61, 186, 138, 0.12);
}

.role-inputs {
  display: grid;
  gap: 0.55rem;
}

.role-inputs input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.role-inputs input:focus {
  border-color: rgba(61, 186, 138, 0.5);
}

.timer {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  animation: rise 0.95s 0.1s ease both;
}

.status-msg {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 2.7em;
}

.status-msg.error {
  color: var(--warn);
}

.notice {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.utterances {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.utterance {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.utterance .meta {
  display: grid;
  gap: 0.15rem;
}

.utterance .who {
  font-size: 0.78rem;
  color: var(--accent);
}

.utterance .when {
  font-size: 0.72rem;
  color: var(--muted);
}

.remap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.remap-row input {
  width: 6.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.4rem 0.55rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.spot-body {
  overflow: hidden;
}

.spot-stage-bare {
  max-width: none;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
}

.spot-stage-bare .spot-board-wrap {
  height: 100dvh;
  min-height: 100dvh;
}

.spot-stage-bare .spot-board {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

.spot-float-back {
  position: fixed;
  top: 0.65rem;
  left: 0.75rem;
  z-index: 20;
  color: rgba(232, 240, 235, 0.7);
  text-decoration: none;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
}

.spot-float-back:hover {
  color: #fff;
}

.spot-float-bar {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 20;
  display: flex;
  gap: 0.45rem;
}

.spot-float-bar .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.spot-stage-bare .spot-overlay {
  background: rgba(8, 14, 12, 0.35);
  backdrop-filter: none;
}

.spot-stage-bare .spot-overlay .btn {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.spot-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  animation: rise 0.85s 0.06s ease both;
}

.spot-stat {
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spot-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spot-stat-value {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-variant-numeric: tabular-nums;
}

.spot-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(8, 14, 12, 0.72);
  backdrop-filter: blur(4px);
}

.spot-overlay[hidden] {
  display: none;
}

.spot-overlay-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-style: italic;
}

.spot-overlay-desc {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.spot-heard {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 1.3em;
}

.spot-feedback {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  min-height: 1.4em;
}

.spot-feedback.is-ok {
  color: var(--accent);
}

.spot-feedback.is-bad {
  color: #e07068;
}

.spot-feedback.is-warn {
  color: var(--warn);
}

.spot-notice {
  text-align: center;
  border-top: 0;
  padding-top: 0;
}

.spot-fallback {
  display: flex;
  justify-content: center;
}

.spot-fallback input {
  width: min(16rem, 100%);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  text-align: center;
}

.spot-fallback input:focus {
  border-color: rgba(61, 186, 138, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breath-stage {
  max-width: 1650px;
  width: min(1650px, calc(100vw - 1.5rem));
  grid-template-rows: auto auto auto auto auto auto auto;
  align-items: stretch;
  gap: 1rem;
}

.breath-page .breath-atmosphere {
  background:
    radial-gradient(ellipse 80% 55% at 70% 8%, rgba(255, 200, 100, 0.16), transparent 50%),
    radial-gradient(ellipse 70% 60% at 20% 90%, rgba(61, 186, 138, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 70%, rgba(40, 90, 110, 0.3), transparent 50%),
    linear-gradient(180deg, #12201c, #0c1210);
}

.breath-brand .brand-mark {
  letter-spacing: 0.04em;
}

.breath-hud {
  gap: 0.65rem;
}

.breath-control {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  animation: rise 0.9s 0.08s ease both;
}

.breath-mode-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(8, 14, 12, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.breath-mode-btn:hover {
  color: var(--ink);
  border-color: rgba(110, 231, 176, 0.35);
  transform: translateY(-1px);
}

.breath-mode-btn.is-active {
  color: #062418;
  background: linear-gradient(135deg, #9be8c4, var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(61, 186, 138, 0.28);
}

.breath-board.is-mouse-mode {
  cursor: pointer;
  touch-action: none;
}

.breath-stat {
  background: rgba(12, 22, 18, 0.55);
  border: 1px solid rgba(110, 231, 176, 0.18);
  border-radius: 0.75rem;
  padding: 0.55rem 0.75rem;
  backdrop-filter: blur(8px);
}

.breath-stat .spot-stat-value {
  color: #9be8c4;
}

.breath-play {
  animation: rise 0.95s 0.1s ease both;
}

.breath-board-wrap {
  position: relative;
  width: 100%;
  animation: rise 0.95s 0.1s ease both;
  touch-action: none;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(110, 231, 176, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.breath-board {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
  background: #122820;
}

.breath-wave-panel {
  background: rgba(8, 16, 14, 0.45);
  border: 1px solid rgba(110, 231, 176, 0.14);
  border-radius: 0.65rem;
  padding: 0.55rem 0.45rem 0.65rem;
}

.breath-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 22, 18, 0.72),
    rgba(8, 16, 14, 0.88)
  );
  backdrop-filter: blur(6px);
}

.guest-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 12, 14, 0.55);
  backdrop-filter: blur(6px);
}

.guest-panel[hidden] {
  display: none !important;
}

.guest-card {
  width: min(420px, 92%);
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(240, 193, 74, 0.35);
  background:
    linear-gradient(165deg, rgba(255, 240, 200, 0.08), transparent 50%),
    rgba(12, 20, 22, 0.92);
  text-align: center;
}

.guest-kicker {
  margin: 0;
  color: #f0c14a;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guest-title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-style: italic;
}

.guest-up {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #ffe7a8;
  letter-spacing: 0.08em;
}

.guest-heard {
  margin: 0.65rem 0 0;
  min-height: 1.4em;
  color: #9be8c4;
  font-size: 0.95rem;
}

.guest-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}

.guest-btn {
  min-width: 7.5rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
}

.guest-penalty {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  animation: guest-penalty-in 0.25s ease both;
}

.guest-penalty[hidden] {
  display: none !important;
}

.guest-penalty-card {
  width: min(360px, 90%);
  padding: 1.4rem 1.5rem 1.55rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(240, 113, 120, 0.45);
  background: rgba(28, 12, 16, 0.95);
  text-align: center;
}

.guest-penalty-kicker {
  margin: 0;
  color: #e8899a;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-penalty-title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  color: #f0c14a;
}

.guest-penalty-text {
  margin: 0.75rem 0 0;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: #ffb0b8;
  letter-spacing: 0.04em;
}

@keyframes guest-penalty-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dice-panel {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 12, 14, 0.78);
  backdrop-filter: blur(8px);
  animation: guest-penalty-in 0.25s ease both;
}

.dice-panel[hidden] {
  display: none !important;
}

.dice-card {
  width: min(420px, 92%);
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(240, 193, 74, 0.45);
  background: rgba(18, 14, 10, 0.96);
  text-align: center;
}

.dice-kicker {
  margin: 0;
  color: #f0c14a;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dice-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: #fff6d0;
}

.dice-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 0.85rem;
  min-height: 72px;
}

.dice-face {
  width: 64px;
  height: 64px;
  border-radius: 0.85rem;
  border: 2px solid rgba(240, 193, 74, 0.7);
  background: linear-gradient(145deg, #fff8e6, #e8c56a);
  color: #3a2a10;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.dice-face.is-rolling {
  animation: dice-spin 0.12s linear infinite;
}

@keyframes dice-spin {
  0% {
    transform: rotate(-12deg) scale(0.96);
  }
  50% {
    transform: rotate(12deg) scale(1.05);
  }
  100% {
    transform: rotate(-12deg) scale(0.96);
  }
}

.dice-result {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: #9be8c4;
}

.guest-pose-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(6, 12, 14, 0.72);
  backdrop-filter: blur(6px);
}

.guest-pose-panel[hidden] {
  display: none !important;
}

.guest-pose-card {
  width: min(640px, 96%);
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(110, 231, 176, 0.35);
  background: rgba(8, 14, 16, 0.95);
  text-align: center;
}

.guest-pose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.guest-pose-cell {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.guest-pose-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.guest-pose-cell canvas {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 0.65rem;
  background: #000;
  border: 1px solid rgba(232, 240, 235, 0.12);
}

.guest-pose-meter {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: #9be8c4;
}

.guest-pose-video {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 560px) {
  .guest-pose-grid {
    grid-template-columns: 1fr;
  }
}

.breath-meter {
  display: grid;
  gap: 0.45rem;
  animation: rise 1s 0.12s ease both;
}

.breath-meter-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  border: 1px solid var(--line);
}

.breath-meter-track-lg {
  height: 14px;
  border-color: rgba(110, 231, 176, 0.2);
}

.breath-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d7a62, var(--accent) 45%, #9be8c4 85%, #e8f5c8);
  transition: width 0.06s linear;
  box-shadow: 0 0 12px rgba(61, 186, 138, 0.35);
}

.breath-meter-thresh {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8%;
  width: 2px;
  background: rgba(224, 164, 90, 0.95);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(224, 164, 90, 0.5);
}

.breath-phase {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 1.3em;
  letter-spacing: 0.02em;
}

.breath-phase.is-exhale {
  color: #9be8c4;
}

.breath-phase.is-inhale {
  color: #9bb0a6;
}

.breath-feedback {
  text-align: center;
  font-size: 1rem;
}

/* —— 吹气球页面 —— */
.balloon-page {
  --balloon-coral: #f07178;
  --balloon-gold: #f0c14a;
  --balloon-sky: #6ec6ff;
  --balloon-mint: #7fd4c2;
  overflow-y: scroll;
}

.balloon-atmosphere {
  background:
    radial-gradient(ellipse 70% 55% at 18% 12%, rgba(240, 113, 120, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(110, 198, 255, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(240, 193, 74, 0.12), transparent 45%),
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(61, 186, 138, 0.16), transparent 55%),
    linear-gradient(180deg, #152028 0%, #121a1c 48%, #0c1210 100%);
}

.balloon-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.balloon-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.45;
  animation: balloon-float 9s ease-in-out infinite;
}

.balloon-orb-a {
  width: 52px;
  height: 60px;
  left: 8%;
  top: 22%;
  background: radial-gradient(circle at 35% 30%, #fff0f0, var(--balloon-coral) 55%, #a04048);
  animation-duration: 11s;
}

.balloon-orb-b {
  width: 36px;
  height: 42px;
  right: 12%;
  top: 18%;
  background: radial-gradient(circle at 35% 30%, #fff8e0, var(--balloon-gold) 55%, #a87820);
  animation-duration: 8s;
  animation-delay: -2s;
}

.balloon-orb-c {
  width: 44px;
  height: 50px;
  left: 72%;
  bottom: 16%;
  background: radial-gradient(circle at 35% 30%, #eef8ff, var(--balloon-sky) 55%, #3a7098);
  animation-duration: 10s;
  animation-delay: -4s;
}

@keyframes balloon-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

.balloon-stage {
  max-width: 1380px;
  width: min(1380px, calc(100vw - 1.5rem));
  grid-template-rows: auto auto auto auto auto auto auto;
  align-items: stretch;
  gap: 1.1rem;
}

.balloon-brand .brand-mark {
  background: linear-gradient(120deg, #fff6f0 10%, #f0c14a 45%, #f07178 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 8px 28px rgba(240, 113, 120, 0.18));
}

.balloon-brand-sub {
  color: #d8e4dc;
  letter-spacing: 0.22em;
}

.balloon-brand-tag {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  animation: rise 0.9s 0.08s ease both;
}

.balloon-hud {
  gap: 0.65rem;
}

.balloon-stat {
  padding: 0.75rem 0.5rem 0.85rem;
  border: 1px solid rgba(232, 240, 235, 0.1);
  border-radius: 1rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(8, 14, 16, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.balloon-stat .spot-stat-label {
  color: rgba(168, 196, 180, 0.85);
}

.balloon-stat-size .spot-stat-value {
  background: linear-gradient(180deg, #fff8e0, var(--balloon-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.balloon-play {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 168px);
  gap: 0.85rem;
  align-items: stretch;
  animation: rise 0.95s 0.1s ease both;
}

.balloon-main {
  margin: 0;
  animation: none;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(240, 193, 74, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(240, 113, 120, 0.08);
}

.balloon-board {
  display: block;
  width: 100%;
  border-radius: 0;
  background: transparent;
}

.balloon-overlay {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(20, 28, 32, 0.55), rgba(8, 12, 14, 0.82));
  backdrop-filter: blur(8px);
  gap: 0.85rem;
}

.balloon-overlay .spot-overlay-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  background: linear-gradient(120deg, #fff8f0, #f0c14a 55%, #f07178);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.balloon-overlay .spot-overlay-desc {
  max-width: 32rem;
  color: rgba(200, 214, 208, 0.88);
  font-size: 0.95rem;
}

.balloon-wave-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.65rem 0.55rem 0.7rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(110, 198, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 48, 56, 0.55), rgba(10, 16, 18, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.balloon-wave-label {
  margin: 0;
  text-align: center;
  color: var(--balloon-sky);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.balloon-wave {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: #0a1216;
  border: 1px solid rgba(232, 240, 235, 0.08);
}

.balloon-wave-hint {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
}

.balloon-meter {
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(232, 240, 235, 0.08);
  background: rgba(8, 14, 16, 0.4);
  /* 固定高度，避免进度文案换行把整页撑抖 */
  min-height: 5.2rem;
  box-sizing: border-box;
}

.balloon-meter-track {
  height: 16px;
  flex-shrink: 0;
  border-color: rgba(240, 193, 74, 0.22);
  background: rgba(0, 0, 0, 0.35);
  /* 宽度变化不触发重排抖动 */
  contain: layout paint;
  transform: translateZ(0);
}

.balloon-meter-fill {
  background: linear-gradient(
    90deg,
    #3a7088,
    var(--balloon-sky) 35%,
    var(--balloon-mint) 62%,
    var(--balloon-gold) 88%,
    #fff3c8
  );
  box-shadow: 0 0 16px rgba(110, 198, 255, 0.35);
  will-change: width;
  transition: none;
}

.balloon-phase {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  min-height: 2.6em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.balloon-phase.is-exhale {
  color: var(--balloon-gold);
}

.balloon-phase.is-inhale {
  color: var(--balloon-coral);
}

.balloon-feedback {
  font-size: 1.08rem;
  line-height: 1.5;
  color: #c8d8d0;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balloon-stat .spot-stat-value {
  min-width: 4.5ch;
  font-variant-numeric: tabular-nums;
}

.balloon-feedback.is-ok {
  color: var(--balloon-mint);
}

.balloon-feedback.is-warn {
  color: var(--balloon-gold);
}

.balloon-feedback.is-bad {
  color: var(--balloon-coral);
}

.balloon-cta {
  margin-top: 0.15rem;
}

.balloon-btn {
  min-width: 10.5rem;
  font-size: 1.05rem;
  padding: 0.95rem 1.85rem;
  color: #2a1810;
  background: linear-gradient(135deg, #ffe7a0, var(--balloon-gold) 40%, #f07178);
  box-shadow: 0 10px 28px rgba(240, 113, 120, 0.28);
  animation: balloon-cta-glow 2.8s ease-in-out infinite;
}

.balloon-btn-ghost {
  border-color: rgba(240, 193, 74, 0.35);
}

.balloon-btn-ghost:hover {
  border-color: rgba(240, 193, 74, 0.65);
  background: rgba(240, 193, 74, 0.08);
}

@keyframes balloon-cta-glow {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(240, 113, 120, 0.22);
  }
  50% {
    box-shadow: 0 12px 36px rgba(240, 193, 74, 0.38);
  }
}

@media (max-width: 640px) {
  .balloon-play {
    grid-template-columns: 1fr;
  }

  .balloon-wave {
    height: 120px !important;
  }

  .balloon-orbs {
    opacity: 0.55;
  }
}

.balloon-safe-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8%;
  width: 18%;
  background: rgba(61, 186, 138, 0.28);
  border-left: 1px solid rgba(61, 186, 138, 0.55);
  border-right: 1px solid rgba(61, 186, 138, 0.55);
  pointer-events: none;
}

.balloon-danger-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 3px;
  background: #e07068;
  pointer-events: none;
}

.candle-stage {
  max-width: 1100px;
  width: min(1100px, calc(100vw - 1.5rem));
  grid-template-rows: auto auto auto auto auto auto auto;
  align-items: stretch;
}

.candle-play {
  animation: rise 0.95s 0.1s ease both;
}

.candle-curve-wrap {
  display: grid;
  gap: 0.35rem;
  animation: rise 1s 0.12s ease both;
}

.candle-curve {
  display: block;
  width: 100%;
  height: 64px;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}

.candle-curve-label {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.boat-stage {
  max-width: 1100px;
  width: min(1100px, calc(100vw - 1.5rem));
  grid-template-rows: auto auto auto auto auto auto auto;
  align-items: stretch;
}

.boat-play {
  animation: rise 0.95s 0.1s ease both;
}

.boat-meters {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  background: #0c1411;
  border: 1px solid var(--line);
}

.boat-energy-track {
  height: 14px;
}

.pac-stage {
  max-width: 560px;
  grid-template-rows: auto auto auto auto auto auto auto auto;
  align-items: stretch;
}

.pac-board {
  display: block;
  margin: 0 auto;
  border-radius: 0.35rem;
  background: #0a1210;
}

.pac-keys {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.pac-keys span {
  padding: 0.2rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

.pac-pad {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.pac-pad-mid {
  display: flex;
  gap: 1.5rem;
}

.pac-pad-btn {
  min-width: 4.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.pac-pad-btn:active {
  background: rgba(61, 186, 138, 0.18);
  border-color: rgba(61, 186, 138, 0.45);
}

@media (max-width: 480px) {
  .stage {
    grid-template-rows: auto auto auto auto;
  }

  .orb-wrap {
    min-height: 220px;
  }

  .back-link {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }

  .utterance {
    grid-template-columns: 1fr;
  }

  .spot-hud {
    gap: 0.4rem;
  }

  .balloon-feedback {
    font-size: 1rem;
  }
}
