:root {
  --bg-deep: #0B0E11;
  --bg-panel: #1A222A;
  --bg-panel-2: #141C23;
  --line: #C0C8D0;
  --line-soft: rgba(192,200,208,0.14);
  --brand: #00E676;
  --brand-dark: #00B86B;
  --accent: #FF3D00;
  --violet: #B388FF;
  --blue: #00B0FF;
  --gold: #FFD600;
  --white: #FFFFFF;
  --text: #FFFFFF;
  --text-dim: #9AA5B1;
  --text-muted: #6B7885;
  --heading-font: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body-font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --data-font: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --container: 1280px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --header-h: 74px;
}

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

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

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--space-3);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--brand);
  color: #0B0E11;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--brand);
  color: #0B0E11;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

/* ---------- Header ---------- */
.header {
  background: rgba(11, 14, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(0, 230, 118, 0.25));
}

.logo-text {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--bg-panel);
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--brand);
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-panel {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-panel::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-soft);
}

.nav-links a[aria-current="page"] {
  background: var(--brand);
  color: #0B0E11;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  transition: border-color 0.2s ease;
  max-width: 220px;
}

.search-box:focus-within {
  border-color: var(--brand);
}

.search-icon {
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--body-font);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--brand);
  color: #0B0E11;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.25);
}

.btn-primary:hover {
  background: #2BFF8D;
  box-shadow: 0 8px 28px rgba(0, 230, 118, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  border-color: rgba(192, 200, 208, 0.4);
}

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

.btn-small {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* ---------- Panel & data components ---------- */
.panel {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: var(--space-4);
}

.panel.padded-lg {
  padding: var(--space-5);
}

.panel.padded-md {
  padding: var(--space-3);
}

.tilt-badge {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-family: var(--data-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  transform: skewX(-6deg);
}

.tilt-badge .badge-inner {
  transform: skewX(6deg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
  animation: pulse-ring 2.2s ease-out infinite;
}

.pulse-dot.is-orange {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.5);
  animation-name: pulse-ring-orange;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes pulse-ring-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 61, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 0, 0); }
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--data-font);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-panel-2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
}

.section-label {
  font-family: var(--data-font);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--reveal-delay, 0.1s));
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.breadcrumb span {
  color: var(--text-muted);
}

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

/* ---------- Image placeholder ---------- */
.img-placeholder {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(0, 230, 118, 0.18) 0%, rgba(11,14,17,0.6) 45%),
    radial-gradient(80% 80% at 80% 90%, rgba(255, 61, 0, 0.24) 0%, rgba(11, 14, 17, 0.5) 50%),
    linear-gradient(135deg, #1A222A 0%, #10141C 55%, #0B0E11 100%);
  border: 1px solid var(--line-soft);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
}

.img-placeholder::before {
  content: "AOKE SPORTS";
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.img-placeholder.is-tall {
  min-height: 360px;
}

.img-placeholder.is-wide {
  min-height: 280px;
}

.img-placeholder__caption {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: rgba(11, 14, 17, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  backdrop-filter: blur(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-6);
  background: #0D1116;
  border-top: 1px solid var(--line-soft);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.3fr;
  gap: var(--space-4);
  padding-block: var(--space-5) var(--space-4);
}

.logo-invert .logo-text {
  color: var(--white);
}

.footer-about {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 340px;
}

.footer-heading {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-2) 0;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

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

.footer-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--brand);
  transform: translateX(3px);
}

.footer-contact .contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
}

.contact-item .contact-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--data-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item a {
  color: var(--text);
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--blue);
}

.footer-meta {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--space-2);
  background: #090D10;
}

.footer-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.footer-copy,
.footer-icp {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--data-font);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- Dark grid texture ---------- */
.dark-grid {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--bg-deep);
  background-size: 28px 28px;
}

.accent-slice {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 70%, var(--violet) 120%);
  border-radius: var(--radius-pill);
  transform: skewX(-12deg);
  width: min(360px, 60vw);
  margin-bottom: 10px;
}

/* ---------- Typography helpers ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  line-height: 1.12;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw + 1rem, 4.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3vw + 0.7rem, 3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

p {
  margin-top: 0;
  color: var(--text-dim);
}

.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-violet { color: var(--violet); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-dim { color: var(--text-dim); }
.text-white { color: var(--white); }

.mono {
  font-family: var(--data-font);
  letter-spacing: -0.01em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-4);
  }

  .search-box {
    max-width: 140px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: 6px;
  }

  .nav-panel {
    order: 5;
    flex-basis: 100%;
    flex-shrink: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-panel[data-open] {
    height: auto;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding-bottom: 8px;
  }

  .nav-links a {
    white-space: nowrap;
    padding: 8px 14px;
  }

  .header-actions {
    margin-left: auto;
  }

  .search-box {
    display: none;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    padding-top: var(--space-4);
  }

  .footer-nav ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-meta-inner {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .container {
    padding-inline: 18px;
  }

  .panel {
    padding: var(--space-3);
  }

  .panel.padded-lg {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.4rem;
  }

  .header-actions .btn {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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