/* ==========================================================================
   金年会电子游 · festival-play.com.cn
   Site Kit —— 夜间球场指挥中心
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5,
p, figure, blockquote, dl, dd, ul, ol, fieldset { margin: 0; }

ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0F0E;
  --stand: #0F241C;
  --turf: #1C3A2E;
  --paper: #E8E4D8;
  --cyan: #39F2D0;
  --gold: #F2B84B;
  --red: #D94A3D;
  --moss: #8FA89B;
  --line: #2E3B36;
  --chalk: #F7F4EA;

  --on-cyan: #04120F;
  --on-gold: #1A1206;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", "Arial Narrow", Impact, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --pad-x: clamp(16px, 3vw, 36px);
  --maxw: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --z-header: 90;
  --z-top: 80;
}

/* ---------- Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(28, 58, 46, .40) 0%, rgba(11, 15, 14, 0) 46%),
    repeating-linear-gradient(90deg, rgba(46, 59, 54, .16) 0 1px, transparent 1px 148px);
  background-repeat: no-repeat, repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-narrow);
  font-weight: 900;
  line-height: 1.12;
  color: var(--chalk);
}

h1 { font-size: clamp(36px, 5.6vw, 72px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.1vw, 26px); }

p { line-height: 1.78; }

strong { font-weight: 700; color: var(--chalk); }

::selection {
  background: var(--cyan);
  color: var(--on-cyan);
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--on-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform .16s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

/* --- 顶部脉冲轨 --- */
.pulse-rail {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px var(--pad-x);
  max-height: 44px;
  overflow: hidden;
  background: var(--stand);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--moss);
  transition:
    max-height .24s var(--ease),
    padding-top .24s var(--ease),
    padding-bottom .24s var(--ease),
    opacity .18s var(--ease),
    border-bottom-color .2s var(--ease);
}

.site-header[data-condensed] .pulse-rail {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.pulse-rail__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.pulse-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(57, 242, 208, .55);
  animation: pulse-dot 2.2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(57, 242, 208, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(57, 242, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 242, 208, 0); }
}

.pulse-rail__label {
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--moss);
}

.pulse-rail__time {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.rail-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.rail-link {
  color: var(--moss);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px dotted var(--line);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.rail-link:hover,
.rail-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* --- 主栏 --- */
.header-main {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.6vw, 40px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(10px, 1.6vw, 18px) var(--pad-x);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  font-family: var(--font-narrow);
  font-size: clamp(16px, 1.9vw, 21px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .16em;
  color: var(--chalk);
  text-shadow: 0 0 24px rgba(57, 242, 208, .22);
  transition: color .15s var(--ease);
}

.brand:hover .brand__mark { color: var(--cyan); }

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--moss);
  white-space: nowrap;
}

/* --- 导航 --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(2px, 1.1vw, 16px);
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 6px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  opacity: .85;
  transform: translateY(-1px);
}

.nav-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-link:hover .nav-index { color: var(--cyan); opacity: 1; }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--cyan);
  opacity: 1;
}

/* --- 头部动作区 --- */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* --- 菜单按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), top .18s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.site-header[data-open] .nav-toggle {
  color: var(--cyan);
  border-color: var(--cyan);
}

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* --- 滚动进度 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  pointer-events: none;
  transition: width .1s linear;
}

/* --- 头部断点 --- */
@media (max-width: 1190px) {
  .brand__tag { display: none; }

  .header-main { grid-template-columns: 1fr auto auto; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-self: stretch;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 8px var(--pad-x) 20px;
    background: var(--stand);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 56px -34px #000;
  }

  .site-header[data-open] .site-nav { display: flex; }

  .nav-link {
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link:hover { border-left-color: var(--cyan); }

  .nav-link[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--cyan);
  }
}

@media (max-width: 720px) {
  .rail-links { display: none; }
  .pulse-rail__label { display: none; }
}

