/* ================================================================
   BSports竞技 · 共享 Site Kit
   深蓝档案库 / 技术蓝图网格 / 体育数据终端
   ================================================================ */

/* ---------- 01 · CSS Variables ---------- */
:root {
  /* 色彩系统 */
  --bg-body: #0A192F;
  --bg-panel: #112340;
  --text-main: #F2F5F4;
  --text-muted: #8AA0B0;
  --accent: #FF6B35;
  --neon: #39FF14;
  --amber: #FFD166;
  --teal: #2EC4B6;
  --wine: #8B2635;

  /* 线条 */
  --line-faint: rgba(242, 245, 244, 0.1);
  --line-teal: rgba(46, 196, 182, 0.32);
  --line-amber: rgba(255, 209, 102, 0.4);

  /* 字体系统 */
  --font-title: 'Archivo Black', 'DIN Condensed', 'Arial Black', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'IBM Plex Mono', 'SF Mono', 'SFMono-Regular', 'Menlo', 'Consolas', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;
  --font-note: 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif;

  /* 间距 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* 布局与效果 */
  --header-h: 4rem;
  --container: 74rem;
  --radius: 3px;
  --ease: 0.22s ease;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* ---------- 02 · Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main-content {
  min-height: 60vh;
  outline: none;
}

/* ---------- 03 · Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 var(--sp-4);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4, h5, h6 { font-size: 1rem; }

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4) var(--sp-5); }
li { line-height: 1.65; }
a { color: var(--teal); text-decoration-color: rgba(46, 196, 182, 0.4); text-underline-offset: 3px; transition: color var(--ease), text-decoration-color var(--ease); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

code {
  font-family: var(--font-body);
  font-size: 0.9em;
  color: var(--teal);
  background: rgba(46, 196, 182, 0.08);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--accent);
  background: rgba(255, 107, 53, 0.06);
  font-family: var(--font-note);
  font-style: italic;
  color: var(--text-main);
}

hr {
  border: none;
  border-top: 1px solid var(--line-teal);
  margin: var(--sp-6) 0;
}

/* ---------- 04 · Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-5);
}

@media (max-width: 48rem) {
  .container { padding: var(--sp-4); }
}

.sr-only {
  position: absolute;
  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: -100px;
  left: var(--sp-4);
  z-index: 999;
  padding: var(--sp-3) var(--sp-4);
  background: var(--accent);
  color: var(--bg-body);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  transition: top 0.25s ease;
}
.skip-link:focus { top: var(--sp-3); }

.section-marker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.section-marker::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-marker::after {
  content: '//';
  color: var(--teal);
  letter-spacing: -0.1em;
  margin-left: 0.2rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.section-title { margin-bottom: 0; }
.section-desc {
  font-family: var(--font-note);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 34em;
}

.coordinate-grid {
  background-image:
    linear-gradient(rgba(46, 196, 182, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 182, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}

/* ---------- 05 · Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg-body); border-color: var(--accent); }
.btn-primary:hover { background: #ff7d50; border-color: #ff7d50; box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25); }
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--teal); }
.btn-outline:hover { background: rgba(46, 196, 182, 0.12); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--line-faint); }
.btn-ghost:hover { color: var(--text-main); border-color: var(--text-muted); background: rgba(242, 245, 244, 0.04); }

/* ---------- 06 · Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) 0 var(--sp-3);
  font-size: 0.75rem;
  color: var(--text-muted);
  list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--text-main); }

/* ---------- 07 · Cards ---------- */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
}
.card-panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line-teal);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.card-panel::before,
.card-panel::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--teal);
  border-style: solid;
}
.card-panel::before { top: 4px; left: 4px; border-width: 1px 0 0 1px; }
.card-panel::after { bottom: 4px; right: 4px; border-width: 0 1px 1px 0; }
.card-tech { position: relative; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--line-faint); border-radius: var(--radius); padding: var(--sp-5); }
.card-tech::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-top: 30px solid var(--accent);
  border-left: 30px solid transparent;
  opacity: 0.85;
}
.card-hover { transition: transform var(--ease), box-shadow var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* ---------- 08 · Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid var(--line-faint);
  background: var(--bg-panel);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag-data { border-color: var(--teal); color: var(--teal); background: rgba(46, 196, 182, 0.08); }
.tag-live { background: var(--neon); color: var(--bg-body); border-color: var(--neon); }
.tag-warn { background: var(--wine); color: var(--text-main); border-color: var(--wine); }
.tag-transfer { border-color: var(--line-amber); color: var(--amber); background: rgba(255, 209, 102, 0.08); }

/* ---------- 09 · Alerts ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.6;
  border: 1px solid;
  margin-bottom: var(--sp-5);
}
.alert::before {
  content: '!';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.alert-ok { background: rgba(46, 196, 182, 0.08); border-color: rgba(46, 196, 182, 0.4); color: var(--text-main); }
.alert-ok::before { content: '✓'; background: var(--teal); color: var(--bg-body); }
.alert-warn { background: rgba(139, 38, 53, 0.15); border-color: rgba(139, 38, 53, 0.55); color: var(--text-main); }
.alert-warn::before { background: var(--wine); color: var(--text-main); }
.alert-info { background: rgba(255, 209, 102, 0.08); border-color: var(--line-amber); color: var(--text-main); }
.alert-info::before { content: 'i'; background: var(--amber); color: var(--bg-body); }

/* ---------- 10 · Data Table ---------- */
.data-table-wrap { overflow-x: auto; margin-bottom: var(--sp-5); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-main);
  min-width: 32rem;
}
.data-table th {
  text-align: left;
  padding: var(--sp-3);
  border-bottom: 2px solid var(--teal);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.data-table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--line-faint);
  line-height: 1.4;
  vertical-align: top;
}
.data-table tbody tr { transition: background var(--ease); }
.data-table tbody tr:hover { background: rgba(46, 196, 182, 0.05); }
.data-table .num { color: var(--accent); font-weight: 600; text-align: right; white-space: nowrap; }

