:root {
  --bg-deep: #041722;
  --bg-mid: #0b2c3a;
  --bg-light: #15485b;
  --ink-main: #f4f9ff;
  --ink-muted: rgba(244, 249, 255, 0.72);
  --card-bg: rgba(5, 28, 40, 0.56);
  --card-border: rgba(167, 226, 255, 0.16);
  --glow-a: #6ce4ff;
  --glow-b: #ffd166;
  --glow-c: #9be564;
  --accent: #ff8a3d;
  --accent-deep: #d95d22;
  --rose: #ff7d9c;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);
  --title-font: "STKaiti", "Kaiti SC", "Songti SC", serif;
  --body-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(108, 228, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, 0.18), transparent 28%),
    linear-gradient(135deg, var(--bg-deep), #062130 42%, var(--bg-mid) 74%, var(--bg-light));
  color: var(--ink-main);
  font-family: var(--body-font);
  overflow: hidden;
}

body {
  position: relative;
}

button {
  font: inherit;
}

.screen-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 1.6% 1.9% 1.3%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 1.2vh, 20px);
  isolation: isolate;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  z-index: -1;
  opacity: 0.7;
  animation: floatBlob 12s ease-in-out infinite;
}

.ambient-a {
  width: 24%;
  aspect-ratio: 1;
  left: -6%;
  top: 16%;
  background: rgba(92, 224, 255, 0.08);
}

.ambient-b {
  width: 28%;
  aspect-ratio: 1;
  right: -8%;
  top: 8%;
  background: rgba(255, 209, 102, 0.08);
  animation-delay: -5s;
}

.ambient-c {
  width: 26%;
  aspect-ratio: 1;
  right: 12%;
  bottom: -14%;
  background: rgba(155, 229, 100, 0.08);
  animation-delay: -8s;
}

.start-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 13, 20, 0.82), rgba(2, 13, 20, 0.92));
  color: var(--ink-main);
  display: grid;
  place-content: center;
  gap: 10px;
  z-index: 10;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.start-overlay.hidden {
  display: none;
}

.overlay-title {
  font-size: clamp(28px, 3vw, 44px);
  font-family: var(--title-font);
}

.overlay-subtitle {
  font-size: 16px;
  color: var(--ink-muted);
}

.topbar,
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  gap: clamp(16px, 2vw, 24px);
  min-height: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(244, 249, 255, 0.66);
  letter-spacing: 0.24em;
  font-size: 12px;
}

#schoolTitle {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill,
.ghost-button,
.question-chip,
.name-label,
.card-label,
.mini-label {
  letter-spacing: 0.04em;
}

.status-pill,
.ghost-button {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-main);
}

.ghost-button {
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(14px, 1.5vw, 24px);
  min-height: 0;
}

.avatar-panel,
.console-card {
  border-radius: 30px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  min-height: 0;
}

.avatar-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 4.2% 3.2% 3%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 212, 150, 0.18), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(104, 178, 170, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(19, 29, 43, 0.92), rgba(9, 21, 34, 0.86) 56%, rgba(7, 17, 28, 0.92));
}

.halo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 190, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 220, 0.03);
  animation: rotateSlow 26s linear infinite;
}

.halo-ring-a {
  width: 74%;
  aspect-ratio: 1;
}

.halo-ring-b {
  width: 88%;
  aspect-ratio: 1;
  animation-direction: reverse;
  animation-duration: 34s;
}

.science-orbits {
  position: absolute;
  inset: 0;
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 24px currentColor;
}

.orbit-dot-a {
  color: rgba(236, 205, 142, 0.9);
  left: 21%;
  top: 20%;
  animation: orbitDrift 10s ease-in-out infinite;
}

.orbit-dot-b {
  color: rgba(145, 213, 194, 0.84);
  right: 19%;
  top: 26%;
  animation: orbitDrift 11s ease-in-out infinite reverse;
}

.orbit-dot-c {
  color: rgba(235, 170, 108, 0.92);
  right: 28%;
  bottom: 18%;
  animation: orbitDrift 9s ease-in-out infinite;
}

.scientist-card {
  position: relative;
  width: 66%;
  max-height: 82%;
  aspect-ratio: 0.84;
  display: grid;
  place-items: center;
  animation: hoverFloat 5s ease-in-out infinite;
}

.light-column {
  position: absolute;
  inset: 8% 15% 16%;
  border-radius: 50% 50% 28% 28%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 241, 212, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(231, 212, 168, 0.2), rgba(152, 191, 179, 0.08) 72%, transparent);
  filter: blur(0.5px);
  animation: lightBreath 4s ease-in-out infinite;
}

.plasma-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196, 168, 112, 0.22);
}

.plasma-ring-a {
  inset: 14% 11% 18%;
  animation: rotateSlow 16s linear infinite;
}

.plasma-ring-b {
  inset: 22% 17% 24%;
  border-color: rgba(139, 189, 178, 0.2);
  border-style: dashed;
  animation: rotateSlow 18s linear infinite reverse;
}

.console-float {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  border: 1px solid rgba(214, 181, 122, 0.24);
  background:
    linear-gradient(145deg, rgba(135, 99, 64, 0.34), rgba(45, 29, 18, 0.12)),
    rgba(255, 248, 235, 0.04);
  box-shadow:
    inset 0 0 18px rgba(255, 245, 220, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.console-float::before,
.console-float::after {
  content: "";
  position: absolute;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(232, 202, 140, 0.82), rgba(106, 156, 141, 0.72));
}

.console-float::before {
  top: 16px;
  left: 18px;
  right: 18px;
  height: 6px;
}

.console-float::after {
  left: 24px;
  right: 24px;
  bottom: 16px;
  height: 32px;
  border: 1px solid rgba(237, 220, 184, 0.2);
  background:
    linear-gradient(135deg, rgba(236, 222, 187, 0.06), rgba(0, 0, 0, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(232, 202, 140, 0.48) 0 8px,
      rgba(232, 202, 140, 0) 8px 18px
    );
}

.console-a {
  left: 7%;
  top: 26%;
  transform: rotate(-10deg);
  animation: consoleDrift 8s ease-in-out infinite;
}

.console-b {
  right: 8%;
  top: 18%;
  transform: rotate(12deg);
  animation: consoleDriftRight 9s ease-in-out infinite;
}

.tool {
  position: absolute;
  z-index: 0;
}

.tool-square {
  right: 13%;
  bottom: 28%;
  width: 92px;
  height: 92px;
  border-left: 8px solid rgba(220, 188, 124, 0.86);
  border-bottom: 8px solid rgba(220, 188, 124, 0.86);
  border-radius: 0 0 12px 12px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.26));
  transform: rotate(14deg);
}

