:root {
  --bg: #030008;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --purple: #a855f7;
  --cyan: #22d3ee;
  --pink: #fb7185;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.stage-canvas, .intro-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-canvas { z-index: -4; background: transparent; }
.site-slideshow {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
  background: #030008;
}
.site-slideshow span {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(1.05) contrast(1.04);
  animation: siteBgFade 28s infinite;
}
.site-slideshow span::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(124,58,237,.32), transparent 34%),
    linear-gradient(90deg, rgba(3,0,8,.62), rgba(3,0,8,.36), rgba(3,0,8,.7));
}
.site-slideshow span:nth-child(2) { animation-delay: 7s; }
.site-slideshow span:nth-child(3) { animation-delay: 14s; }
.site-slideshow span:nth-child(4) { animation-delay: 21s; }
@keyframes siteBgFade {
  0%, 100% { opacity: 0; }
  9%, 27% { opacity: .72; }
  36% { opacity: 0; }
}
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .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='.7' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora { position: fixed; z-index: -3; pointer-events: none; border-radius: 999px; filter: blur(110px); opacity: .34; }
.aurora--one { width: 45vw; height: 45vw; left: -12vw; top: -12vw; background: #7c3aed; }
.aurora--two { width: 52vw; height: 52vw; right: -18vw; bottom: -18vw; background: #0ea5e9; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .9s ease, transform .9s ease, visibility .9s ease;
}
.intro.is-hidden { opacity: 0; transform: scale(1.05); visibility: hidden; pointer-events: none; }
.intro__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0 48%, rgba(168,85,247,.22) 50%, transparent 52% 100%);
  animation: scan 2.8s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.intro__content { position: relative; z-index: 2; text-align: center; padding: 24px; }
.intro__eyebrow {
  color: #c084fc;
  letter-spacing: .55em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 24px;
}
.intro__title {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: .08em;
  font-size: clamp(42px, 8.8vw, 132px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: .08em;
}
.intro__title span {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(18px);
  background: linear-gradient(#fff, rgba(255,255,255,.32));
  -webkit-background-clip: text;
  color: transparent;
  animation: letterIn .75s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro__title i { width: .25em; }
.intro__title span:nth-child(1){ animation-delay: .12s; }
.intro__title span:nth-child(2){ animation-delay: .2s; }
.intro__title span:nth-child(3){ animation-delay: .28s; }
.intro__title span:nth-child(4){ animation-delay: .36s; }
.intro__title span:nth-child(6){ animation-delay: .52s; }
.intro__title span:nth-child(7){ animation-delay: .6s; }
.intro__title span:nth-child(8){ animation-delay: .68s; }
.intro__title span:nth-child(9){ animation-delay: .76s; }
.intro__title span:nth-child(10){ animation-delay: .84s; }
.intro__title span:nth-child(11){ animation-delay: .92s; }
@keyframes letterIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.intro__jp {
  margin-top: 22px;
  font-size: clamp(24px, 4vw, 54px);
  color: rgba(255,255,255,.72);
  letter-spacing: .35em;
  font-weight: 900;
}
.intro__button {
  margin-top: 36px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.intro__button:hover { transform: translateY(-2px); border-color: rgba(168,85,247,.8); background: rgba(168,85,247,.18); }
.intro__button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
  background: linear-gradient(to bottom, rgba(3,0,8,.72), transparent);
}
.nav.scrolled { background: rgba(3,0,8,.72); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .16em; font-size: 14px; }
.nav__brand span { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 24px var(--purple); }
.nav__brand em { font-style: normal; font-size: 10px; color: rgba(255,255,255,.45); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; letter-spacing: .1em; }
.nav__links { display: flex; gap: 28px; color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.nav__links a:hover { color: white; }

.section { position: relative; padding: 116px clamp(18px, 5vw, 72px); }
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 28px;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-slideshow span {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(1.08) contrast(1.06);
  animation: heroFade 24s infinite;
}
.hero-slideshow span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,0,8,.58), rgba(3,0,8,.38)), rgba(3,0,8,.26);
}
.hero-slideshow span:nth-child(2) { animation-delay: 6s; }
.hero-slideshow span:nth-child(3) { animation-delay: 12s; }
.hero-slideshow span:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade {
  0%, 100% { opacity: 0; }
  8%, 25% { opacity: .72; }
  33% { opacity: 0; }
}
.hero__content { max-width: 900px; }
.hero__kicker, .section-heading p {
  margin: 0 0 16px;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 12px;
  font-weight: 800;
}
.hero__title { margin: 0; line-height: .92; letter-spacing: 0; }
.hero__title span {
  display: block;
  font-family: "Noto Sans SC", "Noto Sans JP", Inter, sans-serif;
  font-size: clamp(58px, 12vw, 168px);
  font-weight: 950;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.2) 100%);
  -webkit-background-clip: text;
  color: transparent;
}
.hero__title strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(32px, 5.4vw, 80px);
  font-weight: 900;
  color: rgba(255,255,255,.82);
}
.hero__copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
}
.button--primary { background: linear-gradient(135deg, #7c3aed, #06b6d4); box-shadow: 0 20px 60px rgba(124,58,237,.32); }
.button--ghost { background: rgba(255,255,255,.05); backdrop-filter: blur(16px); color: rgba(255,255,255,.78); }

.hero__orb {
  min-height: 520px;
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero__orb:hover .orb-core,
.hero__orb:focus-visible .orb-core {
  transform: scale(1.035);
  box-shadow: 0 0 110px rgba(168,85,247,.52), inset 0 0 76px rgba(255,255,255,.22);
}
.hero__orb:focus-visible { outline: 2px solid rgba(34,211,238,.8); outline-offset: 8px; border-radius: 32px; }
.hero__orb.is-speaking .orb-ring--one { animation-duration: 4.6s; border-top-color: #fff; }
.hero__orb.is-speaking .orb-ring--two { animation-duration: 3.4s; border-right-color: #c084fc; }
.hero__orb.is-speaking .orb-core { animation: voicePulse .72s ease-in-out infinite; }
.hero__orb.is-thinking .orb-core {
  box-shadow: 0 0 120px rgba(34,211,238,.5), inset 0 0 88px rgba(255,255,255,.2);
  animation: voicePulse 1.35s ease-in-out infinite;
}
.orb-ring {
  position: absolute;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
}
.orb-ring--one { animation: spin 18s linear infinite; border-top-color: #c084fc; box-shadow: inset 0 0 50px rgba(168,85,247,.12); }
.orb-ring--two { width: min(36vw, 400px); animation: spin 12s linear infinite reverse; border-right-color: #22d3ee; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-core {
  width: min(30vw, 320px);
  min-width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.95), rgba(168,85,247,.3) 32%, rgba(14,165,233,.18) 60%, rgba(255,255,255,.03) 100%);
  box-shadow: 0 0 80px rgba(168,85,247,.35), inset 0 0 70px rgba(255,255,255,.18);
  transition: transform .22s ease, box-shadow .22s ease;
}
.wave-bars { height: 68px; display: flex; gap: 8px; align-items: center; }
.wave-bars i, .signal i {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(#fff, #c084fc);
  animation: wave 1.1s ease-in-out infinite;
}
.wave-bars i:nth-child(2), .signal i:nth-child(2) { animation-delay: .1s; }
.wave-bars i:nth-child(3), .signal i:nth-child(3) { animation-delay: .2s; }
.wave-bars i:nth-child(4), .signal i:nth-child(4) { animation-delay: .3s; }
.wave-bars i:nth-child(5), .signal i:nth-child(5) { animation-delay: .4s; }
.wave-bars i:nth-child(6), .signal i:nth-child(6) { animation-delay: .5s; }
@keyframes wave { 0%,100% { height: 18px; opacity: .55; } 50% { height: 68px; opacity: 1; } }
@keyframes voicePulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.055); filter: saturate(1.28); }
}

.ai-companion {
  position: fixed;
  z-index: 80;
  right: clamp(18px, 5vw, 72px);
  bottom: 92px;
  width: min(420px, calc(100vw - 36px));
  max-height: min(620px, calc(100vh - 140px));
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: rgba(5,2,14,.78);
  backdrop-filter: blur(24px);
  box-shadow: 0 34px 110px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.ai-companion__toggle {
  position: fixed;
  right: clamp(18px, 5vw, 72px);
  bottom: 36px;
  z-index: 81;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 28%, rgba(34,211,238,.95), rgba(124,58,237,.82) 58%, rgba(10,6,25,.95));
  box-shadow: 0 20px 70px rgba(34,211,238,.26);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  font-weight: 900;
  letter-spacing: 0;
}
.ai-companion__toggle.is-speaking {
  animation: voicePulse .72s ease-in-out infinite;
}
.ai-companion.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ai-companion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ai-companion__header span {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}
.ai-companion__header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.ai-companion__header button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.ai-companion__messages {
  overflow-y: auto;
  padding: 16px 18px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.ai-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.65;
  font-size: 14px;
}
.ai-message p { margin: 0; }
.ai-message--assistant {
  justify-self: start;
  border: 1px solid rgba(216,180,254,.2);
  background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.08));
  color: rgba(255,255,255,.88);
}
.ai-message--user {
  justify-self: end;
  background: rgba(255,255,255,.1);
  color: white;
}
.ai-companion__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}
.ai-companion__quick button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 12px;
}
.ai-companion__voice {
  display: grid;
  gap: 10px;
  padding: 0 18px 12px;
}
.ai-companion__download,
.ai-companion__voice-row button,
.ai-companion__voice-row input {
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  color: white;
  background: rgba(255,255,255,.06);
}
.ai-companion__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(14,165,233,.84));
}
.ai-companion__voice-hint {
  margin: -4px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  line-height: 1.6;
}
.ai-companion__voice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.ai-companion__voice-row input {
  min-width: 0;
  padding: 0 13px;
  outline: none;
}
.ai-companion__voice-row button {
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}
.ai-companion__voice-note {
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  line-height: 1.5;
}
.ai-companion__voice-advanced {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: 8px 10px 10px;
}
.ai-companion__voice-advanced summary {
  cursor: pointer;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}
