/* =========================================================
   /assets/site.css — 爱游戏AYX 共享外壳（夜间赛事数据台）
   01 Reset · 02 Tokens · 03 Base · 04 Layout · 05 Controls
   06 Header · 07 Footer · 08 Components · 09 Utilities
   ========================================================= */

/* ---------- 01 · Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
img, svg, video, picture, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 02 · Tokens ---------- */
:root {
  /* 珠宝色分区 */
  --ink: #0A1622;
  --panel: #0F2233;
  --teal: #123A44;
  --indigo: #241C3D;
  --wine: #3A1626;
  /* 功能色 */
  --cyan: #4DE3FF;
  --amber: #F2B33D;
  --lime: #6CFF9E;
  --paper: #E8EEF4;
  --slate: #93A6B8;

  --line: rgba(147, 166, 184, 0.18);
  --line-strong: rgba(147, 166, 184, 0.34);
  --line-cyan: rgba(77, 227, 255, 0.5);
  --line-amber: rgba(242, 179, 61, 0.5);
  --line-lime: rgba(108, 255, 158, 0.5);

  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --rail: 88px;
  --bar: 60px;
  --gutter: clamp(18px, 4vw, 46px);
  --wrap: 1240px;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: 180ms cubic-bezier(0.35, 0.7, 0.3, 1);
  --shadow-up: 0 18px 40px -26px rgba(0, 0, 0, 0.95);
}

/* ---------- 03 · Base ---------- */
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  padding-top: var(--bar);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 82% -10%, rgba(77, 227, 255, 0.10), transparent 62%),
    radial-gradient(820px 460px at 4% 108%, rgba(242, 179, 61, 0.06), transparent 58%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) {
  body { padding-left: var(--rail); }
}
::selection { background: rgba(242, 179, 61, 0.32); color: #ffffff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.18;
}
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { scroll-margin-top: calc(var(--bar) + 18px); outline: none; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.muted { color: var(--slate); }
.lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.8;
  color: #C6D3DF;
  max-width: 62ch;
}

/* ---------- 04 · Layout ---------- */
.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.section { padding-block: clamp(44px, 6.5vw, 92px); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 05 · Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn--amber {
  background: var(--amber);
  color: #1A1206;
  box-shadow: 0 12px 26px -16px rgba(242, 179, 61, 0.95);
}
.btn--amber:hover { background: #FFC65A; transform: translateY(-1px); }
.btn--amber:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(15, 34, 51, 0.7);
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--line-cyan); color: var(--cyan); }
.btn--sm { padding: 8px 16px; font-size: 0.78rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.badge--cyan { color: var(--cyan); border-color: var(--line-cyan); }
.badge--amber { color: var(--amber); border-color: var(--line-amber); }
.badge--live { color: var(--lime); border-color: var(--line-lime); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(10, 22, 34, 0.62);
  font-size: 0.8rem;
  color: #B9C8D6;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.chip:hover { border-color: var(--line-cyan); color: var(--cyan); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--line-cyan);
  color: var(--paper);
}

/* ---------- 06 · Header ---------- */
.site-header { position: relative; z-index: 60; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--amber);
  color: #1A1206;
  font-weight: 700;
  font-size: 0.86rem;
  transform: translateY(-200%);
  transition: transform var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* 顶部状态栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar);
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(14px, 3vw, 26px);
  background: rgba(10, 22, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .topbar { left: var(--rail); }
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  border: 1px solid var(--line-cyan);
  background: linear-gradient(150deg, var(--teal), var(--indigo));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__ver {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.topbar__spacer { flex: 1 1 auto; }

.status { display: none; align-items: center; gap: 12px; min-width: 0; }
@media (min-width: 1100px) {
  .status { display: flex; }
}
.status__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #AFC0CF;
  white-space: nowrap;
}
.status__item .num { color: var(--paper); margin-left: 2px; }
.status__sep { width: 1px; height: 14px; flex: none; background: var(--line-strong); }

.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(108, 255, 158, 0.5);
  animation: livePulse 2.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(108, 255, 158, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(108, 255, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 255, 158, 0); }
}

/* 汉堡按钮 */
.nav-toggle { display: none; }
@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(15, 34, 51, 0.78);
    transition: border-color var(--ease), background var(--ease);
  }
  .nav-toggle:hover { border-color: var(--line-cyan); }
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: background var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-header[data-open] .nav-toggle { border-color: var(--line-amber); }

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: var(--bar) 0 0 0;
  z-index: 61;
  display: none;
  background: rgba(5, 11, 18, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
@media (max-width: 1023px) {
  .nav-scrim { display: block; }
  .site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }
  html.nav-locked { overflow: hidden; }
}