.tool-square::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 6px;
  top: 22px;
  height: 2px;
  background: linear-gradient(90deg, rgba(220, 188, 124, 0.2), rgba(255, 245, 220, 0.88));
  box-shadow:
    0 12px 0 rgba(220, 188, 124, 0.5),
    0 24px 0 rgba(220, 188, 124, 0.35),
    0 36px 0 rgba(220, 188, 124, 0.2);
}

.tool-scroll {
  left: 10%;
  bottom: 30%;
  width: 98px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(201, 165, 113, 0.18);
  background:
    linear-gradient(180deg, rgba(244, 228, 193, 0.96), rgba(210, 177, 122, 0.96)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(132, 90, 46, 0.18);
  animation: consoleDrift 8.6s ease-in-out infinite;
}

.tool-scroll::before,
.tool-scroll::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #8b5e38, #4c311e);
}

.tool-scroll::before {
  left: -5px;
}

.tool-scroll::after {
  right: -5px;
}

.tool-inkline {
  left: 17%;
  top: 19%;
  width: 4px;
  height: 102px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(225, 204, 163, 0.82), rgba(86, 66, 46, 0.18));
  transform-origin: top center;
  animation: inklineSwing 5.8s ease-in-out infinite;
}

.tool-inkline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(236, 215, 182, 0.88), rgba(133, 93, 54, 0.82));
}

.tool-inkline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 30px;
  height: 26px;
  border-radius: 12px 12px 18px 18px;
  border: 1px solid rgba(228, 203, 150, 0.18);
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(109, 72, 42, 0.96), rgba(58, 36, 20, 0.98)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.scientist {
  position: relative;
  width: 64%;
  height: 80%;
  z-index: 1;
}

.head {
  position: absolute;
  width: 39%;
  height: 35%;
  left: 30.5%;
  top: 4%;
}

.hair-bun {
  position: absolute;
  left: 35%;
  top: -4%;
  width: 30%;
  height: 22%;
  border-radius: 48% 48% 40% 40%;
  background: linear-gradient(180deg, #22252c, #434851);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.hairpin {
  position: absolute;
  left: 50%;
  top: 5%;
  width: 54%;
  height: 5%;
  border-radius: 999px;
  transform: translateX(-50%) rotate(-6deg);
  background: linear-gradient(90deg, rgba(146, 108, 53, 0.96), rgba(240, 216, 169, 0.96), rgba(132, 89, 44, 0.96));
  box-shadow: 0 0 12px rgba(234, 212, 170, 0.16);
}

.hair-back {
  position: absolute;
  inset: 8% 10% 10%;
  border-radius: 44% 44% 34% 34%;
  background:
    radial-gradient(ellipse at 16% 72%, rgba(230, 231, 235, 0.52), transparent 12%),
    radial-gradient(ellipse at 84% 72%, rgba(230, 231, 235, 0.52), transparent 12%),
    linear-gradient(180deg, #1f2229, #484e57 62%, #7e858f 100%);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.hair-flare {
  position: absolute;
  inset: 26% 2% 26%;
  background:
    radial-gradient(ellipse at 10% 54%, rgba(244, 241, 232, 0.8), transparent 12%),
    radial-gradient(ellipse at 90% 54%, rgba(244, 241, 232, 0.8), transparent 12%);
  filter: blur(1px);
}

.face-shell {
  position: absolute;
  inset: 18% 20% 0;
  border-radius: 40% 40% 36% 36%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 244, 222, 0.4), transparent 30%),
    linear-gradient(180deg, #ecd0b1, #ddb18a 66%, #cf9468);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.brow,
.eye,
.nose,
.mouth,
.mustache,
.beard {
  position: absolute;
}

.brow {
  top: 36%;
  width: 18%;
  height: 5%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(240, 235, 224, 0.98), rgba(109, 100, 91, 0.96));
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.12);
}

.brow-left {
  left: 22%;
  transform: rotate(-14deg);
}

.brow-right {
  right: 22%;
  transform: rotate(14deg);
}

.eye {
  top: 50%;
  width: 14%;
  height: 3%;
  border-radius: 999px;
  background: linear-gradient(180deg, #412519, #1d140f);
  box-shadow: 0 0 0 1px rgba(255, 236, 214, 0.1);
  transform-origin: center;
  animation: blink 7s infinite;
}

.eye-left {
  left: 27%;
}

.eye-right {
  right: 27%;
}

.nose {
  width: 9%;
  height: 11%;
  left: 46%;
  top: 54%;
  border-right: 2px solid rgba(108, 67, 41, 0.34);
  border-bottom: 2px solid rgba(108, 67, 41, 0.34);
  border-radius: 0 0 60% 0;
}

.mouth {
  width: 18%;
  height: 6%;
  left: 41%;
  bottom: 15%;
  border-radius: 999px;
  background: linear-gradient(180deg, #7e3123, #b86b5b);
  transform-origin: center center;
  transition: transform 0.18s ease, height 0.18s ease, border-radius 0.18s ease;
  z-index: 2;
}

.mustache-wrap {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 67%;
  height: 14%;
  z-index: 2;
}

.mustache {
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, rgba(246, 242, 235, 0.96), rgba(140, 133, 124, 0.94) 62%, rgba(75, 70, 65, 0.96));
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.mustache-left {
  left: 6%;
  clip-path: polygon(0 30%, 90% 0, 100% 28%, 56% 78%, 6% 100%);
  transform: rotate(10deg);
}

.mustache-right {
  right: 6%;
  clip-path: polygon(0 30%, 90% 0, 100% 28%, 56% 78%, 6% 100%);
  transform: scaleX(-1) rotate(10deg);
}

.beard {
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(246, 242, 235, 0.96), rgba(176, 170, 162, 0.94) 62%, rgba(96, 92, 88, 0.92));
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.12));
  animation: beardSway 4.8s ease-in-out infinite;
}

.beard-main {
  top: 82%;
  width: 30%;
  height: 50%;
  border-radius: 24% 24% 42% 42%;
  clip-path: polygon(10% 0, 90% 0, 100% 46%, 56% 100%, 44% 100%, 0 46%);
}

.beard-tip {
  top: 128%;
  width: 16%;
  height: 22%;
  opacity: 0.88;
  clip-path: polygon(16% 0, 84% 0, 100% 42%, 50% 100%, 0 42%);
  animation-delay: -1.2s;
}

.torso {
  position: absolute;
  inset: 36% 10% 18%;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.1));
}

.shoulder,
.coat,
.arm,
.glove,
.lab-core,
.hem,
.stage-platform {
  position: absolute;
}

