/* =========================================================
   灯会 · 动画毕业设计作品页
   夜色 / 灯火 / 朱红，配色跟随主视觉
   ========================================================= */

/* ---------- 变量 ---------- */
:root {
  --bg: #080d1a;
  --bg-2: #0b1222;
  --panel: #101a2e;
  --panel-2: #0c1424;
  --ink: #f5ebdb;
  --ink-2: #d6cab7;
  --muted: #94856d;
  --gold: #e2b978;
  --gold-soft: rgba(226, 185, 120, 0.55);
  --line: rgba(226, 185, 120, 0.18);
  --line-soft: rgba(226, 185, 120, 0.09);
  --accent: #e05a3a;
  --accent-2: #4f88a3;
  --wrap: 1200px;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --poster-url: none;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.8px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 720px at 10% -8%, rgba(224, 90, 58, 0.14), transparent 62%),
    radial-gradient(900px 640px at 94% -6%, rgba(79, 136, 163, 0.16), transparent 64%),
    var(--bg);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
  color: inherit;
}

::selection {
  background: rgba(224, 90, 58, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 96px));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 8px 14px;
  background: var(--gold);
  color: #120d07;
  font-size: 13.4px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip:focus {
  transform: none;
}

/* 颗粒 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.24'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 12px rgba(224, 90, 58, 0.7);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(8, 13, 26, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 17.9px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.brand-role {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #b9ab94;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.9px;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold-soft);
}

.link-arrow span {
  font-size: 11.2px;
  transition: transform 0.25s ease;
}

.link-arrow:hover span {
  transform: translate(2px, -2px);
}

.menu-btn {
  display: none;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-btn i {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s ease;
}

.menu-btn i:first-child {
  top: 11px;
}

.menu-btn i:last-child {
  bottom: 11px;
}

body.menu-open .menu-btn i:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .menu-btn i:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(660px, 92vh, 920px);
  padding: 148px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0a1120;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.01);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 16, 0.96) 0%, rgba(5, 8, 16, 0.88) 24%, rgba(5, 8, 16, 0.5) 48%, rgba(5, 8, 16, 0.16) 70%, rgba(5, 8, 16, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 8, 16, 0.8) 0%, rgba(5, 8, 16, 0.12) 24%, rgba(5, 8, 16, 0) 52%, rgba(8, 13, 26, 0.96) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-still {
  display: none;
}

.hero-copy {
  max-width: 620px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.8px;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
}

.kicker-rule {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.title {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fbf3e6;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.55);
}

.title span {
  display: block;
}

.title span:nth-child(2) {
  padding-left: 0.55em;
}

.title--short {
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  letter-spacing: 0.14em;
}

.title--short span:nth-child(2) {
  padding-left: 0;
}

.title-en {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.8px;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.lede {
  margin-top: 22px;
  max-width: 26em;
  font-size: 16.8px;
  line-height: 1.95;
  color: rgba(245, 235, 219, 0.78);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts li {
  min-width: 96px;
  padding: 13px 26px 12px;
  border-right: 1px solid var(--line-soft);
}

.facts li:first-child {
  padding-left: 0;
}

.facts li:last-child {
  border-right: 0;
}

.facts span {
  display: block;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.facts strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 15.1px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.btn-fill {
  background: var(--accent);
  color: #fff6ee;
  box-shadow: 0 16px 40px -18px rgba(224, 90, 58, 0.9);
}

.btn-fill:hover {
  background: #f06945;
  gap: 16px;
}

.btn-line {
  border-color: var(--gold-soft);
  color: var(--gold);
  padding: 13px 24px;
}

.btn-line:hover {
  background: rgba(226, 185, 120, 0.08);
  border-color: var(--gold);
}

.hero-credit {
  position: absolute;
  right: max(48px, calc((100% - var(--wrap)) / 2));
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.16em;
  color: rgba(226, 185, 120, 0.6);
}

.hero-credit-idx {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

/* ---------- 图片 / 占位框 ---------- */
.media,
.char-art,
.board-main {
  min-width: 0;
}

.frame {
  position: relative;
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: var(--panel);
}

.ph {
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 185, 120, 0.22);
  background:
    repeating-linear-gradient(45deg, rgba(226, 185, 120, 0.05) 0 1px, transparent 1px 12px),
    linear-gradient(155deg, #111b2f 0%, #0a1120 100%);
  color: #9b8867;
}

