/*
Theme Name: Nomad Tennis
Theme URI: https://example.com/nomad-tennis
Author: Velaro
Description: WordPress layout converted from the Nomad Table Tennis Academy Vite prototype.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nomad-tennis
*/

:root {
  --navy: #142a4d;
  --navy-deep: #0a1730;
  --red: #d7263d;
  --paper: #f3f4f7;
  --ink: #0f1620;
  --gold: #c9a227;
  --line: #dfe2e8;
  --white: #fff;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  font-weight: 800;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container-nomad {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(20,42,77,.95);
  backdrop-filter: blur(18px);
  color: var(--white);
}
.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--red), #fff, transparent);
  background-size: 220% 100%;
  opacity: .7;
  animation: header-rally 5s linear infinite;
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { width: 32px; height: 32px; flex: 0 0 32px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}
.logo-sub {
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu a {
  position: relative;
  display: inline-flex;
  padding-block: 8px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease;
}
.primary-menu a::after {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  content: "";
  background: #fff;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.5);
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.9,.2,1.4);
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--white); }
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
  opacity: 1;
  transform: translate(-50%, 3px) scale(1);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-drawer-actions { display: none; }
.a11y-toggle {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.76);
  padding: 8px 11px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.a11y-toggle:hover {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.a11y-toggle[aria-pressed="true"] {
  border-color: #ffe600;
  background: #ffe600;
  color: #000;
  box-shadow: 0 0 0 3px rgba(255,230,0,.2);
}
.a11y-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.language-pills {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
}
.language-pills ul {
  display: inline-flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.language-pills li {
  display: flex;
}
.language-pills span,
.language-pills a {
  display: block;
  padding: 7px 10px;
  color: rgba(255,255,255,.65);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.language-pills a:hover,
.language-pills a.current-lang,
.language-pills span.current-lang,
.language-pills .current-lang a,
.language-pills .current-lang span,
.language-pills > span:first-child { background: rgba(255,255,255,.12); color: var(--white); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }

.btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.1;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .3s ease, box-shadow .3s ease;
}
.btn::after {
  position: absolute;
  top: -100%;
  left: -45%;
  width: 28%;
  height: 300%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(24deg) translateX(-260%);
  transition: transform .55s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10,23,48,.2);
}
.btn:hover::after { transform: rotate(24deg) translateX(650%); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #bf1f34; }
.btn-ghost-dark { border-color: rgba(255,255,255,.18); color: var(--white); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.trajectory {
  position: absolute;
  inset: 0;
  opacity: .6;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -40px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: rgba(215,38,61,.12);
  filter: blur(64px);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 48px;
  align-items: center;
  padding-block: 88px;
}
.set-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.set-label::before {
  content: "";
  width: 40px;
  height: 2px;
  background: currentColor;
}
.display-h1,
.display-h2 {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  letter-spacing: .01em;
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}
.display-h1 { margin-top: 24px; font-size: clamp(56px, 8vw, 104px); }
.display-h2 { font-size: clamp(42px, 6vw, 76px); }
.lead {
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.flagship-card {
  display: block;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  padding: 32px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(12px);
}
.flagship-card:hover { border-color: rgba(255,255,255,.32); }
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(215,38,61,.14);
  color: var(--red);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status.dark { background: rgba(255,255,255,.1); color: var(--white); }
.mono {
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.muted-white { color: rgba(255,255,255,.52); }
.flagship-card h2 {
  margin: 28px 0 14px;
  color: var(--white);
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.countdown div {
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  padding: 12px 8px;
  text-align: center;
}
.countdown strong { display: block; font-size: 24px; }
.countdown span { color: rgba(255,255,255,.55); font-family: "Noto Sans Mono", ui-monospace, monospace; font-size: 10px; text-transform: uppercase; }

.section { padding-block: 72px; }
.section.white { background: var(--white); }
.section.navy { background: var(--navy-deep); color: var(--white); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head p { max-width: 560px; color: #667085; margin: 10px 0 0; }
.section.navy .section-head p { color: rgba(255,255,255,.58); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}
.card-media {
  display: block;
  overflow: hidden;
  margin: -24px -24px 18px;
  border-radius: 8px 8px 0 0;
  background: #dfe2e8;
}
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card.dark {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: var(--white);
}
.card h3 { margin: 14px 0 8px; font-size: 22px; line-height: 1.14; }
.card p { margin: 0; color: #667085; }
.card.dark p { color: rgba(255,255,255,.62); }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  display: inline-flex;
  border-radius: 999px;
  background: #eef0f4;
  padding: 6px 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}
.tournament-grid {
  gap: 20px;
}
.nomad-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 8px;
  border: 1px solid rgba(20,42,77,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 36px rgba(20,42,77,.08);
}
.nomad-pagination a,
.nomad-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
}
.nomad-pagination a {
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nomad-pagination a:hover {
  border-color: rgba(20,42,77,.12);
  background: #f4f7fb;
  transform: translateY(-1px);
}
.nomad-pagination a.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(20,42,77,.22);
}
.nomad-pagination .nomad-pagination-control {
  width: auto;
  padding-inline: 16px;
  background: #f4f7fb;
  color: rgba(20,42,77,.78);
}
.tournament-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.tournament-card:hover {
  box-shadow: 0 10px 24px rgba(20, 42, 77, .05);
}
.tournament-card-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid #dce4ef;
  background: #f1f5f9;
  color: #64748b;
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}
.tournament-card-status.status-open {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.tournament-card-date {
  margin-top: 20px;
  color: rgba(20,42,77,.5);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.tournament-card-title {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.tournament-card-title a:hover {
  color: var(--red);
}
.tournament-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tournament-card-categories span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--paper);
  padding: 4px 10px;
  color: rgba(20,42,77,.6);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tournament-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tournament-card-prize-label {
  color: rgba(20,42,77,.4);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.tournament-card-prize {
  margin-top: 2px;
  color: var(--navy);
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
.tournament-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.tournament-card-link span {
  font-size: 18px;
  line-height: 1;
}
.tournament-card-link:hover {
  color: var(--red);
}
.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 26px;
  font-weight: 800;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  border-left: 2px solid var(--red);
  padding: 10px 0 10px 18px;
}
.stat strong {
  display: block;
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}
.stat span { color: #667085; }
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ranking-table th {
  color: #667085;
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.meta-table {
  margin: 0 0 32px;
}
.meta-table th {
  width: 34%;
}
.cta-band {
  background: var(--red);
  color: var(--white);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 42px;
}
.cta-inner h2 {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding-block: 72px;
}
.academy-hero {
  position: relative;
  overflow: hidden;
  padding-block: 0;
}
.academy-hero .trajectory {
  position: absolute;
  inset: 0;
}
.academy-hero-glow {
  position: absolute;
  right: -96px;
  top: -96px;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: rgba(215,38,61,.1);
  filter: blur(64px);
  pointer-events: none;
}
.academy-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 96px;
}
.academy-hero-label {
  margin-bottom: 24px;
}
.academy-hero-title {
  max-width: 1024px;
  color: var(--white);
}
.academy-hero-title span {
  color: rgba(255,255,255,.4);
}
.academy-hero-copy {
  max-width: 768px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  line-height: 1.7;
}
.academy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.academy-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 8px 16px;
  color: rgba(255,255,255,.7);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.academy-numbers {
  background: var(--ink);
  color: var(--white);
}
.academy-section-label {
  margin-bottom: 40px;
}
.academy-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.academy-stats .stat span {
  color: rgba(255,255,255,.62);
}
.academy-path-section,
.academy-achievements-section {
  background: var(--paper);
}
.academy-section-head {
  margin-bottom: 40px;
}
.academy-section-head .display-h2,
.academy-enroll-grid .display-h2 {
  color: var(--navy);
}
.academy-path-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}
.academy-path {
  display: flex;
  min-width: max-content;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.academy-path li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.academy-path-card {
  width: 224px;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
}
.academy-path-step {
  color: var(--red);
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}
.academy-path-card h3 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}
.academy-path-card p {
  margin: 6px 0 0;
  color: rgba(20,42,77,.5);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}
.academy-path-arrow {
  color: rgba(20,42,77,.3);
  font-size: 20px;
}
.academy-programs-grid,
.academy-achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.academy-program-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
  transition: border-color .3s ease;
}
.academy-program-card:hover,
.academy-program-card:focus {
  border-color: var(--navy);
  outline: none;
}
.academy-program-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.academy-program-top h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.academy-program-top span {
  color: rgba(20,42,77,.4);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}
.academy-program-description {
  margin: 0;
  color: rgba(15,22,32,.8);
  font-size: 14px;
  font-weight: 600;
}
.academy-program-detail {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  color: rgba(15,22,32,.6);
  font-size: 14px;
  line-height: 1.65;
  opacity: 0;
  transition: max-height .3s ease, margin-top .3s ease, opacity .3s ease;
}
.academy-program-card:hover .academy-program-detail,
.academy-program-card:focus .academy-program-detail {
  max-height: 180px;
  margin-top: 12px;
  opacity: 1;
}
.academy-program-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--red);
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.academy-program-card:hover .academy-program-arrow,
.academy-program-card:focus .academy-program-arrow {
  opacity: 1;
}
.academy-achievements-grid {
  gap: 20px;
}
.academy-achievement-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
}
.academy-achievement-card h3 {
  margin: 0;
  color: rgba(20,42,77,.5);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.academy-achievement-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.academy-achievement-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.academy-achievement-card li:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.academy-achievement-card li span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.academy-achievement-card li strong {
  flex: 0 0 auto;
  color: var(--red);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
}
.academy-enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.academy-enroll-grid > div > p {
  max-width: 448px;
  margin: 20px 0 0;
  color: rgba(15,22,32,.7);
  font-size: 16px;
  line-height: 1.7;
}
.academy-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 28px;
}
.academy-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.academy-form label {
  display: grid;
  gap: 8px;
}
.academy-form label > span {
  color: rgba(20,42,77,.68);
  font-size: 14px;
  font-weight: 700;
}
.academy-form input,
.academy-form select,
.academy-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}
.academy-form input:focus,
.academy-form select:focus,
.academy-form textarea:focus {
  border-color: var(--navy);
}
.academy-consent {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.academy-consent input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
  flex: 0 0 16px;
}
.academy-consent span {
  color: rgba(15,22,32,.62) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45;
}
.academy-form .btn {
  width: fit-content;
}
.nomad-tabs,
.nomad-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nomad-tab,
.nomad-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  padding: 9px 18px;
  color: rgba(20,42,77,.55);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nomad-tab.active,
.nomad-chip.active {
  background: var(--navy);
  color: var(--white);
}
.nomad-chip.active {
  background: var(--red);
}
.nomad-person-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.nomad-staff-grid,
.nomad-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.nomad-person-card,
.nomad-staff-card,
.nomad-info-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 24px;
}
.nomad-person-card h3,
.nomad-staff-card h3,
.nomad-info-card h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}
.nomad-person-card p,
.nomad-staff-card p,
.nomad-info-card p {
  margin: 0;
  color: rgba(15,22,32,.65);
}
.nomad-staff-card .avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.nomad-muted-meta {
  color: rgba(20,42,77,.45);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nomad-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nomad-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 13px 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.nomad-bullet-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nomad-bullet-list li {
  display: flex;
  gap: 12px;
  color: rgba(15,22,32,.75);
  font-size: 14px;
}
.nomad-bullet-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--red);
}
.nomad-dev-state {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 64px;
  text-align: center;
}
.nomad-dev-state strong {
  color: var(--red);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nomad-dev-state p {
  max-width: 460px;
  margin: 16px 0 0;
  color: rgba(15,22,32,.6);
  font-size: 14px;
}
.nomad-map-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: rgba(20,42,77,.4);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}
.nomad-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.nomad-dark-stats {
  background: var(--navy);
  color: var(--white);
}
.nomad-dark-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.nomad-dark-stat {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px;
}
.nomad-dark-stat strong {
  display: block;
  color: var(--white);
  font-family: Anton, Oswald, Impact, sans-serif;
  font-size: 40px;
  line-height: 1;
}
.nomad-dark-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
}
.nomad-doc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nomad-doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 12px 16px;
}
.nomad-doc-list strong {
  color: var(--navy);
  font-size: 14px;
}
.nomad-doc-list span {
  color: rgba(20,42,77,.5);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rankings-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.rankings-wrap .ranking-table {
  min-width: 560px;
  border: 0;
  border-radius: 0;
}
.ranking-move {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
}
.ranking-move.up { color: #059669; }
.ranking-move.down { color: var(--red); }
.ranking-move.same { color: rgba(20,42,77,.3); }
.bracket-scroll {
  overflow-x: auto;
}
.bracket-board {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 32px;
  padding-bottom: 8px;
}
.bracket-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bracket-title {
  color: rgba(20,42,77,.4);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bracket-title.final {
  color: var(--red);
}
.bracket-pair {
  width: 208px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.bracket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  color: rgba(20,42,77,.62);
  font-size: 14px;
}
.bracket-row + .bracket-row {
  border-top: 1px solid var(--line);
}
.bracket-row.winner {
  color: var(--navy);
  font-weight: 700;
}
.bracket-row strong {
  color: var(--navy);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.bracket-connector {
  display: block;
  width: 48px;
  height: 96px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.recent-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.recent-result-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 24px;
}
.recent-result-card strong {
  color: var(--gold);
  font-family: Anton, Oswald, Impact, sans-serif;
  font-size: 64px;
  line-height: 1;
}
.recent-result-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}
.recent-result-card p {
  margin: 4px 0 0;
  color: rgba(20,42,77,.5);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.content-wrap {
  max-width: 860px;
  margin-inline: auto;
}
.content-wrap > *:first-child { margin-top: 0; }
.wp-content {
  padding-block: 64px;
}
.post-list { display: grid; gap: 20px; }
.single-player-photo {
  display: block;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  margin: 0 auto 32px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  background: #f4f7fb;
  box-shadow: 0 18px 40px rgba(20,42,77,.12);
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.tournament-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.year-switcher,
.tournament-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.year-switcher a,
.tournament-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--white);
  color: rgba(20,42,77,.62);
  transition: background .18s ease, color .18s ease;
}
.year-switcher a {
  padding: 7px 16px;
  font-family: "Roboto Condensed", "Arial Narrow", "Noto Sans", Impact, sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.year-switcher a.active {
  background: var(--navy);
  color: var(--white);
}
.tournament-chips {
  margin-bottom: 40px;
}
.tournament-chips a {
  min-height: 36px;
  padding: 8px 16px;
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tournament-chips a.active {
  background: var(--red);
  color: var(--white);
}
.tournament-search {
  position: relative;
  width: min(100%, 320px);
}
.tournament-search input[type="text"],
.tournament-search input[name="q"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 10px 44px 10px 18px;
  color: var(--ink);
  outline: none;
}
.tournament-search input:focus {
  border-color: var(--navy);
}
.tournament-search button {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(20,42,77,.48);
  transform: translateY(-50%);
  cursor: pointer;
}
.grid .empty-state,
.nomad-card-grid .empty-state,
.nomad-person-grid .empty-state,
.nomad-staff-grid .empty-state,
.academy-programs-grid .empty-state,
.academy-achievements-grid .empty-state,
.recent-results-grid .empty-state,
.tournament-grid .empty-state {
  grid-column: 1 / -1;
  margin: 32px 0;
  text-align: center;
  color: rgba(20,42,77,.55);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 56px;
}
.footer-about {
  max-width: 330px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
}
.footer-title {
  color: rgba(255,255,255,.42);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer-links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 11px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom .container-nomad {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
}

@media (max-width: 1280px) {
  .primary-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px max(20px, calc((100vw - var(--container)) / 2));
    background: var(--navy-deep);
  }
  .menu-open .primary-menu { display: flex; }
  .primary-menu a {
    display: block;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: 16px;
  }
  .menu-toggle { display: block; }
  .header-actions .btn,
  .language-pills { display: none; }
  .menu-open .mobile-drawer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: var(--navy-deep);
    padding-block: 14px;
  }
  .menu-open .mobile-drawer-actions .language-pills {
    display: inline-flex;
  }
}

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-stats,
  .academy-programs-grid,
  .academy-achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .academy-enroll-grid,
  .nomad-two-col {
    grid-template-columns: 1fr;
  }
  .nomad-person-grid,
  .nomad-dark-stats-grid,
  .recent-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .container-nomad { width: min(100% - 32px, var(--container)); }
  .header-inner { min-height: 64px; }
  .hero-grid { padding-block: 56px; gap: 32px; }
  .section { padding-block: 52px; }
  .section-head,
  .tournament-controls,
  .cta-inner,
  .footer-bottom .container-nomad {
    align-items: flex-start;
    flex-direction: column;
  }
  .tournament-search { width: 100%; }
  .grid-3,
  .grid-4,
  .stats,
  .academy-stats,
  .academy-programs-grid,
  .academy-achievements-grid,
  .nomad-person-grid,
  .nomad-staff-grid,
  .nomad-card-grid,
  .nomad-dark-stats-grid,
  .recent-results-grid,
  .academy-form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .bracket-connector { display: none; }
  .academy-hero-inner { padding-block: 64px; }
  .academy-hero-copy { font-size: 16px; }
  .academy-pills span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .academy-form { padding: 20px; }
  .tournament-card {
    padding: 24px;
  }
  .tournament-card-date {
    margin-top: 20px;
    font-size: 12px;
  }
  .tournament-card-title {
    font-size: 20px;
  }
  .tournament-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .flagship-card { padding: 24px; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* -------------------------------------------------------------------------- */
/* New UI motion and accessibility layer.                                      */
/* -------------------------------------------------------------------------- */

.section,
.cta-band {
  position: relative;
  overflow: hidden;
}
.section > .container-nomad,
.cta-band > .container-nomad {
  position: relative;
  z-index: 1;
}
.section.ink {
  background: var(--ink);
  color: var(--white);
}
.section.ink .card {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: var(--white);
}
.section.ink .card p,
.section.ink .mono {
  color: rgba(255,255,255,.62);
}
.section.ink .btn-outline {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--white);
}

.home-hero::after {
  position: absolute;
  inset: auto -12% -35% 42%;
  height: 70%;
  content: "";
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-red-glow {
  position: absolute;
  right: -8rem;
  top: 0;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: rgba(215,38,61,.1);
  filter: blur(64px);
  pointer-events: none;
}
.hero-copy > * {
  animation: hero-rise .7s both cubic-bezier(.16,1,.3,1);
}
.hero-copy > :nth-child(2) { animation-delay: 90ms; }
.hero-copy > :nth-child(3) { animation-delay: 180ms; }
.hero-copy > :nth-child(4) { animation-delay: 270ms; }
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit::before {
  position: absolute;
  width: 10px;
  height: 10px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255,255,255,.75);
}
.hero-orbit-one {
  top: 6%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  animation: orbit-spin 18s linear infinite;
}
.hero-orbit-one::before { top: 24%; right: 4%; }
.hero-orbit-two {
  right: 8%;
  bottom: -14rem;
  width: 38rem;
  height: 38rem;
  animation: orbit-spin 28s linear infinite reverse;
}
.hero-orbit-two::before {
  top: 5%;
  left: 26%;
  background: var(--red);
}
.hero-visual-column {
  position: relative;
  padding-top: 18rem;
}
.tournament-spotlight {
  position: relative;
  z-index: 2;
  background: rgba(10,23,48,.75);
  box-shadow: 0 24px 50px rgba(0,0,0,.2);
  transition: transform .5s ease, border-color .5s ease;
}
.tournament-spotlight::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.08), transparent 65%);
  background-size: 240% 100%;
  pointer-events: none;
  animation: card-shimmer 6s ease-in-out infinite;
}
.tournament-spotlight:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.3);
}
.flagship-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--white);
  font-weight: 800;
  transition: color .18s ease;
}
.tournament-spotlight:hover .flagship-more { color: var(--red); }

