/* ==========================================================================
   亿游互娱主页 / 共享样式 /assets/site.css
   深空面板基底 + 电光青/霓虹紫强调 + 目录型内容地图
   ========================================================================== */

:root {
  --c-void: #05070E;
  --c-panel: #0B1020;
  --c-layer: #131A33;
  --c-cyan: #2BE3E0;
  --c-violet: #7B5CFF;
  --c-amber: #FFB24D;
  --c-green: #4DE1A0;
  --c-rose: #FF6B8A;
  --c-text: #E8EEF9;
  --c-body: #C6D2EA;
  --c-mute: #93A2C4;
  --c-line: #1E2A4A;

  --shell-rail-h: 38px;
  --shell-bar-h: 62px;
  --shell-h: calc(var(--shell-rail-h) + var(--shell-bar-h));

  --wrap: 1240px;
  --wrap-read: 780px;
  --gutter: 20px;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --t-fast: 170ms;
  --t-base: 240ms;

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-head);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

@media (min-width: 960px) {
  :root {
    --shell-rail-h: 40px;
    --shell-bar-h: 76px;
    --gutter: 32px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--c-line) var(--c-void);
}

body {
  margin: 0;
  padding-top: var(--shell-h);
  background-color: var(--c-void);
  background-image:
    radial-gradient(1200px 520px at 82% -12%, rgba(123, 92, 255, 0.14), transparent 68%),
    radial-gradient(900px 420px at 4% 4%, rgba(43, 227, 224, 0.09), transparent 66%);
  background-repeat: no-repeat;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-cyan); text-decoration: none; }

ul, ol { margin: 0; padding: 0; }

img, svg, video { max-width: 100%; display: block; }

button { font-family: inherit; }

::selection { background: var(--c-cyan); color: #04070f; }

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------- skip link */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--c-cyan);
  color: #04202a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------- shell */
.site-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

/* --------------------------------------------------------- status rail */
.status-rail {
  height: var(--shell-rail-h);
  background:
    linear-gradient(90deg, rgba(43, 227, 224, 0.18) 0%, rgba(123, 92, 255, 0.16) 52%, rgba(255, 178, 77, 0.12) 100%),
    rgba(5, 7, 14, 0.94);
  border-bottom: 1px solid var(--c-line);
}

.status-rail__inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.status-rail__pulse {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  animation: rail-pulse 2.6s var(--ease) infinite;
}

@keyframes rail-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(77, 225, 160, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(77, 225, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 225, 160, 0); }
}

.status-rail__version {
  color: var(--c-cyan);
  font-weight: 600;
  white-space: nowrap;
}

.status-rail__divider {
  width: 1px;
  height: 12px;
  background: rgba(147, 162, 196, 0.35);
}

.status-rail__state {
  color: var(--c-mute);
  white-space: nowrap;
}

.status-rail__spacer { flex: 1 1 auto; }

@media (max-width: 680px) {
  .status-rail__state,
  .status-rail__divider { display: none; }
}

.rail-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background: rgba(5, 7, 14, 0.45);
  border: 1px solid rgba(43, 227, 224, 0.32);
  border-radius: 999px;
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.rail-btn:hover,
.rail-btn:focus-visible {
  border-color: var(--c-cyan);
  background: rgba(43, 227, 224, 0.14);
}
.rail-btn[aria-expanded="true"] {
  border-color: var(--c-cyan);
  background: rgba(43, 227, 224, 0.22);
}

