/* =========================================================
   泰拉衣橱 · TERRA WARDROBE
   A fan-made Arknights outfit archive
   ========================================================= */

:root {
  --bg: #070809;
  --bg-elev: #0c0e10;
  --panel: #111417;
  --panel-2: #171b1f;
  --panel-3: #1e2328;
  --line: #2b3036;
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f2f0e7;
  --muted: #a5a8a3;
  --dim: #727875;
  --accent: #f3d51e;
  --accent-soft: rgba(243, 213, 30, 0.12);
  --accent-ink: #0a0a07;
  --danger: #e2634e;
  --ok: #77c99a;
  --max: 1440px;
  --pad: clamp(18px, 3vw, 40px);
  --radius: 2px;
  --font: "Bahnschrift", "DIN Alternate", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Bahnschrift Condensed", "DIN Condensed", "Impact", "Arial Narrow", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #3b4147 var(--bg);
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 72% -10%, rgba(243, 213, 30, 0.075), transparent 65%),
    radial-gradient(ellipse 60% 50% at 8% 20%, rgba(84, 128, 160, 0.055), transparent 65%),
    linear-gradient(180deg, #090a0b 0%, #070809 45%, #080909 100%);
}

body.modal-open { overflow: hidden; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- shared ---------- */

.container {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 11px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag.accent { border-color: rgba(243, 213, 30, 0.5); color: var(--accent); background: var(--accent-soft); }

.stars {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}
.stars.dim { color: #555a58; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 8, 9, 0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.topbar-inner {
  width: min(var(--max), 100% - var(--pad) * 2);
  height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(135deg); }
.brand-mark > span {
  display: block;
  transform: rotate(-45deg);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark > span { transform: rotate(-135deg); }
.brand-mark.small { width: 28px; height: 28px; }
.brand-mark.small > span { font-size: 19px; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.2; }
.brand-text small { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  height: 100%;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a.active::after { right: 0; }
.nav a.active { color: var(--accent); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s;
}
.search-trigger:hover { border-color: var(--accent); color: var(--text); }
.search-trigger svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-trigger kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.menu-trigger {
  display: none;
  width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 9px;
}
.menu-trigger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.menu-trigger span + span { margin-top: 7px; }
.menu-trigger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 75;
  background: rgba(8, 9, 10, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--pad) 18px;
  backdrop-filter: blur(20px);
}
.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 20px;
  font-weight: 800;
}
.mobile-menu a span { color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; }
.mobile-menu a.active { color: var(--accent); }

/* ---------- boot ---------- */

.boot {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
}
.boot-mark {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
  transform: rotate(45deg);
  animation: boot-pulse 1.4s ease-in-out infinite;
}
.boot p { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }
.boot-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; background: var(--accent); animation: boot-slide 1.2s ease-in-out infinite; }
@keyframes boot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes boot-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

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

.page { animation: page-in 0.55s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.page-head {
  padding: clamp(42px, 6vw, 86px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.035em;
}
.page-title .en {
  display: block;
  margin-top: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 400;
  letter-spacing: 0.28em;
}
.page-desc {
  max-width: 47ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.page-count {
  color: var(--accent);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(52px, 7vw, 96px) 0 clamp(48px, 6vw, 78px);
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "ARKNIGHTS";
  position: absolute;
  right: -2vw;
  top: 12%;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  font-family: var(--display);
  font-size: clamp(90px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  width: 100%;
}
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8.8vw, 142px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.045em;
}
.hero-title span { display: block; }
.hero-title .line-2 {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.hero-title .line-1 {
  color: var(--text);
}
.hero-title .slash {
  display: inline-block;
  color: var(--dim);
  font-size: 0.38em;
  vertical-align: top;
  transform: translateY(0.28em);
  margin-left: 0.08em;
  letter-spacing: 0;
}
.hero-text {
  max-width: 50ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.85;
}
.hero-text strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { display: block; width: 4px; height: 4px; background: var(--accent); }

.hero-feature {
  position: relative;
  align-self: stretch;
  min-height: 430px;
  max-height: 650px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.hero-feature::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 2;
}
.hero-feature::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 18%;
  width: 3px;
  height: 24%;
  background: var(--accent);
  z-index: 3;
}
.feature-link { display: block; position: relative; height: 100%; min-height: 410px; overflow: hidden; }
.feature-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.feature-link:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.feature-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 8, 0.1) 0%, rgba(6, 7, 8, 0.06) 42%, rgba(6, 7, 8, 0.93) 100%),
    linear-gradient(90deg, rgba(6, 7, 8, 0.2), transparent 55%);
}
.feature-top {
  position: absolute;
  top: 18px; left: 18px; right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  z-index: 2;
}
.feature-play {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(8, 9, 10, 0.36);
  backdrop-filter: blur(6px);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.feature-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.feature-link:hover .feature-play { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.feature-info {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 2;
}
.feature-info .kicker { margin-bottom: 8px; font-size: 9px; }
.feature-op {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature-op strong { color: var(--text); font-size: 15px; letter-spacing: 0.04em; }
.feature-name {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.feature-caption { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  position: relative;
  padding: 24px clamp(12px, 2vw, 28px) 22px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat-num {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.stat-num em { color: var(--accent); font-style: normal; font-size: 0.42em; vertical-align: top; margin-left: 3px; }
.stat-label { display: block; margin-top: 8px; color: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- section ---------- */

.section { padding: clamp(46px, 6vw, 86px) 0; border-bottom: 1px solid var(--line-soft); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.section-sub { max-width: 44ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}
.section-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 0.2s; }
.section-link:hover svg { transform: translateX(4px); }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.skin-card,
.op-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}
.skin-card:hover,
.op-card:hover {
  border-color: rgba(243, 213, 30, 0.55);
  background: var(--panel-2);
  transform: translateY(-4px);
}
.card-media {
  position: relative;
  aspect-ratio: 3 / 3.75;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 62% at 50% 88%, color-mix(in srgb, var(--class-color, #6c7378) 26%, transparent), transparent 70%),
    linear-gradient(160deg, #1a1e22, #0d0f11 72%);
}
.card-media::before {
  content: attr(data-glyph);
  position: absolute;
  right: -0.05em;
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.032);
  font-family: var(--display);
  font-size: 9em;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0) 56%, rgba(8, 9, 10, 0.9) 100%);
  pointer-events: none;
}
.card-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 12px 6px 0;
  transition: transform 0.45s var(--ease), filter 0.35s;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.42));
}
.skin-card:hover .card-media img,
.op-card:hover .card-media img { transform: translateY(-3px) scale(1.025); }

.card-badges {
  position: absolute;
  top: 9px; left: 9px; right: 9px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.class-badge {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--class-color, #6c7378);
  color: #08090a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
}
.class-badge span { transform: rotate(-45deg); }
.dyn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dyn-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.demo-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(0,0,0,0.34);
  color: #f2f2ef;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}

.card-title {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-sub .en { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.card-body { padding: 12px 13px 13px; border-top: 1px solid var(--line-soft); }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-foot .series { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-hover-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 4;
}
.skin-card:hover .card-hover-line,
.op-card:hover .card-hover-line { transform: scaleX(1); }

.op-card .card-media { aspect-ratio: 3 / 3.55; }
.op-card .card-body { padding-bottom: 11px; }
.op-card .card-title { font-size: 19px; }

/* ---------- filters ---------- */

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px;
  margin: 22px 0 24px;
  border: 1px solid var(--line-soft);
  background: rgba(17, 20, 23, 0.72);
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.filter-label {
  margin-right: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--line); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.class-chip.active { background: var(--chip-color, var(--accent)); border-color: var(--chip-color, var(--accent)); }
.filter-sep { width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
.filter-spacer { flex: 1; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.toggle:hover { border-color: var(--accent); color: var(--text); }
.toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.toggle .switch {
  position: relative;
  width: 22px; height: 12px;
  border: 1px solid currentColor;
  border-radius: 20px;
}
.toggle .switch::after {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.toggle[aria-pressed="true"] .switch::after { transform: translateX(10px); }

.select {
  height: 32px;
  min-width: 124px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background-color: var(--panel);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 11px;
  appearance: none;
}
.select:focus { border-color: var(--accent); outline: none; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.field svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--dim); stroke-width: 1.8; }
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}
.field input::placeholder { color: var(--dim); }

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.result-meta strong { color: var(--text); font-weight: 700; }

.empty {
  padding: 70px 20px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px; }
.empty p { margin: 0; font-size: 12px; }

.load-more { display: flex; justify-content: center; padding: 28px 0 4px; }

/* ---------- detail ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--line); }

.detail {
  padding: 26px 0 clamp(50px, 7vw, 90px);
}
.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}
.stage-wrap { min-width: 0; }
.art-stage {
  position: relative;
  height: clamp(460px, 72vh, 790px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 56% 46% at 50% 58%, rgba(255, 255, 255, 0.075), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 110%, color-mix(in srgb, var(--class-color, #6c7378) 18%, transparent), transparent 70%),
    linear-gradient(150deg, #15191c, #0a0c0e 65%);
  user-select: none;
}
.art-stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
  z-index: 5;
}
.art-stage::after {
  content: attr(data-index);
  position: absolute;
  right: 16px;
  bottom: 6px;
  z-index: 0;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--display);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.art-stage .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: clamp(14px, 2.5vw, 34px);
  transition: opacity 0.25s;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}
.art-stage .layer.base { z-index: 1; }
.art-stage .layer.skin {
  z-index: 2;
  clip-path: inset(0 0 0 var(--split, 50%));
}
.art-stage.mode-base .layer.skin,
.art-stage.mode-base .compare-divider,
.art-stage.mode-base .compare-range,
.art-stage.mode-skin .layer.base,
.art-stage.mode-skin .compare-divider,
.art-stage.mode-skin .compare-range { display: none; }
.art-stage.mode-skin .layer.skin { clip-path: none; }
.compare .layer.skin { will-change: clip-path; }
.compare-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  z-index: 4;
  width: 1px;
  background: rgba(243, 213, 30, 0.85);
  box-shadow: 0 0 18px rgba(243, 213, 30, 0.35);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--accent);
  background: rgba(8, 9, 10, 0.82);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
}
.compare-range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.stage-label {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: rgba(8, 9, 10, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}
.stage-label::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.stage-tools {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 7;
  display: flex;
  gap: 6px;
}
.stage-tool {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 10, 0.7);
  color: var(--muted);
  backdrop-filter: blur(5px);
  transition: color 0.2s, border-color 0.2s;
}
.stage-tool:hover { color: var(--accent); border-color: var(--accent); }
.stage-tool svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--accent); color: var(--accent-ink); }
.stage-hint { color: var(--dim); font-size: 10px; }

.info-panel { min-width: 0; padding-top: 2px; }
.detail-overline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 82px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.detail-title .op { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.38em; font-weight: 400; letter-spacing: 0.02em; }
.detail-en {
  margin: 8px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail-desc {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.meta-item {
  padding: 12px 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.meta-item dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.meta-item dd { margin: 4px 0 0; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.5; }
.meta-item dd a { color: var(--accent); }
.meta-item dd a:hover { text-decoration: underline; }

.action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }

.facts {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: rgba(17, 20, 23, 0.55);
}
.facts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.facts-head strong { font-size: 13px; letter-spacing: 0.04em; }
.facts-head span { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.fact {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
}
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.fact dd { margin: 0; color: var(--muted); line-height: 1.65; }
.fact dd strong { color: var(--text); }
.fact .yes { color: var(--accent); }
.fact .no { color: var(--dim); }

.note {
  position: relative;
  margin-top: 18px;
  padding: 13px 15px 13px 17px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}
.note strong { color: var(--text); }

/* ---------- dynamic section ---------- */

.dynamic-section { margin-top: clamp(42px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-soft); }
.dynamic-section .section-head { margin-bottom: 18px; }
.video-card {
  border: 1px solid var(--line);
  background: #050606;
}
.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 0.6s var(--ease), opacity 0.3s; }
.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}
.video-cover:hover img { transform: scale(1.02); opacity: 1; }
.video-cover .play-ring {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px; height: 82px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.video-cover:hover .play-ring { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.video-cover .play-ring svg { width: 24px; height: 24px; fill: currentColor; margin-left: 4px; }
.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.video-caption strong { color: var(--muted); font-family: var(--font); font-size: 10px; letter-spacing: 0.04em; }
.action-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.action-tab {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.action-tab:hover { color: var(--text); border-color: var(--muted); }
.action-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.action-tab small { margin-left: 5px; opacity: 0.65; font-family: var(--mono); font-size: 8px; }

.motion-note {
  max-width: 760px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.motion-card {
  position: relative;
  aspect-ratio: 500 / 725;
  padding: 0;
  border: 1px solid var(--line);
  background: #070909;
  overflow: hidden;
  text-align: left;
}
.motion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.motion-card:hover img { transform: scale(1.035); opacity: 0.9; }
.motion-gif {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.motion-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -46%);
  transition: opacity 0.25s, transform 0.25s, background 0.25s;
  backdrop-filter: blur(5px);
}
.motion-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.motion-card:hover .motion-play { opacity: 1; transform: translate(-50%, -50%); background: var(--accent); color: var(--accent-ink); }
.motion-label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #f1f1ee;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.motion-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.empty-video {
  padding: 30px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty-video strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 14px; }

.related-strip { margin-top: 30px; }
.related-strip h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.06em; }
.related-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.related-row .skin-card { min-width: 150px; }

/* ---------- operator detail ---------- */

.op-hero {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}
.op-portrait {
  position: relative;
  aspect-ratio: 1 / 2;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 85%, color-mix(in srgb, var(--class-color, #6c7378) 22%, transparent), transparent 70%), var(--panel);
  overflow: hidden;
}
.op-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; padding: 8px 4px 0; }
.op-hero-copy { min-width: 0; padding-bottom: 4px; }
.op-hero .detail-title { margin-top: 8px; }
.op-hero .detail-desc { border-top: 0; padding-top: 0; margin-top: 12px; }
.op-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.op-stat { display: grid; gap: 2px; }
.op-stat strong { font-family: var(--display); font-size: 24px; line-height: 1; }
.op-stat span { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }

.operator-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; }

/* ---------- class tiles ---------- */

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.class-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.class-tile:hover { border-color: var(--class-color); background: var(--panel-2); transform: translateY(-3px); }
.class-tile::after {
  content: attr(data-glyph);
  position: absolute;
  right: 2px; bottom: -18px;
  color: color-mix(in srgb, var(--class-color) 18%, transparent);
  font-family: var(--display);
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
}
.class-tile .class-badge { width: 34px; height: 34px; font-size: 14px; flex: none; }
.class-tile strong { display: block; font-size: 17px; line-height: 1.2; }
.class-tile span { display: block; margin-top: 3px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.step::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 38px;
  font-weight: 900;
  line-height: 0.8;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

/* ---------- dynamics page ---------- */

.dynamics-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dyn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.dyn-card:hover { border-color: rgba(243, 213, 30, 0.55); transform: translateY(-4px); }
.dyn-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
  text-align: left;
}
.dyn-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.dyn-card:hover .dyn-poster img { transform: scale(1.03); }
.dyn-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,8,9,0.75)); pointer-events: none; }
.dyn-poster .dyn-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.dyn-play {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.45);
  color: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dyn-card:hover .dyn-play { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dyn-play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.dyn-body { padding: 12px 13px 13px; }
.dyn-body h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.dyn-body p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.dyn-body .dyn-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- about ---------- */

.prose { max-width: 820px; }
.prose h2 { margin: 38px 0 12px; font-family: var(--display); font-size: 30px; font-weight: 900; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.prose li { margin-bottom: 5px; }
.prose .note { margin-top: 20px; }
.source-list { display: grid; gap: 8px; margin: 16px 0 0; }
.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  font-size: 12px;
}
.source-item span { color: var(--muted); }
.source-item a { color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- modals ---------- */

.modal { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: 9vh 18px 28px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 4, 5, 0.78); backdrop-filter: blur(9px); }
.modal-backdrop { animation: fade-in 0.2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.search-panel {
  position: relative;
  width: min(720px, 100%);
  border: 1px solid var(--line);
  background: #0b0d0f;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: panel-in 0.22s var(--ease) both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-10px) scale(0.99); } to { opacity: 1; transform: none; } }
.search-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.search-head > svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.search-head input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 18px; font-weight: 600; }
.search-head input::placeholder { color: var(--dim); font-weight: 400; }
.search-hint { padding: 9px 18px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; border-bottom: 1px solid var(--line-soft); }
.search-results { max-height: min(58vh, 540px); overflow-y: auto; padding: 6px; }
.search-group-label { padding: 10px 12px 5px; color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: 0.13em; text-transform: uppercase; }
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  text-align: left;
  background: transparent;
  color: var(--text);
}
.search-item:hover,
.search-item.active { background: var(--panel-2); border-color: var(--line); }
.search-thumb { width: 38px; height: 50px; flex: none; border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: grid; place-items: center; }
.search-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.search-copy { min-width: 0; flex: 1; }
.search-copy strong { display: block; overflow: hidden; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.search-copy span { display: block; overflow: hidden; color: var(--dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-type { flex: none; padding: 3px 6px; border: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase; }
.search-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.search-empty strong { display: block; color: var(--text); margin-bottom: 4px; }

.theater { align-items: center; padding: 4vh 18px; }
.theater-panel { position: relative; width: min(1180px, 100%); max-height: 92vh; overflow-y: auto; border: 1px solid var(--line); background: #090b0c; box-shadow: 0 30px 100px rgba(0,0,0,0.65); animation: panel-in 0.25s var(--ease) both; }
.theater-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.theater-head h2 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1; }
.theater-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.theater-head .icon-btn.close { flex: none; }
.theater-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.theater-stage video { width: 100%; height: 100%; background: #000; }
.theater-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s;
}
.theater-loading[hidden] { display: none; }
.theater-loading span { width: 16px; height: 16px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.theater .action-tabs { padding: 12px 18px; }
.theater-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 10px; line-height: 1.6; }
.theater-foot p { margin: 0; max-width: 72ch; }
.theater-foot a { color: var(--accent); white-space: nowrap; font-family: var(--mono); font-size: 9px; }

.lightbox { align-items: center; padding: 18px; background: rgba(3,4,5,0.92); }
.lightbox .modal-backdrop { background: rgba(3,4,5,0.9); }
.lightbox-close { position: fixed; top: 18px; right: 18px; z-index: 3; background: #0b0d0f; }
.lightbox-figure { position: relative; z-index: 2; margin: 0; display: grid; justify-items: center; gap: 10px; max-width: 94vw; }
.lightbox-figure img { max-width: 92vw; max-height: 86vh; object-fit: contain; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); }
.lightbox-figure figcaption { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: #060708; }
.footer-main {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
  padding: 34px 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-size: 13px; letter-spacing: 0.08em; }
.footer-brand p { margin: 3px 0 0; color: var(--dim); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 5px; }
.footer-links a { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; }
.footer-links a:hover { color: var(--accent); }
.footer-fine {
  width: min(var(--max), 100% - var(--pad) * 2);
  margin-inline: auto;
  padding: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px 30px;
  flex-wrap: wrap;
}
.footer-fine p { margin: 0; max-width: 78ch; color: #5f6360; font-size: 9px; line-height: 1.7; }

/* ---------- misc ---------- */

.img-broken { opacity: 0.2; filter: grayscale(1); }
.hide { display: none !important; }

@media (max-width: 1180px) {
  .detail-top { grid-template-columns: 1fr; }
  .art-stage { height: min(74vh, 720px); }
  .info-panel { max-width: 860px; }
  .hero-grid { grid-template-columns: 1fr 0.82fr; gap: 34px; }
  .hero-title { font-size: clamp(54px, 8vw, 104px); }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-trigger { display: block; }
  .topbar-inner { height: 62px; }
  .mobile-menu { top: 62px; }
  .hero { min-height: auto; padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { max-width: 620px; min-height: 380px; }
  .feature-link { min-height: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .op-hero { grid-template-columns: 150px 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 36px; padding: 0; justify-content: center; }
  .hero-title { font-size: clamp(50px, 14vw, 82px); }
  .hero-text { font-size: 13px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-feature { min-height: 330px; }
  .feature-link { min-height: 310px; }
  .page-head { padding-top: 36px; }
  .page-title { font-size: clamp(44px, 12vw, 70px); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filterbar { padding: 11px; gap: 8px; }
  .filter-spacer { display: none; }
  .field { min-width: 0; flex: 1 1 100%; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-title { font-size: 15px; }
  .card-body { padding: 10px; }
  .card-foot { font-size: 7px; }
  .op-card .card-title { font-size: 16px; }
  .art-stage { height: 62vh; min-height: 390px; }
  .compare-handle { width: 36px; height: 36px; }
  .detail-title { font-size: clamp(42px, 12vw, 66px); }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .op-hero { grid-template-columns: 1fr; }
  .op-portrait { width: 150px; aspect-ratio: 1 / 2; }
  .class-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .class-tile { min-height: 78px; padding: 12px; gap: 10px; }
  .class-tile strong { font-size: 15px; }
  .class-tile::after { font-size: 58px; }
  .dynamics-grid { grid-template-columns: 1fr; }
  .theater { padding: 2vh 8px; }
  .theater-foot { flex-direction: column; gap: 8px; }
  .footer-main { flex-direction: column; gap: 18px; }
  .footer-fine { flex-direction: column; gap: 8px; }
  .modal { padding-top: 6vh; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 12px; }
  .stat-num { font-size: 38px; }
  .card-grid { gap: 8px; }
  .card-media img { padding: 8px 2px 0; }
  .card-title { font-size: 14px; }
  .card-sub { font-size: 9px; }
  .dyn-badge { font-size: 7px; height: 19px; padding: 0 5px; }
  .class-badge { width: 24px; height: 24px; font-size: 10px; }
  .segmented button { padding: 0 9px; font-size: 9px; }
  .meta-grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 68px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}