.shoulder {
  top: 0;
  width: 36%;
  height: 24%;
  border-radius: 48% 48% 30% 30%;
  background: linear-gradient(180deg, #6a523f, #3a2a21 72%, #261912);
  box-shadow:
    inset 0 -8px 14px rgba(0, 0, 0, 0.18),
    0 12px 18px rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.shoulder-left {
  left: 10%;
  transform: rotate(-12deg);
}

.shoulder-right {
  right: 10%;
  transform: rotate(12deg);
}

.coat {
  top: 10%;
  width: 34%;
  height: 52%;
  background: linear-gradient(180deg, rgba(92, 72, 54, 0.98), rgba(45, 31, 23, 0.98) 68%, rgba(33, 21, 16, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 205, 0.03),
    0 16px 22px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.coat::before {
  content: "";
  position: absolute;
  inset: 10% 10% 12%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 232, 201, 0.08), rgba(255, 255, 255, 0));
  opacity: 0.4;
}

.coat-left {
  left: 12%;
  border-radius: 44% 18% 18% 22% / 18% 14% 18% 24%;
  clip-path: polygon(34% 0, 100% 10%, 86% 100%, 6% 90%, 0 20%);
  transform: rotate(2deg);
}

.coat-right {
  right: 12%;
  border-radius: 18% 44% 22% 18% / 14% 18% 24% 18%;
  clip-path: polygon(0 10%, 66% 0, 100% 20%, 94% 90%, 14% 100%);
  transform: rotate(-2deg);
}

.lab-core {
  left: 27%;
  right: 27%;
  top: 4%;
  bottom: 24%;
  border-radius: 14% 14% 18% 18% / 8% 8% 24% 24%;
  clip-path: polygon(12% 0, 88% 0, 82% 100%, 18% 100%);
  background:
    linear-gradient(
      180deg,
      rgba(72, 95, 96, 0.96) 0,
      rgba(33, 50, 52, 0.96) 16%,
      rgba(236, 224, 202, 0.98) 17%,
      rgba(223, 201, 166, 0.96) 38%,
      rgba(116, 84, 55, 0.9) 39%,
      rgba(77, 55, 35, 0.86) 100%
    );
  box-shadow:
    inset 0 0 18px rgba(255, 243, 220, 0.1),
    0 10px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 4;
}

.lab-core::before,
.lab-core::after {
  content: "";
  position: absolute;
  top: 30%;
  bottom: 12%;
  width: 18%;
  opacity: 0.16;
  background: linear-gradient(180deg, rgba(255, 241, 213, 0.5), rgba(255, 241, 213, 0));
}

.lab-core::before {
  left: 16%;
  transform: skewX(-8deg);
}

.lab-core::after {
  right: 16%;
  transform: skewX(8deg);
}

.collar,
.inner-panel,
.sash,
.robe-pattern,
.hem-ornament {
  position: absolute;
}

.collar {
  inset: 0;
}

.collar::before,
.collar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 34%;
  height: 30%;
  background: linear-gradient(180deg, rgba(244, 234, 216, 0.98), rgba(207, 175, 129, 0.96));
  box-shadow: inset 0 -6px 10px rgba(127, 95, 58, 0.12);
}

.collar::before {
  left: 14%;
  clip-path: polygon(0 0, 100% 0, 60% 100%, 24% 52%);
  transform: skewX(-10deg);
}

.collar::after {
  right: 14%;
  clip-path: polygon(0 0, 100% 0, 76% 52%, 40% 100%);
  transform: skewX(10deg);
}

.inner-panel {
  left: 47%;
  right: 47%;
  top: 34%;
  bottom: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(128, 92, 58, 0.92), rgba(79, 53, 31, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 207, 0.04),
    0 0 10px rgba(0, 0, 0, 0.05);
}

.inner-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 14%;
  width: 40%;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(246, 220, 166, 0.5), rgba(246, 220, 166, 0));
  opacity: 0.45;
}

.sash {
  left: 32%;
  right: 32%;
  bottom: 18%;
  height: 8%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(161, 113, 55, 0.86), rgba(228, 192, 120, 0.92), rgba(118, 79, 37, 0.86));
  box-shadow:
    0 0 12px rgba(232, 194, 121, 0.08),
    inset 0 0 0 1px rgba(255, 237, 198, 0.1);
}

.sash::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  height: 58%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(255, 226, 172, 0.9), rgba(137, 90, 39, 0.86));
}

.robe-pattern {
  inset: 44% 30% 34%;
  opacity: 0.07;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 240, 210, 0.4) 0 2px,
      rgba(255, 240, 210, 0) 2px 10px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 240, 210, 0.12) 0 5px,
      rgba(255, 240, 210, 0) 5px 12px
    );
}

.hem-ornament {
  display: none;
}

.arm {
  top: 18%;
  width: 22%;
  height: 36%;
  background: linear-gradient(180deg, #735741, #3a291f 68%, #261912);
  box-shadow:
    inset 0 -14px 18px rgba(0, 0, 0, 0.16),
    0 14px 16px rgba(0, 0, 0, 0.08);
  transform-origin: center top;
  z-index: 3;
}

.arm::before {
  content: "";
  position: absolute;
  inset: 14% 16% 22%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 239, 214, 0.08), rgba(255, 255, 255, 0));
}

.arm::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 10%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 230, 203, 0.98), rgba(209, 181, 140, 0.96));
}

.arm-left {
  left: 4%;
  border-radius: 46% 18% 22% 28% / 14% 14% 30% 24%;
  clip-path: polygon(34% 0, 100% 12%, 88% 100%, 18% 92%, 0 20%);
  transform: rotate(2deg);
  animation: waveLeft 6.8s ease-in-out infinite;
}

.arm-right {
  right: 4%;
  border-radius: 18% 46% 28% 22% / 14% 14% 24% 30%;
  clip-path: polygon(0 12%, 66% 0, 100% 20%, 82% 92%, 12% 100%);
  transform: rotate(-2deg);
  animation: waveRight 7.2s ease-in-out infinite;
}

.glove {
  bottom: 14%;
  width: 14px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #efcfb0, #d79f77);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12);
  opacity: 0.82;
}

.glove-left {
  left: 14%;
}

.glove-right {
  right: 14%;
}

.hem {
  display: none;
}

.hem-left {
  left: 12%;
  border-radius: 26% 12% 22% 28% / 16% 12% 20% 22%;
  clip-path: polygon(0 18%, 84% 0, 100% 72%, 18% 100%);
}

