/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Design Tokens ===== */
:root {
  --deep-court: #2C2C2C;
  --panel-black: #1E1E1E;
  --electro-blue: #1E90FF;
  --fluoro-orange: #FF6A00;
  --soft-white: #F5F5F5;
  --dim-gray: #4A4A4A;
  --success-green: #32CD32;
  --warning-yellow: #FFD700;
  --text-dim: #A9A9A9;
  --line-faint: rgba(255, 255, 255, .08);
  --skew: -6deg;
  --radius: 12px;
  --max-w: 1200px;
  --font-display: Impact, "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", Consolas, "Courier New", monospace;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--deep-court);
  color: var(--soft-white);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--soft-white);
  line-height: 1.18;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { line-height: 1.85; }

a {
  color: var(--electro-blue);
  text-decoration: none;
}

a:hover {
  color: var(--fluoro-orange);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--fluoro-orange);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--fluoro-orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Layout ===== */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 24px;
}

.section {
  padding: 28px 0;
}

.section + .section {
  border-top: 1px dashed rgba(255, 255, 255, .1);
}

.section-head {
  margin-bottom: 22px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--fluoro-orange);
  letter-spacing: .3em;
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--fluoro-orange);
  transform: skewX(-24deg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--soft-white);
  text-transform: uppercase;
  transform: skewX(var(--skew));
  margin: 10px 0 8px;
  letter-spacing: .02em;
}

.section-title--blue {
  color: var(--electro-blue);
}

.section-title--orange {
  color: var(--fluoro-orange);
}

.section-sub {
  color: var(--text-dim);
  font-size: .95rem;
  max-width: 54em;
  line-height: 1.85;
}

.prose {
  font-size: .95rem;
  line-height: 1.95;
  color: #CFCFCF;
}

.prose p { margin-bottom: 1em; }

.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  color: var(--soft-white);
  transform: skewX(var(--skew));
  margin: 1.4em 0 .5em;
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.prose li { margin-bottom: .4em; }

.prose a {
  color: var(--electro-blue);
  text-decoration: none;
}

.prose a:hover {
  color: var(--fluoro-orange);
  text-decoration: underline;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--electro-blue);
  color: var(--soft-white);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 144, 255, .35);
  color: var(--soft-white);
}

.btn--accent {
  background: var(--fluoro-orange);
}

.btn--accent:hover {
  box-shadow: 0 8px 20px rgba(255, 106, 0, .35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--electro-blue);
  color: var(--electro-blue);
}

.btn--ghost:hover {
  background: rgba(30, 144, 255, .12);
  color: var(--electro-blue);
}

.btn--small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: .8rem;
}

/* ===== Tags / Data ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 144, 255, .12);
  border: 1px solid rgba(30, 144, 255, .35);
  color: var(--electro-blue);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 3px;
  padding: 3px 10px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.tag--orange {
  background: rgba(255, 106, 0, .12);
  border-color: rgba(255, 106, 0, .4);
  color: var(--fluoro-orange);
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-dim);
  padding: 4px 0;
}

.stat-line strong {
  color: var(--fluoro-orange);
  font-size: 1.15rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(255, 106, 0, .14);
  color: var(--fluoro-orange);
  border: 1px solid rgba(255, 106, 0, .4);
  padding: 4px 14px;
  border-radius: 4px;
}

/* ===== Cards / Panels ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.data-card {
  background: var(--panel-black);
  border: 1px solid var(--line-faint);
  border-top: 4px solid var(--electro-blue);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  transition: transform .25s ease, border-top-color .25s ease, box-shadow .25s ease;
}

.data-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--fluoro-orange);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4);
}

.content-panel {
  background: var(--panel-black);
  border: 1px solid var(--line-faint);
  border-left: 5px solid var(--electro-blue);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 215, 0, .08);
  border: 1px solid rgba(255, 215, 0, .25);
  border-left: 4px solid var(--warning-yellow);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: .9rem;
  line-height: 1.7;
  color: #E6E6E6;
  margin: 20px 0;
}

.notice-bar::before {
  content: '!';
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--warning-yellow);
  background: rgba(255, 215, 0, .15);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}

/* ===== Media Placeholder ===== */
.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--line-faint);
  background:
    linear-gradient(135deg, rgba(30, 144, 255, .12), rgba(255, 106, 0, .06)),
    var(--panel-black);
  overflow: hidden;
}

.media-frame::after {
  content: 'FB·MEDIA';
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .3);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ===== Breadcrumb ===== */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

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

.crumb li + li::before {
  content: '/';
  color: var(--dim-gray);
}

.crumb a {
  color: var(--electro-blue);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--fluoro-orange);
}

.crumb [aria-current="page"] {
  color: var(--text-dim);
  font-weight: 600;
}

/* ===== Accordion ===== */
.acc-item {
  background: var(--panel-black);
  border-left: 4px solid var(--electro-blue);
  border-radius: 0 10px 10px 0;
  margin-bottom: 12px;
}

.acc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--soft-white);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}

.acc-toggle::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fluoro-orange);
  transition: transform .25s ease;
  flex: none;
}

.acc-item[data-open] .acc-toggle {
  color: var(--fluoro-orange);
}

