@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: Gloock;
  src: url("assets/gloock.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #101b23;
  --panel: #14232d;
  --paper: #f5e8d4;
  --muted: #bac8c9;
  --amber: #ecc38d;
  --blue: #9fdde5;
  --line: #ffffff24;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}
button:hover {
  filter: brightness(1.12);
}
button:active {
  transform: translateY(1px);
}
::selection {
  background: #ecc38d;
  color: #101b23;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: #b1c4ca66;
  border-radius: 8px;
}
h1,
h2,
p {
  margin: 0;
  text-wrap: pretty;
}
h1,
h2 {
  text-wrap: balance;
}
button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: -70px;
  padding: 12px;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus {
  top: 16px;
}
.shell {
  height: 100svh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  max-width: 1920px;
  margin: auto;
  position: relative;
  overflow: hidden;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  background: var(--ink);
  z-index: 3;
  flex-shrink: 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Gloock, serif;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.wordmark svg {
  width: 28px;
  height: 28px;
  stroke: var(--amber);
  stroke-width: 1.3;
  fill: none;
}
.top-actions {
  display: flex;
  gap: 12px;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.icon-button:hover {
  background: #ffffff12;
}
.route {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.route .route-place {
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #a8bec477;
}
.route .current {
  color: var(--paper);
}
.route .current .route-dot {
  background: var(--amber);
  border-color: var(--amber);
}
.route .done .route-dot {
  background: #8eb7b7;
  border-color: #8eb7b7;
}
.route-line {
  width: 32px;
  height: 1px;
  background: #ffffff25;
}
.world {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #16272f;
  isolation: isolate;
}
.scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  z-index: -3;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.world:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0a151b55 0%,
    transparent 28%,
    #0812190a 55%,
    #081219e0 100%
  );
  pointer-events: none;
  z-index: -2;
}
.world[data-scene="cafe"] .scene-art {
  object-position: 60% 48%;
}
.world[data-scene="platform"] .scene-art {
  object-position: center 48%;
}
.rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}
.scene-note {
  position: absolute;
  left: 40px;
  top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.scene-note .location {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--paper);
}
.scene-note .time {
  font-size: 12px;
  color: #e2d6c5;
  border-left: 1px solid #eee4ce44;
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
}
.objective {
  position: absolute;
  right: 40px;
  top: 28px;
  padding: 12px 16px;
  background: #101b23d9;
  max-width: 280px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  box-shadow: 0 8px 28px #0002;
}
.objective svg {
  width: 18px;
  height: 18px;
  stroke: var(--amber);
  fill: none;
  flex-shrink: 0;
}
.objective span {
  line-height: 1.5;
}
.intro {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #081219e6, #08121977 50%, transparent 80%);
  display: flex;
  align-items: center;
  padding: 64px 8%;
  z-index: 2;
}
.intro-content {
  max-width: 650px;
}
.intro h1 {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.intro .english-title {
  font-family: Gloock, serif;
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--amber);
  margin-top: 16px;
}
.intro-description {
  font-size: 16px;
  line-height: 1.9;
  color: #e0ded7;
  margin-top: 32px;
  max-width: 400px;
}
.intro-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.primary {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--amber);
  color: #1b2a30;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  transition: background 0.3s var(--ease);
}
.primary svg {
  width: 20px;
  height: 20px;
}
.intro-hint {
  font-size: 12px;
  line-height: 1.8;
  color: #c7d1cf;
}
.intro-meta {
  position: absolute;
  bottom: 32px;
  left: 8%;
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: #b9c6c8;
}
.intro-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--amber);
  fill: none;
}
.resume-button {
  border: 0;
  background: transparent;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 5px;
  padding: 12px 0;
}
.hotspots {
  position: absolute;
  inset: 0 0 260px;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  padding: 12px;
  pointer-events: auto;
  white-space: nowrap;
  min-height: 48px;
}
.hotspot:active {
  transform: translate(-50%, -50%) scale(0.96);
}
.pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #13232ccf;
  border: 1px solid #f0dfbf99;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px #0005;
  position: relative;
  transition:
    transform 0.4s var(--ease),
    background 0.3s var(--ease);
}
.pin:after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid #f0dfbf44;
  border-radius: 50%;
}
.pin svg {
  width: 16px;
  height: 16px;
}
.hotspot:hover .pin {
  transform: scale(1.12);
  background: #ecc38d;
  color: #182b33;
}
.hotspot-label {
  background: #10212be6;
  color: #f9eddb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  box-shadow: 0 8px 24px #0003;
}
.hotspot.important .pin {
  background: var(--amber);
  color: #18313a;
}
.hotspot.completed .pin {
  background: #93c3bf;
  color: #11242b;
}
.hotspot.hinted .pin {
  animation: hint-pulse 1.8s var(--ease) 3;
}
.hotspot-label small {
  display: block;
  font-size: 12px;
  color: #bed0d1;
  margin-top: 4px;
}
.world[data-scene="platform"] .hotspots {
  bottom: 260px;
}
.bottom-zone {
  position: absolute;
  bottom: 24px;
  left: 40px;
  right: 40px;
  display: grid;
  grid-template-columns: 1fr minmax(440px, 850px) 1fr;
  gap: 24px;
  align-items: end;
}
.utility-left,
.utility-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.utility-right {
  align-items: flex-end;
}
.utility-button {
  border: 1px solid #ffffff35;
  background: #101f28d9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  min-height: 48px;
  white-space: nowrap;
  box-shadow: 0 8px 24px #0002;
}
.utility-button svg {
  width: 18px;
  height: 18px;
}
.utility-button .count {
  background: var(--amber);
  color: #162933;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.dialogue {
  background: #11212bed;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 16px 48px #0005;
  min-width: 0;
}
.dialogue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.speaker {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.speaker-description {
  font-size: 12px;
  color: var(--muted);
  margin-left: 12px;
  letter-spacing: 0;
}
.voice-state {
  font-size: 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.voice-state:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.dialogue-text {
  font-size: 24px;
  line-height: 1.5;
  color: #f6eede;
  font-weight: 400;
  letter-spacing: -0.01em;
  min-height: 72px;
}
.dialogue-zh {
  font-size: 14px;
  line-height: 1.8;
  color: #c1d0d1;
  margin-top: 12px;
}
.dialogue-controls {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  align-items: center;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  background: #ffffff0a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}
.text-button:hover,
.text-button[aria-pressed="true"] {
  background: #ffffff18;
  color: var(--paper);
}
.text-button svg {
  width: 16px;
  height: 16px;
}
.text-button.replay {
  color: var(--paper);
}
.control-spacer {
  flex: 1;
}
.caption-toggle {
  font-size: 12px;
  border: 0;
  background: none;
  padding: 8px;
  color: var(--muted);
}
.scene-prompt {
  color: #d7ddda;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
}
.toast {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  background: #efe1c9;
  color: #203039;
  z-index: 15;
  max-width: calc(100% - 32px);
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 40px #0004;
  font-size: 14px;
  text-align: center;
  animation: toast-in 0.4s var(--ease);
}
.overlay {
  position: absolute;
  inset: 0;
  background: #08131bc9;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.music-window {
  width: min(960px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #142630;
  border-radius: 16px;
  box-shadow: 0 24px 80px #0006;
  position: relative;
}
.window-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 0;
  gap: 16px;
}
.window-top h2 {
  font-size: 18px;
  font-weight: 500;
}
.window-top .icon-button {
  border: 0;
  background: #ffffff0a;
}
.music-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 24px 40px 32px;
  align-items: center;
}
.album-area {
  text-align: center;
}
.record {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: repeating-radial-gradient(
    circle,
    #142028 0,
    #142028 2px,
    #202e35 3px,
    #142028 4px
  );
  box-shadow: 0 16px 40px #0005;
  display: grid;
  place-items: center;
  position: relative;
}
.record.spinning {
  animation: spin 14s linear infinite;
}
.record-center {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #c88e60;
  color: #18282f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Gloock, serif;
  font-size: 18px;
  line-height: 1.4;
}
.record-center:after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12232d;
  margin-top: 8px;
}
.album-title {
  font-family: Gloock, serif;
  font-size: 30px;
  color: var(--paper);
  font-weight: 400;
}
.album-credit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.lyrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lyric {
  border: 0;
  text-align: left;
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.3s var(--ease);
  color: #cad5d6;
  position: relative;
}
.lyric .line-en {
  font-size: 20px;
  line-height: 1.4;
  display: block;
}
.lyric .line-zh {
  font-size: 12px;
  line-height: 1.7;
  color: #b5c7cb;
  display: block;
  margin-top: 4px;
}
.lyric.active {
  background: #ecc38d13;
  color: #f7d7a8;
}
.lyric.active .line-zh {
  color: #e0c9a8;
}
.lyric:hover {
  background: #ffffff0b;
}
.lyrics-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 16px 0;
}
.music-controls {
  padding: 0 40px 32px;
}
.scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scrubber input {
  flex: 1;
  min-width: 0;
  accent-color: var(--amber);
  height: 44px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.scrubber input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: #bac8c966;
}
.scrubber input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--amber);
}
.scrubber input::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #bac8c966;
}
.scrubber input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
}
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}
.play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  border: 0;
  display: grid;
  place-items: center;
  color: #182a33;
}
.play-button svg {
  width: 24px;
  height: 24px;
}
.music-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.music-footer p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.music-footer .primary {
  font-size: 14px;
  padding: 12px 16px;
  min-height: 48px;
  white-space: nowrap;
}
.practice-note {
  color: var(--amber);
  text-align: center;
  font-size: 14px;
  min-height: 24px;
  margin-bottom: 12px;
}
.bag-window {
  width: min(480px, 100%);
  background: #f0e3cd;
  color: #21343e;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 80px #0006;
  max-height: 90%;
  overflow: auto;
}
.bag-window .window-top {
  padding: 0 0 24px;
}
.bag-window .icon-button {
  color: #20323b;
}
.empty-bag {
  font-size: 14px;
  line-height: 1.8;
  padding: 24px 0;
  color: #566367;
}
.ticket {
  background: #fcf4e6;
  padding: 24px;
  border: 1px dashed #b1a58f;
  border-radius: 12px;
}
.ticket-title {
  font-family: Gloock, serif;
  font-size: 24px;
}
.ticket-meta {
  font-size: 12px;
  margin-top: 8px;
  color: #596865;
}
.ticket-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  margin: 24px 0;
}
.ticket-route svg {
  width: 24px;
  height: 24px;
  stroke: #30444a;
  fill: none;
}
.ticket .stamp {
  display: inline-block;
  border: 1px solid #467e70;
  color: #326a5d;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.clue-list {
  margin-top: 24px;
}
.clue-list p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}
.clue-list span {
  font-size: 12px;
  color: #58696d;
}
.bag-tip {
  font-size: 12px;
  line-height: 1.8;
  color: #58696d;
  margin-top: 24px;
}
.ending {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1b237a;
  padding: 32px;
}
.ending-content {
  max-width: 600px;
  text-align: center;
  background: #11232eed;
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 24px 80px #0005;
}
.ending-art {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecc38d18;
  color: var(--amber);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}
