/* ==========================================================
   华体会体育 · 赛场指挥官 Site Kit
   /assets/site.css
   ========================================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-neutral);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-grass);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--color-ember);
}

strong,
b {
  font-weight: 700;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-pitch: #0B3B2E;
  --color-grass: #2E7D4F;
  --color-ember: #FF6B35;
  --color-bolt: #00E5FF;
  --color-silver: #C0C0C0;
  --color-neutral: #F4F6F5;
  --color-ink: #1A1A1A;
  --color-white: #FFFFFF;

  --font-sans: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Arial Black", "Impact", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Consolas, monospace;

  --container: 1200px;
  --radius: 3px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --shadow-sm: 0 1px 6px rgba(11, 59, 46, .08);
  --shadow-md: 0 4px 20px rgba(11, 59, 46, .12);
  --shadow-lg: 0 12px 40px rgba(11, 59, 46, .18);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Focus & Selection ---------- */
::selection {
  background: var(--color-ember);
  color: #fff;
}

:focus {
  outline: 2px solid var(--color-bolt);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* ---------- Accessibility Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--color-ember);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, .4);
  transition: top 180ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  color: #fff;
}

/* ---------- Container ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: 860px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary {
  background: var(--color-ember);
  border-color: var(--color-ember);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - .5rem) 100%, 0 100%);
  box-shadow: 0 3px 14px rgba(255, 107, 53, .35);
}

.btn--primary:hover {
  background: #E05722;
  border-color: #E05722;
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 107, 53, .45);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  background: transparent;
  border-radius: 3px;
}

.btn--ghost:hover {
  border-color: var(--color-bolt);
  color: var(--color-bolt);
}

.btn--outline {
  border: 1px solid var(--color-silver);
  color: var(--color-pitch);
  background: transparent;
  border-radius: 3px;
}

.btn--outline:hover {
  border-color: var(--color-bolt);
  color: var(--color-pitch);
  background: rgba(0, 229, 255, .08);
}

.btn--sm {
  padding: .45rem .85rem;
  font-size: 13px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-pitch);
  color: var(--color-white);
  box-shadow: 0 2px 24px rgba(11, 59, 46, .4);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ember) 0%, var(--color-bolt) 55%, transparent 100%);
  opacity: .7;
  pointer-events: none;
  z-index: 30;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 0;
  background: linear-gradient(90deg, var(--color-ember), var(--color-bolt));
  z-index: 30;
  pointer-events: none;
}

.header-utility {
  background: rgba(0, 0, 0, .24);
  border-bottom: 1px solid rgba(192, 192, 192, .18);
}

.header-utility__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 2.5rem;
}

.header-utility__meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--color-bolt);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ember);
  position: relative;
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-ember);
  animation: live-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

@keyframes live-pulse {
  0% {
    transform: scale(.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.header-utility__ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

.ticker__track {
  display: inline-flex;
  width: max-content;
  will-change: transform;
  animation: ticker-move 40s linear infinite;
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker__group {
  display: inline-flex;
  align-items: center;
}

.ticker__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .68);
  white-space: nowrap;
}

.ticker__item + .ticker__item::before {
  content: "//";
  margin: 0 1.25rem;
  color: rgba(255, 107, 53, .75);
  font-size: 11px;
}

.header-utility__contact {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-utility__contact::before {
  content: "TEL";
  margin-right: .4rem;
  color: var(--color-ember);
  font-size: 10px;
  letter-spacing: .14em;
}

.header-masthead {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .05) 0%, transparent 42%),
    linear-gradient(45deg, transparent 70%, rgba(255, 107, 53, .07) 100%),
    var(--color-pitch);
  border-bottom: 1px solid rgba(192, 192, 192, .2);
}

.header-masthead::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -8%;
  width: 28%;
  background: repeating-linear-gradient(-35deg, transparent 0 12px, rgba(255, 255, 255, .025) 12px 13px);
  pointer-events: none;
}

.header-masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
}

.header-masthead__side {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(192, 192, 192, .62);
  text-transform: uppercase;
  white-space: nowrap;
}

.header-masthead__side--left {
  grid-column: 1;
  justify-self: start;
}

.header-masthead__side--right {
  grid-column: 3;
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--color-white);
  text-decoration: none;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.75rem;
  padding: 0 .6rem;
  background: linear-gradient(135deg, var(--color-ember) 0%, #E0491F 100%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .02em;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - .5rem) 100%, 0 100%);
  box-shadow: 0 2px 12px rgba(255, 107, 53, .35);
}

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

.brand__name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
}

.brand__sep {
  color: var(--color-ember);
  margin-inline: .08em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-bolt);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .55rem .95rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 3px;
  color: var(--color-white);
  background: rgba(255, 255, 255, .06);
  transition: border-color 150ms ease, background 150ms ease;
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms var(--ease), opacity 150ms ease;
}

.nav-toggle__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.site-nav {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    rgba(0, 0, 0, .22);
  background-size: 20px 20px;
  border-bottom: 1px solid rgba(192, 192, 192, .22);
}

.site-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 3.25rem;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: .95rem 1.1rem;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  position: relative;
  transition: color 150ms ease, background 150ms ease;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ember), var(--color-bolt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

.site-nav__link:hover {
  color: #fff;
}

.site-nav__link:hover::before {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .08));
}

.site-nav__link[aria-current="page"]::before {
  transform: scaleX(1);
}

.site-nav__action {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.btn-user {
  font-size: 13px;
}

.btn-replay {
  font-size: 13px;
}

.replay-dot {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .25;
  }
}

/* ---------- Mobile Header / Nav ---------- */
@media (max-width: 1100px) {
  .header-masthead__side {
    display: none;
  }

  .header-utility__contact {
    display: none;
  }
}