.ai-companion__voice-advanced summary::-webkit-details-marker { display: none; }
.ai-companion__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 18px 14px;
}
.ai-companion__form input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  padding: 0 13px;
  color: white;
  background: rgba(255,255,255,.07);
  outline: none;
}
.ai-companion__form input:focus {
  border-color: rgba(34,211,238,.6);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
.ai-companion__form button {
  height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(14,165,233,.84));
  cursor: pointer;
  font-weight: 900;
}
.ai-companion__notice {
  margin: 0;
  padding: 0 18px 16px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  line-height: 1.5;
}
.ai-companion__notice.is-error { color: #fca5a5; }
.ai-companion__notice.is-busy { color: #67e8f9; }

.kana-stream { position: absolute; inset: 100px 0 auto; display: flex; justify-content: space-around; color: rgba(255,255,255,.07); font-weight: 900; font-size: clamp(34px, 8vw, 120px); pointer-events: none; white-space: nowrap; }
.kana-stream span { animation: drift 8s ease-in-out infinite alternate; }
.kana-stream span:nth-child(even) { animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translateY(40px) translateX(18px); } }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.38); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue b { width: 1px; height: 52px; background: linear-gradient(to bottom, white, transparent); animation: cue 1.5s ease infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.audio-lab { padding-top: 60px; }
.audio-stage {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 62% 44%, rgba(168,85,247,.18), transparent 36%),
    radial-gradient(circle at 32% 70%, rgba(34,211,238,.1), transparent 34%),
    rgba(255,255,255,.035);
  box-shadow: 0 40px 110px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.audio-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 22% 72%, rgba(168,85,247,.08));
  mix-blend-mode: screen;
}
#planet-audio-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.audio-panel {
  position: absolute;
  left: 24px;
  top: 24px;
  width: min(380px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(4,2,12,.6);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.audio-panel__tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(168,85,247,.16);
  color: #d8b4fe;
  border: 1px solid rgba(216,180,254,.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.audio-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.audio-panel p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  font-size: 14px;
}
.audio-playlist {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.audio-track {
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(216,180,254,.24);
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  text-align: left;
  color: white;
  background:
    linear-gradient(135deg, rgba(168,85,247,.26), rgba(34,211,238,.14)),
    rgba(255,255,255,.055);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px rgba(124,58,237,.14);
}
.audio-track:hover,
.audio-track.is-playing {
  border-color: rgba(216,180,254,.55);
  box-shadow: 0 0 28px rgba(168,85,247,.22), inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateY(-1px);
}
.audio-track b {
  grid-column: 1;
  font-size: 15px;
  letter-spacing: .06em;
}
.audio-track span {
  grid-column: 1;
  color: rgba(255,255,255,.56);
  font-size: 12px;
}
.audio-track small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.audio-track.is-playing small {
  color: #0b1020;
  background: #67e8f9;
  border-color: transparent;
}
.audio-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.audio-controls button,
.audio-file span {
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, rgba(124,58,237,.92), rgba(14,165,233,.78));
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
}
.audio-controls button:nth-child(3) { background: linear-gradient(135deg, rgba(20,184,166,.88), rgba(34,211,238,.78)); }
.audio-controls button:nth-child(4) { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); }
.audio-controls button:nth-child(5) {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
}
.audio-file input { display: none; }
.audio-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.audio-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
}
.audio-status i.active {
  background: #22c55e;
  box-shadow: 0 0 18px #22c55e;
}
.audio-scene {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.audio-scene b {
  color: rgba(255,255,255,.42);
  font-size: 11px;
}
.audio-scene span {
  color: #d8b4fe;
  font-weight: 900;
  text-align: right;
  text-shadow: 0 0 18px rgba(216,180,254,.28);
}
.audio-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.audio-meter span {
  height: 6px;
  width: 0%;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  box-shadow: 0 0 14px rgba(34,211,238,.34);
}

.section-heading { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 70px); line-height: 1.05; letter-spacing: 0; }
.profile-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 22px; }
.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.28);
}
.profile-main { padding: clamp(26px, 5vw, 58px); }
.profile-main h3 { margin: 0; font-size: clamp(34px, 5vw, 64px); }
.roman { color: #c084fc; letter-spacing: .12em; font-weight: 800; }
.profile-main p:not(.roman) { color: var(--muted); line-height: 1.8; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts span { color: rgba(255,255,255,.82); }
.facts b { display: block; color: rgba(255,255,255,.38); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 5px; }
.profile-side { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; padding: 32px; background: linear-gradient(145deg, rgba(124,58,237,.26), rgba(14,165,233,.11)); }
.signal { height: 90px; display: flex; gap: 9px; align-items: center; margin-bottom: 26px; }
.profile-side h3 { margin: 0; letter-spacing: .2em; }
.profile-side p { color: rgba(255,255,255,.5); }

.works { background: rgba(0,0,0,.34); border-block: 1px solid var(--line); }
.timeline { max-width: 960px; margin: 0 auto; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.22), transparent); }
.timeline-card {
  width: calc(50% - 34px);
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
}
.timeline-card:nth-child(even) { margin-left: calc(50% + 34px); }
.timeline-card::before { content: ""; position: absolute; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 24px #c084fc; }
.timeline-card:nth-child(odd)::before { right: -42px; }
.timeline-card:nth-child(even)::before { left: -42px; }
.timeline-card time { color: #22d3ee; font-weight: 900; }
.timeline-card h3 { margin: 12px 0 6px; font-size: 22px; }
.timeline-card p { margin: 0; color: var(--muted); }
.timeline-card span { display: inline-flex; margin-top: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: #c084fc; font-size: 12px; }

.gallery-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1800px; }
.tilt-card {
  height: 410px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  transform-style: preserve-3d;
  transition: transform .18s ease, border-color .18s ease;
}
.tilt-card:hover { border-color: rgba(255,255,255,.34); }
.tilt-card__image { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .78; filter: saturate(1.08) contrast(1.05); transform: scale(1.04); transition: transform .7s ease, opacity .7s ease; }
.tilt-card:hover .tilt-card__image { transform: scale(1.14); opacity: .9; }
.image-one { background-image: linear-gradient(135deg, rgba(6,182,212,.18), rgba(37,99,235,.42)), url("../images/twitter/gallery-mygo.jpg"); }
.image-two { background-image: linear-gradient(135deg, rgba(244,114,182,.2), rgba(147,51,234,.44)), url("../images/twitter/gallery-yamada.jpg"); }
.image-three { background-image: linear-gradient(135deg, rgba(245,158,11,.2), rgba(249,115,22,.42)), url("../images/twitter/gallery-shinju.jpg"); }
.image-four { background-image: linear-gradient(135deg, rgba(20,184,166,.18), rgba(16,185,129,.42)), url("../images/twitter/gallery-bluebox.jpg"); }
.tilt-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), transparent 58%); }
.tilt-card__body { position: absolute; z-index: 2; inset: auto 0 0; padding: 24px; transform: translateZ(70px); }
.tilt-card__body span { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid var(--line); color: rgba(255,255,255,.72); font-size: 12px; }
.tilt-card__body h3 { margin: 14px 0 6px; font-size: 24px; }
.tilt-card__body p { margin: 0; color: rgba(255,255,255,.62); line-height: 1.5; }