@media (max-width: 560px) {
  .nav-toggle__text { display: none; }
  .header-actions .btn--anchor {
    padding: 9px 11px;
    font-size: 11px;
    letter-spacing: .04em;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--cyan);
  --btn-fg: var(--on-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .15s var(--ease),
    background .15s var(--ease),
    color .15s var(--ease),
    border-color .15s var(--ease),
    box-shadow .15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(57, 242, 208, .8);
}

.btn:active { transform: translateY(0); }

.btn--anchor { background: var(--cyan); color: var(--on-cyan); }

.btn--gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn--gold:hover { box-shadow: 0 12px 26px -14px rgba(242, 184, 75, .85); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: none;
}

.btn--sm {
  padding: 8px 13px;
  font-size: 12px;
  letter-spacing: .06em;
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--wide { max-width: var(--maxw); }

.section { padding-block: clamp(40px, 6vw, 88px); }

.section--band {
  background: linear-gradient(180deg, rgba(15, 36, 28, .92), rgba(15, 36, 28, .5));
  border-block: 1px solid var(--line);
}

.section--paper {
  background: var(--paper);
  color: #16211C;
  border-block: 1px solid #C9C3B2;
}

.section--paper h2,
.section--paper h3,
.section--paper h4 { color: #0D1713; }

.section--paper a { color: #0E6E5C; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(24px, 3vw, 40px);
}

.rule--dashed { border-top: 1px dashed var(--line); }

/* ==========================================================================
   Editorial atoms
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(28, 58, 46, .55);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: skewX(-5deg);
}

.tag--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
}

.tag--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

.tag--alert {
  background: var(--red);
  border-color: var(--red);
  color: #1A0A08;
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--moss);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--line);
}

.crumbs a {
  color: var(--moss);
  text-decoration: none;
  transition: color .15s var(--ease);
}

.crumbs a:hover { color: var(--cyan); }

.crumbs [aria-current="page"] { color: var(--paper); }

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.num--cyan { color: var(--cyan); }
.num--alert { color: var(--red); }

.unit {
  margin-left: .18em;
  font-size: .55em;
  letter-spacing: 0;
  color: var(--moss);
}

/* ==========================================================================
   Cards / prose / media
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  background: linear-gradient(180deg, var(--stand), #0C1B16);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(46, 59, 54, .9);
}

.card--paper {
  background: var(--paper);
  border-color: #C9C3B2;
  color: #16211C;
  box-shadow: 4px 4px 0 rgba(28, 58, 46, .7);
}

.prose {
  padding: clamp(22px, 3.4vw, 44px);
  background: var(--paper);
  border: 1px solid #C9C3B2;
  border-radius: 2px;
  color: #16211C;
  box-shadow:
    6px 6px 0 rgba(28, 58, 46, .75),
    12px 12px 0 rgba(15, 36, 28, .5);
}

.prose p,
.prose li {
  max-width: 68ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
}

.prose p + p { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: .55em;
  color: #0D1713;
}

.prose a {
  color: #0E6E5C;
  text-underline-offset: 3px;
}

.prose strong { color: #0D1713; }

.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(57, 242, 208, .16), transparent 58%),
    linear-gradient(135deg, var(--turf), var(--stand) 58%, var(--ink));
  border: 1px solid var(--line);
  border-radius: 2px;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    116deg,
    rgba(57, 242, 208, .09) 0 2px,
    transparent 2px 16px
  );
}

.media > img,
.media > picture,
.media > video,
.media > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

/* ==========================================================================
   Filter protocol
   ========================================================================== */
.filter__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}

.filter__btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition:
    color .15s var(--ease),
    background .15s var(--ease),
    border-color .15s var(--ease);
}

.filter__btn:hover {
  color: var(--chalk);
  border-color: var(--moss);
}

.filter__btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
}

[data-filter-item][data-hidden] { display: none; }

[data-filter-item]:not([data-hidden]) {
  animation: filter-in .15s var(--ease) both;
}

@keyframes filter-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reveal
   ========================================================================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.has-js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 36, 28, .97), var(--ink) 82%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.footer-main {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.35fr)
    minmax(130px, .72fr)
    minmax(150px, .82fr)
    minmax(240px, 1.35fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 72px) var(--pad-x) clamp(26px, 3.4vw, 44px);
}

.footer-brand__mark {
  font-family: var(--font-narrow);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .14em;
  color: var(--chalk);
}

.footer-brand__domain {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-brand__statement {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--moss);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
}

.footer-col__title::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  transition: color .15s var(--ease);
}

.footer-list a::before {
  content: "";
  width: 6px;
  height: 1px;
  background: var(--cyan);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .15s var(--ease), transform .18s var(--ease);
}

.footer-list a:hover { color: var(--cyan); }

.footer-list a:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.footer-col--contact { min-width: 0; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact__key {
  flex: none;
  padding: 2px 7px;
  border: 1px solid rgba(242, 184, 75, .35);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  transform: skewX(-6deg);
}

.footer-contact__val {
  color: var(--paper);
  word-break: break-word;
}

.footer-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--moss);
}

.footer-watermark {
  padding: 0 var(--pad-x) clamp(8px, 1.6vw, 18px);
  font-family: var(--font-mono);
  font-size: clamp(38px, 11vw, 150px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.03em;
  color: rgba(46, 59, 54, .55);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 14, .6);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--pad-x) 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--moss);
}

.footer-copy { color: var(--moss); }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal__links a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.footer-legal__links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

@media (max-width: 1080px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-watermark { text-align: left; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.2vw, 30px);
  bottom: clamp(14px, 2.2vw, 30px);
  z-index: var(--z-top);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--stand);
  color: var(--cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .2s var(--ease),
    transform .2s var(--ease),
    visibility .2s,
    border-color .2s var(--ease),
    background .2s var(--ease),
    color .2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--turf);
  border-color: var(--cyan);
  color: var(--chalk);
}

.to-top__arrow {
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

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

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

  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .pulse-dot { animation: none; }
}