.ending-art svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.ending h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.ending .english-title {
  font-family: Gloock, serif;
  color: var(--amber);
  font-size: 20px;
  margin-top: 12px;
}
.ending-copy {
  font-size: 14px;
  line-height: 1.9;
  color: #cad8d8;
  margin-top: 24px;
}
.memories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 32px;
}
.memories span {
  background: #ffffff0a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #e5d1b1;
}
.ending-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ending small {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 24px;
}
.restart-window {
  padding: 32px;
  background: var(--panel);
  border-radius: 16px;
  max-width: 420px;
  box-shadow: 0 16px 48px #0004;
}
.restart-window h2 {
  font-size: 24px;
  font-weight: 500;
}
.restart-window p {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 24px;
  line-height: 1.8;
}
.restart-actions {
  display: flex;
  gap: 12px;
}
.error-message {
  position: absolute;
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  z-index: 20;
  background: #f2debd;
  color: #26363b;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  max-width: 90%;
}
.footer-note {
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--ink);
  color: #a7bcbe;
  font-size: 12px;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hint-pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px #0005;
  }
  50% {
    box-shadow: 0 0 0 14px #ecc38d33;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1500px) {
  .bottom-zone {
    bottom: 40px;
  }
  .dialogue {
    padding: 28px 32px;
  }
  .scene-art {
    object-position: center 48%;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding: 0 24px;
    height: 72px;
  }
  .bottom-zone {
    left: 24px;
    right: 24px;
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .utility-right {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
  }
  .dialogue {
    grid-column: 2;
  }
  .scene-note {
    left: 24px;
  }
  .objective {
    right: 24px;
  }
  .route {
    gap: 8px;
  }
  .route-line {
    width: 16px;
  }
  .hotspots {
    bottom: 280px;
  }
  .hotspot-label {
    font-size: 12px;
  }
  .intro h1 {
    font-size: 60px;
  }
  .intro-description {
    max-width: 340px;
  }
}
@media (max-width: 700px) {
  .shell {
    height: 100svh;
    min-height: 680px;
    overflow: visible;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .wordmark {
    font-size: 20px;
    gap: 8px;
  }
  .wordmark svg {
    width: 24px;
    height: 24px;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .icon-button {
    width: 36px;
    height: 36px;
  }
  .route {
    position: absolute;
    top: 81px;
    left: 16px;
    z-index: 4;
    gap: 8px;
  }
  .route-line {
    width: 16px;
  }
  .route .route-place {
    font-size: 12px;
    gap: 6px;
  }
  .scene-note {
    top: 56px;
    left: 16px;
    gap: 8px;
  }
  .scene-note .location {
    font-size: 12px;
  }
  .scene-note .time {
    padding-left: 8px;
    font-size: 12px;
  }
  .objective {
    top: 14px;
    right: 16px;
    max-width: 140px;
    padding: 8px;
    font-size: 12px;
    gap: 6px;
    background: #101b23e6;
  }
  .objective svg {
    width: 14px;
    height: 14px;
  }
  .scene-art {
    object-position: 52% 40%;
  }
  .world[data-scene="cafe"] .scene-art {
    object-position: 65% 40%;
  }
  .world[data-scene="platform"] .scene-art {
    object-position: 60% 40%;
  }
  .intro {
    padding: 80px 24px 96px;
    align-items: center;
    background: linear-gradient(180deg, #08121922, #081219bb 45%, #081219ee);
  }
  .intro h1 {
    font-size: 48px;
    line-height: 1.22;
  }
  .intro .english-title {
    font-size: 20px;
    margin-top: 12px;
  }
  .intro-description {
    font-size: 14px;
    line-height: 1.9;
    margin-top: 24px;
    max-width: 300px;
  }
  .intro-cta {
    gap: 16px;
    margin-top: 24px;
  }
  .intro-hint {
    font-size: 12px;
  }
  .intro-meta {
    left: 24px;
    bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .intro-content {
    align-self: center;
  }
  .intro-cta .primary {
    padding: 16px 24px;
  }
  .hotspots,
  .world[data-scene="platform"] .hotspots {
    top: 70px;
    bottom: 280px;
  }
  .hotspot {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }
  .hotspot-label {
    padding: 4px 8px;
    max-width: 140px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
  .hotspot-label small {
    display: none;
  }
  .pin {
    width: 32px;
    height: 32px;
  }
  .pin:after {
    inset: -4px;
  }
  .bottom-zone {
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .dialogue {
    order: 0;
    width: 100%;
    padding: 20px;
    border-radius: 16px;
  }
  .dialogue-text {
    font-size: 18px;
    line-height: 1.55;
    min-height: 56px;
  }
  .dialogue-header {
    margin-bottom: 8px;
  }
  .speaker-description {
    margin-left: 8px;
  }
  .dialogue-controls {
    margin-top: 12px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .text-button {
    font-size: 12px;
    padding: 8px;
  }
  .dialogue-zh {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 8px;
  }
  .scene-prompt {
    margin-top: 8px;
    font-size: 12px;
  }
  .utility-left,
  .utility-right {
    order: 1;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .utility-right {
    margin-left: auto;
  }
  .utility-button {
    padding: 8px 12px;
    min-height: 40px;
    font-size: 12px;
    border-radius: 8px;
  }
  .utility-button svg {
    width: 16px;
    height: 16px;
  }
  .footer-note {
    height: 24px;
    font-size: 12px;
  }
  .control-spacer {
    display: none;
  }
  .voice-state {
    font-size: 12px;
  }
  .scene-prompt {
    display: none;
  }
  .overlay {
    padding: 12px;
  }
  .music-window {
    max-height: calc(100% - 12px);
  }
  .window-top {
    padding: 16px 16px 0;
  }
  .window-top h2 {
    font-size: 16px;
  }
  .music-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .album-area {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }
  .record {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 0;
  }
  .record-center {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }
  .record-center:after {
    width: 5px;
    height: 5px;
    margin-top: 4px;
  }
  .record-center span:nth-child(2) {
    display: none;
  }
  .album-title {
    font-size: 24px;
  }
  .album-credit {
    font-size: 12px;
    margin-top: 4px;
  }
  .lyrics {
    gap: 4px;
  }
  .lyric {
    padding: 8px 12px;
  }
  .lyric .line-en {
    font-size: 18px;
  }
  .lyric .line-zh {
    font-size: 12px;
    margin-top: 2px;
  }
  .lyrics-hint {
    padding-top: 8px;
  }
  .music-controls {
    padding: 0 16px 20px;
  }
  .playback-controls {
    margin: 16px 0;
    gap: 12px;
  }
  .music-footer {
    padding-top: 16px;
    align-items: center;
    gap: 12px;
  }
  .music-footer p {
    font-size: 12px;
    max-width: 150px;
  }
  .music-footer .primary {
    font-size: 12px;
    padding: 12px;
    gap: 8px;
  }
  .music-footer .primary svg {
    width: 16px;
  }
  .ending {
    padding: 16px;
  }
  .ending-content {
    padding: 32px 24px;
  }
  .ending h1 {
    font-size: 36px;
  }
  .ending-copy {
    font-size: 14px;
  }
  .ending .english-title {
    font-size: 18px;
  }
  .ending-actions .primary {
    font-size: 14px;
    padding: 12px 16px;
  }
  .ending small {
    margin-top: 16px;
  }
  .toast {
    top: 100px;
    font-size: 12px;
    padding: 12px 16px;
  }
  .speaker {
    letter-spacing: 0;
  }
}
@media (max-height: 750px) and (min-width: 701px) {
  .topbar {
    height: 64px;
  }
  .bottom-zone {
    bottom: 16px;
  }
  .dialogue {
    padding: 16px 24px;
  }
  .dialogue-text {
    font-size: 20px;
    min-height: 60px;
  }
  .dialogue-controls {
    margin-top: 12px;
  }
  .scene-prompt {
    display: none;
  }
  .music-grid {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .record {
    width: 180px;
    height: 180px;
  }
  .music-controls {
    padding-bottom: 24px;
  }
  .music-footer {
    padding-top: 16px;
  }
  .playback-controls {
    margin: 16px 0;
  }
  .intro h1 {
    font-size: 60px;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .music-grid {
    gap: 8px;
    padding-bottom: 8px;
  }
  .playback-controls {
    margin: 8px 0;
  }
  .music-footer {
    padding-top: 12px;
  }
  .hotspot {
    width: 120px;
    left: clamp(60px, var(--x), calc(100% - 60px));
  }
  .hotspot-label {
    width: max-content;
    min-width: 80px;
    max-width: 120px;
    white-space: normal;
  }
  .world[data-scene="platform"] .hotspot[data-id="blue"] {
    top: 24%;
  }
  .world[data-scene="platform"] .hotspot[data-id="clock"] {
    top: 55%;
  }
  .world[data-scene="platform"] .hotspot[data-id="left"] {
    top: 80%;
  }
  .world[data-scene="platform"] .hotspot[data-id="right"] {
    top: 80%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .rain-canvas {
    display: none;
  }
}