.hem-right {
  right: 12%;
  border-radius: 12% 26% 28% 22% / 12% 16% 22% 20%;
  clip-path: polygon(16% 0, 100% 18%, 82% 100%, 0 72%);
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffaf0, rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 18px rgba(255, 243, 219, 0.34);
}

.spark-a {
  left: 18%;
  top: 18%;
  animation: sparkDrift 6s ease-in-out infinite;
}

.spark-b {
  right: 16%;
  top: 30%;
  animation: sparkDrift 5.3s ease-in-out infinite reverse;
}

.spark-c {
  left: 24%;
  bottom: 24%;
  animation: sparkDrift 7.1s ease-in-out infinite;
}

.spark-d {
  right: 22%;
  bottom: 18%;
  animation: sparkDrift 6.4s ease-in-out infinite reverse;
}

.stage-platform {
  left: 18%;
  right: 18%;
  bottom: 11%;
  height: 7%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, rgba(244, 214, 162, 0.26), rgba(244, 214, 162, 0) 66%),
    linear-gradient(180deg, rgba(122, 86, 48, 0.96), rgba(66, 44, 28, 0.98));
  border: 1px solid rgba(220, 188, 124, 0.2);
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.22),
    inset 0 2px 8px rgba(255, 244, 225, 0.12);
}

.stage-platform::before {
  content: "";
  position: absolute;
  inset: 24% 18%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 223, 186, 0.14), rgba(255, 255, 255, 0));
}

.scientist-nameplate {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 3.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2.4% 2.8%;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(24, 20, 17, 0.88), rgba(60, 46, 34, 0.76));
  border: 1px solid rgba(228, 205, 162, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 223, 0.03);
}

.name-label,
.card-label,
.mini-label {
  text-transform: uppercase;
  color: rgba(244, 249, 255, 0.72);
  font-size: 12px;
}

.scientist-nameplate strong {
  font-size: 24px;
  font-family: var(--title-font);
  color: rgba(248, 236, 214, 0.96);
}

.console-panel {
  display: grid;
  grid-template-rows: minmax(0, 0.18fr) minmax(0, 0.82fr);
  gap: clamp(14px, 1.4vh, 22px);
  min-height: 0;
}

.console-card {
  padding: 4% 4.2% 3.8%;
  overflow: hidden;
}

.speech-card {
  min-height: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 209, 102, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(6, 34, 48, 0.82), rgba(6, 29, 44, 0.62));
}

.speech-text {
  margin: 14px 0 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.45;
  font-family: var(--title-font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.speech-subtext,
.interaction-hint,
.transcript-text {
  color: var(--ink-muted);
}

.speech-subtext {
  margin: 14px 0 0;
  font-size: 16px;
}

.interaction-card {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.1vh, 16px);
  min-height: 0;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 209, 102, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(7, 31, 45, 0.92), rgba(6, 23, 35, 0.84));
}

.interaction-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.interaction-heading {
  margin: 8px 0 0;
  font-size: clamp(24px, 1.8vw, 30px);
  font-family: var(--title-font);
  color: rgba(249, 239, 220, 0.98);
}

.question-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: stretch;
}

.question-input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 24, 36, 0.76);
  color: var(--ink-main);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.question-input::placeholder {
  color: rgba(244, 249, 255, 0.45);
}

.question-input:focus {
  border-color: rgba(108, 228, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(108, 228, 255, 0.08);
}

.question-input:disabled {
  opacity: 0.66;
}

.ask-button {
  height: 58px;
  padding: 0 22px;
  border: 1px solid rgba(255, 200, 139, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 196, 116, 0.92), rgba(255, 125, 48, 0.94));
  color: #14212a;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 34px rgba(255, 123, 50, 0.16);
}

.ask-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.ask-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.preset-zone {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 209, 102, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.03);
}

.mic-button {
  width: auto;
  min-width: 120px;
  height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #ffbd73, #ff7b32 52%, #d8571d);
  color: #14212a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow:
    0 14px 32px rgba(255, 123, 50, 0.22),
    inset 0 -10px 20px rgba(134, 47, 8, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mic-button:hover {
  transform: translateY(-4px) scale(1.01);
}

.mic-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.mic-button.recording {
  animation: recordingPulse 1.5s ease-in-out infinite;
}

.mic-icon {
  width: 18px;
  height: 32px;
  border-radius: 12px;
  border: 4px solid currentColor;
  position: relative;
}

.mic-icon::before,
.mic-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mic-icon::before {
  bottom: -15px;
  width: 22px;
  height: 12px;
  border: 4px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.mic-icon::after {
  bottom: -23px;
  width: 4px;
  height: 10px;
  background: currentColor;
}

.mic-button span:last-child {
  font-weight: 700;
  font-size: 14px;
}

.transcript-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
}

.transcript-text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.question-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  max-height: 92px;
  overflow: auto;
  padding-right: 6px;
}

.question-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-main);
  border-radius: 999px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.question-chip:hover {
  background: rgba(108, 228, 255, 0.14);
  transform: translateY(-2px);
}

.creative-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.creative-actions-inline {
  flex-shrink: 0;
}

.creative-button {
  min-width: 116px;
}

.accent-button {
  background:
    linear-gradient(180deg, rgba(255, 210, 128, 0.24), rgba(255, 132, 54, 0.22)),
    rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 188, 124, 0.22);
}

.creative-result-panel {
  margin-top: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 209, 102, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.creative-result-panel[hidden] {
  display: none;
}

.creative-result-head {
  width: 100%;
  border: 0;
  padding: 16px 18px;
  background: transparent;
  color: var(--ink-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.creative-result-title {
  display: block;
  margin-top: 4px;
  font-size: clamp(20px, 1.4vw, 26px);
  font-family: var(--title-font);
  color: rgba(249, 239, 220, 0.98);
}

.creative-result-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 249, 255, 0.82);
}

.creative-result-panel.collapsed .creative-result-body {
  display: none;
}

.creative-result-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  max-height: 42vh;
  overflow: auto;
}

.creative-panel-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.creative-section[hidden] {
  display: none;
}

.poem-panel,
.song-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 18px;
  min-height: 0;
  overflow: hidden;
}

.creative-status,
.poem-summary,
.song-poster-line {
  color: var(--ink-muted);
}

.creative-status {
  margin: 0;
  font-size: 14px;
}

.poem-title,
.song-title {
  margin: 0;
  font-size: clamp(22px, 1.6vw, 28px);
  font-family: var(--title-font);
  color: rgba(249, 239, 220, 0.98);
}

.poem-content,
.song-lyrics {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: 15px;
  font-family: var(--title-font);
  color: rgba(250, 246, 237, 0.96);
}