.ping-pong-scene {
  position: absolute;
  top: 0;
  right: -1rem;
  left: -1rem;
  height: 19rem;
  perspective: 800px;
  animation: scene-float 5s ease-in-out infinite;
  pointer-events: none;
}
.rally-pill {
  position: absolute;
  top: 5%;
  left: 8%;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  color: rgba(255,255,255,.72);
  font: 700 10px/1 "Noto Sans Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.rally-pill span {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: target-pulse 1.2s ease-in-out infinite;
}
.table-wrap {
  position: absolute;
  top: 31%;
  right: 12%;
  left: 12%;
  height: 44%;
  transform-style: preserve-3d;
}
.table-surface {
  position: absolute;
  inset: 0;
  overflow: visible;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.8) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(#1b4f91, #0f356a);
  border: 3px solid rgba(255,255,255,.8);
  border-radius: 8px;
  box-shadow: 0 28px 50px rgba(0,0,0,.35), inset 0 0 40px rgba(255,255,255,.06);
  transform: rotateX(57deg);
}
.table-center-line {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255,255,255,.72);
}
.table-net {
  position: absolute;
  top: -18px;
  bottom: -10px;
  left: 50%;
  width: 4px;
  background: #f7fbff;
  box-shadow: 0 0 12px rgba(255,255,255,.5);
  transform: translateX(-50%);
}
.table-net::after {
  position: absolute;
  top: 0;
  left: 3px;
  width: 2.8rem;
  height: 100%;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 6px);
  opacity: .55;
}
.table-leg {
  position: absolute;
  top: 72%;
  width: 5px;
  height: 4.4rem;
  background: linear-gradient(#b8c4d5, #495a70);
  border-radius: 0 0 5px 5px;
}
.table-leg-left { left: 12%; transform: rotate(9deg); }
.table-leg-right { right: 12%; transform: rotate(-9deg); }
.paddle {
  position: absolute;
  z-index: 3;
  width: 4.4rem;
  height: 7rem;
  transform-origin: 50% 85%;
}
.paddle-face {
  position: absolute;
  top: 0;
  left: .25rem;
  width: 4rem;
  height: 4.7rem;
  background: linear-gradient(145deg, #ed3850, #a90f26);
  border: 3px solid rgba(255,255,255,.8);
  border-radius: 48% 48% 44% 44%;
  box-shadow: 0 12px 24px rgba(0,0,0,.28), inset -8px -8px 16px rgba(0,0,0,.14);
}
.paddle-handle {
  position: absolute;
  bottom: 0;
  left: 1.75rem;
  width: .9rem;
  height: 2.9rem;
  background: linear-gradient(90deg, #be7c3b, #efbc6c, #9a5c28);
  border-radius: 0 0 8px 8px;
}
.paddle-left {
  top: 28%;
  left: 1%;
  animation: paddle-left 1.25s ease-in-out infinite;
}
.paddle-right {
  top: 13%;
  right: 0;
  filter: hue-rotate(188deg) saturate(.8);
  animation: paddle-right 1.25s .62s ease-in-out infinite;
}
.ball-path {
  position: absolute;
  z-index: 5;
  top: 22%;
  right: 19%;
  left: 19%;
  height: 36%;
}
.ping-pong-ball {
  position: absolute;
  top: 52%;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255,255,255,.95), 0 8px 15px rgba(0,0,0,.3);
  animation: ball-rally 1.25s cubic-bezier(.45,.05,.55,.95) infinite;
}
.ball-path i {
  position: absolute;
  top: 55%;
  left: 12%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
  animation: trail-rally 1.25s linear infinite;
}
.ball-path i:nth-child(2) { animation-delay: -80ms; }
.ball-path i:nth-child(3) { animation-delay: -160ms; }
.scene-score {
  position: absolute;
  bottom: 3%;
  display: grid;
  gap: 2px;
  min-width: 4.8rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  padding: .55rem .7rem;
  color: var(--white);
  backdrop-filter: blur(8px);
}
.scene-score strong {
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 2rem;
  line-height: 1;
}
.scene-score span {
  color: rgba(255,255,255,.58);
  font: 700 10px/1 "Noto Sans Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scene-score-left { left: 17%; }
.scene-score-right { right: 17%; }

.section-decor {
  position: absolute;
  z-index: 0;
  top: 2rem;
  right: max(1rem, calc((100vw - var(--container)) / 2));
  width: 17rem;
  height: 12rem;
  color: rgba(20,42,77,.16);
  opacity: .8;
  pointer-events: none;
}
.section-decor.is-left {
  right: auto;
  left: max(1rem, calc((100vw - var(--container)) / 2));
}
.section-decor.is-dark { color: rgba(255,255,255,.18); }
.section-decor-set {
  position: absolute;
  right: 0;
  bottom: -2.7rem;
  color: currentColor;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  opacity: .18;
}
.section-decor svg {
  width: 100%;
  height: 100%;
}
.decor-rally-path {
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 18 18;
  animation: rally-dash 4s linear infinite;
}
.decor-rally-path-ghost {
  opacity: .42;
  animation-direction: reverse;
}
.decor-rally-ball,
.decor-rally-paddle {
  position: absolute;
  display: block;
}
.decor-rally-ball {
  left: 1.1rem;
  bottom: 1.9rem;
  width: 1rem;
  height: 1rem;
  background: var(--red);
  border-radius: 50%;
  animation: section-ball-arc 2.8s ease-in-out infinite;
}
.decor-rally-paddle {
  right: .7rem;
  top: 3.3rem;
  width: 2.2rem;
  height: 3.1rem;
  border-radius: 50% 50% 43% 43%;
  background: currentColor;
  transform-origin: 50% 85%;
  animation: section-paddle 2.8s ease-in-out infinite;
}
.decor-court,
.decor-target,
.decor-broadcast,
.decor-route {
  position: absolute;
  inset: 1rem;
}
.decor-court {
  border: 3px solid currentColor;
  border-radius: 12px;
  transform: rotateX(56deg) rotateZ(-5deg);
}
.decor-court-center,
.decor-court-net {
  position: absolute;
  background: currentColor;
}
.decor-court-center {
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
}
.decor-court-net {
  top: -10px;
  bottom: -10px;
  left: 50%;
  width: 4px;
}
.decor-court-ball {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: .9rem;
  height: .9rem;
  background: var(--red);
  border-radius: 50%;
  animation: court-ball 2.4s ease-in-out infinite;
}
.decor-target {
  display: grid;
  place-items: center;
}
.decor-target span {
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.decor-target span:nth-child(1) { width: 12rem; height: 12rem; }
.decor-target span:nth-child(2) { width: 8rem; height: 8rem; }
.decor-target span:nth-child(3) { width: 4rem; height: 4rem; }
.decor-target i {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--red);
  border-radius: 50%;
  animation: target-pulse 1.8s ease-out infinite;
}
.decor-broadcast {
  display: grid;
  place-items: center;
}
.decor-live-dot {
  width: 1rem;
  height: 1rem;
  background: var(--red);
  border-radius: 50%;
}
.decor-wave {
  position: absolute;
  width: 8rem;
  height: 8rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: broadcast-wave 2.5s ease-out infinite;
}
.decor-wave-two { animation-delay: .7s; }
.decor-broadcast strong {
  position: absolute;
  bottom: 0;
  color: currentColor;
  font: 900 11px/1 "Noto Sans Mono", ui-monospace, monospace;
  letter-spacing: .18em;
}
.decor-route {
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}
.decor-route span {
  position: absolute;
  inset: -2.6rem 0 auto;
  height: 5.2rem;
  border: 2px dashed currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.decor-route i {
  position: absolute;
  top: 50%;
  width: .8rem;
  height: .8rem;
  background: currentColor;
  border-radius: 50%;
  transform: translateY(-50%);
}
.decor-route i:nth-child(2) { left: 20%; }
.decor-route i:nth-child(3) { left: 50%; }
.decor-route i:nth-child(4) { left: 80%; }
.decor-route b {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--red);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: route-ball 2.6s ease-in-out infinite;
}

.result-card,
.program-card {
  position: relative;
  overflow: hidden;
}
.result-card-orbit {
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(20,42,77,.08);
  border-radius: 50%;
}
.result-card-orbit::after,
.program-rally-line::after {
  position: absolute;
  content: "";
  width: .75rem;
  height: .75rem;
  background: var(--red);
  border-radius: 50%;
}
.result-card-orbit::after {
  left: 1rem;
  bottom: 1rem;
}
.program-rally-line {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 5rem;
  height: 2.8rem;
  border-top: 2px dashed rgba(255,255,255,.22);
  border-radius: 50%;
}
.program-rally-line::after {
  right: 0;
  top: -.45rem;
}
.page-hero,
.academy-hero { position: relative; }
.page-hero::after,
.academy-hero::after {
  position: absolute;
  right: 9%;
  top: 24%;
  width: 1rem;
  height: 1rem;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255,255,255,.75);
  animation: page-ball 7s ease-in-out infinite;
}

.motion-enabled:not(.a11y-mode) .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms var(--reveal-delay, 0ms) ease,
    transform 750ms var(--reveal-delay, 0ms) cubic-bezier(.16,1,.3,1);
}
.motion-enabled:not(.a11y-mode) .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover) {
  html:not(.a11y-mode) #content article {
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
  }
  html:not(.a11y-mode) #content article:hover {
    transform: translateY(-7px) rotateX(1deg);
    box-shadow: 0 20px 45px rgba(10,23,48,.11);
  }
  html:not(.a11y-mode) #content article:hover .trajectory {
    animation: trajectory-drift 5s linear infinite;
  }
}

