:root {
  color-scheme: dark;
  --bg: #03070d;
  --panel: rgba(7, 16, 28, 0.76);
  --panel-strong: rgba(9, 23, 39, 0.92);
  --line: rgba(137, 216, 255, 0.22);
  --cyan: #67d9ff;
  --cyan-strong: #18bdf7;
  --white: #f4fbff;
  --muted: #a9bbca;
  --gold: #f7c85f;
  --gold-deep: #b9872e;
  --danger: #ff5c8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 14%, rgba(24, 189, 247, 0.18), transparent 26%),
    radial-gradient(circle at 82% 6%, rgba(247, 200, 95, 0.12), transparent 28%),
    linear-gradient(180deg, #03070d 0%, #07111f 48%, #03070d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 217, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 217, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 15px;
  border-radius: 6px;
  color: #03101a;
  background: var(--cyan);
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 40vw;
  max-width: 640px;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 217, 255, 0.22);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.38;
  animation: portalSpin 28s linear infinite;
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(247, 200, 95, 0.22);
  border-radius: 50%;
}

.orb::after {
  inset: 22%;
  border-color: rgba(103, 217, 255, 0.28);
}

.orb-a {
  left: -14vw;
  top: 18vh;
}

.orb-b {
  right: -18vw;
  bottom: 8vh;
  animation-direction: reverse;
}

.grid {
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  background: linear-gradient(to top, rgba(24, 189, 247, 0.13), transparent);
  transform: perspective(460px) rotateX(64deg);
  transform-origin: bottom;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.86), rgba(3, 7, 13, 0.4));
  border-bottom: 1px solid rgba(103, 217, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.brand-shield {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(103, 217, 255, 0.34));
}

nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

nav a:hover {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(103, 217, 255, 0.52);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 130px clamp(18px, 5vw, 72px) 56px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: 0;
  background-image: url("/assets/hero-messi.jpg");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.04);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.94) 0%, rgba(3, 7, 13, 0.62) 38%, rgba(3, 7, 13, 0.08) 100%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.08) 0%, rgba(3, 7, 13, 0.35) 48%, #03070d 100%);
}