.poem-content {
  max-height: 22vh;
  overflow: auto;
}

.poem-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.song-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.song-cover {
  width: min(22%, 96px);
  aspect-ratio: 1;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(91, 157, 175, 0.44), rgba(255, 191, 121, 0.32));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.song-player {
  width: 100%;
  filter: saturate(1.08);
}

.song-player[hidden] {
  display: none;
}

.song-variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.song-variant-list:empty {
  display: none;
  margin-top: 0;
}

.song-variant-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-main);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.song-variant-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.22);
}

.song-variant-button.active {
  background: rgba(255, 209, 102, 0.16);
  border-color: rgba(255, 209, 102, 0.34);
  color: rgba(255, 245, 220, 0.98);
}

.song-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
  min-height: 0;
}

.song-lyrics-box,
.song-score-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.song-score {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.song-score-item {
  padding: 14px 14px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.song-score-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: rgba(255, 240, 215, 0.98);
}

.song-score-item p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 14px;
}

.avatar-panel {
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 1.6vh, 20px);
  padding: 3.4% 3.2% 2.8%;
}

.scientist-card {
  width: 62%;
  max-height: 74%;
  align-self: end;
}

.scientist-nameplate {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 92%;
  padding: 2.3% 2.8%;
  z-index: 1;
}

.avatar-response-panel {
  position: relative;
  width: 100%;
  max-width: 92%;
  padding: 2.8% 3%;
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 209, 102, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(8, 29, 42, 0.92), rgba(8, 24, 36, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(168px, 24vh, 280px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-response-panel::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -22%;
  width: 42%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(129, 227, 255, 0.1), rgba(255, 255, 255, 0));
  transform: rotate(10deg);
  animation: softSweep 7.8s ease-in-out infinite;
  pointer-events: none;
}

.avatar-response-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.9);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.42);
  opacity: 0.65;
}

.avatar-response-panel.is-speaking::after {
  animation: pulseDot 1s ease-in-out infinite;
  opacity: 1;
}

.avatar-response-panel .speech-text {
  position: relative;
  margin-top: 8px;
  font-size: clamp(19px, 1.7vw, 30px);
  line-height: 1.55;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(108px, 19vh, 236px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 227, 255, 0.45) transparent;
}

.avatar-response-panel .speech-subtext {
  position: relative;
  margin-top: 0;
  font-size: 13px;
  line-height: 1.6;
  z-index: 1;
}

.avatar-response-panel .speech-text::-webkit-scrollbar {
  width: 6px;
}

.avatar-response-panel .speech-text::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(129, 227, 255, 0.35);
}

.console-panel {
  display: flex;
  min-height: 0;
}

.interaction-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.1vh, 16px);
  min-height: 0;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 209, 102, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(7, 31, 45, 0.92), rgba(6, 23, 35, 0.84));
  overflow: hidden;
  isolation: isolate;
}

.interaction-card::before {
  content: "";
  position: absolute;
  inset: auto 4% 8% auto;
  width: 36%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 228, 255, 0.12), rgba(108, 228, 255, 0));
  filter: blur(12px);
  opacity: 0.28;
  animation: cardGlow 8.8s ease-in-out infinite;
  pointer-events: none;
}

.interaction-card.is-busy::before {
  opacity: 0.6;
  animation-duration: 3.2s;
}

.interaction-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mode-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mode-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 18px;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
}

.mode-voice {
  box-shadow:
    0 14px 32px rgba(255, 123, 50, 0.22),
    inset 0 -10px 20px rgba(134, 47, 8, 0.18);
}

.mode-button::before {
  content: "";
  position: absolute;
  inset: -120% auto auto -35%;
  width: 36%;
  height: 320%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  transform: rotate(16deg);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.mode-button:hover::before,
.mode-button:focus-visible::before,
.mode-button.recording::before {
  opacity: 1;
  animation: buttonShimmer 1.8s ease;
}

.question-composer {
  grid-template-columns: minmax(0, 1fr) auto;
}

.interaction-hint {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(244, 249, 255, 0.54);
}

.transcript-inline {
  margin: -4px 0 0;
  color: rgba(244, 249, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
  min-height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease, min-height 0.2s ease;
}

.transcript-inline.is-empty {
  opacity: 0;
  min-height: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.featured-question-panel {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 209, 102, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.featured-question-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0) 74%);
  transform: translateX(-100%);
  animation: questionSweep 9s ease-in-out infinite;
  pointer-events: none;
}

.featured-question-button {
  width: 100%;
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 24, 36, 0.76);
  color: var(--ink-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.featured-question-button.is-ready {
  animation: questionBreath 4.2s ease-in-out infinite;
}

.featured-question-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(108, 228, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(108, 228, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 24, 36, 0.84);
}

.featured-question-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.featured-question-text {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(250, 246, 237, 0.96);
}

.featured-question-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.14);
  color: rgba(255, 241, 212, 0.96);
  font-size: 13px;
}

.featured-question-meta {
  margin: 8px 2px 0;
  color: rgba(244, 249, 255, 0.5);
  font-size: 12px;
  line-height: 1.55;
}

.creative-result-panel {
  margin-top: 4px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.creative-result-body {
  flex: 1 1 auto;
  max-height: none;
}

.creative-result-panel:not([hidden]) {
  animation: panelReveal 0.42s ease;
}

.creative-result-panel.is-open {
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 209, 102, 0.16);
}

.footer-bar {
  gap: 16px;
  min-height: clamp(74px, 8vh, 96px);
}

.ticker-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(7, 30, 42, 0.92), rgba(8, 43, 63, 0.74) 48%, rgba(7, 30, 42, 0.92));
  min-height: 0;
}

.ticker-glow {
  position: absolute;
  inset: 10px 18px;
  background: linear-gradient(90deg, rgba(108, 228, 255, 0.08), rgba(255, 209, 102, 0.08), rgba(255, 125, 156, 0.08));
  filter: blur(18px);
}

.ticker-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6%;
  z-index: 2;
  pointer-events: none;
}

.ticker-mask-left {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 30, 42, 0.98), rgba(7, 30, 42, 0));
}

.ticker-mask-right {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 30, 42, 0.98), rgba(7, 30, 42, 0));
}

.ticker-lane {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 0;
}

.ticker-lane-secondary {
  opacity: 0.82;
}

.ticker-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 0 18px;
  white-space: nowrap;
  animation: marqueeMove 34s linear infinite;
}

.ticker-track-secondary {
  animation-direction: reverse;
  animation-duration: 38s;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 249, 255, 0.88);
  font-size: 14px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.03);
}