html.a11y-mode {
  font-size: 18px;
  scroll-behavior: auto;
}
.a11y-mode *,
.a11y-mode *::before,
.a11y-mode *::after {
  animation: none !important;
  transition: none !important;
}
.a11y-mode body,
.a11y-mode .section,
.a11y-mode .section.white,
.a11y-mode .card,
.a11y-mode .tournament-card {
  color: #000 !important;
  background-color: #fff !important;
}
.a11y-mode .hero,
.a11y-mode .section.navy,
.a11y-mode .section.ink,
.a11y-mode .nomad-dark-stats,
.a11y-mode .site-footer {
  color: #fff !important;
  background-color: #000 !important;
}
.a11y-mode .card.dark,
.a11y-mode .flagship-card,
.a11y-mode .tournament-spotlight {
  color: #fff !important;
  background: #000 !important;
}
.a11y-mode main a:not(.btn),
.a11y-mode footer a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.a11y-mode button,
.a11y-mode a {
  min-height: 48px;
}
.a11y-mode :focus-visible {
  outline: 4px solid #ffe600 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #000 !important;
}
.a11y-mode .trajectory,
.a11y-mode .hero-orbit,
.a11y-mode .hero-red-glow,
.a11y-mode .ping-pong-scene,
.a11y-mode .section-decor,
.a11y-mode .result-card-orbit,
.a11y-mode .program-rally-line,
.a11y-mode .page-hero::after,
.a11y-mode .academy-hero::after {
  display: none !important;
}
.a11y-mode .hero-visual-column { padding-top: 0 !important; }

