:root {
  --bg: #0a100d;
  --bg-soft: #0f1712;
  --paper: #f2eee5;
  --paper-strong: #faf7ef;
  --muted: rgba(235, 238, 229, 0.63);
  --muted-strong: rgba(235, 238, 229, 0.81);
  --faint: rgba(235, 238, 229, 0.43);
  --line: rgba(240, 238, 228, 0.13);
  --line-strong: rgba(240, 238, 228, 0.23);
  --accent: #a8c4b5;
  --accent-rgb: 168, 196, 181;
  --sand: #d8c6a3;
  --danger: #d98b74;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Consolas", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.25, 1.04);
  --shadow-console: 0 35px 90px rgba(0, 0, 0, 0.42), 0 2px 10px rgba(0, 0, 0, 0.18);
  --shell: 1360px;
  --pad: clamp(20px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(var(--accent-rgb), 0.32);
  color: var(--paper-strong);
}

h1, h2, h3, p {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(var(--accent-rgb), 0.32);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--paper);
  color: #0b110d;
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Atmosphere
   -------------------------------------------------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 62% 12%, rgba(62, 83, 62, 0.2), transparent 60%),
    radial-gradient(ellipse 70% 60% at 12% 100%, rgba(57, 70, 61, 0.16), transparent 65%),
    var(--bg);
}

.aurora {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.38;
  background-color: var(--ambient-a, #2f4a39);
  transition: background-color 2.4s var(--ease-out);
  will-change: transform;
}

.aurora--one {
  width: min(66vw, 960px);
  height: min(66vw, 960px);
  left: -22vw;
  top: -25vw;
  animation: drift-one 36s ease-in-out infinite alternate;
}

.aurora--two {
  width: min(52vw, 780px);
  height: min(52vw, 780px);
  right: -14vw;
  bottom: -20vw;
  opacity: 0.27;
  background-color: var(--ambient-b, #6f5339);
  animation: drift-two 42s ease-in-out infinite alternate;
}

.aurora--three {
  width: min(40vw, 620px);
  height: min(40vw, 620px);
  left: 46vw;
  top: 22vh;
  opacity: 0.22;
  background-color: var(--ambient-c, #2f4c52);
  animation: drift-three 46s ease-in-out infinite alternate;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 52% 32%, transparent 0%, rgba(4, 8, 6, 0.06) 40%, rgba(4, 8, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 8, 6, 0.28) 0%, transparent 24%, transparent 72%, rgba(4, 8, 6, 0.5) 100%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.75'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(2) infinite;
}

@keyframes drift-one {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(8%, 7%, 0) scale(1.12); }
}

@keyframes drift-two {
  from { transform: translate3d(2%, 3%, 0) scale(1.04); }
  to { transform: translate3d(-7%, -6%, 0) scale(0.94); }
}

@keyframes drift-three {
  from { transform: translate3d(0, -4%, 0) scale(0.96); }
  to { transform: translate3d(-9%, 9%, 0) scale(1.14); }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-1%, -1%); }
}

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.topbar,
main,
.footer {
  position: relative;
  z-index: 2;
}

.topbar {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 26px var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.025);
  transition: color 1s var(--ease-out), border-color 0.4s ease, transform 0.5s var(--ease-spring);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.04);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.brand__mark svg {
  width: 30px;
  height: 30px;
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__cn {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

.brand__en {
  font-size: 7.5px;
  letter-spacing: 0.22em;
  color: var(--faint);
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pill {
  height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}

.live-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

body[data-session="playing"] .live-pill {
  color: var(--paper);
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.07);
}

body[data-session="playing"] .live-pill__dot {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
  animation: live-pulse 2.8s ease-out infinite;
}

body[data-session="paused"] .live-pill__dot {
  background: var(--sand);
}

body[data-session="ending"] .live-pill__dot {
  background: var(--danger);
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.38); }
  65% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-strong);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-spring);
}

.icon-button:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

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

.volume-control {
  position: relative;
}