/* --------------------------------------------------------- header */
.site-header {
  position: relative;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.site-shell.is-scrolled .site-header {
  background: rgba(5, 7, 14, 0.97);
  border-bottom-color: var(--c-line);
}

@media (min-width: 960px) {
  .site-shell.is-scrolled .site-header {
    background: rgba(5, 7, 14, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.site-header__inner {
  max-width: var(--wrap);
  height: var(--shell-bar-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* brand */
.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-violet));
  color: #04070f;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

/* nav */
.site-nav { display: none; }

@media (min-width: 960px) {
  .site-nav {
    display: block;
    margin-left: auto;
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
  }
  .site-nav__link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-s);
    color: var(--c-mute);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  }
  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    color: var(--c-text);
    background: rgba(43, 227, 224, 0.08);
  }
  .site-nav__link[aria-current="page"] {
    color: var(--c-cyan);
    box-shadow: inset 0 -2px 0 var(--c-cyan);
  }
}

@media (max-width: 959px) {
  .site-nav {
    display: block;
    position: fixed;
    top: var(--shell-h);
    right: 0;
    bottom: 0;
    z-index: 95;
    width: min(340px, 86vw);
    padding: 26px var(--gutter) 44px;
    background: var(--c-panel);
    border-left: 1px solid var(--c-line);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform var(--t-base) var(--ease), visibility var(--t-base) var(--ease);
  }
  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }
  .site-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .site-nav__link {
    display: block;
    padding: 14px 14px;
    border-left: 2px solid transparent;
    color: var(--c-mute);
    font-size: 17px;
    font-weight: 600;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }
  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    color: var(--c-text);
    background: rgba(43, 227, 224, 0.06);
  }
  .site-nav__link[aria-current="page"] {
    color: var(--c-cyan);
    background: rgba(43, 227, 224, 0.08);
    border-left-color: var(--c-cyan);
  }
}

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

@media (min-width: 960px) {
  .header-actions { margin-left: 16px; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 38px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--c-cyan); }

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] { border-color: var(--c-cyan); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

@media (max-width: 620px) {
  .header-cta { display: none; }
}

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet) 58%, var(--c-amber));
  transform: scaleX(0);
  transform-origin: left center;
}

/* --------------------------------------------------------- lookup panel */
.lookup-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--shell-h);
  z-index: 88;
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
}
.lookup-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lookup-panel__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 24px;
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .lookup-panel__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.lookup-card__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.lookup-card__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--c-text);
}

.lookup-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
}

/* --------------------------------------------------------- copy field */
.copy-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.copy-field:hover,
.copy-field:focus-visible { color: var(--c-cyan); }

.copy-field__value {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.copy-field__hint {
  flex: none;
  padding: 1px 6px;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--c-mute);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.copy-field.is-copied { color: var(--c-green); }
.copy-field.is-copied .copy-field__hint {
  color: var(--c-green);
  border-color: var(--c-green);
}

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}

.btn--primary {
  background: linear-gradient(120deg, var(--c-cyan), var(--c-violet));
  color: #04070f;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.btn--primary:hover { filter: brightness(1.09); }

.btn--ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-text);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

/* --------------------------------------------------------- footer */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--c-panel);
  border-top: 1px solid var(--c-line);
}

.footer-band {
  position: relative;
  height: 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(180deg, var(--c-void), var(--c-panel));
}

@media (min-width: 760px) {
  .footer-band { height: 68px; }
}

.footer-band__ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  opacity: 0.55;
  background: linear-gradient(90deg, rgba(43, 227, 224, 0.15) 0%, rgba(43, 227, 224, 0.7) 22%, rgba(123, 92, 255, 0.7) 64%, rgba(43, 227, 224, 0.1) 100%);
  clip-path: polygon(
    0% 100%, 0% 66%, 3% 66%, 3% 58%, 6% 58%, 6% 48%, 9% 48%, 9% 60%,
    13% 60%, 13% 42%, 16% 42%, 16% 52%, 20% 52%, 20% 36%, 24% 36%, 24% 54%,
    28% 54%, 28% 46%, 33% 46%, 33% 30%, 37% 30%, 37% 48%, 42% 48%, 42% 56%,
    47% 56%, 47% 38%, 52% 38%, 52% 24%, 57% 24%, 57% 46%, 62% 46%, 62% 54%,
    67% 54%, 67% 34%, 72% 34%, 72% 48%, 77% 48%, 77% 58%, 82% 58%, 82% 44%,
    87% 44%, 87% 54%, 91% 54%, 91% 62%, 95% 62%, 95% 52%, 100% 52%, 100% 100%
  );
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 72%);
}

.footer-band__scan {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(0deg, rgba(232, 238, 249, 0.07) 0 1px, transparent 1px 4px);
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px var(--gutter) 30px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; }
  .footer-brand { grid-column: auto; }
}