.news { background: linear-gradient(to bottom, transparent, rgba(0,0,0,.8)); }
.news-list { max-width: 940px; margin: 0 auto; display: grid; gap: 14px; }
.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}
.news-item time { color: rgba(255,255,255,.42); font-family: monospace; }
.news-item h3 { margin: 0 0 6px; }
.news-item p { margin: 0; color: var(--muted); line-height: 1.6; }
.news-item span { color: #c084fc; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.footer { padding: 46px 18px; text-align: center; background: black; border-top: 1px solid var(--line); color: rgba(255,255,255,.48); }
.footer strong { display: block; color: rgba(255,255,255,.86); letter-spacing: .28em; margin-bottom: 16px; }
.footer p { max-width: 820px; margin: 8px auto; line-height: 1.6; font-size: 13px; }

.page-main { padding-top: 74px; min-height: 100vh; }
.page-hero, .detail-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 36px;
  align-items: center;
}
.compact-hero { padding-bottom: 34px; }
.page-title {
  margin: 0;
  font-size: clamp(44px, 8vw, 104px);
  line-height: .95;
  letter-spacing: 0;
}
.page-portrait, .detail-hero > img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,.45));
}
.content-grid, .card-grid, .character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.detail-list span { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); color: var(--muted); }
.detail-list b { display: block; color: #fff; margin-bottom: 6px; }
.profile-photo { overflow: hidden; padding: 0; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.filter-bar input, .filter-bar select, .filter-bar button,
.guestbook input, .guestbook textarea, .ai-chat-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255,255,255,.06);
}
.filter-bar input { min-width: 260px; flex: 1; }
.filter-bar button, .ai-chat-form button { cursor: pointer; font-weight: 800; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.archive-card, .character-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  padding: 18px;
  overflow: hidden;
}
.archive-card img, .character-card img { width: 100%; height: 220px; object-fit: contain; }
.archive-card span, .character-card span, .tile-meta span { color: #c084fc; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.archive-card h2, .character-card h2 { margin: 8px 0; }
.archive-card p, .character-card p { color: var(--muted); line-height: 1.6; }
.favorite-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag-row a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.04);
}
.masonry {
  columns: 4 220px;
  column-gap: 16px;
}
.masonry article { break-inside: avoid; margin-bottom: 16px; }
.gallery-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  cursor: zoom-in;
}
.gallery-tile img { display: block; width: 100%; height: auto; }
.tile-meta { display: grid; gap: 6px; padding: 10px 4px 18px; }
.lightbox {
  width: min(92vw, 1000px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(3,0,8,.94);
  color: #fff;
  padding: 18px;
}
.lightbox::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.lightbox button { float: right; margin-bottom: 12px; }
.article-page { max-width: 980px; margin: 0 auto; }
.source-list, .search-results { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.source-list a, .search-results a { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.admin-panel textarea {
  width: 100%;
  min-height: 62vh;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #fff;
  background: rgba(0,0,0,.42);
  font: 14px/1.6 Consolas, monospace;
}
.notice { padding: 12px 14px; border-radius: 14px; }
.notice.ok { background: rgba(34,197,94,.18); }
.notice.error { background: rgba(239,68,68,.18); }
.guestbook { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.guestbook textarea { min-height: 120px; padding-top: 14px; resize: vertical; }
.message-list { max-width: 860px; margin: 18px auto 0; display: grid; gap: 12px; }
.message-item { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); }
.message-item span { margin-left: 10px; color: var(--muted); font-size: 12px; }
body:not(#top) > .ai-companion {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(380px, calc(100vw - 44px));
  max-height: 70vh;
  display: none;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6,3,18,.92);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.ai-companion.is-open { display: grid; }
.ai-companion__head { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.ai-messages { overflow: auto; padding: 14px; display: grid; gap: 10px; }
.ai-message { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.ai-message--user { background: rgba(34,211,238,.14); }
.ai-message p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.ai-chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.community-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.community-sidebar, .chat-panel, .feed-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.community-sidebar, .feed-panel { display: grid; gap: 16px; padding: 16px; }
.identity-card, .create-group, .post-form, .chat-form, .comment-form { display: grid; gap: 10px; }
.identity-card div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.identity-card input, .create-group input, .create-group textarea, .post-form textarea, .post-form input,
.chat-form input, .comment-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(0,0,0,.22);
  padding: 12px;
}
.create-group textarea, .post-form textarea { min-height: 86px; resize: vertical; }
.identity-card button, .create-group button, .post-form button, .chat-form button, .comment-form button, .chat-panel__head button {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}
.group-list { display: grid; gap: 10px; }
.group-list__item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.group-list__item.is-active { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.09); }
.group-list__item span, .chat-panel__head span, .post-card__meta span, .comment-item span, .chat-message span { color: var(--muted); font-size: 12px; }
.chat-panel { min-height: 680px; display: grid; grid-template-rows: auto 1fr auto; }
.chat-panel__head { display: flex; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.chat-panel__head p { margin: 0 0 6px; color: #c084fc; letter-spacing: .18em; font-size: 12px; text-transform: uppercase; }
.chat-panel__head h2 { margin: 0 0 6px; }
.chat-messages { padding: 18px; overflow: auto; display: grid; align-content: start; gap: 12px; max-height: 520px; }
.chat-message {
  max-width: 82%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.chat-message p, .post-card p, .comment-item p { margin: 8px 0 0; line-height: 1.6; }
.chat-form { grid-template-columns: 1fr auto; padding: 14px; border-top: 1px solid var(--line); }
.post-list { display: grid; gap: 14px; }
.post-card { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.post-card__meta { display: flex; justify-content: space-between; gap: 12px; }
.post-card img { width: 100%; border-radius: 14px; margin-top: 10px; }
.post-card__actions { display: flex; gap: 8px; margin-top: 12px; }
.post-card__actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.06);
  padding: 8px 10px;
  cursor: pointer;
}
.comment-list { display: grid; gap: 8px; margin-top: 10px; }
.comment-item { padding: 10px; border-radius: 14px; background: rgba(0,0,0,.18); }
.comment-form { grid-template-columns: 1fr auto; margin-top: 10px; }
.empty-state { padding: 36px; color: var(--muted); }

.community-shell {
  min-height: 100vh;
  padding: 98px clamp(18px, 3vw, 42px) 32px;
  --qq-panel: rgba(17, 13, 27, .78);
  --qq-panel-soft: rgba(255,255,255,.055);
  --qq-hover: rgba(255,255,255,.08);
  --qq-accent: #8b5cf6;
  --qq-accent-soft: rgba(139,92,246,.22);
}
.chat-window {
  height: calc(100vh - 130px);
  min-height: 680px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 5, 18, .72);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
  backdrop-filter: blur(22px);
}
.chat-rail {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38,25,61,.72), rgba(15,12,24,.82));
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
}
.chat-user { display: flex; gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.chat-avatar, .room-avatar, .msg-avatar, .room-info__avatar, .member-item span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}
.chat-avatar { border: 0; cursor: pointer; overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-profile-text { min-width: 0; display: grid; gap: 3px; }
.chat-profile-text b, .chat-profile-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-profile-text span { color: rgba(255,255,255,.45); font-size: 12px; }
.chat-nickname { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-search { display: grid; grid-template-columns: 1fr 42px; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.chat-search input, .chat-nickname input, .new-room input, .qq-input input, .invite-form input, .announcement-form textarea, .drawer-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0,0,0,.2);
}
.chat-search button, .chat-nickname button, .new-room button, .qq-input button, .invite-form button, .announcement-form button,
.mute-all-btn, .member-item button, .play-btn, .qq-chat__head button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(139,92,246,.26);
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
}
.chat-search button:hover, .qq-input button:hover, .qq-chat__head button:hover, .play-btn:hover { background: rgba(139,92,246,.42); }
.new-room { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.room-list { overflow: auto; padding: 10px; display: grid; align-content: start; gap: 8px; }
.room-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid transparent;
}
.room-item:hover, .room-item.is-active { background: rgba(255,255,255,.075); border-color: rgba(34,211,238,.38); }
.room-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-item span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-item em { color: rgba(255,255,255,.5); font-style: normal; font-size: 12px; }
.qq-chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  background: linear-gradient(135deg, rgba(21,10,39,.72), rgba(12,19,32,.64));
}
.qq-chat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.qq-chat__head h1 { margin: 0; font-size: 22px; }
.qq-chat__head p { margin: 4px 0 0; color: var(--muted); }
.chat-tools { display: flex; align-items: center; gap: 10px; }
.chat-tools span { color: rgba(255,255,255,.5); font-size: 13px; }
.icon-btn { min-width: 42px; font-size: 20px; line-height: 1; }
.qq-messages { overflow: auto; padding: 22px; display: grid; align-content: start; gap: 16px; }
.qq-message { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; max-width: 760px; }
.qq-message.is-mine { justify-self: end; grid-template-columns: minmax(0, 1fr) 42px; }
.qq-message.is-mine .msg-avatar { grid-column: 2; grid-row: 1; }
.qq-message.is-mine .msg-main { grid-column: 1; grid-row: 1; text-align: right; }
.qq-message.is-system .msg-main p { background: rgba(34,211,238,.11); border-color: rgba(34,211,238,.22); }
.msg-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.msg-meta span { color: rgba(255,255,255,.42); font-size: 12px; }
.msg-main p {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px 16px 16px 16px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08);
  line-height: 1.65;
}
.qq-message.is-mine .msg-main p {
  border-radius: 16px 6px 16px 16px;
  background: var(--qq-accent-soft);
  border-color: rgba(139,92,246,.28);
}
.recall-message {
  display: block;
  margin-top: 5px;
  border: 0;
  color: rgba(255,255,255,.42);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.qq-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.room-info {
  position: fixed;
  z-index: 90;
  top: 74px;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  transform: translateX(100%);
  transition: transform .22s ease;
  border-left: 1px solid var(--line);
  background: rgba(14,10,28,.94);
  overflow: auto;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
}
.room-info.is-open { transform: translateX(0); }
.drawer-close {
  justify-self: end;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.room-info__cover, .room-info__block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.room-info__avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 24px; }
.room-info__cover h2 { margin: 12px 0 6px; }
.room-info__cover p, .room-info__block p { color: var(--muted); line-height: 1.6; }
.room-info__block { display: grid; gap: 10px; }
.room-info__block a { color: rgba(255,255,255,.76); }
.announcement-form { display: grid; gap: 8px; }
.announcement-form textarea { min-height: 78px; resize: vertical; }
.invite-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.member-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.member-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0,0,0,.16);
}
.member-item span { width: 34px; height: 34px; border-radius: 11px; }
.member-item em { display: block; color: rgba(255,255,255,.45); font-style: normal; font-size: 12px; }
.member-item button { grid-column: span 2; padding: 7px 9px; font-size: 12px; background: rgba(255,255,255,.07); }
.play-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer {
  position: fixed;
  z-index: 95;
  top: 74px;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  padding: 18px;
  transform: translateX(100%);
  transition: transform .22s ease;
  border-left: 1px solid var(--line);
  color: #fff;
  background: rgba(14,10,28,.96);
  backdrop-filter: blur(20px);
}
.drawer.is-open { transform: translateX(0); }
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  background: rgba(0,0,0,.32);
}
.drawer-mask.is-open { display: block; }
.drawer-form { display: grid; gap: 14px; }
.drawer-form label { display: grid; gap: 7px; color: rgba(255,255,255,.68); font-size: 13px; }
.drawer-form button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(139,92,246,.32);
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 800;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 12px);
  opacity: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.72);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.nickname-gate {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(16px);
}
.nickname-gate.is-open { display: grid; }
.nickname-gate form {
  width: min(420px, calc(100vw - 34px));
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #fff;
  background: rgba(18,18,20,.94);
}
.nickname-gate h2 { margin: 0; }
.nickname-gate p { margin: 0; color: var(--muted); line-height: 1.6; }
.login-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.login-mode label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #27272a;
  border-radius: 10px;
  color: #e4e4e7;
  background: #18181b;
  cursor: pointer;
}
.nickname-gate .login-admin-field { display: none; }
.nickname-gate.is-admin .login-user-field { display: none; }
.nickname-gate.is-admin .login-admin-field { display: block; }
.nickname-gate input {
  height: 44px;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 0 12px;
  color: #fff;
  background: #18181b;
}
.nickname-gate button {
  height: 42px;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  color: #fff;
  background: #27272a;
  cursor: pointer;
}

