/* The cinematic front door. The tournament keeps its existing styles and DOM hooks. */
:root {
  --ice: #dcecf1;
  --aqua: #87e8e2;
  --landing-muted: #a7bdca;
  --landing-line: rgb(176 218 233 / 20%);
  --header-height: 82px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body.landing-page { background: #040f19; color: var(--ice); }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 6px;
}
.skip-link { position: fixed; left: 20px; top: -100px; padding: 12px 20px; background: var(--aqua); color: #051622; z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: var(--header-height);
  padding: 0 clamp(24px, 4vw, 80px);
  background: rgb(6 21 33 / 96%);
  border-bottom: 1px solid var(--landing-line);
  backdrop-filter: blur(18px);
}
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; font-size: 1.12rem; font-weight: 750; letter-spacing: .19em; }
.site-brand img { border-radius: 8px; }
.brand-caption { display: block; margin-top: 3px; font: 500 .75rem var(--font-mono); letter-spacing: .12em; color: var(--landing-muted); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 44px); }
.site-nav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: .875rem; color: #c1d2dc; padding: 29px 0; transition: color .2s; }
.site-nav a:hover { color: var(--aqua); }
.nav-tag { color: var(--aqua); font: 600 .75rem var(--font-mono); letter-spacing: .06em; border: 1px solid rgb(135 232 226 / 32%); padding: 2px 4px; }
.header-cta { flex-shrink: 0; padding: 12px 21px; border: 1px solid rgb(135 232 226 / 60%); background: rgb(135 232 226 / 5%); color: #baf7ee; text-decoration: none; text-transform: uppercase; font-size: .875rem; font-weight: 650; letter-spacing: .07em; transition: background .2s; }
.header-cta:hover { background: rgb(135 232 226 / 16%); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: max(780px, calc(100svh - var(--header-height)));
  isolation: isolate;
  overflow: clip;
  background: #0c304d;
}
.hero-media, .hero-shade, .hero-frame { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-poster, .hero-video { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-video { opacity: 0; transition: opacity 1.2s; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { background: linear-gradient(180deg, rgb(2 12 23 / 18%) 0%, rgb(2 13 24 / 8%) 25%, rgb(2 12 24 / 18%) 47%, rgb(2 13 23 / 77%) 78%, #040f19 100%), linear-gradient(90deg, rgb(1 10 20 / 34%), transparent 35%, transparent 65%, rgb(1 10 20 / 34%)); }
.hero-frame { z-index: 0; inset: 26px clamp(20px, 3vw, 60px) 32px; }
.hero-frame span { position: absolute; width: 23px; height: 23px; opacity: .55; border-color: #afd4dd; border-style: solid; }
.hero-frame span:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-frame span:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-frame span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-frame span:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-topline { display: flex; justify-content: space-between; gap: 24px; padding: 46px clamp(44px, 5vw, 100px) 0; font: 400 .75rem var(--font-mono); letter-spacing: .16em; color: #bfd6e1; }
.hero-content { position: relative; text-align: center; padding: 65px 24px 80px; text-shadow: 0 2px 24px rgb(0 8 18 / 55%); }
.eyebrow { margin: 0 0 20px; color: var(--aqua); font: 500 .75rem var(--font-mono); line-height: 1.5; letter-spacing: .18em; }
.hero-eyebrow { display: flex; justify-content: center; align-items: center; gap: 17px; color: #d0eae9; font-size: .875rem; letter-spacing: .24em; }
.hero-eyebrow span { height: 1px; width: 38px; background: #a2cdcf; opacity: .6; }
.hero h1 { font-size: clamp(4rem, 8.8vw, 10rem); font-weight: 650; line-height: 1.13; letter-spacing: .14em; margin: 8px -.14em 12px 0; color: #f0f9fb; }
.hero h1 span { font-weight: 300; }
.hero-tagline { font-weight: 300; font-size: clamp(1.5rem, 2.25vw, 2.4rem); letter-spacing: .08em; line-height: 1.35; margin: 0 0 19px; color: #e9f5f7; }
.hero-description { font-size: 1rem; font-weight: 400; color: #c0d4dd; margin: 0; }
.hero-actions { display: flex; justify-content: center; gap: 18px; margin-top: 33px; }
.action { min-height: 50px; padding: 15px 27px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; text-transform: uppercase; letter-spacing: .09em; font-size: .875rem; font-weight: 650; border: 1px solid transparent; border-radius: 0; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.action-primary { background: #a1e9e2; border-color: #b2f5ed; color: #06202a; text-shadow: none; box-shadow: 0 0 30px rgb(102 220 214 / 9%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.action-primary:hover { background: #c0fff4; box-shadow: 0 0 30px rgb(102 220 214 / 25%); }
.action-film { background: rgb(6 24 38 / 45%); border-color: rgb(187 220 231 / 45%); color: #e5f3f7; }
.action-film:hover { background: rgb(19 53 71 / 75%); border-color: var(--aqua); }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-bottom { position: relative; width: min(1400px, calc(100% - 160px)); margin: 0 auto; }
.hero-meta { display: flex; justify-content: center; gap: 13px; margin-bottom: 20px; font: 400 .75rem var(--font-mono); letter-spacing: .13em; color: #a4bfce; }
.hero-meta span + span { border-left: 1px solid #7898a9; padding-left: 13px; }
.hero-destinations { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--landing-line); background: rgb(6 23 36 / 64%); backdrop-filter: blur(12px); }
.destination { display: flex; align-items: center; gap: 21px; padding: 26px 28px; text-decoration: none; position: relative; transition: background .2s; }
.destination + .destination { border-left: 1px solid var(--landing-line); }
.destination:hover { background: rgb(117 213 219 / 9%); }
.destination::before { content: ""; position: absolute; top: -1px; height: 2px; left: 28px; right: 28px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.destination:hover::before { transform: scaleX(1); }
.destination-icon { width: 32px; height: 32px; flex-shrink: 0; color: #b1dcd9; }
.destination-kicker { display: block; font: 400 .75rem var(--font-mono); letter-spacing: .15em; color: #9eb9c9; margin-bottom: 6px; }
.destination strong { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #ecf6f8; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.arcade-label { font: 500 .75rem var(--font-mono); color: var(--aqua); letter-spacing: .1em; }
.destination-description { display: block; margin-top: 5px; font-size: .875rem; color: #adc3ce; }
.destination-plus { margin-left: auto; color: var(--aqua); font-size: 1.3rem; font-weight: 300; }
.hero-baseline { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0 37px; color: #9ab7c8; }
.hero-baseline > a { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; font: 400 .75rem var(--font-mono); letter-spacing: .15em; }
.scroll-line { width: 42px; height: 1px; background: var(--landing-line); }
.motion-toggle { border: 0; background: transparent; color: #bfd0d9; display: flex; align-items: center; gap: 9px; cursor: pointer; font: 400 .75rem var(--font-mono); padding: 5px 0 5px 10px; }
.motion-symbol { width: 12px; height: 12px; display: inline-block; border-left: 3px solid; border-right: 3px solid; }
.motion-toggle[aria-pressed="false"] .motion-symbol { width: 0; height: 0; border-left: 8px solid; border-right: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.content-width { max-width: 1400px; margin: 0 auto; width: calc(100% - 160px); }
.world-intro { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 110px 0 100px; }
.world-intro h2, .league-heading h2, .start-intro h2 { font-size: clamp(2rem, 3.2vw, 3.35rem); line-height: 1.2; letter-spacing: -.025em; color: #e7f1f5; font-weight: 350; margin: 0; }
.intro-copy { padding-top: 30px; }
.intro-copy p, .start-intro > p:not(.eyebrow) { margin: 0 0 20px; font-size: 1rem; line-height: 1.85; color: var(--landing-muted); }
.intro-copy p a, .start-steps p a { text-underline-offset: 4px; color: #c9e3e5; }
.text-link { display: inline-flex; gap: 28px; padding: 7px 0; font-size: .875rem; font-weight: 500; color: var(--aqua); text-decoration: none; border-bottom: 1px solid rgb(135 232 226 / 35%); }
.text-link:hover { border-color: var(--aqua); }

.league-zone { width: calc(100% - 160px); max-width: 1400px; padding: 70px 0 85px; gap: 28px; border-top: 1px solid var(--landing-line); scroll-margin-top: 16px; }
.league-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.league-heading > p { color: var(--landing-muted); margin: 0; font-size: 1rem; line-height: 1.7; }
.league-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 0 0 20px; }
.league-formats > div { padding: 26px 0 28px; border-bottom: 1px solid var(--landing-line); }
.format-label { font: 400 .75rem var(--font-mono); letter-spacing: .12em; color: #8aa7b9; }
.league-formats h3 { color: #d6e9ed; font-size: 1.4rem; font-weight: 500; margin: 9px 0 10px; }
.league-formats p { color: var(--landing-muted); font-size: 1rem; margin: 0 0 18px; }
.league-formats a { color: var(--aqua); text-decoration: none; font-size: .875rem; }
.league-formats a span { margin-left: 20px; }
.league-formats a:hover { text-decoration: underline; text-underline-offset: 5px; }
.tournament-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.tournament-toolbar h3 { color: #d5e7ee; font-size: 1.1rem; font-weight: 500; margin: 0 0 4px; }
.tournament-toolbar .brand-sub, .bracket-hint, .section-note { font-size: .875rem; }
.control-label { font-size: .875rem; }
.select-input { appearance: none; border-radius: 2px; padding: 9px 36px 9px 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2387e8e2' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 12px center; background-size: 10px 7px; background-repeat: no-repeat; max-width: min(370px, 75vw); }
.league-zone .btn { border-radius: 2px; min-height: 40px; font-size: .875rem; }
.league-zone .stat-card { border-radius: 3px; }
.league-zone .stat-label { font-size: .875rem; }
.league-zone .bracket-frame { border-radius: 4px; border-color: var(--landing-line); }
.league-zone .fleet-card { border-radius: 4px; }
.league-zone .section-header h2 { color: #c9e2e7; font-weight: 500; }
.league-zone .fleet-author, .league-zone .fleet-metrics { font-size: .875rem; }

.get-started { position: relative; z-index: 1; padding: 85px 0 110px; border-top: 1px solid var(--landing-line); display: grid; grid-template-columns: 1.1fr 1fr; gap: 110px; }
.start-intro > p:not(.eyebrow) { margin: 25px 0; max-width: 480px; }
.start-steps { display: flex; flex-direction: column; gap: 30px; padding: 12px 0 0 32px; }
.start-steps > div { position: relative; }
.step-marker { position: absolute; left: -31px; top: 7px; width: 7px; height: 7px; border: 1px solid var(--aqua); transform: rotate(45deg); }
.start-steps h3 { font-size: 1.125rem; font-weight: 500; margin: 0 0 8px; color: #d5e8ee; }
.start-steps p { font-size: 1rem; line-height: 1.7; color: var(--landing-muted); margin: 0; }
.footer { padding: 38px 24px; border-color: var(--landing-line); background: #06131e; }
.footer-brand { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 1rem; letter-spacing: .14em; color: #c6dee5; }
.footer-motto { margin-left: 12px; font-weight: 300; font-size: .875rem; letter-spacing: .04em; color: var(--landing-muted); }
.footer-links { font-size: .875rem; }
.footer-links a { color: #b2ccd7; }

body:has(.film-dialog[open]) { overflow: hidden; }
.film-dialog { padding: 0; width: min(1140px, calc(100% - 48px)); max-height: calc(100svh - 48px); background: #061521; color: var(--ice); border: 1px solid rgb(135 232 226 / 40%); box-shadow: 0 30px 130px #000; }
.film-dialog::backdrop { background: rgb(0 7 16 / 88%); backdrop-filter: blur(10px); }
.film-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 28px; }
.film-header .eyebrow { font-size: .75rem; margin-bottom: 4px; }
.film-header h2 { font-size: 1.4rem; font-weight: 400; margin: 0; }
.film-close { display: inline-flex; align-items: center; gap: 18px; color: #cde1e8; background: transparent; border: 1px solid var(--landing-line); padding: 8px 14px; cursor: pointer; font-size: .875rem; }
.film-close span { font-size: 1.5rem; line-height: 1; }
.film-close:hover { border-color: var(--aqua); }
.film-dialog video { display: block; width: 100%; max-height: calc(100svh - 230px); background: #000; }
.film-caption { margin: 0; padding: 16px 28px; font-size: .875rem; color: var(--landing-muted); }
.film-caption a { color: var(--aqua); text-underline-offset: 4px; }

@media (min-width: 1800px) { .hero-content { padding: 110px 24px 120px; } }
@media (max-width: 1200px) {
  .site-header { gap: 22px; padding-inline: 30px; }
  .brand-caption { display: none; }
  .site-nav { gap: 24px; }
  .nav-source { display: none !important; }
  .hero-bottom, .content-width, .league-zone { width: calc(100% - 100px); }
  .destination { gap: 14px; padding: 24px 19px; }
  .destination-icon { width: 27px; height: 27px; }
  .destination-description { font-size: .875rem; }
  .destination-plus { display: none; }
  .world-intro, .get-started { gap: 65px; }
}
@media (max-width: 900px) {
  :root { --header-height: 72px; }
  .site-header { flex-wrap: wrap; gap: 0; padding: 16px 24px; min-height: var(--header-height); }
  .site-brand { font-size: 1rem; }
  .site-brand img { height: 34px; width: 34px; }
  .header-cta { margin-left: auto; margin-right: 22px; padding: 9px 14px; font-size: .75rem; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: #d0e4eb; padding: 8px 0 8px 8px; font-size: .875rem; border: 0; cursor: pointer; }
  .menu-lines, .menu-lines::before { display: block; width: 18px; height: 1px; background: currentColor; }
  .menu-lines::before { content: ""; transform: translateY(5px); }
  .site-nav { order: 5; width: 100%; padding-top: 14px; justify-content: space-between; }
  .site-nav a { padding: 13px 0; }
  .site-header[data-menu-open="false"] .site-nav { display: none; }
  .site-header[data-menu-open="true"] .menu-lines { transform: rotate(-45deg); }
  .site-header[data-menu-open="true"] .menu-lines::before { transform: rotate(90deg); }
  .hero { min-height: max(760px, calc(100svh - var(--header-height))); }
  .hero-topline { font-size: .75rem; letter-spacing: .12em; }
  .hero h1 { font-size: 9.3vw; }
  .hero-content { padding: 80px 24px 90px; }
  .hero-bottom, .content-width, .league-zone { width: calc(100% - 64px); }
  .destination { gap: 0; padding: 22px 18px; }
  .destination-icon { display: none; }
  .destination-kicker { font-size: .75rem; letter-spacing: .08em; }
  .destination strong { font-size: 1.15rem; }
  .destination-description { line-height: 1.6; }
  .world-intro { gap: 40px; padding: 80px 0; }
  .league-formats { gap: 30px; }
  .get-started { gap: 45px; padding: 70px 0 80px; }
}
@media (max-width: 600px) {
  .site-header { padding-inline: 18px; }
  .site-brand { gap: 8px; font-size: .875rem; letter-spacing: .12em; }
  .site-brand img { width: 30px; height: 30px; }
  .header-cta { display: none; }
  .site-nav { flex-wrap: wrap; gap: 0; }
  .site-nav a { width: 50%; font-size: .875rem; }
  .site-nav .nav-source { display: flex !important; }
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero-frame { inset: 19px 16px 22px; }
  .hero-topline { padding: 36px 30px 0; justify-content: center; font-size: .75rem; }
  .hero-topline span:last-child { display: none; }
  .hero-content { padding: 72px 24px 55px; }
  .hero-eyebrow { font-size: .75rem; letter-spacing: .13em; gap: 10px; }
  .hero-eyebrow span { width: 16px; }
  .hero h1 { font-size: clamp(2.5rem, 10.3vw, 3.9rem); letter-spacing: .07em; margin-right: -.07em; }
  .hero-tagline { font-size: 1.2rem; letter-spacing: .03em; margin-top: 14px; }
  .hero-description { max-width: 300px; margin: 0 auto; font-size: 1rem; line-height: 1.65; }
  .hero-actions { flex-direction: column; align-items: center; gap: 13px; margin-top: 26px; }
  .hero-actions .action { min-width: 230px; }
  .action { font-size: .75rem; min-height: 47px; padding: 14px 20px; }
  .hero-bottom, .content-width, .league-zone { width: calc(100% - 48px); }
  .hero-meta { font-size: .75rem; gap: 10px; }
  .hero-meta span + span { padding-left: 10px; }
  .hero-destinations { grid-template-columns: 1fr 1fr; }
  .destination { padding: 20px 14px; }
  .destination:last-child { display: none; }
  .destination strong { font-size: 1.1rem; gap: 4px; }
  .destination-kicker { font-size: .75rem; letter-spacing: .06em; }
  .destination-description { display: none; }
  .arcade-label { font-size: .75rem; }
  .hero-baseline { padding: 23px 0 30px; gap: 12px; }
  .hero-baseline > a { font-size: .75rem; letter-spacing: .1em; }
  .scroll-line { display: none; }
  .motion-toggle { font-size: .75rem; }
  .world-intro, .get-started { grid-template-columns: 1fr; gap: 30px; padding: 65px 0; }
  .intro-copy { padding-top: 0; }
  .world-intro h2, .league-heading h2, .start-intro h2 { font-size: 2.1rem; }
  .league-zone { padding: 60px 0; }
  .league-heading { display: block; }
  .league-heading > p { margin-top: 22px; }
  .league-heading > p br { display: none; }
  .league-formats { grid-template-columns: 1fr; gap: 0; }
  .topbar-controls { gap: 12px; }
  .control-group { width: 100%; }
  .select-input { flex: 1; max-width: calc(100% - 68px); font-size: .875rem; }
  .league-zone .summary-strip { grid-template-columns: 1fr 1fr; }
  .league-zone .stat-card:first-child { grid-column: 1 / -1; }
  .league-zone .stat-value { font-size: 1rem; }
  .fleet-grid { grid-template-columns: 1fr; }
  .footer-motto { display: block; width: 100%; margin: 4px 0 0; }
  .film-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); }
  .film-header { padding: 16px; }
  .film-caption { padding: 16px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