.portal {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portal-main {
  z-index: 1;
  right: 8vw;
  top: 13vh;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(103, 217, 255, 0.35);
  box-shadow:
    inset 0 0 36px rgba(103, 217, 255, 0.16),
    0 0 60px rgba(103, 217, 255, 0.16);
  animation: portalPulse 4.5s ease-in-out infinite;
}

.hero-content {
  width: min(760px, 100%);
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 9vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-years {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(247, 200, 95, 0.36);
}

.hero-copy {
  width: min(620px, 100%);
  color: #d9e7ef;
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.btn-primary {
  color: #03101a;
  background: linear-gradient(135deg, var(--cyan), #ffffff);
  box-shadow: 0 0 28px rgba(103, 217, 255, 0.36);
}

.btn-primary:hover {
  box-shadow: 0 0 38px rgba(103, 217, 255, 0.58);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(247, 200, 95, 0.52);
  background: rgba(5, 13, 24, 0.58);
}

.btn-ghost:hover {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(247, 200, 95, 0.22);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid rgba(103, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(103, 217, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 22px;
  background: rgba(3, 7, 13, 0.68);
}

.hero-stats span {
  display: block;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 900;
}

.hero-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 96px clamp(18px, 5vw, 72px);
}

.section-head {
  width: min(780px, 100%);
  margin-bottom: 42px;
}

.section-head h2,
.current-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head p,
.current-panel p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 28px;
}

.world-card {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  overflow: hidden;
  border: 1px solid rgba(103, 217, 255, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.world-card-text {
  grid-template-columns: 1fr;
}

.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.76;
  transition: transform 500ms ease, opacity 500ms ease;
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.94), rgba(3, 7, 13, 0.58) 42%, rgba(3, 7, 13, 0.12)),
    linear-gradient(180deg, transparent, rgba(3, 7, 13, 0.58));
}

.world-card:hover::before {
  transform: scale(1.04);
  opacity: 0.72;
}

.world-copy {
  position: relative;
  z-index: 2;
}

.world-copy {
  padding: clamp(28px, 5vw, 56px);
}

.year-tag {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.world-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.world-copy p {
  max-width: 620px;
  color: #d4e2eb;
  line-height: 1.72;
}

.world-review {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 3px solid rgba(247, 200, 95, 0.72);
  color: #eef7fc;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 650;
}

.fixture-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(103, 217, 255, 0.24);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.7);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tab-button[aria-selected="true"],
.tab-button:hover {
  color: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(103, 217, 255, 0.2);
}

.fixture-board {
  overflow: hidden;
  border: 1px solid rgba(103, 217, 255, 0.18);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.fixture-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(103, 217, 255, 0.14);
}

.fixture-header h3 {
  margin: 0;
  font-size: 1.6rem;
}

.fixture-header span {
  color: var(--gold);
  font-weight: 900;
}

.bracket-arena {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.6fr) minmax(240px, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: 520px;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 50% 24%, rgba(247, 200, 95, 0.18), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(103, 217, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(103, 217, 255, 0.06), transparent 42%),
    rgba(3, 7, 13, 0.52);
}

.bracket-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 217, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.bracket-side,
.champion-core {
  position: relative;
  z-index: 1;
}

.bracket-side {
  display: grid;
  gap: 18px;
}

.bracket-left .bracket-match:nth-child(even) {
  margin-left: clamp(18px, 4vw, 60px);
}

.bracket-right .bracket-match:nth-child(even) {
  margin-right: clamp(18px, 4vw, 60px);
}

.bracket-match {
  position: relative;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 200, 95, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(103, 217, 255, 0.1), transparent),
    rgba(8, 19, 33, 0.88);
  box-shadow:
    inset 0 0 22px rgba(103, 217, 255, 0.06),
    0 0 28px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.bracket-match:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(247, 200, 95, 0.16);
}

.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(22px, 4vw, 54px);
  height: 2px;
  background: linear-gradient(90deg, rgba(247, 200, 95, 0.1), var(--gold), rgba(103, 217, 255, 0.45));
  box-shadow: 0 0 14px rgba(247, 200, 95, 0.34);
}

.bracket-left .bracket-match::after {
  right: calc(clamp(22px, 4vw, 54px) * -1);
}

.bracket-right .bracket-match::after {
  left: calc(clamp(22px, 4vw, 54px) * -1);
  transform: rotate(180deg);
}

.stage-chip {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-scorecard {
  display: grid;
  gap: 5px;
}

.score-team {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.score-team-argentina {
  border-color: rgba(103, 217, 255, 0.24);
  background: linear-gradient(90deg, rgba(103, 217, 255, 0.14), rgba(255, 255, 255, 0.025));
}

.team-flag {
  display: block;
  width: 25px;
  height: 17px;
  border-radius: 2px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.team-flag-placeholder {
  display: grid;
  place-items: center;
  width: 25px;
  height: 17px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.65rem;
}

.score-team-name {
  overflow: hidden;
  color: #edf8ff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-goals {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  border: 1px solid rgba(247, 200, 95, 0.42);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(247, 200, 95, 0.08);
  font-size: 1rem;
}

.penalty-result {
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(103, 217, 255, 0.1);
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.penalty-label {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.champion-core {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 360px;
  padding: 22px;
  text-align: center;
}

.champion-core::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(103, 217, 255, 0.26);
  border-radius: 50%;
  box-shadow:
    inset 0 0 36px rgba(103, 217, 255, 0.14),
    0 0 46px rgba(103, 217, 255, 0.14);
  animation: portalPulse 5.5s ease-in-out infinite;
}

.cyber-flag {
  position: relative;
  width: min(180px, 68vw);
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 1px solid rgba(247, 200, 95, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #62d7ff 0 33.33%, #f7fbff 33.33% 66.66%, #62d7ff 66.66%),
    #62d7ff;
  box-shadow:
    inset 0 0 26px rgba(3, 7, 13, 0.28),
    0 0 30px rgba(103, 217, 255, 0.3),
    0 0 18px rgba(247, 200, 95, 0.18);
}

.cyber-flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent),
    repeating-linear-gradient(90deg, rgba(3, 7, 13, 0.18) 0 1px, transparent 1px 9px);
  mix-blend-mode: overlay;
  animation: flagScan 3.5s linear infinite;
}

.cyber-flag::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(3, 7, 13, 0.2);
  border-radius: 5px;
}

.cyber-flag span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff2a7 0 18%, #f7c85f 19% 48%, transparent 50%);
  filter: drop-shadow(0 0 12px rgba(247, 200, 95, 0.76));
}

.cyber-flag span::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: conic-gradient(from 0deg, transparent 0 8deg, #f7c85f 9deg 13deg, transparent 14deg 30deg);
  border-radius: 50%;
  animation: portalSpin 12s linear infinite;
}

.core-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.champion-core strong {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.champion-core small {
  color: var(--muted);
  font-weight: 800;
}

.final-scorecard {
  width: min(260px, 100%);
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 200, 95, 0.34);
  border-radius: 10px;
  background: rgba(3, 7, 13, 0.72);
}

.final-scorecard .score-team-name {
  text-align: left;
}

.route-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 24px;
}

.route-stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(103, 217, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(103, 217, 255, 0.08), transparent),
    rgba(3, 7, 13, 0.48);
}

.route-stage header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.route-stage header span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(247, 200, 95, 0.52);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-stage header strong {
  color: var(--cyan);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-matches {
  display: grid;
  gap: 12px;
}

.route-match {
  position: relative;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(247, 200, 95, 0.34);
  border-radius: 8px;
  background: rgba(10, 21, 35, 0.9);
  box-shadow:
    inset 0 0 18px rgba(103, 217, 255, 0.05),
    0 0 20px rgba(247, 200, 95, 0.08);
}

.route-match::before,
.route-match::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 18px;
  border: 1px solid rgba(247, 200, 95, 0.44);
  transform: translateY(-50%);
}