/* ---------- 11 · Image Frames ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
}
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 25, 47, 0.35) 0%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.img-frame > img, .img-frame > picture img, .img-frame > .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(46, 196, 182, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 182, 0.14) 1px, transparent 1px),
    var(--bg-panel);
  background-size: 24px 24px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.img-blur img { filter: saturate(1.25) contrast(1.08); }
.img-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* ---------- 12 · Grid Layouts ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
.grid-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }

@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-aside { grid-template-columns: minmax(0, 1fr) 20rem; }
}

/* ---------- 13 · Scroll Reveal ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 14 · Scroll Progress ---------- */
.scroll-progress {
  --progress: 0%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(242, 245, 244, 0.06);
  z-index: 400;
  pointer-events: none;
}
.scroll-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--accent) 0%, var(--neon) 100%);
  opacity: 0.85;
}

/* ---------- 15 · Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 47, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-teal);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Brand */
.brand-block { flex-shrink: 0; }
.brand-link { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--accent);
  color: var(--bg-body);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Navigation — mobile default */
.site-nav { display: none; }
.site-nav[data-open] { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: var(--sp-3) var(--sp-2);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease), padding-left var(--ease);
}
.nav-code { font-size: 0.65rem; color: var(--teal); opacity: 0.85; transition: color var(--ease); }
.nav-link:hover { color: var(--text-main); background: rgba(46, 196, 182, 0.06); }
.nav-link[aria-current="page"] { color: var(--text-main); background: rgba(255, 107, 53, 0.1); }
.nav-link[aria-current="page"] .nav-code { color: var(--accent); opacity: 1; }

/* Header aux */
.header-aux {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  margin-left: auto;
}
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
}
.sync-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4);
  animation: syncPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes syncPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(57, 255, 20, 0); }
}
.sync-text { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

.favorite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  color: var(--amber);
  text-decoration: none;
  font-size: 0.78rem;
  border: 1px solid var(--line-amber);
  border-radius: var(--radius);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.favorite-link:hover {
  background: rgba(255, 209, 102, 0.12);
  border-color: var(--amber);
  color: var(--amber);
}
.favorite-icon { font-size: 0.9rem; line-height: 1; }

/* Nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid var(--line-teal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(46, 196, 182, 0.1); border-color: var(--teal); }
.nav-toggle-box { position: relative; width: 1.125rem; height: 0.875rem; }
.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: top var(--ease), transform var(--ease), opacity var(--ease);
}
.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { top: 6px; }
.nav-toggle-line:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Header responsive */
@media (max-width: 63.999rem) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line-teal);
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }
  .nav-link { width: 100%; }
  .nav-link[aria-current="page"] {
    border-left: 3px solid var(--accent);
    padding-left: var(--sp-3);
  }
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
    width: max-content;
  }
  .nav-link { padding: 0.45rem 0.65rem; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: transparent; }
  .nav-link[aria-current="page"] { border-bottom-color: var(--accent); }
}

@media (max-width: 48rem) {
  .header-inner { padding: 0 var(--sp-4); gap: var(--sp-3); }
  .brand-sub { display: none; }
  .sync-text { display: none; }
  .sync-status { padding: 0.35rem; border-radius: 50%; }
  .favorite-text { display: none; }
  .favorite-link { padding: 0.4rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-mono { width: 2.1rem; height: 2.1rem; font-size: 0.85rem; }
}

/* ---------- 16 · Footer ---------- */
.site-footer {
  background-color: var(--bg-body);
  background-image:
    linear-gradient(rgba(46, 196, 182, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 182, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  border-top: 3px solid var(--teal);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line-faint);
}
@media (min-width: 40rem) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: var(--sp-3);
}
.footer-brand-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--bg-body);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.footer-brand-name { font-size: 1.15rem; }
.footer-brand-sub {
  font-family: var(--font-note);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.footer-trust {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 36em;
  margin-bottom: var(--sp-2);
}
.footer-nonbetting {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--amber);
  font-size: 0.72rem;
  margin: 0;
}
.footer-nonbetting::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line-teal);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: var(--sp-2); }
.footer-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  transition: color var(--ease), transform var(--ease);
}
.footer-link:hover { color: var(--text-main); transform: translateX(3px); }

.footer-addr, .footer-mail, .footer-phone {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
  margin-bottom: var(--sp-1);
}
.footer-hint {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: var(--sp-2);
  font-family: var(--font-note);
  font-style: italic;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
}
.footer-icp, .footer-copy { color: var(--text-muted); font-size: 0.72rem; margin: 0; }
.footer-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal);
  font-size: 0.72rem;
  margin: 0;
}
.footer-slogan::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: syncPulse 2.4s ease-in-out infinite;
}

@media (max-width: 40rem) {
  .footer-inner { padding: var(--sp-6) var(--sp-4) var(--sp-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17 · Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav-toggle:focus-visible, .favorite-link:focus-visible, .nav-link:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sync-dot, .footer-slogan::before { animation: none; }
  .js-enabled [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card-hover:hover { transform: none; }
}