/* 侧边轨道 */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 62;
  display: flex;
  flex-direction: column;
  padding: 0 0 14px;
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.98), rgba(10, 22, 34, 0.99));
  border-right: 1px solid var(--line);
}
.rail__head {
  height: var(--bar);
  flex: none;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.rail__rule {
  width: 2px;
  height: 24px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(77, 227, 255, 0));
}
.rail__nav { flex: 1 1 auto; padding: 12px 8px 0; overflow: visible; }
.rail__list { display: flex; flex-direction: column; gap: 6px; }
.rail__item { position: relative; }
.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}
.rail__idx {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  transition: color var(--ease);
}
.rail__label {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #B9C8D6;
  transition: color var(--ease);
}
.rail__link:hover { background: rgba(18, 58, 68, 0.72); border-color: var(--line-cyan); }
.rail__link:hover .rail__label,
.rail__link:hover .rail__idx { color: var(--cyan); }
.rail__link[aria-current="page"] {
  background: linear-gradient(160deg, rgba(18, 58, 68, 0.95), rgba(36, 28, 61, 0.92));
  border-color: var(--line-cyan);
}
.rail__link[aria-current="page"] .rail__label { color: var(--paper); }
.rail__link[aria-current="page"] .rail__idx { color: var(--cyan); }
.rail__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 26px;
  border-radius: 0 2px 2px 0;
  background: var(--cyan);
}
.rail__hint {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 5;
  transform: translate(-4px, -50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 5px 13px;
  border-radius: var(--pill);
  border: 1px solid var(--line-cyan);
  background: var(--panel);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-up);
  transition: opacity var(--ease), transform var(--ease);
}
.rail__link:hover .rail__hint,
.rail__link:focus-visible .rail__hint { opacity: 1; transform: translate(0, -50%); }
.rail__foot {
  margin-top: 8px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rail__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}
.rail__cta { display: none; }

@media (max-width: 1023px) {
  .rail {
    top: var(--bar);
    width: min(84vw, 320px);
    padding: 16px 14px 22px;
    border-right: 1px solid var(--line-strong);
    border-bottom-right-radius: var(--radius-xl);
    box-shadow: 26px 0 60px -34px #000;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 240ms cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  .site-header[data-open] .rail { transform: none; }
  .rail__head { display: none; }
  .rail__nav { flex: 0 0 auto; padding: 0; }
  .rail__list { gap: 4px; }
  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .rail__idx { font-size: 0.7rem; min-width: 22px; }
  .rail__label { font-size: 0.95rem; }
  .rail__hint { display: none; }
  .rail__link[aria-current="page"]::after {
    left: auto;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  .rail__foot { margin-top: auto; align-items: stretch; }
  .rail__status { justify-content: flex-start; }
  .rail__cta { display: inline-flex; width: 100%; }
}

/* ---------- 07 · Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(52px, 8vw, 104px);
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.62), rgba(10, 22, 34, 1));
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(77, 227, 255, 0) 40%, rgba(242, 179, 61, 0) 60%, var(--amber));
}
.footer__inner {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 62px) 26px;
}
.footer__grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 1080px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; }
.footer__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.footer__logo-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer__tagline {
  font-size: 0.9rem;
  color: #B9C8D6;
  max-width: 30ch;
}
.footer__stamp { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__link {
  display: inline-block;
  font-size: 0.9rem;
  color: #C6D3DF;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.footer__link:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: #AFC0CF;
}
.footer__contact-item { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer__address {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--slate);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--slate);
}
.footer__legal-line { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 08 · Components ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.breadcrumb a {
  color: var(--slate);
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--line-cyan); }
.breadcrumb__sep { opacity: 0.5; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.sec-head__idx {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.sec-head__title { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.sec-head__desc { max-width: 46ch; font-size: 0.9rem; color: var(--slate); }

.band {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 38px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
}
.band--teal { background: linear-gradient(140deg, #123A44, #0F2233); }
.band--indigo { background: linear-gradient(140deg, #241C3D, #0F2233); }
.band--wine { background: linear-gradient(140deg, #3A1626, #0F2233); }
.band--amber { background: linear-gradient(140deg, rgba(242, 179, 61, 0.16), rgba(15, 34, 51, 0.92)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 26px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(15, 34, 51, 0.86);
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.card:hover {
  border-color: var(--line-cyan);
  transform: translateY(-2px);
  background: rgba(18, 58, 68, 0.55);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card__body { font-size: 0.92rem; color: #BCCBD9; }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--paper);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #123A44, #241C3D);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: rgba(10, 22, 34, 0.82);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.1em; color: #C6D3DF; }
.prose h2 { margin: 1.9em 0 0.6em; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.prose h3 { margin: 1.6em 0 0.5em; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.2em; list-style: disc; color: #C6D3DF; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--paper); }
.prose a { color: var(--cyan); border-bottom: 1px solid var(--line-cyan); }

/* ---------- 09 · Utilities ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-cyan);
  background: rgba(15, 34, 51, 0.95);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), border-color var(--ease);
}
.to-top[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--amber); color: var(--amber); }

.u-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.angle { clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%); }
.angle--rev { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 76%); }

@media (max-width: 560px) {
  .brand__ver { display: none; }
  .brand__name { font-size: 0.95rem; }
}

/* ---------- 10 · Reduced motion ---------- */
@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;
  }
  .live-dot { animation: none; }
  .rail { transition: none; }
  .card:hover { transform: none; }
}