.ph::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(226, 185, 120, 0.17);
  pointer-events: none;
}

.ph-idx {
  position: absolute;
  top: 15px;
  left: 18px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.16em;
  color: rgba(226, 185, 120, 0.55);
}

.ph-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  z-index: 2;
}

.ph-word {
  font-family: var(--serif);
  font-size: 16.8px;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: #a58e69;
}

.ph-spec {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.08em;
  color: #7d6c53;
}

.ph-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(226, 185, 120, 0.35);
  z-index: 2;
}

.ph-corner.tl {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.ph-corner.br {
  right: 6px;
  bottom: 6px;
  border-left: 0;
  border-top: 0;
}

.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

figure[data-zoom] {
  cursor: zoom-in;
}

figure[data-zoom]:hover img {
  transform: scale(1.03);
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  background: rgba(6, 10, 20, 0.78);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 10.6px;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

figure[data-zoom]:hover .zoom-hint {
  opacity: 1;
}

figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 12.3px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cap-idx {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  flex: none;
}

/* ---------- 正片 ---------- */
.band {
  position: relative;
  padding: 78px 0 68px;
  background: #05080f;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: -14%;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center;
  filter: blur(70px) brightness(0.38) saturate(130%);
  opacity: 0.22;
  pointer-events: none;
}

.band-inner {
  position: relative;
  z-index: 1;
}

.band-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(245, 235, 219, 0.12);
}

.sec-no {
  font-family: var(--mono);
  font-size: 11.8px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.band-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.band-title em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-left: 6px;
}

.band-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.player {
  margin-top: 30px;
}

.player-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 130% at 50% 46%, rgba(224, 90, 58, 0.12), rgba(5, 8, 15, 0.4) 55%, #05080f 100%),
    #05080f;
  border: 1px solid rgba(226, 185, 120, 0.22);
  overflow: hidden;
}

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-tag,
.player-time {
  position: absolute;
  top: 20px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.player-tag {
  left: 24px;
}

.player-time {
  right: 24px;
}

.player-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  text-align: center;
}

.player-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  color: #f0e2cd;
}

.player-sub {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.18em;
  color: #8b7a68;
}

.play {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: rgba(226, 185, 120, 0.06);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.play::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(226, 185, 120, 0.16);
}

.play:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.player-hint {
  position: absolute;
  left: 24px;
  bottom: 18px;
  font-size: 11.8px;
  letter-spacing: 0.04em;
  color: #7f6f5a;
}

.band-foot {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(245, 235, 219, 0.12);
}

.band-quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #f3e3c9;
}

.band-text p {
  font-size: 14.6px;
  line-height: 1.95;
  color: #b7a795;
}

.band-text p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dotted rgba(245, 235, 219, 0.14);
  font-size: 11.8px;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 94px 0 8px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 46px;
}

.sec-head-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.sec-en {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.26em;
  color: var(--muted);
  flex: none;
}

/* ---------- 故事 ---------- */
.split {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 64px;
}

.aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.aside-label {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.aside-note {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.aside-meta {
  margin-top: 22px;
  font-size: 10.6px;
  color: #6f604a;
  letter-spacing: 0.12em;
}

.prose {
  max-width: 36em;
}

.prose p {
  font-size: 18.5px;
  line-height: 2.05;
  letter-spacing: 0.012em;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 1.35em;
}

.prose p:first-child {
  font-size: 19.6px;
  color: var(--ink);
}

.quote {
  margin-top: 64px;
  padding-left: 30px;
  border-left: 2px solid var(--accent);
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: #f2e2c8;
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 角色 ---------- */
.char-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  align-items: start;
}

.char-art .frame {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.char-portrait .frame.has-img {
  background: #fffdf8;
}

.char-lineup {
  display: block;
}

.char-lineup .frame {
  border: 1px solid var(--line);
}

.char-lineup .frame.has-img {
  background: #fffdf8;
}

.sub-block {
  margin-top: 58px;
}

.sub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 22px;
}

.sub-head h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.sub-head p {
  font-family: var(--mono);
  font-size: 10.1px;
  letter-spacing: 0.2em;
  color: var(--muted);
  flex: none;
}

.sub-note {
  max-width: 52em;
  margin: -6px 0 24px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.draft .frame {
  border: 1px solid var(--line);
}

.draft .frame.has-img {
  background: #fffdf8;
}

.draft-grid > .draft:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---------- 推导链 ---------- */
.chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--gold-soft);
}

.chain li {
  position: relative;
  padding: 26px 24px 0 0;
}

.chain li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.chain-no {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.chain h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.chain p {
  margin-top: 10px;
  max-width: 16em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 概览策略 ---------- */
.strategy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.strategy-item {
  padding-top: 20px;
  border-top: 1px solid var(--gold-soft);
}

.strategy-no {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.strategy-item h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.strategy-item p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 产品矩阵 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 26px;
}

/* 单品数量不整除时，最后一张居中 */
.product-grid > .product:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zodiac-art .frame {
  border: 1px solid var(--line);
  background: #fff8ef;
}

.zodiac-spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}

.zodiac-spec > div {
  padding: 12px 0 12px 16px;
  border-left: 1px solid var(--line-soft);
}

.zodiac-spec > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.zodiac-spec dt {
  font-family: var(--mono);
  font-size: 10.1px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.zodiac-spec dd {
  margin-top: 3px;
  font-size: 14.6px;
  color: var(--ink);
}

.product-media .frame {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.product-body {
  padding-top: 14px;
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.product-cat {
  font-size: 11.8px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

.product-en {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.product h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.product-desc {
  margin-top: 8px;
  min-height: 3.6em;
  font-size: 13.4px;
  line-height: 1.8;
  color: var(--muted);
}

.product-spec {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.product-spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-soft);
}

.product-spec dt {
  font-family: var(--mono);
  font-size: 10.1px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.product-spec dd {
  font-size: 12.3px;
  color: var(--ink-2);
}

/* ---------- 材质与工艺 ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.craft-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.craft-no {
  font-family: var(--mono);
  font-size: 10.1px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.craft-item h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.craft-en {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}

.craft-item p:last-child {
  margin-top: 10px;
  font-size: 13.4px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 包装与陈列 ---------- */
.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pack-item .frame {
  border: 1px solid var(--line);
}

.pack-item .frame.has-img {
  background: #fffdf8;
}

.pack-note {
  margin-top: 18px;
  margin-bottom: 46px;
}

.display-block {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: start;
}

.display-media .frame {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.display-side .sub-head {
  margin-bottom: 0;
}

.display-side .sub-head span:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.display-side .sub-head .mono {
  font-family: var(--mono);
  font-size: 10.1px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.display-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
}

.display-list dt {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex: none;
}

.display-list dd {
  font-size: 12.9px;
  color: var(--ink-2);
  text-align: right;
}

/* ---------- 应用延展 ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.app-item .frame {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.char-name {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.char-name-en {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
}

.char-desc {
  margin-top: 20px;
  max-width: 26em;
  font-size: 15.7px;
  line-height: 1.95;
  color: var(--ink-2);
}

.char-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.char-list > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--line);
}

.char-list dt {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.char-list dd {
  font-size: 14.6px;
  color: var(--ink-2);
}

.palette {
  margin-top: 32px;
}

.palette-label {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.palette ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.palette li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 72px;
}

.palette i {
  display: block;
  height: 42px;
  border: 1px solid rgba(226, 185, 120, 0.25);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.9);
}

.palette span {
  font-size: 11.8px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.palette em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.6px;
  color: var(--muted);
}

/* ---------- 场景 ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 28px;
}

.gallery .wide {
  grid-column: 1 / -1;
}

/* ---------- 分镜 ---------- */
.board-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 56px;
  align-items: start;
}

.board-main .frame {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.board-desc {
  font-size: 15.1px;
  line-height: 1.95;
  color: var(--ink-2);
}

.board-stats {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.board-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
}

.board-stats dt {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.board-stats dd {
  font-family: var(--mono);
  font-size: 13.4px;
  color: var(--ink);
}

.board-tip {
  margin-top: 18px;
  font-size: 11.8px;
  letter-spacing: 0.04em;
  color: #6f604a;
}

.strip {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 185, 120, 0.35) transparent;
}

.strip.dragging {
  cursor: grabbing;
}

.strip::-webkit-scrollbar {
  height: 4px;
}

.strip::-webkit-scrollbar-thumb {
  background: rgba(226, 185, 120, 0.35);
}

.strip-item {
  flex: 0 0 232px;
  scroll-snap-align: start;
}

.strip-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--ar, 16 / 9);
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.strip-frame.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip-frame .ph-word {
  font-size: 12.3px;
  letter-spacing: 0.28em;
  color: #a58e69;
}

.strip-no {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.1em;
  color: rgba(226, 185, 120, 0.55);
}

.strip-cap {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.8px;
  line-height: 1.5;
  color: var(--ink-2);
}

.strip-cap b {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 10.1px;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- 制作 ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--gold-soft);
}

.process li {
  position: relative;
  padding: 26px 22px 0 0;
}

.process li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.proc-no {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.process h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.proc-time {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

.proc-desc {
  margin-top: 12px;
  max-width: 15em;
  font-size: 13.4px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 展映 ---------- */
.exhibition {
  margin-top: 90px;
  padding: 62px 0;
  background:
    radial-gradient(900px 300px at 12% 50%, rgba(224, 90, 58, 0.16), transparent 70%),
    #0a0f1d;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.exhibition-inner {
  display: grid;
  grid-template-columns: 110px 1fr 240px;
  gap: 44px;
  align-items: center;
}

.stamp {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: #f0795a;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 4px #0a0f1d, inset 0 0 0 5px rgba(224, 90, 58, 0.45);
  flex: none;
}

.exh-kicker {
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
}

.exh-title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.exh-meta {
  margin-top: 8px;
  font-size: 13.4px;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.exh-text {
  margin-top: 16px;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.exh-facts {
  border-top: 1px solid var(--line);
}

.exh-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.exh-facts dt {
  font-family: var(--mono);
  font-size: 10.1px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.exh-facts dd {
  font-size: 12.9px;
  color: var(--ink-2);
}

/* ---------- 关于 ---------- */
.about {
  padding-bottom: 96px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
}

.sign {
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.about-role {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.about-bio {
  margin-top: 22px;
  max-width: 34em;
  font-size: 15.1px;
  line-height: 2;
  color: var(--ink-2);
}

.about-label {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10.6px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.about-side ul + .about-label {
  margin-top: 30px;
}

.contacts {
  border-top: 1px solid var(--line);
}

.contacts a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
  transition: color 0.2s ease;
}

.contacts a:hover {
  color: var(--gold);
}

.c-label {
  font-size: 12.3px;
  color: var(--muted);
}

.c-value {
  font-family: var(--mono);
  font-size: 11.8px;
  text-align: right;
  word-break: break-all;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skills li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  font-size: 11.8px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 12.9px;
  color: var(--muted);
}

.footer-inner .mono {
  font-size: 10.1px;
  letter-spacing: 0.16em;
  color: #6f604a;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(3, 6, 12, 0.96);
}

.lb-figure {
  max-width: 100%;
  text-align: center;
}

.lb-figure img {
  max-width: 90vw;
  max-height: 80vh;
  margin-inline: auto;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.lb-figure figcaption {
  display: block;
  margin-top: 16px;
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 11.2px;
  letter-spacing: 0.14em;
}

.lb-close {
  position: absolute;
  top: 26px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 22.4px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 210;
  max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px;
  background: #101a2e;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.4px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-copy > * {
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.38s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero {
    gap: 44px;
  }

  .split {
    grid-template-columns: 180px 1fr;
    gap: 44px;
  }

  .char-grid {
    gap: 44px;
  }

  .board-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 34px;
  }

  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 22px;
  }

  .exhibition-inner {
    grid-template-columns: 96px 1fr;
    row-gap: 26px;
  }

  .exh-facts {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #080d1a;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15.7px;
  }

  .nav a::after {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .link-arrow {
    display: none;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 54px;
  }

  .hero-bg,
  .hero-veil {
    display: none;
  }

  .hero-still {
    display: block;
    position: relative;
    height: 56vh;
    min-height: 320px;
    max-height: 520px;
    background-color: #0a1120;
    background-image: var(--poster-url);
    background-size: cover;
    background-position: center 30%;
  }

  .hero-still::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(8, 13, 26, 0.78) 0%,
      rgba(8, 13, 26, 0) 18%,
      rgba(8, 13, 26, 0) 58%,
      var(--bg) 100%
    );
  }

  .hero-inner {
    padding-top: 4px;
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 30px;
  }

  .hero-credit {
    display: none;
  }

  .band {
    padding: 60px 0 54px;
  }

  .player-hint {
    display: none;
  }

  .band-foot {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section {
    padding: 70px 0 6px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .aside {
    position: static;
    max-width: 34em;
  }

  .aside-meta {
    display: none;
  }

  .char-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .char-art {
    max-width: 520px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 22px;
  }

  .pack-grid {
    grid-template-columns: 1fr;
  }

  .display-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .exhibition {
    margin-top: 64px;
    padding: 46px 0;
  }

  .exhibition-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .exh-facts {
    grid-column: auto;
  }

  .stamp {
    width: 76px;
    height: 76px;
    font-size: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .topbar-inner {
    height: 66px;
    gap: 16px;
  }

  .nav {
    top: 66px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 15.7px;
  }

  .hero {
    padding: 0 0 48px;
  }

  .hero-still {
    height: 46vh;
    min-height: 280px;
  }

  .hero-copy {
    padding-top: 26px;
  }

  .title {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .title--short {
    font-size: clamp(3.6rem, 16vw, 4.8rem);
  }

  .lede {
    font-size: 15.7px;
  }

  .facts li {
    min-width: 78px;
    padding: 12px 14px;
  }

  .facts strong {
    font-size: 13.4px;
  }

  .actions {
    gap: 16px;
  }

  .btn {
    padding: 13px 20px;
    font-size: 12.9px;
  }

  .btn-line {
    padding: 12px 18px;
  }

  .player-center {
    gap: 16px;
  }

  .play {
    width: 62px;
    height: 62px;
    padding-left: 3px;
  }

  .player-title {
    font-size: 1.02rem;
    letter-spacing: 0.2em;
  }

  .player-sub {
    font-size: 10.6px;
  }

  .player-tag,
  .player-time {
    top: 14px;
    font-size: 10.6px;
  }

  .player-tag {
    left: 16px;
  }

  .player-time {
    right: 16px;
  }

  .process {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .process li {
    padding: 20px 0 20px 20px;
    border-bottom: 1px dotted var(--line);
  }

  .process li::before {
    top: 28px;
  }

  .proc-desc {
    max-width: none;
  }

  .prose p {
    font-size: 16.8px;
    line-height: 1.95;
  }

  .prose p:first-child {
    font-size: 17.9px;
  }

  .quote {
    margin-top: 44px;
    padding-left: 20px;
  }

  .sign {
    font-size: 2.2rem;
  }

  .palette ul {
    gap: 10px;
  }

  .palette li {
    width: 56px;
  }

  .palette i {
    height: 34px;
  }

  .strip-item {
    flex-basis: 200px;
  }

  .draft-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .strategy,
  .product-grid,
  .craft-grid,
  .chain,
  .app-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-desc {
    min-height: 0;
  }

  .draft-grid > .draft:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .sub-block {
    margin-top: 42px;
  }

  .lightbox {
    padding: 24px;
  }

  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 32px;
  }

  .sec-en {
    display: none;
  }

  .hero-credit {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- 右下角 Q 版浮标 ---------------- */
.chibi-dock {
  position: fixed;
  right: clamp(20px, calc((100vw - 1200px) / 2 - 200px), 420px);
  bottom: 6px;
  z-index: 80;
  width: clamp(86px, 8.6vw, 142px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.chibi-dock.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.chibi-dock img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  transition: transform 0.3s ease;
}

.chibi-dock:hover img,
.chibi-dock:focus-visible img {
  transform: translateY(-7px);
}

.chibi-dock .chibi-hint {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translate(-50%, -100%) scale(0.9);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 185, 120, 0.45);
  background: rgba(10, 15, 28, 0.92);
  color: #e2b978;
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chibi-dock:hover .chibi-hint,
.chibi-dock:focus-visible .chibi-hint {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.chibi-dock:focus-visible {
  outline: 2px solid rgba(226, 185, 120, 0.6);
  outline-offset: 6px;
}

@media (max-width: 620px) {
  .chibi-dock {
    width: 78px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chibi-dock,
  .chibi-dock img {
    transition: none;
  }
}