.ticker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--glow-a), var(--glow-b));
  box-shadow: 0 0 14px rgba(108, 228, 255, 0.44);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.question-grid::-webkit-scrollbar,
.song-lyrics-box::-webkit-scrollbar,
.song-score-box::-webkit-scrollbar {
  width: 6px;
}

.question-grid::-webkit-scrollbar-thumb,
.song-lyrics-box::-webkit-scrollbar-thumb,
.song-score-box::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.scientist-card.is-speaking .mouth {
  height: 12%;
  border-radius: 42% 42% 65% 65%;
  transform: scaleY(1.3);
}

.scientist-card.is-speaking .light-column {
  filter: saturate(1.08);
}

.scientist-card.is-speaking .plasma-ring {
  border-color: rgba(231, 206, 151, 0.34);
  animation-duration: 6.2s;
}

.scientist-card.is-speaking .beard,
.scientist-card.is-speaking .mustache,
.scientist-card.is-speaking .tool-inkline {
  animation-duration: 2.8s;
}

.scientist-card.is-speaking .stage-platform {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 224, 171, 0.34), rgba(255, 224, 171, 0) 66%),
    linear-gradient(180deg, rgba(133, 95, 54, 0.98), rgba(71, 47, 29, 0.98));
}

.scientist-card.is-listening {
  filter: saturate(1.08);
}

.scientist-card.is-listening .plasma-ring,
.scientist-card.is-listening .console-float,
.scientist-card.is-listening .tool-scroll {
  border-color: rgba(255, 169, 88, 0.34);
}

.scientist-card.is-listening .light-column {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 238, 212, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(248, 202, 139, 0.2), rgba(152, 191, 179, 0.08) 72%, transparent);
}

.scientist-card.is-listening .tool-square {
  border-color: rgba(255, 181, 107, 0.92);
}

@keyframes hoverFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -12px, 0) scale(1.15);
  }
}

@keyframes liquidMove {
  0%,
  100% {
    height: 50%;
  }
  50% {
    height: 58%;
  }
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(0.86);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(-34px) scale(1.05);
    opacity: 0;
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes recordingPulse {
  0%,
  100% {
    box-shadow:
      0 20px 50px rgba(255, 123, 50, 0.32),
      0 0 0 0 rgba(255, 123, 50, 0.36);
  }
  50% {
    box-shadow:
      0 20px 50px rgba(255, 123, 50, 0.32),
      0 0 0 18px rgba(255, 123, 50, 0);
  }
}

@keyframes blink {
  0%,
  45%,
  47%,
  100% {
    transform: scaleY(1);
  }
  46% {
    transform: scaleY(0.15);
  }
}

@keyframes waveLeft {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(12deg) translateY(-3px);
  }
}

@keyframes waveRight {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-12deg) translateY(-3px);
  }
}

@keyframes beardSway {
  0%,
  100% {
    transform: translateX(-50%) rotate(1.6deg);
  }
  50% {
    transform: translateX(-50%) rotate(-1.8deg);
  }
}

@keyframes consoleDrift {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-14px) rotate(-4deg);
  }
}

@keyframes consoleDriftRight {
  0%,
  100% {
    transform: translateY(0) rotate(14deg);
  }
  50% {
    transform: translateY(-16px) rotate(6deg);
  }
}

@keyframes inklineSwing {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes sparkDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(10px, -16px, 0) scale(1.24);
    opacity: 1;
  }
}

@keyframes lightBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes softSweep {
  0%,
  100% {
    transform: translateX(-16%) rotate(10deg);
    opacity: 0.18;
  }
  50% {
    transform: translateX(152%) rotate(10deg);
    opacity: 0.34;
  }
}

@keyframes cardGlow {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.24;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.54;
  }
}

@keyframes buttonShimmer {
  from {
    transform: translateX(-8%) rotate(16deg);
  }
  to {
    transform: translateX(320%) rotate(16deg);
  }
}

@keyframes questionSweep {
  0%,
  100% {
    transform: translateX(-115%);
    opacity: 0;
  }
  18%,
  60% {
    opacity: 1;
  }
  78% {
    transform: translateX(115%);
    opacity: 0;
  }
}

@keyframes questionBreath {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      0 10px 24px rgba(108, 228, 255, 0.08),
      inset 0 0 0 1px rgba(108, 228, 255, 0.08);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1500px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .avatar-response-panel .speech-text {
    font-size: clamp(18px, 1.5vw, 26px);
  }

  .mode-actions {
    gap: 8px;
  }

  .song-cover {
    width: min(26%, 110px);
  }
}

