:root {
  --night: #030816;
  --pitch: #06122c;
  --royal: #034694;
  --royal-mid: #0b3f86;
  --flare: #2d74ff;
  --ice: #f4f8ff;
  --chrome: #e8f0ff;
  --mist: #9bb3d6;
  --line: rgba(232, 240, 255, 0.16);
  --glass: rgba(6, 18, 44, 0.72);
  --card: rgba(8, 28, 68, 0.55);
  --shadow: 0 24px 60px rgba(0, 8, 28, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--night);
  color: var(--ice);
  font-family: "Outfit", sans-serif;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

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

.night {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 116, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 40% 40% at 8% 20%, rgba(3, 70, 148, 0.45), transparent 60%),
    radial-gradient(ellipse 40% 40% at 92% 18%, rgba(3, 70, 148, 0.35), transparent 62%),
    linear-gradient(180deg, #061433 0%, #030816 42%, #041028 100%);
}

.pitch-grid {
  position: absolute;
  inset: 8% 6% 6%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(232, 240, 255, 0.1) 49.6%, rgba(232, 240, 255, 0.1) 50.4%, transparent 50.4%),
    linear-gradient(transparent 49.7%, rgba(232, 240, 255, 0.08) 49.7%, rgba(232, 240, 255, 0.08) 50.3%, transparent 50.3%);
  mask-image: radial-gradient(circle at 50% 40%, black 20%, transparent 78%);
  animation: grid-breathe 10s ease-in-out infinite;
}

.pitch-grid::before,
.pitch-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18vmin;
  height: 18vmin;
  border: 1px solid rgba(232, 240, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-grid::before { top: 50%; }
.pitch-grid::after {
  top: 0;
  width: 28vmin;
  height: 14vmin;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}

.flood {
  position: absolute;
  top: -8%;
  width: 42vw;
  height: 70vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(80, 140, 255, 0.05) 45%, transparent);
  filter: blur(8px);
  animation: flood-sweep 9s ease-in-out infinite;
}

.flood-left {
  left: -4%;
  transform: rotate(18deg);
  transform-origin: top center;
}

.flood-right {
  right: -4%;
  transform: rotate(-18deg);
  transform-origin: top center;
  animation-delay: -4.5s;
}

.sash {
  position: absolute;
  height: 88px;
  width: 160vw;
  left: -20vw;
  background: linear-gradient(90deg, transparent, #1d5fe8 12%, #4d8cff 50%, #1d5fe8 88%, transparent);
  opacity: 0.22;
  filter: blur(0.4px);
}

.sash-a {
  top: 22%;
  transform: rotate(-12deg);
  animation: sash-drift 16s linear infinite;
}

.sash-b {
  bottom: 18%;
  transform: rotate(10deg);
  opacity: 0.14;
  animation: sash-drift 22s linear infinite reverse;
}

.circle-mark {
  position: absolute;
  width: 46vmin;
  height: 46vmin;
  right: 6%;
  top: 18%;
  border: 18px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.03);
  animation: mark-spin 36s linear infinite;
}

.circle-mark::before {
  content: "";
  position: absolute;
  inset: 28%;
  border: 8px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.circle-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 8px;
  height: 64%;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.16), transparent 68%);
  transform: translate(-50vw, -50vh);
  transition: transform 80ms linear;
}

.orbit-ball {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, #d5e2f6 36%, #8aa4c8 70%, #eef4ff);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.ball-one { animation: orbit-a 18s linear infinite; }
.ball-two { animation: orbit-b 24s linear infinite; }

.corner-flag {
  position: absolute;
  bottom: 7%;
  width: 4px;
  height: 84px;
  background: linear-gradient(#dce8fb, #8aa4c8);
}

.corner-flag::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 36px;
  height: 22px;
  background: #0b63d8;
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
  animation: flag-wave 2.4s ease-in-out infinite;
}

.flag-left { left: 4%; }
.flag-right { right: 4%; transform: scaleX(-1); }

.ticker {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 10, 28, 0.7);
  backdrop-filter: blur(10px);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  padding: 0.55rem 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--mist);
  animation: ticker 28s linear infinite;
}