.volume-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 220px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(16, 23, 19, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  transform-origin: top right;
  animation: pop-in 0.28s var(--ease-out);
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.volume-pop__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.volume-pop__head output {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.volume-pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.volume-pop__foot span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.mute-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mute-toggle:hover {
  color: var(--paper);
}

.mute-toggle.is-muted {
  color: var(--accent);
}

.ghost-button {
  height: 40px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease-spring);
}

.ghost-button:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.solid-button {
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--paper);
  color: #0c120e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}

.solid-button:hover {
  background: var(--paper-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0;
  transition: color 1s ease, border-color 1s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: clamp(54px, 8.5vh, 98px) var(--pad) clamp(66px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 430px);
  align-items: center;
  gap: clamp(40px, 6.5vw, 100px);
}

.hero__copy {
  min-width: 0;
}

.hero__copy .eyebrow {
  animation: rise-in 0.9s var(--ease-out) both;
}

.hero h1 {
  margin-top: clamp(20px, 3vh, 31px);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(64px, 7.1vw, 106px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  animation: rise-in 1s 0.06s var(--ease-out) both;
}

.hero h1 span {
  display: inline-block;
  color: var(--accent);
  font-size: 0.93em;
  letter-spacing: -0.055em;
  transition: color 1.1s var(--ease-out);
  text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.15);
}

.hero__intro {
  max-width: 470px;
  margin-top: clamp(24px, 3.6vh, 36px);
  color: var(--muted-strong);
  font-size: 14.5px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.95;
  animation: rise-in 1s 0.12s var(--ease-out) both;
}

.hero__facts {
  margin-top: clamp(34px, 5vh, 52px);
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  border-top: 1px solid var(--line);
  animation: rise-in 1s 0.18s var(--ease-out) both;
}

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

.fact + .fact {
  padding-left: clamp(22px, 3vw, 42px);
  border-left: 1px solid var(--line);
}

.fact strong {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fact strong span {
  margin-left: 1px;
  color: var(--muted);
  font-size: 17px;
}

.fact > span:last-child {
  color: var(--muted-strong);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.fact small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.fact__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
  transition: background 1s ease;
}

/* --------------------------------------------------------------------------
   Console
   -------------------------------------------------------------------------- */

.console {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  padding: 21px 23px 19px;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 232, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.02) 58%, rgba(255, 255, 255, 0.042));
  box-shadow: var(--shadow-console), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
  animation: console-in 1.1s 0.2s var(--ease-out) both;
}

.console::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.13);
  filter: blur(55px);
  pointer-events: none;
  transition: background 1.2s ease;
}

.console::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.055), transparent 32%);
  pointer-events: none;
}

.console > * {
  position: relative;
  z-index: 1;
}

.console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.console__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.console__kicker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transition: background 1s ease;
}

.console__status {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

body[data-session="playing"] .console__status {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.07);
}

body[data-session="paused"] .console__status {
  color: var(--sand);
  border-color: rgba(216, 198, 163, 0.25);
}

body[data-session="ending"] .console__status {
  color: var(--danger);
  border-color: rgba(217, 139, 116, 0.3);
}

.console.is-fading .console__status {
  color: var(--danger);
  border-color: rgba(217, 139, 116, 0.3);
  background: rgba(217, 139, 116, 0.06);
}

.dial-wrap {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 12px auto 7px;
}

.dial {
  position: absolute;
  inset: 0;
}

.dial__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.dial__track,
.dial__inner-line,
.dial__progress {
  fill: none;
}

.dial__track {
  stroke: rgba(241, 238, 228, 0.11);
  stroke-width: 1;
}

.dial__inner-line {
  stroke: rgba(241, 238, 228, 0.06);
  stroke-width: 0.7;
  stroke-dasharray: 0.8 4.6;
}

.dial__progress {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.55));
  transition: stroke 1.1s ease, stroke-dashoffset 0.4s linear;
}

.dial__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
  text-align: center;
}