@media (max-width: 1220px) {
  .screen-shell {
    padding: 1.3% 1.4% 1.1%;
  }

  .topbar {
    gap: 14px;
  }

  #schoolTitle {
    font-size: clamp(24px, 3vw, 38px);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }

  .scientist-card {
    width: 64%;
    max-height: 70%;
  }

  .avatar-response-panel {
    max-width: 95%;
    padding: 3% 3.2%;
  }

  .avatar-response-panel .speech-text {
    font-size: clamp(17px, 1.55vw, 24px);
  }

  .mode-actions {
    grid-template-columns: 1fr;
  }

  .mode-button {
    min-height: 54px;
  }

  .question-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .featured-question-button {
    padding: 14px 16px;
  }

  .featured-question-text {
    font-size: 15px;
  }

  .featured-question-arrow {
    min-width: 76px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
  }

  .screen-shell {
    height: auto;
    min-height: 100%;
    padding: 20px 20px 18px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .avatar-panel {
    min-height: 52vh;
  }

  .scientist-card {
    width: 58%;
    max-height: none;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .console-panel {
    grid-template-rows: none;
  }

  .scientist-nameplate {
    flex-direction: column;
    align-items: flex-start;
  }

  .interaction-header,
  .song-header {
    flex-direction: column;
  }

  .question-composer {
    grid-template-columns: 1fr;
  }

  .mode-actions {
    grid-template-columns: 1fr;
  }

  .ask-button,
  .mode-button {
    width: 100%;
    justify-self: stretch;
  }

  .featured-question-button {
    flex-direction: column;
    align-items: flex-start;
  }

  .song-cover {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1;
  }

  .creative-result-body {
    max-height: none;
  }
}

/* 2026-04-14 展演区重构 */
.interaction-header,
.interaction-intro,
.interaction-heading,
.interaction-hint,
.transcript-inline {
  display: none;
}

.interaction-card {
  gap: clamp(14px, 1.4vh, 18px);
  padding-top: 4.2%;
}

.mode-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mode-button {
  min-height: 86px;
  padding: 14px 12px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(6, 27, 39, 0.86);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  font-size: 29px;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.mode-button-label {
  display: block;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.mode-voice {
  color: #10212d;
}

.mic-button {
  min-width: 0;
  height: auto;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #ffd089 0%, #ff8f47 54%, #db5c23 100%);
  box-shadow:
    0 18px 36px rgba(255, 123, 50, 0.24),
    inset 0 -12px 24px rgba(121, 45, 11, 0.2);
}

.mic-icon {
  width: auto;
  height: auto;
  border: 0;
  position: static;
  font-size: 31px;
}

.mic-icon::before,
.mic-icon::after {
  display: none;
}

.ghost-button {
  background:
    linear-gradient(180deg, rgba(104, 219, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(6, 27, 39, 0.88);
  border-color: rgba(126, 224, 255, 0.16);
  color: rgba(248, 252, 255, 0.94);
}

.accent-button {
  background:
    linear-gradient(180deg, rgba(255, 221, 149, 0.18), rgba(255, 155, 74, 0.08)),
    rgba(6, 27, 39, 0.88);
  border-color: rgba(255, 198, 126, 0.22);
}

.question-composer {
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 14px;
}

.question-input {
  height: 72px;
  padding: 0 24px;
  border-radius: 24px;
  font-size: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(4, 20, 30, 0.84);
  border-color: rgba(152, 225, 248, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 28px rgba(0, 0, 0, 0.12);
}

.question-input::placeholder {
  color: rgba(235, 244, 248, 0.54);
}

.question-input:focus {
  border-color: rgba(126, 224, 255, 0.28);
  box-shadow:
    0 0 0 4px rgba(108, 228, 255, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.12);
}

.ask-button {
  width: 80px;
  height: 72px;
  padding: 0;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 210, 126, 0.96), rgba(255, 128, 48, 0.96));
  box-shadow:
    0 18px 34px rgba(255, 123, 50, 0.2),
    inset 0 -8px 18px rgba(124, 42, 8, 0.16);
}

.ask-button-icon {
  font-size: 28px;
  line-height: 1;
  transform: translateX(2px);
}

.creative-result-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 2px;
  border-radius: 30px;
  border-color: rgba(149, 222, 245, 0.1);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 209, 102, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(6, 27, 39, 0.94), rgba(7, 22, 34, 0.9));
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.creative-result-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.creative-result-head {
  padding: 22px 24px 6px;
}

.creative-result-title {
  margin-top: 6px;
  font-size: clamp(24px, 1.85vw, 32px);
}

#creativeResultType {
  display: none;
}

.creative-result-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 18px;
  padding: 0 24px 24px;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.creative-panel-status {
  display: none;
}

.poem-panel,
.song-panel {
  flex: 1 1 auto;
  gap: 12px;
  padding: 22px 24px 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(6, 24, 35, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.12);
}

.poem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.poem-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poem-header .poem-title {
  display: none;
}

.poem-title,
.song-title {
  font-size: clamp(28px, 2vw, 34px);
  line-height: 1.25;
}

.poem-sheet {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 26px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(18, 46, 62, 0.72), rgba(8, 22, 32, 0.92)),
    rgba(4, 16, 24, 0.9);
  border: 1px solid rgba(255, 229, 182, 0.12);
  overflow: hidden;
}

.poem-sheet::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 240, 215, 0.07);
  pointer-events: none;
}

.poem-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  padding-right: 4px;
  overflow: auto;
  font-size: clamp(19px, 1.65vw, 25px);
  line-height: 1.78;
  letter-spacing: 0.08em;
  text-align: center;
}

.poem-summary {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  line-height: 1.7;
}

.song-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.song-header > div {
  min-width: 0;
}

.song-header .song-title {
  display: none;
}

.song-panel .mini-label,
.song-panel .creative-status,
.song-poster-line,
.song-variant-list,
.song-score-box {
  display: none !important;
}

.song-poster-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.song-cover {
  width: min(18%, 104px);
  max-width: 104px;
  border-radius: 24px;
  border-color: rgba(255, 233, 188, 0.18);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.song-player {
  display: none !important;
}

.song-player-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 25, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.song-player-shell[hidden] {
  display: none;
}

.song-play-toggle {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 212, 133, 0.96), rgba(255, 138, 56, 0.96));
  color: #10212d;
  font-size: 23px;
  cursor: pointer;
  box-shadow:
    0 14px 28px rgba(255, 123, 50, 0.18),
    inset 0 -8px 16px rgba(121, 45, 11, 0.14);
}

.song-progress-shell {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

.song-progress-track {
  position: relative;
  width: 100%;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}

.song-progress-track::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.song-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(123, 232, 255, 0.92), rgba(255, 202, 110, 0.96));
  box-shadow: 0 0 18px rgba(123, 232, 255, 0.24);
}

.song-time-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(244, 249, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.song-variant-list {
  margin-top: 0;
}

.song-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.song-lyrics-box,
.song-score-box {
  padding: 18px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 24, 35, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.song-lyrics {
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.song-lyrics-box {
  flex: 1 1 auto;
}

.song-score {
  margin-top: 12px;
  gap: 14px;
}

.song-score-item {
  padding: 16px 16px 15px;
  border-radius: 20px;
}

.song-score-item strong {
  font-size: 18px;
}

.song-score-item p {
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1220px) {
  .mode-button {
    min-height: 76px;
  }

  .question-composer {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .song-display {
    grid-template-columns: 1fr;
  }

  .song-cover {
    width: min(22%, 94px);
    max-width: 94px;
  }

  .poem-content {
    font-size: clamp(21px, 1.8vw, 28px);
  }

  .song-lyrics {
    font-size: clamp(18px, 1.5vw, 24px);
  }
}

@media (max-width: 900px) {
  .mode-actions {
    grid-template-columns: 1fr;
  }

  .mode-button {
    min-height: 68px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 18px;
  }

  .question-composer {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .creative-result-head {
    padding: 18px 18px 6px;
  }

  .creative-result-body {
    padding: 0 18px 18px;
  }

  .poem-panel,
  .song-panel {
    padding: 18px;
  }

  .song-header {
    grid-template-columns: 1fr;
  }

  .song-cover {
    width: 110px;
    max-width: 110px;
  }

  .poem-content,
  .song-lyrics {
    font-size: 18px;
    line-height: 1.8;
  }
}

/* 2026-04-14 布局重构：右侧统一展演问答/诗歌/歌词 */
.avatar-response-panel {
  display: none !important;
}

.hero-layout {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: stretch;
}

.avatar-panel {
  padding: 3.2% 3.2% 11%;
}

.scientist-card {
  width: min(68%, 520px);
  max-height: 78%;
  animation: avatarFloat 7.8s ease-in-out infinite;
}

.scientist-nameplate {
  position: absolute;
  left: 4.2%;
  right: 4.2%;
  bottom: 3.4%;
  width: auto;
  max-width: none;
  padding: 2.6% 3%;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  background:
    linear-gradient(90deg, rgba(24, 20, 17, 0.88), rgba(77, 57, 38, 0.74));
}

.console-card {
  position: relative;
  padding: 3.8% 4.3% 3.7%;
}

.console-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, 0.08), transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(108, 228, 255, 0.08), transparent 28%);
  pointer-events: none;
  opacity: 0.9;
}

.interaction-card {
  gap: clamp(14px, 1.35vh, 20px);
}

.mode-actions,
.question-composer,
.creative-result-panel {
  position: relative;
  z-index: 1;
}

.mode-actions {
  gap: clamp(10px, 1vw, 16px);
}

.mode-button {
  min-height: clamp(60px, 6vh, 72px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 24, 36, 0.72);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mode-button-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}

.mic-icon {
  width: 40px;
  height: 40px;
  border: 0;
  position: relative;
  font-size: 22px;
  line-height: 1;
}

.mic-icon::before,
.mic-icon::after {
  display: none;
}

.mode-button-label {
  font-size: clamp(15px, 1.05vw, 18px);
  letter-spacing: 0.03em;
}

.mode-voice {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 197, 122, 0.96), rgba(255, 128, 55, 0.96) 54%, rgba(212, 84, 28, 0.98));
  color: #14212a;
}