@media (max-width: 899px) {
  .header-masthead__inner {
    grid-template-columns: 1fr auto;
    min-height: 4.75rem;
  }

  .header-utility__ticker {
    display: none;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
  }

  .nav-toggle {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
  }

  .site-nav {
    height: 0;
    overflow: visible;
    border-bottom: 0;
  }

  .site-nav__inner {
    min-height: 0;
    display: block;
  }

  .site-nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--color-pitch);
    border-bottom: 1px solid rgba(192, 192, 192, .22);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 200ms var(--ease), opacity 160ms ease, visibility 0s linear 200ms;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }

  .site-nav__menu[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 200ms var(--ease), opacity 160ms ease, visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(192, 192, 192, .14);
  }

  .site-nav__link {
    padding: 1rem .25rem;
  }

  .site-nav__action {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding-top: 1rem;
  }

  .site-nav__action .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand__name {
    font-size: 1.15rem;
  }

  .brand__mark {
    min-width: 2.5rem;
    height: 2.25rem;
    font-size: .95rem;
  }

  .brand__tagline {
    font-size: 10px;
    letter-spacing: .14em;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--color-pitch);
  color: rgba(255, 255, 255, .72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-ember), var(--color-bolt) 55%, var(--color-grass));
  opacity: .8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1.1fr;
  gap: 3rem;
  padding-block: 3.5rem 2.5rem;
}

.brand--footer .brand__mark {
  box-shadow: none;
}

.footer-brand__desc {
  margin-top: 1.25rem;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .58);
  max-width: 46ch;
}

.footer-brand__trust {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-ember);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .66);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(192, 192, 192, .2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-bolt);
}

.footer-title::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--color-ember);
  flex-shrink: 0;
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-links__list a {
  display: inline-block;
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  transition: color 150ms ease, padding-left 150ms ease;
}

.footer-links__list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-ember);
}

.footer-links__list a:hover {
  color: var(--color-bolt);
  padding-left: 1.4rem;
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: 14px;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: .5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .68);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--color-ember);
}

.footer-contact__item a {
  color: rgba(255, 255, 255, .72);
  border-bottom: 1px dashed rgba(192, 192, 192, .35);
  padding-bottom: 1px;
  transition: color 150ms ease, border-color 150ms ease;
}

.footer-contact__item a:hover {
  color: var(--color-bolt);
  border-bottom-color: var(--color-bolt);
}

.footer-contact__item--note {
  display: block;
  grid-template-columns: none;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(192, 192, 192, .15);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom {
  border-top: 1px solid rgba(192, 192, 192, .15);
  background: rgba(0, 0, 0, .22);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom__icp {
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .38);
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 599px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding-block: 2.5rem 1.5rem;
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--tinted {
  background: var(--color-white);
}

.section__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.section__index {
  flex-shrink: 0;
  padding-top: .5rem;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-ember);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--color-ink);
}

.section__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin-top: .8rem;
  background: linear-gradient(90deg, var(--color-ember), var(--color-bolt));
  clip-path: polygon(0 0, 100% 0, calc(100% - .55rem) 100%, 0 100%);
}

.section__note {
  flex-shrink: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-silver);
}

@media (max-width: 640px) {
  .section__note {
    display: none;
  }
}

/* ---------- Page Title & Breadcrumbs ---------- */
.page-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(192, 192, 192, .5);
}

.page-title__main {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--color-ink);
}

.page-title__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--color-silver);
}

.breadcrumbs {
  padding-block: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
}

.breadcrumbs__list {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.breadcrumbs__item {
  color: rgba(11, 59, 46, .6);
}

.breadcrumbs__item a {
  color: inherit;
}

.breadcrumbs__item a:hover {
  color: var(--color-ember);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "//";
  margin-right: .5rem;
  color: var(--color-ember);
}

.breadcrumbs__item[aria-current="page"] {
  color: var(--color-pitch);
  font-weight: 700;
}

/* ---------- Frame Hero ---------- */
.frame-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--color-white);
  border: 1px solid rgba(192, 192, 192, .55);
  box-shadow: 0 4px 32px rgba(11, 59, 46, .08);
}