@keyframes header-rally {
  from { background-position: 180% 0; }
  to { background-position: -80% 0; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes card-shimmer {
  0%, 45% { background-position: 130% 0; }
  70%, 100% { background-position: -130% 0; }
}
@keyframes scene-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes paddle-left {
  0%, 100% { transform: rotate(-22deg); }
  48% { transform: rotate(12deg) translate(6px,-5px); }
}
@keyframes paddle-right {
  0%, 100% { transform: rotate(24deg); }
  48% { transform: rotate(-10deg) translate(-6px,5px); }
}
@keyframes ball-rally {
  0% { left: 0; transform: translateY(8px) scale(.82); }
  24% { left: 48%; transform: translateY(-54px) scale(1); }
  50% { left: calc(100% - 1rem); transform: translateY(12px) scale(.8); }
  74% { left: 48%; transform: translateY(-42px) scale(1); }
  100% { left: 0; transform: translateY(8px) scale(.82); }
}
@keyframes trail-rally {
  0% { left: 0; transform: translateY(8px); opacity: 0; }
  15% { opacity: .7; }
  50% { left: 80%; transform: translateY(-12px); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes page-ball {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-80px,65px); }
  50% { transform: translate(-150px,5px); }
  75% { transform: translate(-70px,-38px); }
}
@keyframes trajectory-drift { to { background-position: 44px 22px; } }
@keyframes rally-dash { to { stroke-dashoffset: -130; } }
@keyframes section-ball-arc {
  0%, 100% { transform: translate(0,2.2rem) scale(.75); }
  50% { transform: translate(14.1rem,-5.7rem) scale(1); }
}
@keyframes section-paddle {
  0%, 82%, 100% { transform: rotate(-24deg); }
  90% { transform: rotate(-4deg); }
}
@keyframes court-ball {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(8.8rem,2.3rem); }
}
@keyframes target-pulse {
  0% { box-shadow: 0 0 0 0 rgba(215,38,61,.45); }
  80%, 100% { box-shadow: 0 0 0 2.4rem rgba(215,38,61,0); }
}
@keyframes broadcast-wave {
  from { opacity: .8; transform: scale(.25); }
  to { opacity: 0; transform: scale(1.8); }
}
@keyframes route-ball {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 1.1rem); }
}

@media (max-width: 1120px) {
  .hero-visual-column { padding-top: 17rem; }
}
@media (max-width: 780px) {
  .hero-visual-column { padding-top: 15rem; }
  .ping-pong-scene {
    right: -.5rem;
    left: -.5rem;
    transform: scale(.92);
  }
  .paddle { transform: scale(.82); }
  .scene-score-left { left: 14%; }
  .scene-score-right { right: 14%; }
  .section-decor {
    width: 12rem;
    height: 9rem;
    opacity: .2;
  }
  .section-decor-set { font-size: 6rem; }
  .decor-rally-paddle { display: none; }
  .a11y-toggle span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