.dial__caption {
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

.dial__time {
  margin-top: 6px;
  color: var(--paper-strong);
  font-family: var(--font-serif);
  font-size: clamp(45px, 4.2vw, 57px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

body[data-session="ending"] .dial__time {
  color: var(--danger);
}

.dial__sub {
  min-height: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.play-button {
  position: relative;
  height: 45px;
  margin-top: 17px;
  padding: 0 21px 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  background: var(--paper);
  color: #0b110d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background 0.5s var(--ease-out), color 0.4s ease, transform 0.45s var(--ease-spring), box-shadow 0.4s ease;
  -webkit-user-select: none;
  user-select: none;
}

.play-button:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36), 0 0 40px rgba(var(--accent-rgb), 0.16);
}

.play-button:active {
  transform: translateY(0) scale(0.975);
}

.play-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.play-button__icon {
  position: relative;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.play-button__icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.play-button .icon-play {
  opacity: 1;
  transform: scale(1);
}

.play-button .icon-pause {
  opacity: 0;
  transform: scale(0.7);
}

body[data-session="playing"] .play-button {
  background: var(--accent);
  color: #0c130f;
  border-color: rgba(255, 255, 255, 0.2);
}

body[data-session="playing"] .play-button .icon-play {
  opacity: 0;
  transform: scale(0.7);
}

body[data-session="playing"] .play-button .icon-pause {
  opacity: 1;
  transform: scale(1);
}

body[data-session="loading"] .play-button .icon-play {
  opacity: 0;
}

body[data-session="loading"] .play-button::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 18px;
  border: 1.5px solid rgba(11, 17, 13, 0.25);
  border-top-color: #0b110d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.play-button__ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(10, 15, 12, 0.18);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  opacity: 0;
}

.play-button.is-rippling .play-button__ripple {
  animation: ripple 0.7s var(--ease-out);
}

@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

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

.dial-pulse {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

body[data-session="playing"] .dial-pulse--one {
  animation: dial-breathe 6s ease-out infinite;
}

body[data-session="playing"] .dial-pulse--two {
  animation: dial-breathe 6s 1.8s ease-out infinite;
}

@keyframes dial-breathe {
  0% { opacity: 0; transform: scale(0.96); }
  25% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.12); }
}

.duration-block {
  margin-top: 9px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.block-head small {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.duration-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.duration-chip {
  height: 43px;
  padding: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.4s var(--ease-out), transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.duration-chip span {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1;
}

.duration-chip small {
  font-size: 8px;
  opacity: 0.65;
}

.duration-chip:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.duration-chip.is-active {
  color: #0b110d;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-1px);
}

.duration-chip.is-active small {
  opacity: 0.72;
}

.layer-readout {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.layer-readout__label {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.layer-names {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-height: 38px;
  overflow: hidden;
}

.layer-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-size: 8.5px;
  white-space: nowrap;
  animation: chip-in 0.35s var(--ease-out) both;
}

.layer-name i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chip, var(--accent));
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(3px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.layer-count {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Sounds
   -------------------------------------------------------------------------- */

.sounds {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 8vh, 92px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 80px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 18px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head__side {
  width: min(100%, 430px);
  padding-bottom: 4px;
}

.section-head__side > p {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.presets > span {
  margin-right: 3px;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.preset {
  height: 27px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease-spring);
}

.preset:hover {
  color: var(--paper);
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.07);
  transform: translateY(-1px);
}

.sound-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 32px;
}

body[data-session="loading"] .sound-grid,
body[data-session="loading"] .duration-options,
body[data-session="loading"] .presets,
body[data-session="ending"] .sound-grid,
body[data-session="ending"] .duration-options,
body[data-session="ending"] .presets {
  pointer-events: none;
}

.sound-card {
  position: relative;
  min-height: 204px;
  padding: 15px 16px 13px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01) 60%);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.4s ease,
    background 0.5s ease,
    box-shadow 0.5s ease;
}

.sound-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 150px;
  right: -68px;
  top: -75px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.18);
  filter: blur(42px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.sound-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.55), transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.sound-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 241, 232, 0.19);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 60%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.sound-card.is-active {
  border-color: rgba(var(--accent-rgb), 0.46);
  background:
    linear-gradient(150deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.035) 55%, rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.13);
}

.sound-card.is-active::before {
  opacity: 1;
}

.sound-card.is-active::after {
  opacity: 1;
}

.sound-card.is-nudged {
  animation: card-nudge 0.4s var(--ease-out);
}

@keyframes card-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

.sound-card__toggle {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sound-card__toggle:focus-visible {
  outline-offset: 6px;
  border-radius: 8px;
}

.sound-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
}

.sound-card__index {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.sound-card__equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sound-card__equalizer i {
  width: 1.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
}

.sound-card.is-active .sound-card__equalizer {
  opacity: 1;
  transform: translateY(0);
}

body[data-session="playing"] .sound-card.is-active .sound-card__equalizer i {
  animation: equalize 1.15s ease-in-out infinite alternate;
}

body[data-session="playing"] .sound-card.is-active .sound-card__equalizer i:nth-child(2) {
  animation-delay: -0.5s;
  animation-duration: 0.85s;
}

body[data-session="playing"] .sound-card.is-active .sound-card__equalizer i:nth-child(3) {
  animation-delay: -0.22s;
  animation-duration: 1.3s;
}

body[data-session="playing"] .sound-card.is-active .sound-card__equalizer i:nth-child(4) {
  animation-delay: -0.7s;
  animation-duration: 0.95s;
}

@keyframes equalize {
  0% { height: 3px; opacity: 0.55; }
  100% { height: 10px; opacity: 1; }
}

.sound-card__mark {
  position: relative;
  width: 25px;
  height: 25px;
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s ease, background 0.4s var(--ease-out), border-color 0.4s ease, transform 0.5s var(--ease-spring);
}

.sound-card:hover .sound-card__mark {
  border-color: var(--line-strong);
  color: var(--paper);
}

.sound-card.is-active .sound-card__mark {
  color: #0c130f;
  border-color: var(--accent);
  background: var(--accent);
  transform: rotate(90deg);
}

.sound-card__mark svg {
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.28s ease, transform 0.45s var(--ease-out);
}

.mark-check {
  opacity: 0;
  transform: scale(0.55) rotate(-20deg);
}

.sound-card.is-active .mark-plus {
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
}

.sound-card.is-active .mark-check {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.sound-card__main {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
}

.sound-card__icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--accent-rgb), 0.17);
  border-radius: 50%;
  color: var(--muted-strong);
  background: rgba(var(--accent-rgb), 0.055);
  transition: color 0.4s ease, background 0.5s ease, box-shadow 0.5s ease, transform 0.55s var(--ease-spring);
}