.ticker-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 10px var(--flare);
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  background: rgba(3, 12, 30, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.crest-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crest-lockup img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(232, 240, 255, 0.2), 0 0 24px rgba(45, 116, 255, 0.35);
}

.crest-lockup strong,
.crest-lockup small {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
}

.crest-lockup strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.crest-lockup small {
  color: var(--mist);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.lineup {
  display: flex;
  gap: 1.5rem;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.lineup a {
  position: relative;
  color: var(--mist);
  transition: color 0.25s ease;
}

.lineup a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.lineup a:hover,
.lineup a.active {
  color: var(--ice);
}

.lineup a:hover::after,
.lineup a.active::after {
  transform: scaleX(1);
}

.mast-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mast-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.mast-links a img {
  width: 16px;
  height: 16px;
}

.mast-links a:hover {
  transform: translateY(-2px);
  background: rgba(45, 116, 255, 0.2);
  box-shadow: 0 8px 20px rgba(45, 116, 255, 0.25);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ice);
}

main, footer {
  position: relative;
  z-index: 2;
}

.kickoff {
  min-height: calc(100vh - 110px);
  padding: 3.5rem 6vw 5rem;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 28, 68, 0.8), rgba(3, 12, 30, 0.8));
  box-shadow: var(--shadow), inset 0 0 30px rgba(45, 116, 255, 0.08);
}