.route-match::before {
  left: -11px;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.route-match::after {
  right: -11px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.team-line {
  display: grid;
  gap: 8px;
}

.team {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.argentina {
  color: #051018;
  background: linear-gradient(90deg, #ffffff, #69d8ff);
}

.rival {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.team-line strong {
  color: var(--gold);
  font-size: 1rem;
  white-space: normal;
}

.route-connector {
  position: absolute;
  top: 50%;
  right: -15px;
  z-index: 2;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(247, 200, 95, 0.12));
  box-shadow: 0 0 14px rgba(247, 200, 95, 0.44);
}

.current-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(247, 200, 95, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 200, 95, 0.12), transparent 34%),
    rgba(7, 16, 28, 0.78);
  box-shadow: var(--shadow);
}

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

.current-item {
  padding: 16px;
  border: 1px solid rgba(103, 217, 255, 0.16);
  border-radius: 7px;
  background: rgba(3, 7, 13, 0.52);
}

.current-item strong {
  display: block;
  margin-bottom: 6px;
}

.current-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.current-bracket {
  overflow: hidden;
  border: 1px solid rgba(103, 217, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(rgba(103, 217, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 217, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 72% 58%, rgba(103, 217, 255, 0.11), transparent 28%),
    rgba(4, 11, 20, 0.94);
  background-size: 48px 48px, 48px 48px, auto, auto;
  box-shadow: var(--shadow);
}

.current-bracket-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid rgba(103, 217, 255, 0.15);
  background: linear-gradient(90deg, rgba(103, 217, 255, 0.08), transparent);
}

.current-bracket-head h3 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.update-date {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.knockout-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--cyan) rgba(103, 217, 255, 0.08);
  scrollbar-width: thin;
}

.knockout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
  min-width: 1020px;
  padding: 28px;
}

.knockout-round {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 0;
}

.knockout-round > header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: var(--gold);
}

.knockout-round > header span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(247, 200, 95, 0.48);
  border-radius: 50%;
  font-size: 0.63rem;
  font-weight: 900;
}

.knockout-round h4 {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knockout-matches {
  display: grid;
  align-content: space-around;
  gap: 11px;
}

.current-match {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(103, 217, 255, 0.2);
  border-radius: 9px;
  background: rgba(5, 15, 27, 0.93);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.current-match.is-featured {
  border-color: rgba(247, 200, 95, 0.78);
  box-shadow: 0 0 26px rgba(247, 200, 95, 0.13);
}

.current-team {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 4px 7px;
  border-radius: 6px;
}

.current-team + .current-team {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 0 6px 6px;
}

.current-team.is-winner {
  background: linear-gradient(90deg, rgba(103, 217, 255, 0.13), rgba(247, 200, 95, 0.06));
}

.current-flag {
  display: block;
  width: 28px;
  height: 19px;
  border-radius: 2px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.48);
}

.current-flag-placeholder {
  display: grid;
  place-items: center;
  width: 28px;
  height: 19px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.current-team-name {
  min-width: 0;
}

.current-team-name strong,
.current-team-name small {
  display: block;
}

.current-team-name strong {
  overflow: hidden;
  color: #eff9ff;
  font-size: 0.76rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-team-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.current-team > b {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 29px;
  padding: 0 5px;
  border: 1px solid rgba(247, 200, 95, 0.38);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(247, 200, 95, 0.07);
  font-size: 0.92rem;
}

.current-match-note {
  display: block;
  margin: 5px 7px 1px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
}

.bracket-source {
  margin: 0;
  padding: 14px 28px 18px;
  border-top: 1px solid rgba(103, 217, 255, 0.1);
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.bracket-source a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.bracket-source a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .current-bracket-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .knockout-grid {
    grid-template-columns: 270px 250px 250px 250px;
    min-width: 1080px;
    padding: 20px;
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(103, 217, 255, 0.12);
  color: var(--muted);
  background: #03070d;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes portalSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes portalPulse {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.98) rotate(0deg);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.04) rotate(10deg);
  }
}

@keyframes slowDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes flagScan {
  from {
    transform: translateX(-40%);
  }
  to {
    transform: translateX(40%);
  }
}

@media (max-width: 900px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 164px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 7, 13, 0.52), rgba(3, 7, 13, 0.9) 66%, #03070d 100%),
      linear-gradient(90deg, rgba(3, 7, 13, 0.88), rgba(3, 7, 13, 0.2));
  }

  .hero-stats,
  .world-card,
  .current-panel {
    grid-template-columns: 1fr;
  }

  .route-map {
    grid-template-columns: 1fr;
  }

  .bracket-arena {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bracket-left .bracket-match:nth-child(even),
  .bracket-right .bracket-match:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .bracket-match::after {
    display: none;
  }

  .champion-core {
    order: -1;
    min-height: 260px;
  }

  .route-stage {
    min-height: auto;
  }

  .route-connector {
    top: auto;
    right: 50%;
    bottom: -15px;
    width: 2px;
    height: 16px;
    transform: translateX(50%);
    background: linear-gradient(180deg, var(--gold), rgba(247, 200, 95, 0.12));
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    font-size: 0.82rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 70px;
  }

  .footer {
    flex-direction: column;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