.question-composer {
  gap: 12px;
}

.question-input {
  height: clamp(58px, 6vh, 70px);
  padding: 0 20px;
  border-radius: 20px;
  font-size: clamp(16px, 1.06vw, 19px);
}

.ask-button {
  width: clamp(58px, 5.6vw, 72px);
  min-width: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
}

.ask-button-icon {
  font-size: clamp(22px, 1.6vw, 28px);
  transform: translateX(1px);
}

.creative-result-panel {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 29, 42, 0.96), rgba(8, 24, 36, 0.88)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.creative-result-head {
  padding: 18px 22px 10px;
  cursor: default;
}

.creative-result-title {
  font-size: clamp(22px, 1.65vw, 30px);
}

.creative-result-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 0 22px 22px;
}

.qa-panel,
.poem-panel,
.song-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.qa-question-card,
.poem-sheet,
.song-player-shell,
.song-lyrics-stage {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(5, 24, 36, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.qa-question-card {
  padding: 18px 20px 16px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.qa-question-card::after,
.song-lyrics-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 0, rgba(108, 228, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-110%);
  animation: panelSweep 8.8s ease-in-out infinite;
  pointer-events: none;
}

.qa-question {
  margin: 0;
  font-size: clamp(18px, 1.24vw, 22px);
  line-height: 1.65;
  color: rgba(250, 246, 237, 0.96);
}

.qa-meta {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 249, 255, 0.56);
}

.qa-answer-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 209, 102, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(8, 29, 42, 0.92), rgba(8, 24, 36, 0.86));
}

.qa-answer-shell::after {
  content: "";
  position: absolute;
  inset: auto 8% 0 auto;
  width: 34%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 228, 255, 0.12), rgba(108, 228, 255, 0));
  filter: blur(14px);
  opacity: 0.68;
  animation: answerGlow 7s ease-in-out infinite;
  pointer-events: none;
}

.qa-answer {
  position: relative;
  height: 100%;
  margin: 0;
  padding-right: 12px;
  overflow-y: auto;
  font-size: clamp(22px, 1.72vw, 30px);
  line-height: 1.78;
  color: rgba(250, 246, 237, 0.98);
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 227, 255, 0.45) transparent;
}

.qa-answer::-webkit-scrollbar,
.poem-content::-webkit-scrollbar,
.song-lyrics-box::-webkit-scrollbar {
  width: 7px;
}

.qa-answer::-webkit-scrollbar-thumb,
.poem-content::-webkit-scrollbar-thumb,
.song-lyrics-box::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(129, 227, 255, 0.36);
}

.poem-header,
.song-header {
  align-items: center;
}

.poem-title,
.song-title {
  font-size: clamp(26px, 1.9vw, 34px);
}

.poem-sheet {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 24px;
  border-radius: 24px;
}

.poem-content {
  height: 100%;
  max-height: none;
  padding-right: 10px;
  overflow-y: auto;
  font-size: clamp(24px, 1.8vw, 32px);
  line-height: 1.9;
}

.poem-summary {
  font-size: clamp(15px, 1vw, 17px);
}

.song-panel {
  gap: 16px;
}

.song-poster-line {
  margin: 8px 0 0;
  font-size: clamp(15px, 0.98vw, 17px);
  line-height: 1.6;
}

.song-cover {
  width: min(16%, 96px);
  min-width: 76px;
  border-radius: 20px;
}

.song-player-shell {
  padding: 16px 18px;
  border-radius: 22px;
}

.song-display-single {
  flex: 1 1 auto;
  min-height: 0;
  display: block;
}

.song-lyrics-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: 20px 22px;
  border-radius: 24px;
  overflow: hidden;
}

.song-lyrics-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(8, 24, 36, 0), rgba(8, 24, 36, 0.94));
  pointer-events: none;
}

.song-lyrics-box {
  height: 100%;
  min-height: 0;
  padding: 0 12px 0 0;
  border: 0;
  background: transparent;
}

.song-lyrics {
  position: relative;
  display: block;
  min-height: 100%;
  margin: 0;
  font-size: clamp(24px, 1.82vw, 34px);
  line-height: 1.9;
  color: rgba(250, 246, 237, 0.98);
  white-space: pre-wrap;
  z-index: 1;
}

.song-variant-list,
.song-score-box,
.song-score {
  display: none !important;
}

@keyframes avatarFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes answerGlow {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.06);
  }
}

@keyframes panelSweep {
  0%,
  18% {
    transform: translateX(-110%);
  }

  42% {
    transform: translateX(110%);
  }

  100% {
    transform: translateX(110%);
  }
}

@media (max-width: 1400px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .scientist-card {
    width: min(74%, 480px);
  }

  .qa-answer,
  .song-lyrics {
    font-size: clamp(20px, 1.58vw, 28px);
  }
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .mode-actions {
    grid-template-columns: 1fr;
  }

  .scientist-card {
    width: min(78%, 420px);
  }

  .qa-answer,
  .poem-content,
  .song-lyrics {
    font-size: clamp(18px, 1.42vw, 24px);
  }
}