.frame-hero::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3.5rem;
  height: 3.5rem;
  border-top: 4px solid var(--color-ember);
  border-left: 4px solid var(--color-ember);
  z-index: 1;
}

.frame-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 3.5rem;
  height: 3.5rem;
  border-bottom: 4px solid var(--color-bolt);
  border-right: 4px solid var(--color-bolt);
  z-index: 1;
}

.frame-hero--grid {
  background-image:
    linear-gradient(rgba(11, 59, 46, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 59, 46, .045) 1px, transparent 1px),
    var(--color-white);
  background-size: 24px 24px;
}

/* ---------- Bento Grid ---------- */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-cell {
  grid-column: span 4;
  position: relative;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(192, 192, 192, .5);
  min-height: 160px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.bento-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento-cell--wide {
  grid-column: span 8;
}

.bento-cell--tall {
  grid-row: span 2;
}

.bento-cell--dark {
  background: var(--color-pitch);
  color: rgba(255, 255, 255, .85);
  border-color: var(--color-pitch);
}

.bento-cell--accent {
  background: var(--color-ember);
  color: #fff;
  border-color: var(--color-ember);
}

@media (max-width: 899px) {
  .bento-cell,
  .bento-cell--wide {
    grid-column: span 6;
  }
}

@media (max-width: 599px) {
  .grid-bento {
    gap: .75rem;
  }

  .bento-cell,
  .bento-cell--wide,
  .bento-cell--tall {
    grid-column: 1 / -1;
  }
}

/* ---------- Card ---------- */
.card {
  background: var(--color-white);
  border: 1px solid rgba(192, 192, 192, .5);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.data-value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--color-ink);
}

.data-value--accent {
  color: var(--color-ember);
}

.data-value--bolt {
  color: var(--color-bolt);
}

.score-line {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-mono);
}

.score-line__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-ember);
}

.score-line__sep {
  color: var(--color-silver);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
}

.badge--live {
  background: var(--color-ember);
  color: #fff;
}

.badge--data {
  background: rgba(0, 229, 255, .14);
  border: 1px solid rgba(0, 229, 255, .5);
  color: var(--color-pitch);
}

.badge--silver {
  background: var(--color-silver);
  color: var(--color-ink);
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-pitch), var(--color-grass));
  border: 1px solid rgba(192, 192, 192, .45);
}

.img-frame::before {
  content: "HTH · IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .32em;
  text-indent: .32em;
  color: rgba(255, 255, 255, .7);
  z-index: 2;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 2.8s ease infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

.img-frame--portrait {
  aspect-ratio: 3 / 4;
}

.img-frame--pitch {
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 255, 255, .05) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255, 255, 255, .05) 24px 25px),
    linear-gradient(135deg, var(--color-pitch), var(--color-grass));
}

.img-frame--filled::before {
  content: none;
}

.img-frame--filled::after {
  animation: none;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 72ch;
}

.prose p {
  margin-top: 1rem;
  color: #2b2b2b;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-ember);
}

.prose h2,
.prose h3 {
  margin-top: 2.5rem;
  font-weight: 900;
  color: var(--color-ink);
}

.prose h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--color-ember);
  padding-left: .75rem;
}

.prose h3 {
  font-size: 1.2rem;
}

.prose ul,
.prose ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-top: .35rem;
}

/* ---------- Accordion ---------- */
.accordion {
  border-top: 1px solid rgba(192, 192, 192, .45);
}

.accordion__item {
  border-bottom: 1px solid rgba(192, 192, 192, .45);
}

.accordion__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--color-ink);
}

.accordion__button::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-ember);
  transition: transform 200ms ease;
}

.accordion__item[data-open="true"] > .accordion__button::after {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 240ms ease, opacity 180ms ease, visibility 0s linear 240ms;
}

.accordion__item[data-open="true"] > .accordion__panel {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-bottom: 1.25rem;
  transition: max-height 240ms ease, opacity 180ms ease, visibility 0s;
}

/* ---------- Reveal on Scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Speedline Decoration ---------- */
.speedline {
  display: block;
  height: 3px;
  border: 0;
  margin: 1.5rem 0;
  background: linear-gradient(90deg, var(--color-ember), var(--color-bolt) 70%, transparent);
}

.text-gradient {
  background: linear-gradient(120deg, var(--color-ember), var(--color-bolt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 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;
  }

  .ticker__track,
  .live-dot::after,
  .replay-dot,
  .img-frame::after {
    animation: none !important;
  }

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