:root {
  --font-star-cartoon: "Star Cartoon", cursive;
  --navy-950: #061225;
  --navy-900: #081b35;
  --navy-800: #0d2a4a;
  --navy-700: #123f68;
  --blue-500: #2368a2;
  --cream: #fff3cd;
  --gold: #ffd773;
  --red: #d71920;
  --white: #f8fbff;
  --ink: #030914;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --font-display: var(--font-star-cartoon);
  --font-body: var(--font-star-cartoon);
}

@font-face {
  font-family: "Star Cartoon";
  src:
    url("assets/fonts/Star-Cartoon.otf") format("opentype"),
    url("assets/fonts/Star-Cartoon.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 215, 115, 0.16), transparent 22rem),
    radial-gradient(circle at 84% 10%, rgba(215, 25, 32, 0.16), transparent 18rem),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 44%, #0b2545);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 76%);
}

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin: 14px 0 10px;
  padding: 12px 16px;
  border: 3px solid #00142b;
  border-radius: 28px 14px 30px 16px;
  background:
    linear-gradient(135deg, rgba(255, 215, 115, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(18, 63, 104, 0.96), rgba(6, 18, 37, 0.94));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 0 #00142b, 0 24px 36px rgba(0, 0, 0, 0.28);
  transform: rotate(-0.35deg);
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 3px solid #00142b;
  border-radius: 50%;
  background: var(--gold);
}

.topbar::before {
  width: 16px;
  height: 16px;
  left: 14px;
  top: -10px;
  box-shadow: 34px -3px 0 -4px var(--red);
}

.topbar::after {
  width: 18px;
  height: 18px;
  right: 28px;
  bottom: -12px;
  box-shadow: -28px 3px 0 -5px var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 3px 3px 0 #00142b;
  transform: rotate(0.35deg);
}

.brand-face {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid #00142b;
  border-radius: 48% 52% 44% 56%;
  color: var(--ink);
  background: var(--gold);
  box-shadow: inset -5px -6px 0 rgba(255, 148, 70, 0.34), 4px 5px 0 #00142b;
  animation: face-wiggle 3.2s ease-in-out infinite;
  overflow: hidden;
}

.brand-face img {
  width: 64px;
  max-width: none;
  transform: translateY(5px) scale(1.18);
  filter: drop-shadow(2px 3px 0 rgba(0, 20, 43, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(0.35deg);
}

.nav-links a,
.mobile-menu a {
  min-height: 40px;
  padding: 10px 15px;
  color: #00142b;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid #00142b;
  border-radius: 999px 18px 999px 18px;
  background: var(--white);
  box-shadow: 4px 4px 0 #00142b;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-links a:nth-child(2),
.mobile-menu a:nth-child(2) {
  border-radius: 18px 999px 18px 999px;
  background: var(--gold);
}

.nav-links a:nth-child(3),
.mobile-menu a:nth-child(3) {
  background: #d7efff;
}

.nav-links a span {
  display: inline-block;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 2px 2px 0 #00142b;
  transform: translate(2px, 2px) rotate(-2deg);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 3px solid #00142b;
  border-radius: 16px 10px 16px 10px;
  background: var(--gold);
  box-shadow: 4px 4px 0 #00142b;
  cursor: pointer;
  transform: rotate(0.35deg);
}

.menu-button span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  position: sticky;
  top: 92px;
  z-index: 9;
  padding: 12px;
  border: 3px solid #00142b;
  border-radius: 18px;
  background: rgba(8, 27, 53, 0.98);
  box-shadow: 0 8px 0 #00142b;
}

.mobile-menu.is-open {
  display: grid;
  gap: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 46px;
  min-height: calc(100vh - 110px);
  padding: 52px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

h1 {
  max-width: 780px;
  color: var(--white);
  font-size: 4.6rem;
  text-shadow: 5px 5px 0 #00142b, 8px 8px 0 rgba(255, 215, 115, 0.36);
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(248, 251, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--ink);
  border-color: #00142b;
  background: var(--gold);
  box-shadow: 5px 5px 0 #00142b;
}

.button.secondary {
  color: var(--ink);
  border-color: #00142b;
  background: var(--white);
  box-shadow: 5px 5px 0 #00142b;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

[data-link-pending="true"] {
  cursor: not-allowed;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(94%, 530px);
  aspect-ratio: 1;
  border: 4px solid #00142b;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow), inset 0 0 0 18px rgba(255, 255, 255, 0.05);
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(95%, 560px);
  filter: drop-shadow(12px 22px 0 rgba(0, 0, 0, 0.34));
  animation: bob 4.2s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  border: 2px dashed rgba(255, 215, 115, 0.72);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}

.ring-one {
  width: 88%;
  aspect-ratio: 1;
}

.ring-two {
  width: 68%;
  aspect-ratio: 1;
  animation-duration: 16s;
  animation-direction: reverse;
}

.sticker {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 2px solid #00142b;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 #00142b;
  font-family: var(--font-display);
  font-weight: 900;
}

.sticker-right {
  right: 2%;
  top: 18%;
  transform: rotate(8deg);
  background: var(--gold);
}

.ticker-strip {
  margin: 8px 0 70px;
  overflow: hidden;
  contain: paint;
  border: 2px solid #00142b;
  border-radius: 8px;
  background: var(--gold);
  box-shadow: 6px 6px 0 #00142b;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee 24s linear infinite;
  will-change: transform;
}

.ticker-track span {
  padding: 16px 28px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  white-space: nowrap;
}

.story-section,
.dance-section,
.community,
.arc-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

h2 {
  font-size: 3rem;
  text-shadow: 4px 4px 0 #00142b;
}

h3 {
  font-size: 1.55rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  align-items: stretch;
  gap: 18px;
}

.story-block,
.arc-console,
.community {
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.story-block {
  padding: 26px;
}

.story-block p,
.arc-copy p,
.community-copy p {
  color: rgba(248, 251, 255, 0.82);
  line-height: 1.68;
}

.image-block {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: var(--navy-800);
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arc-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 32px;
}

.arc-copy {
  max-width: 760px;
}

.arc-console {
  padding: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
    #07162b;
}

.contract-console {
  display: grid;
  align-content: center;
  min-height: 210px;
  border: 3px solid #00142b;
  box-shadow: 7px 7px 0 #00142b, 0 18px 42px rgba(0, 0, 0, 0.22);
}

.contract-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 2px solid #00142b;
  border-radius: 999px 16px 999px 16px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 4px 4px 0 #00142b;
  font-weight: 900;
}

.contract-value {
  display: block;
  max-width: 100%;
  color: var(--white);
  font-size: 2.15rem;
  line-height: 1.05;
  text-shadow: 4px 4px 0 #00142b;
  overflow-wrap: anywhere;
}

.contract-note {
  max-width: 360px;
  margin: 16px 0 0;
  color: rgba(248, 251, 255, 0.72);
  line-height: 1.55;
}

.dance-section {
  position: relative;
}

.dance-stage {
  display: grid;
  gap: 18px;
}

.dance-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
  align-items: stretch;
  overflow: hidden;
  border: 3px solid #00142b;
  border-radius: 22px 12px 28px 14px;
  background:
    linear-gradient(135deg, rgba(255, 215, 115, 0.16), rgba(215, 25, 32, 0.08)),
    rgba(255, 255, 255, 0.075);
  box-shadow: 8px 8px 0 #00142b, 0 22px 48px rgba(0, 0, 0, 0.28);
}

.dance-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  padding: 34px;
}

.dance-badge {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 2px solid #00142b;
  border-radius: 999px 16px 999px 16px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 4px 4px 0 #00142b;
  font-weight: 900;
}

.dance-copy h3 {
  max-width: 650px;
  font-size: 2.25rem;
  line-height: 1.02;
  text-shadow: 4px 4px 0 #00142b;
}

.dance-copy p {
  max-width: 660px;
  color: rgba(248, 251, 255, 0.82);
  font-size: 1rem;
  line-height: 1.68;
}

.dance-main-gif {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 18px;
  background: #2f2422;
}

.dance-main-gif img {
  width: min(100%, 420px);
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(10px 14px 0 rgba(0, 0, 0, 0.28));
}

.dance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.dance-grid figure {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.dance-grid img {
  width: 100%;
  height: 255px;
  object-fit: contain;
  padding: 14px;
  background: rgba(3, 9, 20, 0.28);
}

.dance-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 215, 115, 0.14), rgba(215, 25, 32, 0.08)),
    rgba(255, 255, 255, 0.075);
}

.community-banner {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  border: 3px solid #00142b;
  border-radius: 18px 10px 24px 12px;
  background: var(--navy-900);
  box-shadow: 7px 7px 0 #00142b;
}

.community-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-actions {
  justify-content: flex-end;
  min-width: 260px;
  margin-top: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  color: rgba(248, 251, 255, 0.7);
  font-size: 0.92rem;
}

.fine-print {
  max-width: 500px;
  text-align: right;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }
}

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

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes face-wiggle {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, 760px);
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .arc-section,
  .community {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-art {
    min-height: 430px;
  }

  .story-grid,
  .dance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dance-feature {
    grid-template-columns: 1fr;
  }

  .dance-copy,
  .dance-main-gif {
    min-height: 0;
  }

  .community-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .community-banner {
    aspect-ratio: 16 / 7;
  }

  .footer {
    flex-direction: column;
  }

  .fine-print {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 18px, 420px);
  }

  .topbar {
    top: 8px;
    min-height: 62px;
    margin-top: 8px;
    border-radius: 20px 12px 22px 14px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-face {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.45rem;
    text-shadow: 3px 3px 0 #00142b, 5px 5px 0 rgba(255, 215, 115, 0.34);
  }

  h2 {
    font-size: 1.98rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 340px;
  }

  .sticker {
    font-size: 0.74rem;
  }

  .sticker-right {
    top: 8%;
  }

  .story-section,
  .dance-section,
  .community,
  .arc-section {
    padding: 50px 0;
  }

  .story-grid,
  .dance-grid {
    grid-template-columns: 1fr;
  }

  .dance-copy {
    padding: 22px;
  }

  .dance-copy h3 {
    font-size: 1.65rem;
  }

  .dance-main-gif img {
    max-height: 360px;
  }

  .dance-grid figure {
    min-height: 260px;
  }

  .dance-grid img {
    height: 220px;
  }

  .story-block,
  .community {
    padding: 22px;
  }

  .community-banner {
    aspect-ratio: 4 / 3;
  }

  .contract-console {
    min-height: 170px;
  }

  .contract-value {
    font-size: 1.65rem;
  }
}