/* QQ-like fan chat surface */
.community-shell {
  padding: 74px 0 0;
  min-height: 100vh;
  background: #0e0e11;
  overflow: hidden;
}
body.community-body {
  height: 100vh;
  overflow: hidden;
}
.community-shell .chat-window {
  width: 100%;
  height: calc(100vh - 74px);
  min-height: 640px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 300px;
  border: 0;
  border-radius: 0;
  background: #0e0e11;
  box-shadow: none;
  backdrop-filter: none;
}
.community-shell .chat-rail {
  border-right: 1px solid #27272a;
  background: #121214;
  min-height: 0;
  overflow: hidden;
}
.community-shell .chat-user {
  height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #27272a;
}
.community-shell .chat-avatar,
.community-shell .room-avatar,
.community-shell .msg-avatar,
.community-shell .room-info__avatar,
.community-shell .member-item span {
  border-radius: 10px;
  background: #27272a;
}
.community-shell .chat-avatar {
  width: 40px;
  height: 40px;
}
.community-shell .msg-avatar img,
.community-shell .room-info__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.community-shell .chat-profile-text b { color: #f4f4f5; font-size: 14px; }
.community-shell .chat-profile-text span { color: #71717a; }
.community-shell .chat-search {
  grid-template-columns: 1fr 38px;
  padding: 12px 14px;
  border-bottom: 1px solid #27272a;
}
.community-shell .chat-search input,
.community-shell .qq-input input,
.community-shell .drawer-form input,
.community-shell .invite-form input,
.community-shell .announcement-form textarea {
  height: 38px;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #f4f4f5;
  background: #18181b;
}
.community-shell .chat-search button,
.community-shell .qq-input button,
.community-shell .invite-form button,
.community-shell .announcement-form button,
.community-shell .mute-all-btn,
.community-shell .member-item button,
.community-shell .play-btn,
.community-shell .qq-chat__head button,
.community-shell .drawer-form button {
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #e4e4e7;
  background: #27272a;
  box-shadow: none;
}
.community-shell .chat-search button:hover,
.community-shell .qq-input button:hover,
.community-shell .play-btn:hover,
.community-shell .qq-chat__head button:hover,
.community-shell .drawer-form button:hover {
  background: #3f3f46;
}
.community-shell .room-list {
  padding: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.community-shell .room-list h3 {
  margin: 12px 4px 6px;
  color: #71717a;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.community-shell .rail-empty {
  margin: 0 4px 10px;
  color: #71717a;
  font-size: 12px;
}
.community-shell .room-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 10px;
  border-radius: 8px;
}
.community-shell .room-item:hover,
.community-shell .room-item.is-active {
  background: #27272a;
  border-color: transparent;
}
.community-shell .room-item b { color: #e4e4e7; font-size: 14px; }
.community-shell .room-item span { color: #71717a; font-size: 12px; }
.community-shell .room-item em {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #52525b;
  font-size: 10px;
}
.community-shell .room-avatar {
  overflow: hidden;
}
.community-shell .room-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-shell .qq-chat {
  background: #0e0e11;
  min-height: 0;
  overflow: hidden;
}
.community-shell .qq-chat__head {
  height: 64px;
  padding: 0 26px;
  border-bottom: 1px solid #27272a;
  background: #0e0e11;
}
.community-shell .qq-chat__head h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 20px;
}
.community-shell .qq-chat__head h1 span { color: #71717a; }
.community-shell .qq-chat__head p {
  color: #71717a;
  font-size: 12px;
}
.community-shell .chat-tools span { color: #71717a; }
.community-shell .icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.community-shell .qq-messages {
  padding: 20px 26px;
  gap: 18px;
  min-height: 0;
  height: 100%;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.community-shell .chat-dayline {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #71717a;
  font-size: 12px;
}
.community-shell .chat-dayline::before,
.community-shell .chat-dayline::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #27272a;
}
.community-shell .qq-message {
  max-width: min(760px, 78%);
}
.community-shell .qq-message.is-mine {
  justify-self: end;
}
.community-shell .msg-meta {
  margin-bottom: 5px;
}
.community-shell .msg-meta b { color: #d4d4d8; font-size: 13px; }
.community-shell .msg-meta span { color: #71717a; }
.community-shell .msg-main p {
  border: 1px solid #27272a;
  border-radius: 4px 14px 14px 14px;
  color: #e4e4e7;
  background: #18181b;
}
.community-shell .qq-message.is-mine .msg-main p {
  border-color: #3f3f46;
  border-radius: 14px 4px 14px 14px;
  background: #27272a;
}
.community-shell .qq-message.is-system {
  justify-self: center;
  display: block;
  max-width: 70%;
}
.community-shell .qq-message.is-system .msg-avatar,
.community-shell .qq-message.is-system .msg-meta,
.community-shell .qq-message.is-system .recall-message {
  display: none;
}
.community-shell .qq-message.is-system .msg-main p {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  color: #a1a1aa;
  background: #18181b;
  font-size: 12px;
}
.community-shell .qq-input {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #27272a;
  background: #0e0e11;
  min-height: 64px;
}
.community-shell .input-tools {
  display: flex;
  gap: 8px;
}
.community-shell .play-btn {
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.community-shell .qq-input input {
  min-height: 38px;
}
.community-shell .qq-input button[type="submit"] {
  height: 38px;
  padding: 0 16px;
}
.community-shell .room-info,
.community-shell .drawer {
  top: 74px;
  background: #121214;
  border-left: 1px solid #27272a;
  overflow: auto;
  overscroll-behavior: contain;
}
.community-shell .community-side {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-left: 1px solid #27272a;
  background: #121214;
}
.community-shell .room-info__cover,
.community-shell .room-info__block {
  border-color: #27272a;
  border-radius: 10px;
  background: #18181b;
}
.community-shell .drawer-close {
  background: #27272a;
}
.community-shell .drawer-mask {
  background: rgba(0,0,0,.45);
}
.mobile-rail-toggle {
  display: none;
}
.recommend-panel {
  border-top: 0;
  padding: 12px;
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: auto;
}
.recommend-panel h3 {
  margin: 8px 0 4px;
  color: #71717a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.recommend-panel article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.recommend-panel article span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: #27272a;
}
.recommend-panel img { width: 100%; height: 100%; object-fit: cover; }
.recommend-panel b, .recommend-panel a {
  color: #d4d4d8;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recommend-panel button {
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #e4e4e7;
  background: #27272a;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 12px;
}
.recommend-panel p {
  margin: 0 0 8px;
  color: #71717a;
  font-size: 12px;
  line-height: 1.6;
}
.recommend-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #18181b;
}
.recommend-group span {
  color: #71717a;
  font-size: 12px;
}

.discussion-page .page-copy {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}
.discussion-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.discussion-actions button {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
}
.discussion-actions button:hover { background: rgba(168,85,247,.2); }
.discussion-actions button:disabled { opacity: .55; cursor: wait; }
.discussion-actions span { color: var(--muted); font-size: 13px; }
.discussion-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 40px;
}
.discussion-sources {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}
.discussion-sources h2,
.discussion-section-head h2 {
  margin: 0;
}
.discussion-sources article,
.discussion-card,
.discussion-empty {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(18,18,20,.72);
  backdrop-filter: blur(18px);
}
.discussion-sources article {
  display: grid;
  gap: 9px;
  padding: 14px;
}
.discussion-sources b { color: #fff; }
.discussion-sources span,
.discussion-sources p,
.discussion-sources a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.discussion-sources p { margin: 0; }
.discussion-sources a { color: #c084fc; }
.discussion-feed {
  display: grid;
  gap: 16px;
}
.discussion-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.discussion-section-head p {
  margin: 0 0 6px;
  color: #c084fc;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}
.discussion-section-head > span {
  color: var(--muted);
  font-size: 13px;
}
.discussion-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.discussion-card--post {
  border-color: rgba(34,211,238,.18);
}
.discussion-card__meta,
.discussion-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
}
.discussion-card__meta span {
  color: #22d3ee;
  font-weight: 800;
}
.discussion-card h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
}
.discussion-card h3 a:hover { color: #c084fc; }
.discussion-card p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.75;
}
.discussion-empty {
  padding: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.community-shell .invite-form select {
  min-width: 0;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #f4f4f5;
  background: #18181b;
  padding: 0 10px;
}

.reveal { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity .8s ease, transform .8s ease, filter .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero__copy { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__orb { min-height: 340px; }
  .ai-companion {
    position: fixed;
    right: 18px;
    bottom: 86px;
    width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
  }
  .ai-companion__toggle {
    right: 18px;
    bottom: 18px;
  }
  .profile-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discussion-layout { grid-template-columns: 1fr; }
  .community-shell .chat-window {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .community-shell .community-side {
    display: none;
  }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 66px; }
  body { overflow-x: hidden; }
  .section { padding: 76px 16px; }
  .intro__title { font-size: clamp(34px, 10vw, 62px); }
  .intro__eyebrow { letter-spacing: .28em; }
  .nav {
    height: 62px;
    padding: 0 14px;
    background: rgba(3,0,8,.82);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
  }
  .nav__brand {
    max-width: calc(100vw - 28px);
    overflow: hidden;
    font-size: 12px;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  .nav__brand em { display: none; }
  .hero {
    gap: 8px;
    padding-top: 86px;
    padding-bottom: 34px;
    text-align: left;
  }
  .hero-slideshow span { background-position: 58% center; }
  .hero-slideshow span::after {
    background: linear-gradient(180deg, rgba(3,0,8,.48), rgba(3,0,8,.78) 58%, rgba(3,0,8,.9));
  }
  .hero__kicker, .section-heading p {
    letter-spacing: .18em;
    font-size: 11px;
  }
  .hero__title span {
    font-size: clamp(48px, 18vw, 76px);
  }
  .hero__title strong {
    font-size: clamp(27px, 9vw, 42px);
    line-height: 1.08;
  }
  .hero__copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.72;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
  .hero__orb {
    min-height: 220px;
    margin-top: 4px;
  }
  .orb-ring { width: min(78vw, 280px); }
  .orb-ring--two { width: min(62vw, 220px); }
  .orb-core {
    width: min(46vw, 178px);
    min-width: 150px;
  }
  .wave-bars { height: 50px; gap: 6px; }
  @keyframes wave { 0%,100% { height: 14px; opacity: .55; } 50% { height: 50px; opacity: 1; } }
  .ai-companion {
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(74px + env(safe-area-inset-bottom)) !important;
    width: auto;
    max-height: min(72vh, 560px);
    border-radius: 18px;
    grid-template-rows: auto minmax(130px, 1fr) auto auto auto;
  }
  .ai-companion__toggle {
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    width: 54px;
    height: 54px;
  }
  .ai-companion__header { padding: 14px 14px 12px; }
  .ai-companion__header h2 { font-size: 18px; }
  .ai-companion__messages { padding: 12px 14px; gap: 10px; }
  .ai-message {
    max-width: 94%;
    padding: 10px 12px;
    font-size: 13px;
  }
  .ai-companion__quick,
  .ai-companion__voice,
  .ai-companion__form,
  .ai-companion__notice {
    padding-left: 14px;
    padding-right: 14px;
  }
  .ai-companion__quick { gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .ai-companion__quick button { flex: 0 0 auto; }
  .ai-companion__voice-hint { font-size: 11px; }
  .ai-companion__form {
    grid-template-columns: 1fr 58px;
    gap: 8px;
  }
  .ai-companion__form input,
  .ai-companion__form button {
    height: 42px;
    border-radius: 12px;
  }
  .facts { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(27px, 8vw, 40px); }
  .glass-card { border-radius: 18px; }
  .profile-main { padding: 24px; }
  .profile-main p:not(.roman) { font-size: 15px; }
  .timeline::before { left: 8px; }
  .timeline-card, .timeline-card:nth-child(even) { width: auto; margin-left: 32px; }
  .timeline-card::before, .timeline-card:nth-child(odd)::before, .timeline-card:nth-child(even)::before { left: -31px; right: auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tilt-card { height: 300px; }
  .news-item { grid-template-columns: 1fr; }
  .audio-lab { padding-top: 50px; }
  .audio-stage {
    min-height: 660px;
    border-radius: 20px;
    margin-inline: -6px;
  }
  .audio-panel {
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 16px;
  }
  .audio-panel h3 { font-size: 20px; }
  .audio-panel p { font-size: 13px; margin-bottom: 12px; }
  .audio-track { min-height: 56px; padding: 10px 12px; }
  .audio-controls { grid-template-columns: 1fr; }
  .audio-controls button,
  .audio-file span { min-height: 40px; }
  .audio-meter { grid-template-columns: 1fr; }
  .page-hero, .detail-hero, .content-grid, .card-grid, .character-grid { grid-template-columns: 1fr; }
  .page-hero, .detail-hero { gap: 22px; }
  .page-portrait, .detail-hero > img { min-height: 300px; }
  .detail-list { grid-template-columns: 1fr; }
  .archive-card, .character-card { grid-template-columns: 1fr; }
  .community-layout { grid-template-columns: 1fr; }
  .nav__links { gap: 12px; overflow-x: auto; max-width: 62vw; }
  .source-list, .search-results { gap: 10px; }
  .discussion-card,
  .source-card,
  .archive-card,
  .character-card,
  .post-card,
  .message-item {
    border-radius: 16px;
  }
  .footer { padding-inline: 16px; }
  body.community-body {
    height: 100dvh;
    overflow: hidden;
  }
  body.community-body .nav,
  body.community-body .footer,
  body.community-body .site-slideshow,
  body.community-body .stage-canvas,
  body.community-body .noise,
  body.community-body .aurora {
    display: none;
  }
  .community-shell {
    padding: 0;
    height: 100dvh;
    min-height: 0;
  }
  .community-shell .chat-window {
    height: 100dvh;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .community-shell .chat-rail {
    position: fixed;
    z-index: 150;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(82vw, 320px);
    transform: translateX(-105%);
    transition: transform .22s ease;
    border-right: 1px solid #27272a;
    box-shadow: 20px 0 70px rgba(0,0,0,.42);
  }
  .community-shell .chat-rail.is-open {
    transform: translateX(0);
  }
  .community-shell .chat-user { height: 58px; padding: 10px 12px; }
  .community-shell .chat-search { padding: 10px 12px; }
  .community-shell .room-list { padding: 8px; }
  .community-shell .room-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 9px;
  }
  .community-shell .room-avatar,
  .community-shell .msg-avatar { width: 38px; height: 38px; }
  .community-shell .qq-chat {
    position: relative;
    height: 100dvh;
    grid-template-rows: 58px minmax(0, 1fr) auto;
  }
  .mobile-rail-toggle {
    position: absolute;
    z-index: 4;
    left: 10px;
    top: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #e4e4e7;
    background: #27272a;
    font-size: 12px;
    font-weight: 800;
  }
  .community-shell .qq-chat__head {
    height: 58px;
    padding: 0 10px 0 82px;
    gap: 8px;
  }
  .community-shell .qq-chat__head h1 {
    max-width: 48vw;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .community-shell .qq-chat__head p { display: none; }
  .community-shell .chat-tools {
    gap: 6px;
    flex-shrink: 0;
  }
  .community-shell .chat-tools span { display: none; }
  .community-shell .icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }
  .community-shell .qq-messages {
    padding: 14px 10px;
    gap: 12px;
    scrollbar-gutter: auto;
  }
  .community-shell .qq-message,
  .community-shell .qq-message.is-mine {
    max-width: 92%;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }
  .community-shell .qq-message.is-mine {
    grid-template-columns: minmax(0, 1fr) 34px;
  }
  .community-shell .qq-message.is-mine .msg-avatar {
    grid-column: 2;
  }
  .community-shell .msg-main p {
    padding: 9px 11px;
    line-height: 1.55;
    font-size: 14px;
    word-break: break-word;
  }
  .community-shell .msg-meta b { font-size: 12px; }
  .community-shell .msg-meta span { display: none; }
  .community-shell .qq-input {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    min-height: auto;
  }
  .community-shell .input-tools {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .community-shell .play-btn {
    flex: 0 0 auto;
    height: 32px;
  }
  .community-shell .qq-input input {
    min-width: 0;
    height: 40px;
  }
  .community-shell .qq-input button[type="submit"] {
    height: 40px;
    padding: 0 14px;
  }
  .community-shell .community-side {
    display: none;
  }
  .community-shell .room-info,
  .community-shell .drawer {
    z-index: 160;
    top: 0;
    width: min(88vw, 360px);
    max-width: none;
    height: 100dvh;
  }
  .community-shell .drawer-mask {
    z-index: 140;
  }
  .nickname-gate {
    padding: 16px;
  }
  .nickname-gate form {
    width: min(100%, 380px);
    padding: 22px;
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  .section { padding-inline: 14px; }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__title span { font-size: clamp(42px, 17vw, 66px); }
  .hero__title strong { font-size: clamp(24px, 8.5vw, 34px); }
  .audio-stage { min-height: 690px; }
  .ai-companion {
    left: 8px !important;
    right: 8px !important;
    max-height: 74vh;
  }
  .community-shell .qq-chat__head h1 { max-width: 42vw; }
  .community-shell .qq-message,
  .community-shell .qq-message.is-mine {
    max-width: 96%;
  }
}