.board-cell em,
.board-clock {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.board-cell strong,
.board-score {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.board-score {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 2.2rem;
  font-weight: 800;
}

.board-score i {
  color: var(--flare);
  animation: pulse 1.4s ease-in-out infinite;
}

.board-clock {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

.kickoff-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4vw;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.captain-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.crest-ring {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.crest-ring img {
  width: 78%;
  border-radius: 50%;
  object-fit: cover;
  animation: captain-float 5.5s ease-in-out infinite;
  box-shadow:
    0 0 0 10px rgba(3, 70, 148, 0.35),
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(45, 116, 255, 0.28);
}

.ring-spin,
.ring-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring-spin {
  border: 2px dashed rgba(232, 240, 255, 0.28);
  animation: spin 22s linear infinite;
}

.ring-glow {
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 40px rgba(45, 116, 255, 0.2);
  animation: glow-pulse 4s ease-in-out infinite;
}

.armband {
  margin-top: 1.2rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(3, 70, 148, 0.35);
}

.match-tag {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.7rem;
}

.chrome {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.9;
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  background: linear-gradient(180deg, #ffffff 0%, #dce8fb 46%, #9bb3d6 70%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

h2.chrome {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.symbol {
  margin: 0.8rem 0 1rem;
  color: var(--mist);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.symbol b {
  color: var(--ice);
}

.manifesto {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.subcopy, .lede {
  color: #c5d4ea;
  line-height: 1.7;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.boot-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.boot-btn {
  background: linear-gradient(180deg, #2d74ff, #034694);
  box-shadow: 0 10px 28px rgba(3, 70, 148, 0.45);
}

.boot-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out infinite;
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.boot-btn img,
.ghost-btn img {
  width: 16px;
  height: 16px;
}

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

section {
  padding: 6rem 6vw;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2.8rem;
}

.formation,
.route,
.dugout,
.lives {
  max-width: 1180px;
  margin: 0 auto;
}

.formation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.kit-card,
.touch,
.dugout-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kit-card::before,
.touch::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 90px;
  background: linear-gradient(90deg, transparent, rgba(45, 116, 255, 0.35), transparent);
  transform: rotate(-12deg);
}

.kit-no {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(232, 240, 255, 0.16);
  line-height: 1;
}

.kit-card h3,
.touch h3,
.dugout-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin: 0.4rem 0 0.6rem;
}

.kit-card p,
.touch p {
  color: #c5d4ea;
  line-height: 1.65;
}

.lives {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.6rem;
  margin-top: 1.4rem;
  list-style: none;
}

.lives li {
  padding: 0.7rem 0.4rem;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(3, 70, 148, 0.22);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  counter-reset: none;
}

.touch {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.touch-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.touch-icon img {
  width: 24px;
  height: 24px;
}

.touch span,
.dugout-card span {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  font-size: 0.75rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--ice);
  border-bottom: 1px solid rgba(232, 240, 255, 0.35);
  width: fit-content;
  font-size: 0.92rem;
}

.jumbotron {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #02070f;
  box-shadow: var(--shadow), 0 0 80px rgba(45, 116, 255, 0.12);
}

.jumbo-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--mist);
  background: linear-gradient(90deg, rgba(3, 70, 148, 0.5), rgba(3, 12, 30, 0.8));
}

.jumbotron iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b1220;
}

.jumbo-link {
  margin: 0.9rem 1rem 1.1rem;
}

.billboard {
  max-width: 1180px;
  margin: 0 auto 1.6rem;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 60px rgba(45, 116, 255, 0.18);
}

.billboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: billboard-drift 18s ease-in-out infinite;
}

.dugout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dugout-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 160px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dugout-card img {
  width: 22px;
  height: 22px;
  margin-bottom: 0.4rem;
}

.dugout-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 240, 255, 0.4);
}

.full-time {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 3rem 6vw 4rem;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.full-time p {
  color: var(--ice);
}

.enter {
  opacity: 0;
  transform: translateY(28px);
}

.enter.is-inview {
  animation: rise 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.14s; }
.delay-2 { animation-delay: 0.28s; }

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

@keyframes flood-sweep {
  0%, 100% { opacity: 0.35; filter: blur(10px); }
  50% { opacity: 0.7; filter: blur(6px); }
}

@keyframes sash-drift {
  from { transform: translateX(-8%) rotate(-12deg); }
  to { transform: translateX(8%) rotate(-12deg); }
}

@keyframes mark-spin {
  to { transform: rotate(360deg); }
}

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

@keyframes captain-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(45, 116, 255, 0.15); }
  50% { box-shadow: 0 0 48px rgba(45, 116, 255, 0.4); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes grid-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}

@keyframes flag-wave {
  0%, 100% { transform: skewY(0); }
  50% { transform: skewY(-8deg); }
}

@keyframes orbit-a {
  0% { top: 18%; left: 12%; }
  25% { top: 28%; left: 78%; }
  50% { top: 62%; left: 70%; }
  75% { top: 72%; left: 18%; }
  100% { top: 18%; left: 12%; }
}

@keyframes orbit-b {
  0% { top: 70%; left: 80%; }
  50% { top: 20%; left: 30%; }
  100% { top: 70%; left: 80%; }
}

@keyframes billboard-drift {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.08); }
}

@media (max-width: 980px) {
  .lineup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 6vw 1.2rem;
    background: rgba(3, 12, 30, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .lineup.open { display: flex; }
  .menu-toggle { display: flex; }

  .kickoff-grid,
  .formation,
  .route,
  .dugout,
  .lives {
    grid-template-columns: 1fr;
  }

  .lives {
    grid-template-columns: repeat(3, 1fr);
  }

  .scoreboard {
    grid-template-columns: 1fr 1fr;
  }

  .board-clock {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .jumbotron iframe { height: 460px; }

  .manifesto { max-width: none; }
}

@media (max-width: 640px) {
  .kickoff, section { padding-left: 5vw; padding-right: 5vw; }
  .chrome { font-size: 3.4rem; }
  .jumbotron iframe { height: 380px; }
  .corner-flag { display: none; }
}