.sound-card__icon .icon {
  width: 22px;
  height: 22px;
}

.sound-card:hover .sound-card__icon {
  transform: rotate(-4deg) scale(1.045);
}

.sound-card.is-active .sound-card__icon {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.1);
}

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

.sound-card__title .cn {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--paper);
}

.sound-card__title .en {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-card__modes {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 13px;
  padding: 2px;
  display: flex;
  gap: 2px;
  border: 1px solid rgba(240, 238, 228, 0.08);
  border-radius: 99px;
  background: rgba(3, 8, 5, 0.24);
  transition: border-color 0.4s ease, background 0.4s ease;
}

.sound-card:hover .sound-card__modes,
.sound-card.is-active .sound-card__modes {
  border-color: rgba(var(--accent-rgb), 0.17);
  background: rgba(3, 8, 5, 0.38);
}

.mode-chip {
  position: relative;
  flex: 1 1 0;
  height: 24px;
  padding: 0 4px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.3s var(--ease-spring);
}

.mode-chip:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.055);
}

.mode-chip:active {
  transform: scale(0.94);
}

.mode-chip:focus-visible {
  outline-offset: 1px;
}

.mode-chip.is-active {
  color: var(--paper-strong);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22);
}

.sound-card.is-active .mode-chip.is-active {
  color: #0b120e;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.2);
}

.sound-card__volume {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  opacity: 0.48;
  transition: opacity 0.35s ease;
}

.sound-card:hover .sound-card__volume,
.sound-card.is-active .sound-card__volume,
.sound-card:focus-within .sound-card__volume {
  opacity: 1;
}

.volume-value {
  width: 18px;
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Range inputs
   -------------------------------------------------------------------------- */

.range {
  --fill: 50%;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 var(--fill),
    rgba(241, 238, 228, 0.16) var(--fill) 100%
  );
}

.range::-moz-range-track {
  height: 2px;
  border-radius: 99px;
  background: rgba(241, 238, 228, 0.16);
}

.range::-moz-range-progress {
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.range::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -3.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-spring);
}

.range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-spring);
}

.range:hover::-webkit-slider-thumb,
.range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
  transform: scale(1.2);
}

.range:hover::-moz-range-thumb,
.range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
  transform: scale(1.2);
}

.range:focus-visible {
  outline: none;
}

.range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.range--master::-webkit-slider-runnable-track,
.range--master::-moz-range-track {
  background: rgba(241, 238, 228, 0.17);
}