.footer-brand__line {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

.footer-brand__region {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.contact-list__label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.contact-list__value {
  display: block;
  color: var(--c-body);
  line-height: 1.65;
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.footer-col__list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-link {
  color: var(--c-text);
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

.footer-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-mute);
}

.footer-base__icp { margin: 0; }

.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-legal a {
  color: var(--c-mute);
  transition: color var(--t-fast) var(--ease);
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--c-cyan); }

.footer-copy { margin: 0; }

.footer-base__note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--c-mute);
}

/* --------------------------------------------------------- layout helpers */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--read { max-width: var(--wrap-read); }

.section { padding: 56px 0; }

@media (min-width: 900px) {
  .section { padding: 84px 0; }
}

.section--void { background: var(--c-void); }
.section--panel { background: var(--c-panel); }
.section--layer { background: var(--c-layer); }

.section__head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.section__eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-cyan);
}

.section__title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
}

.section__lede {
  margin: 0;
  max-width: 66ch;
  font-size: 16.5px;
  color: var(--c-mute);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

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

@media (min-width: 880px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { gap: 24px; }
}

.grid--split { grid-template-columns: 1fr; }

@media (min-width: 1000px) {
  .grid--split { grid-template-columns: 260px minmax(0, 1fr); gap: 44px; }
}

/* --------------------------------------------------------- surfaces */
.panel {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: 22px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.panel:hover { border-color: var(--c-cyan); }

@media (min-width: 760px) {
  .panel { padding: 28px; }
}

/* --------------------------------------------------------- tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: rgba(19, 26, 51, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--c-mute);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.tag--new {
  color: var(--c-amber);
  border-color: rgba(255, 178, 77, 0.45);
  background: rgba(255, 178, 77, 0.1);
}
.tag--reco {
  color: var(--c-cyan);
  border-color: rgba(43, 227, 224, 0.45);
  background: rgba(43, 227, 224, 0.1);
}
.tag--ok {
  color: var(--c-green);
  border-color: rgba(77, 225, 160, 0.45);
  background: rgba(77, 225, 160, 0.1);
}
.tag--warn {
  color: var(--c-rose);
  border-color: rgba(255, 107, 138, 0.45);
  background: rgba(255, 107, 138, 0.1);
}

/* --------------------------------------------------------- inline link */
.text-link {
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(43, 227, 224, 0.35);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.text-link:hover,
.text-link:focus-visible {
  color: #8ff4f3;
  border-bottom-color: var(--c-cyan);
}

/* --------------------------------------------------------- breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-mute);
}

.breadcrumb__item {
  color: var(--c-mute);
  transition: color var(--t-fast) var(--ease);
}
.breadcrumb__item:hover,
.breadcrumb__item:focus-visible { color: var(--c-cyan); }

.breadcrumb__sep { color: var(--c-line); }

.breadcrumb__current { color: var(--c-text); }

/* --------------------------------------------------------- prose */
.prose {
  max-width: var(--wrap-read);
  font-size: 16px;
  line-height: 1.85;
}

.prose p {
  margin: 0 0 1.15em;
  color: var(--c-body);
}

.prose h2 {
  margin: 2em 0 0.6em;
  font-size: 26px;
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 20px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  color: var(--c-body);
}

.prose li { margin: 0.35em 0; }

.prose strong { color: var(--c-text); }

.prose a {
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(43, 227, 224, 0.35);
}

/* --------------------------------------------------------- utilities */
.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.04em;
  color: var(--c-cyan);
}

/* --------------------------------------------------------- figure */
.figure {
  display: block;
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-layer);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  transition: border-color var(--t-fast) var(--ease);
}

.figure:hover .figure__frame { border-color: var(--c-cyan); }

.figure--wide .figure__frame { aspect-ratio: 16 / 9; }
.figure--panorama .figure__frame { aspect-ratio: 21 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }

.figure__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure__media[data-placeholder] {
  background-image:
    linear-gradient(135deg, rgba(43, 227, 224, 0.16), rgba(123, 92, 255, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(232, 238, 249, 0.05) 14px 28px);
  background-color: var(--c-layer);
}

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--c-mute);
}

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

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