.acc-item[data-open] .acc-toggle::after {
  transform: rotate(45deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.acc-panel-inner {
  overflow: hidden;
  padding: 0 18px 18px;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.85;
}

.acc-item[data-open] .acc-panel {
  grid-template-rows: 1fr;
}

/* ===== Skip Link ===== */
.site-skip {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 1000;
  background: var(--fluoro-orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: top .2s ease;
}

.site-skip:focus {
  top: 0;
}

/* ===== Header ===== */
.site-head {
  position: relative;
  background: var(--panel-black);
  z-index: 200;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

.scoreline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 600;
  pointer-events: none;
}

.scoreline-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--electro-blue), var(--fluoro-orange));
}

.masthead {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.masthead-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-self: start;
  padding: 8px 12px;
  background: rgba(30, 144, 255, .06);
  border-left: 2px solid var(--electro-blue);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-mono);
}

.masthead-side--right {
  justify-self: end;
  text-align: right;
  align-items: flex-end;
  border-left: none;
  border-right: 2px solid var(--fluoro-orange);
  border-radius: 8px 0 0 8px;
  background: rgba(255, 106, 0, .05);
}

.side-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.side-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--electro-blue);
}

.masthead-side--right .side-value {
  color: var(--fluoro-orange);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.masthead-brand {
  justify-self: center;
  display: flex;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
}

.mark-bar {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: var(--fluoro-orange);
}

.mark-bar:nth-child(1) { height: 12px; }
.mark-bar:nth-child(2) { height: 22px; opacity: .8; }
.mark-bar:nth-child(3) { height: 34px; background: var(--electro-blue); }

.brand-text {
  display: flex;
  flex-direction: column;
  letter-spacing: .02em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--soft-white);
  text-transform: uppercase;
  transform: skewX(var(--skew));
  text-shadow: 3px 3px 0 rgba(30, 144, 255, .3);
}

.brand-sub {
  display: block;
  margin-top: 5px;
  color: var(--electro-blue);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-align: center;
  padding-left: .34em;
}

/* ===== Nav Strip ===== */
.nav-strip {
  background: var(--deep-court);
  border-top: 1px solid var(--line-faint);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 4px;
  z-index: 210;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 16px;
}

.nav-link {
  display: block;
  padding: 13px 16px 11px;
  color: var(--soft-white);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 4px;
  background: var(--fluoro-orange);
  transform: skewX(-16deg) scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--fluoro-orange);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: skewX(-16deg) scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--soft-white);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: auto;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.nav-toggle:hover {
  border-color: var(--fluoro-orange);
  background: rgba(255, 106, 0, .08);
  color: var(--fluoro-orange);
}

.toggle-box {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 16px;
  flex: none;
}

.toggle-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: top .25s ease, transform .25s ease, opacity .25s ease;
}

.toggle-line:nth-child(1) { top: 0; }
.toggle-line:nth-child(2) { top: 7px; }
.toggle-line:nth-child(3) { top: 14px; }

.nav-strip[data-open] .toggle-line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-strip[data-open] .toggle-line:nth-child(2) { opacity: 0; }
.nav-strip[data-open] .toggle-line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ===== Footer ===== */
.site-footer {
  margin-top: 80px;
  background: var(--panel-black);
  border-top: 4px solid var(--fluoro-orange);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  height: 4px;
  width: 45%;
  background: var(--electro-blue);
  z-index: 1;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--soft-white);
  transform: skewX(var(--skew));
  line-height: 1;
  display: inline-block;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--fluoro-orange);
}

.footer-brand-sub {
  font-size: .8rem;
  color: var(--electro-blue);
  letter-spacing: .4em;
  font-weight: 700;
  margin-top: 6px;
}

.footer-trust {
  margin-top: 16px;
  font-size: .82rem;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 42em;
  border-left: 3px solid var(--fluoro-orange);
  padding-left: 12px;
}

.footer-heading {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--soft-white);
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--fluoro-orange);
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-item {
  line-height: 1.7;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}

.footer-link:hover {
  color: var(--fluoro-orange);
  padding-left: 4px;
}

.footer-base {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #888;
}

/* ===== Reveal ===== */
html[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

html[data-js] [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-strip {
    justify-content: flex-end;
    padding: 6px 16px;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--panel-black);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .5);
    padding: 10px 20px 16px;
    border-bottom: 3px solid var(--fluoro-orange);
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-strip[data-open] .nav-list {
    display: flex;
  }

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

  .nav-link {
    padding: 15px 6px;
    border-bottom: 1px solid var(--line-faint);
    font-size: 1rem;
    letter-spacing: .04em;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--fluoro-orange);
    background: linear-gradient(90deg, rgba(255, 106, 0, .1), transparent 70%);
  }

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

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px 16px 12px;
  }

  .masthead-side {
    display: none;
  }

  .footer-main {
    padding: 36px 18px 28px;
  }
}

@media (max-width: 580px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-base {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    height: 28px;
  }

  .mark-bar:nth-child(3) {
    height: 28px;
  }

  .mark-bar:nth-child(2) {
    height: 19px;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    display: none;
  }
}

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

  html[data-js] [data-reveal],
  html[data-js] [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