.range--master::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), rgba(241, 238, 228, 0.17) var(--fill) 100%);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding: 26px var(--pad) calc(34px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.footer__brand {
  color: var(--muted-strong);
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.12em;
}

.footer__brand span {
  margin-left: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.footer p {
  margin: 0;
}

.footer__hint {
  text-align: right;
}

.footer__legal,
.text-link {
  color: var(--muted-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.28);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer__legal:hover,
.text-link:hover {
  color: var(--paper-strong);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Legal page
   -------------------------------------------------------------------------- */

.legal-main {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(58px, 9vh, 100px) var(--pad) clamp(64px, 9vh, 96px);
}

.legal-hero h1 {
  margin-top: 20px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(52px, 7.4vw, 88px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.legal-hero h1 span {
  color: var(--accent);
}

.legal-lead {
  max-width: 610px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.01em;
}

.legal-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.07em;
}

.legal-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-toc {
  margin-top: 40px;
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-toc a {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease-spring);
}

.legal-toc a:hover {
  color: var(--paper);
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-1px);
}

.legal-content {
  max-width: 790px;
}

.legal-section {
  position: relative;
  padding: 40px 0 36px 56px;
  border-bottom: 1px solid var(--line);
}

.legal-section__index {
  position: absolute;
  top: 48px;
  left: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.legal-section h2 {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.legal-section p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.01em;
}

.legal-section p + p {
  margin-top: 11px;
}

.legal-section ul {
  margin: 17px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.9;
}

.legal-section li::before {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 0;
  width: 5px;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.legal-back {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.legal-back .solid-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.legal-back > span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Dialog
   -------------------------------------------------------------------------- */

.about-dialog {
  width: min(760px, calc(100vw - 36px));
  max-height: min(88vh, 860px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(var(--accent-rgb), 0.1), transparent 40%),
    #0e1511;
  color: var(--paper);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.about-dialog[open] {
  animation: dialog-in 0.55s var(--ease-out) both;
}

.about-dialog::backdrop {
  background: rgba(3, 7, 5, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: backdrop-in 0.4s ease both;
}

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

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

.about-dialog__inner {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
}

.dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.45s var(--ease-spring);
}

.dialog-close:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  transform: rotate(90deg);
}

.dialog-close .icon {
  width: 17px;
  height: 17px;
}

.about-dialog h2 {
  margin-top: 23px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.about-dialog__lead {
  max-width: 580px;
  margin-top: 24px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.95;
}

.about-dialog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 34px;
  margin-top: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-dialog__grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about-dialog__grid p {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.85;
}

.about-dialog__note {
  margin-top: 20px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.8;
}

.connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.connect-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.connect-card__copy > span {
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.connect-card__copy strong {
  overflow: hidden;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect-card__copy small {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.6;
}

.connect-card .ghost-button {
  height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  font-size: 10px;
}

.connect-card .ghost-button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.about-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.about-dialog__footer .ghost-button {
  height: 42px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(92vw, 460px);
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(17, 25, 20, 0.93);
  color: var(--paper);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

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

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 100;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #101712;
  color: var(--paper);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Entrance
   -------------------------------------------------------------------------- */

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

@keyframes console-in {
  from { opacity: 0; transform: translateY(28px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 400px);
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(60px, 7vw, 88px);
  }

  .sound-card {
    min-height: 198px;
  }
}

@media (max-width: 1080px) {
  .sound-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sound-card {
    min-height: 192px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: clamp(46px, 7vh, 72px);
  }

  .hero__copy {
    max-width: 690px;
  }

  .hero h1 {
    font-size: clamp(62px, 11vw, 94px);
  }

  .console {
    justify-self: center;
    max-width: 500px;
  }

  .dial-wrap {
    width: min(100%, 300px);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .section-head__side {
    width: 100%;
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
  }

  .section-head__side > p {
    max-width: 480px;
  }

  .presets {
    margin-top: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 20px;
  }

  .topbar {
    padding-top: 18px;
  }

  .brand__mark {
    width: 39px;
    height: 39px;
  }

  .brand__mark svg {
    width: 27px;
    height: 27px;
  }

  .brand__cn {
    font-size: 22px;
  }

  .brand__en {
    font-size: 6.5px;
  }

  .live-pill {
    display: none;
  }

  .ghost-button {
    height: 38px;
    padding: 0 13px;
    font-size: 10px;
  }

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

  .hero {
    padding-top: 42px;
    padding-bottom: 58px;
    gap: 38px;
  }

  .eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  .eyebrow > span {
    width: 23px;
    height: 23px;
    font-size: 7px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(49px, 14.2vw, 74px);
    letter-spacing: -0.05em;
  }

  .hero h1 span {
    font-size: 0.9em;
  }

  .hero__intro {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.9;
  }

  .hero__facts {
    margin-top: 32px;
    padding-top: 20px;
    gap: 18px;
    flex-wrap: wrap;
  }

  .fact {
    gap: 9px;
  }

  .fact + .fact {
    padding-left: 18px;
  }

  .fact strong {
    font-size: 26px;
  }

  .fact strong span {
    font-size: 14px;
  }

  .fact > span:last-child {
    font-size: 9px;
    white-space: normal;
  }

  .fact--note {
    width: 100%;
    padding-left: 0 !important;
    padding-top: 14px;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }

  .console {
    padding: 17px 16px 15px;
    border-radius: 24px;
  }

  .console__head {
    padding: 0 2px;
  }

  .console__kicker {
    font-size: 7px;
  }

  .dial-wrap {
    width: min(100%, 264px);
    margin-top: 10px;
  }

  .dial__time {
    font-size: 47px;
  }

  .play-button {
    height: 43px;
    margin-top: 14px;
  }

  .duration-block {
    margin-top: 7px;
    padding-top: 11px;
  }

  .duration-options {
    gap: 4px;
  }

  .duration-chip {
    height: 41px;
    border-radius: 10px;
  }

  .duration-chip span {
    font-size: 14px;
  }

  .layer-readout {
    margin-top: 9px;
    padding-top: 9px;
  }

  .sounds {
    padding-bottom: 60px;
  }

  .section-head {
    padding-top: 26px;
    gap: 18px;
  }

  .section-head h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .section-head__side {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .section-head__side > p {
    font-size: 10.5px;
  }

  .presets {
    justify-content: flex-start;
  }

  .sound-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 24px;
  }

  .sound-card {
    min-height: 188px;
    padding: 12px 11px 11px;
    border-radius: 16px;
  }

  .sound-card::after {
    left: 12px;
    right: 12px;
  }

  .sound-card__main {
    gap: 10px;
    margin-top: 14px;
  }

  .sound-card__icon {
    width: 35px;
    height: 35px;
  }

  .sound-card__icon .icon {
    width: 20px;
    height: 20px;
  }

  .sound-card__title .cn {
    font-size: 20px;
  }

  .sound-card__title .en {
    font-size: 6px;
  }

  .sound-card__mark {
    width: 23px;
    height: 23px;
  }

  .sound-card__modes {
    margin-top: 11px;
  }

  .mode-chip {
    height: 28px;
    padding: 0 2px;
    font-size: 9px;
    line-height: 28px;
    letter-spacing: 0.02em;
  }

  .sound-card__volume {
    gap: 6px;
    padding-top: 12px;
    opacity: 0.7;
  }

  .volume-value {
    font-size: 7px;
  }

  .footer {
    padding-top: 22px;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 8.5px;
    line-height: 1.7;
  }

  .footer__hint {
    width: 100%;
    text-align: left;
  }

  .legal-main {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .legal-hero h1 {
    margin-top: 18px;
    font-size: clamp(45px, 12.4vw, 62px);
  }

  .legal-lead {
    margin-top: 22px;
    font-size: 12.5px;
  }

  .legal-meta {
    flex-wrap: wrap;
    gap: 7px;
    line-height: 1.8;
  }

  .legal-toc {
    margin-top: 30px;
    padding: 12px 0;
  }

  .legal-section {
    padding: 29px 0 26px;
  }

  .legal-section__index {
    position: static;
    display: block;
    margin-bottom: 7px;
  }

  .legal-section h2 {
    font-size: 25px;
  }

  .legal-section p {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.95;
  }

  .legal-section li {
    font-size: 12px;
    line-height: 1.85;
  }

  .legal-back {
    margin-top: 38px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .about-dialog {
    width: calc(100vw - 24px);
    max-height: 90vh;
    border-radius: 22px;
  }

  .about-dialog__inner {
    padding: 28px 22px 26px;
  }

  .dialog-close {
    top: 14px;
    right: 14px;
  }

  .about-dialog h2 {
    font-size: 34px;
  }

  .about-dialog__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 0;
  }

  .connect-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .connect-card .ghost-button {
    width: 100%;
  }

  .about-dialog__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .about-dialog__footer .solid-button,
  .about-dialog__footer .ghost-button {
    width: 100%;
  }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
    font-size: 10px;
    padding: 10px 15px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 48px;
  }

  .sound-card {
    min-height: 183px;
  }

  .mode-chip {
    font-size: 8px;
  }

  .sound-card__title .cn {
    font-size: 18px;
  }

  .sound-card__icon {
    width: 32px;
    height: 32px;
  }

  .sound-card__icon .icon {
    width: 18px;
    height: 18px;
  }

  .sound-card__main {
    gap: 8px;
  }

  .duration-chip small {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .grain {
    animation: none;
  }
}