:root {
  --district-blue: #3771af;
  --district-blue-dark: #2c5a8c;
  --utility: #242424;
  --ink: #07131f;
  --ice: #d9efff;
  --white: #ffffff;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("/assets/fonts/merriweather-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("/assets/fonts/merriweather-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Lato", Arial, sans-serif;
  line-height: 1.625;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
}

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

.utility-bar { background: var(--utility); }

.utility-inner,
.identity-inner {
  width: min(calc(100% - 100px), 1180px);
  margin-inline: auto;
}

.utility-inner {
  height: 40px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.social-links,
.district-links { display: flex; align-items: stretch; }

.social-links a {
  width: 40px;
  display: grid;
  place-items: center;
  transition: color .2s ease, background .2s ease;
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links svg .fill { fill: currentColor; stroke: none; }

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--district-blue);
  background: var(--white);
}

.district-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.district-links a + a { border-left: 1px solid rgb(255 255 255 / 30%); }
.district-links a:hover { text-decoration: underline; }

.identity-bar { background: var(--district-blue); }

.identity-inner {
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  width: 552px;
  height: 156px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 30px 30px 0;
  color: var(--white);
  text-decoration: none;
}

.brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgb(9 29 49 / 18%));
}

.brand-copy { display: grid; gap: 0; }

.brand-copy strong {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 36px;
}

.brand-copy em {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.quick-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.quick-links a {
  padding: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.quick-links a:hover { text-decoration: underline; }

.quick-links .outline-button {
  margin-left: 10px;
  padding: 11px 18px;
  border: 1px solid var(--white);
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.quick-links .outline-button:hover,
.quick-links .outline-button:focus-visible {
  color: var(--district-blue);
  background: var(--white);
  text-decoration: none;
}

.quick-links .search-link {
  width: 47px;
  height: 47px;
  margin-left: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.search-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.nav-bar { background: var(--district-blue-dark); }

.primary-nav {
  width: min(calc(100% - 100px), 1180px);
  height: 51px;
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.primary-nav a,
.primary-nav .nav-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease;
}

.primary-nav .nav-placeholder {
  cursor: default;
  user-select: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible { background: rgb(0 0 0 / 18%); }

.menu-button { display: none; }

.game-hero {
  position: relative;
  min-height: calc(100vh - 247px);
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 25%, rgb(55 113 175 / 28%), transparent 31%),
    linear-gradient(135deg, #06111c 0%, #0b2237 51%, #091827 100%);
}

.game-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 45%, rgb(92 189 255 / 7%) 45.2% 45.4%, transparent 45.6%);
}

.grid-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgb(125 200 255 / 13%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(125 200 255 / 13%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 36%, #000);
  transform: perspective(420px) rotateX(56deg) scale(1.35) translateY(26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1040px);
  padding: 100px 0 120px;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 7.6vw, 124px);
  letter-spacing: -.055em;
  line-height: .9;
  text-wrap: balance;
  text-shadow: 0 0 24px rgb(106 195 255 / 45%), 0 0 74px rgb(55 113 175 / 45%);
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 420px;
  height: 420px;
  top: 12%;
  left: -210px;
  background: radial-gradient(circle, rgb(75 176 255 / 24%), transparent 68%);
}

.orb-two {
  width: 620px;
  height: 620px;
  right: -280px;
  bottom: -290px;
  background: radial-gradient(circle, rgb(40 132 210 / 22%), transparent 68%);
}

.controller {
  position: absolute;
  right: max(4vw, 24px);
  bottom: -82px;
  width: 250px;
  height: 165px;
  border: 1px solid rgb(129 212 255 / 22%);
  border-radius: 56px 56px 86px 86px;
  opacity: .42;
  transform: rotate(-9deg);
  background: linear-gradient(145deg, rgb(55 113 175 / 26%), rgb(4 14 24 / 60%));
  box-shadow: inset 0 0 32px rgb(129 212 255 / 9%), 0 0 54px rgb(55 113 175 / 15%);
}

.player-page {
  min-height: calc(100vh - 247px);
  padding: clamp(22px, 4vw, 56px);
  background:
    radial-gradient(circle at 20% 15%, rgb(55 113 175 / 25%), transparent 35%),
    linear-gradient(135deg, #06111c, #0b2237 55%, #091827);
}

.player-wrap {
  width: min(100%, 1500px);
  margin-inline: auto;
}

.player-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.player-heading h1 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
  text-shadow: 0 0 28px rgb(106 195 255 / 35%);
}

.fullscreen-button {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 13px 20px;
  border: 1px solid rgb(169 217 255 / 50%);
  border-radius: 3px;
  color: var(--white);
  background: var(--district-blue);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible { background: #4385c9; }

.game-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgb(169 217 255 / 28%);
  border-radius: 4px;
  background: #000;
  box-shadow: 0 24px 80px rgb(0 0 0 / 42%), 0 0 55px rgb(55 113 175 / 13%);
}

.game-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-shell .fullscreen-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  opacity: .2;
  transition: opacity .2s ease;
}

.game-shell:hover .fullscreen-button,
.game-shell .fullscreen-button:focus-visible { opacity: 1; }

.standalone-player {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.standalone-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-exit {
  position: fixed;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 3px;
  color: var(--white);
  background: rgb(0 0 0 / 72%);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  opacity: .22;
  transition: opacity .2s ease;
}

.player-exit:hover,
.player-exit:focus-visible { opacity: 1; }

.dpad, .game-dot { position: absolute; display: block; background: #7cc9f5; }
.dpad-h { top: 58px; left: 42px; width: 54px; height: 17px; border-radius: 4px; }
.dpad-v { top: 40px; left: 60px; width: 17px; height: 54px; border-radius: 4px; }
.game-dot { width: 17px; height: 17px; border-radius: 50%; box-shadow: 0 0 12px rgb(124 201 245 / 50%); }
.dot-a { top: 48px; right: 48px; }
.dot-b { top: 75px; right: 75px; }
.shine { position: absolute; inset: 16px; border-top: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; }

.content-page {
  min-height: calc(100vh - 247px);
  padding: clamp(70px, 10vw, 140px) 24px;
  background:
    radial-gradient(circle at 20% 15%, rgb(55 113 175 / 25%), transparent 35%),
    linear-gradient(135deg, #06111c, #0b2237 55%, #091827);
}

.content-card {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid rgb(169 217 255 / 22%);
  background: rgb(6 17 28 / 72%);
  box-shadow: 0 24px 90px rgb(0 0 0 / 30%), 0 0 60px rgb(55 113 175 / 12%);
}

.content-card h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 88px);
}

.introduction {
  color: #d7e9f6;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
  white-space: pre-wrap;
}

.page-back {
  display: inline-flex;
  margin-top: 34px;
  color: #a9d9ff;
  font-weight: 750;
  text-decoration: none;
}

.mod-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.mod-card { width: min(100%, 680px); }
.mod-editor { width: min(100%, 1000px); margin-block: 32px; }
.mod-card h1 { font-size: clamp(42px, 8vw, 72px); }
.mod-card h2 {
  margin: 40px 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgb(169 217 255 / 25%);
  color: #a9d9ff;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}
.mod-card h2:first-of-type { margin-top: 30px; }
.mod-field { margin-bottom: 16px; }
.mod-card label { display: block; margin-bottom: 8px; font-weight: 750; }
.mod-card input,
.mod-card textarea {
  width: 100%;
  border: 1px solid rgb(169 217 255 / 35%);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--white);
  background: rgb(255 255 255 / 7%);
  font: inherit;
}
.mod-card textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
.mod-card button {
  margin-top: 18px;
  border: 1px solid #a9d9ff;
  border-radius: 4px;
  padding: 14px 22px;
  color: var(--white);
  background: var(--district-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.mod-error { color: #ffd5d5; }
.mod-success { color: #baf7d0; }
.mod-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.mod-actions .page-back { margin-top: 18px; }

:focus-visible { outline: 3px solid #bce6ff; outline-offset: 3px; }

@media (max-width: 1100px) {
  .site-header { position: relative; }

  .utility-inner {
    width: 100%;
    height: 80px;
    display: grid;
    grid-template-rows: 40px 40px;
  }

  .social-links {
    grid-row: 1;
    justify-self: center;
  }

  .district-links {
    grid-row: 2;
    width: 100%;
    padding-right: 46px;
    border-top: 1px solid rgb(55 113 175 / 55%);
  }

  .district-links a { padding: 0 30px; }

  .identity-inner {
    width: 100%;
    height: 126px;
    padding: 0 0 0 20px;
  }

  .brand {
    width: 100%;
    height: 126px;
    gap: 18px;
    padding: 0;
  }

  .brand img { width: 58px; height: 58px; }
  .brand-copy strong { font-size: 26px; line-height: 31px; }
  .brand-copy em { font-size: 14px; line-height: 20px; }
  .quick-links { display: none; }

  .nav-bar {
    position: absolute;
    z-index: 50;
    top: 40px;
    right: 0;
    width: 46px;
    height: 40px;
    border-left: 1px solid rgb(255 255 255 / 22%);
    background: transparent;
  }

  .menu-button {
    width: 46px;
    height: 40px;
    display: grid;
    place-items: center;
    align-items: center;
    padding: 0;
    border: 0;
    color: var(--white);
    background: transparent;
    font: inherit;
  }

  .menu-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .menu-button i, .menu-button i::before, .menu-button i::after {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
  }
  .menu-button i { position: relative; }
  .menu-button i::before, .menu-button i::after { content: ""; position: absolute; left: 0; }
  .menu-button i::before { top: -7px; }
  .menu-button i::after { top: 7px; }

  .primary-nav {
    position: absolute;
    top: 40px;
    right: 0;
    width: min(100vw, 420px);
    height: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--district-blue-dark);
    box-shadow: 0 18px 35px rgb(0 0 0 / 30%);
  }

  .primary-nav.is-open { display: flex; }
  .primary-nav a,
  .primary-nav .nav-placeholder {
    min-height: 51px;
    padding: 15px 20px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    font-size: 18px;
  }

  .game-hero { min-height: calc(100vh - 206px); }
  .player-page { padding: 28px 18px; }
  .player-heading { align-items: flex-start; flex-direction: column; }
  .game-shell { min-height: 440px; aspect-ratio: auto; height: 70vh; }
}

@media (max-width: 560px) {
  .district-links a { font-size: 11px; }
  .social-links a { width: 40px; }
  .brand img { flex: 0 0 auto; }
  .brand-copy strong { font-size: 23px; line-height: 28px; }
  .brand-copy em { font-size: 14px; }
  .hero-content { padding: 82px 0 105px; }
  h1 { font-size: clamp(48px, 16vw, 76px); }
  .controller { right: -88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

:root{--district-blue:#3771af;--district-blue-dark:#2c5a8c;--utility:#242424;--ink:#07131f;--white:#ffffff}
.identity-bar{background:#3771af}
.identity-bar .brand,.identity-bar .quick-links a{color:#ffffff}
.identity-bar .outline-button{border-color:#ffffff}
.utility-bar{background:#242424;color:#ffffff}
.utility-bar .district-links a,.utility-bar .social-links a{color:#ffffff}
.nav-bar,.primary-nav{background:#2c5a8c}
.primary-nav a,.primary-nav .nav-placeholder,.menu-button{color:#ffffff}
@media(max-width:1100px){.nav-bar{background:transparent}}
