@font-face {
  font-family: "DM Sans";
  src: url("/assets/moonverse/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("/assets/moonverse/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 750;
  font-display: swap;
}

:root {
  --ink: #203c55;
  --navy: #14172c;
  --night: #201e3a;
  --cream: #fafdff;
  --paper: #ffffff;
  --sand: #edf7fe;
  --line: #cddfeb;
  --muted: #4b5f66;
  --teal: #216580;
  --mint: #b5f1e7;
  --gold: #f4d38f;
  --display: "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --head: 84px;
  --gutter: clamp(18px, 5vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--teal); }
button { font: inherit; }
:focus-visible { outline: 2px solid #25827d; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.icon {
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.16em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Header and primary actions */
.site-head, .site-foot {
  background: var(--navy);
  color: #e2edf0;
}
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #f1d6a125;
}
.site-head :focus-visible, .site-foot :focus-visible, .hero :focus-visible, .community :focus-visible {
  outline-color: var(--mint);
}
.head-inner {
  position: relative;
  height: var(--head);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand nav user";
  align-items: center;
  gap: clamp(12px, 2.5vw, 44px);
}
.brand { width: fit-content; display: inline-flex; align-items: center; }
.site-head .brand { grid-area: brand; position: relative; justify-self: start; }
.site-head .brand img { width: 140px; height: 84px; object-fit: cover; }
.site-nav { grid-area: nav; justify-self: center; }
.site-user { grid-area: user; }
.brand img { width: 116px; height: 72px; object-fit: contain; }
.site-foot .brand img { width: 100px; height: 64px; }
.site-nav, .site-user {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  color: #dce7ec;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav [aria-current] { color: var(--gold); }
.site-nav [aria-current]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
}
.site-user { justify-self: end; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn-lg { min-height: 54px; padding: 12px 22px; font-size: 15px; }
.btn-quiet:hover { color: var(--gold); }
.btn-outline { border-color: #ebd29c66; color: var(--gold); }
.btn-outline:hover { background: #f4d38f19; border-color: var(--gold); }
.btn-gold { background: var(--gold); color: #242333; border-color: #ffe2a7; }
.btn-gold:hover { background: #ffe4ac; }
.btn-glass { border-color: #d8f2ff66; background: #0a1b32a6; color: #f4faff; }
.btn-glass:hover { background: #173650; border-color: var(--mint); }
.menu-toggle {
  display: none;
  color: var(--gold);
  background: #132c43;
  border: 1px solid #ebd29c4d;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  font-size: 19px;
  cursor: pointer;
}

/* Homepage */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 45vw, 760px);
  overflow: hidden;
  background: #131731;
  color: #fff8e9;
}
.hero-picture, .hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
}
.hero-picture { z-index: -2; width: 84%; }
.hero-art { object-fit: cover; object-position: center 8%; }
.hero-sky {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.hero-sky span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff3de;
  box-shadow: 0 0 7px 2px #e1c1ff80;
  opacity: .45;
}
.hero-sky span:nth-child(1) { --x: 55%; --y: 14%; --delay: -1s; }
.hero-sky span:nth-child(2) { --x: 68%; --y: 8%; --delay: -2.8s; }
.hero-sky span:nth-child(3) { --x: 85%; --y: 16%; --delay: -4.1s; }
.hero-sky span:nth-child(4) { --x: 91%; --y: 40%; --delay: -.4s; }
.hero-sky span:nth-child(5) { --x: 75%; --y: 28%; --delay: -1.9s; }
.hero-sky span:nth-child(6) { --x: 62%; --y: 47%; --delay: -3.2s; }
.hero-sky::before {
  content: "";
  position: absolute;
  inset: 0 0 12% 26%;
  background: radial-gradient(ellipse at 68% 34%, #bd99ff32, transparent 49%),
    radial-gradient(ellipse at 50% 61%, #9bf1dd23, transparent 43%);
  opacity: .4;
}
.hero-sky::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 64%;
  width: clamp(38px, 9vw, 105px);
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f8f0ff, #d4c1ff64 34%, transparent 100%);
  opacity: 0;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #14172c 0%, #14172c59 16%, transparent 38%),
    linear-gradient(90deg, #131731 3%, #131731ed 18%, #131731a6 38%, #13173132 58%, transparent 75%);
}
.motion-control {
  position: absolute;
  bottom: 14px;
  right: max(var(--gutter), env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid #ded7f277;
  border-radius: 6px;
  background: #15182ee8;
  color: #f4eefa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.motion-control:hover { background: #302849; border-color: #ded7f2; }
.hero-inner { padding-block: 72px 84px; }
.hero-copy { width: fit-content; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow, .community .eyebrow { color: var(--gold); }
.hero h1, .section h2, .community h2, .page-head h1, .post h1, .terms h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -.036em;
  line-height: 1.01;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(56px, 6.4vw, 108px);
  letter-spacing: -.029em;
  font-optical-sizing: auto;
  text-shadow: 0 3px 40px #06152866;
}
.hero h1 span { color: #e5d8ff; }
.hero-tag {
  max-width: 385px;
  margin: 24px 0 27px;
  color: #e0eef4;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.status {
  background: var(--night);
  border-block: 1px solid #e4c48038;
  color: #d3e0e6;
}
.status-inner, .status-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 24px;
}
.status-inner { padding-block: 15px; min-height: 62px; }
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.status-label .icon { font-size: 18px; }
.status-card { flex: 1; }
.status-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.status-item strong { color: inherit; font-weight: 700; }
.status-item + .status-item { margin-left: 2px; }
.status-card[data-status="full"] .status-item:nth-child(3) { margin-left: auto; }
.dot { width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: #a1acd0; }
.dot.on { background: #91e5ae; box-shadow: 0 0 0 3px #83e9ae20; }
.dot.off { background: #ff9ca3; box-shadow: 0 0 0 3px #ff9ca329; }

.section { padding-block: clamp(54px, 7vw, 104px); }
.section h2, .community h2, .page-head h1 { font-size: clamp(43px, 5vw, 72px); }
.world { scroll-margin-top: var(--head); }
.world-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 7.25vw, 108px);
}
.world-figure {
  position: relative;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 16px 36px #477c9a18;
}
.world-figure img {
  width: 100%;
  aspect-ratio: 1.43;
  height: auto;
  object-fit: cover;
  border-radius: 7px;
}
.world-figure figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #0b1c2ee8;
  color: #fff8e9;
  font-size: 11px;
  font-weight: 600;
}
.world-copy > p:not(.eyebrow) { max-width: 400px; margin: 17px 0; color: var(--muted); }
.world-perks { display: grid; gap: 12px; list-style: none; padding: 0; margin: 18px 0; }
.world-perks li, .panel h3 { display: flex; align-items: center; gap: 11px; }
.perk-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  border: 1px solid #c5deea;
  background: #e7f5fc;
  color: var(--teal);
  font-size: 18px;
}
.world-perks strong { display: block; font-size: 15px; }
.world-perks li div span { display: block; color: var(--muted); font-size: 14px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 26px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-block: 4px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-section { background: var(--sand); border-block: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  min-height: 38px;
  padding: 5px 15px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #38505a;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.tab:hover { border-color: var(--teal); }
.tab[aria-selected="true"] { background: var(--night); color: #fff6e4; border-color: var(--night); }
.news-list, .grid-2 { display: grid; gap: 16px; }
.news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.news-card:hover { border-color: #7b9b8e; box-shadow: 0 8px 20px #27423714; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.badge {
  border-radius: 4px;
  padding: 4px 7px;
  background: #dceee6;
  color: #175853;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.badge.events { background: #f9e8be; color: #6b4b1d; }
.badge.notices { background: #ede5f2; color: #684e79; }
.news-card :is(h2, h3) { margin: 0; font: 650 25px/1.12 var(--display); letter-spacing: -.03em; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; }
.news-card .more { margin-top: auto; padding-top: 4px; }
.news-card:hover .more { text-decoration: underline; text-underline-offset: 4px; }
.news-empty { grid-column: 1 / -1; color: var(--muted); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel, .terms {
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.panel h3 { margin: 0 0 12px; font: 650 23px/1.17 var(--display); }
.panel h3 .perk-icon { width: 34px; height: 34px; }
.rank {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.rank th, .rank td { padding: 8px; border-bottom: 1px solid var(--line); }
.rank th {
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rank tr:last-child td { border-bottom: 0; }
.rank .pos { width: 35px; color: var(--muted); font-weight: 700; }
.rank tbody tr:nth-child(1) .pos { color: #805911; }
.rank tbody tr:nth-child(2) .pos { color: #526980; }
.rank tbody tr:nth-child(3) .pos { color: #8f5032; }
.rank .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-empty, .updated { color: var(--muted); font-size: 14px; }
.updated { margin-bottom: 0; }
.community {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 290px;
  padding: clamp(26px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid #c1b180;
  border-radius: 14px;
  background: radial-gradient(ellipse at 82% 45%, #494271 0%, #292543 32%, #17192f 65%);
  color: #fff8e9;
}
.community::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 50%;
  width: min(710px, 77vw);
  aspect-ratio: 1.85;
  border: 1px solid #f4d38f39;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #f4d38f0d, 0 0 0 56px #f4d38f09;
  transform: translateY(-50%) rotate(-24deg);
}
.community h2 { font-size: clamp(42px, 5.2vw, 72px); }
.community p:not(.eyebrow) { max-width: 380px; margin: 13px 0 20px; color: #d7e7ec; }
.community-mark {
  position: relative;
  flex: none;
  width: clamp(90px, 16vw, 220px);
  height: auto;
  margin: 0 min(4vw, 60px);
  filter: drop-shadow(0 0 30px #f4d38f22);
}

/* Interior pages */
.interior-banner {
  padding-block: clamp(46px, 7vw, 90px);
  background:
    linear-gradient(90deg, #edf8ff 12%, #edf8ffed 47%, #edf8ff18 88%),
    url("/assets/moonverse/flarine-map.webp?v=a98054bc81") right 35% / auto 560px no-repeat,
    var(--navy);
  color: #fff6e7;
  border-bottom: 1px solid #a89568;
}
.page-head .eyebrow { color: var(--gold); }
.page-head p:not(.eyebrow) { margin: 14px 0 0; color: #dbe9ef; }
.interior-content { padding-block: 34px 0; }
.interior-content .status-card {
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 13px;
  background: var(--paper);
}
.interior-content .dot.on { background: #267845; }
.interior-content .dot.off { background: #ad3b45; }
.post, .terms { max-width: 800px; }
.terms { margin-inline: auto; }
.post h1, .terms h1 { margin-block: 12px 22px; font-size: clamp(32px, 5vw, 55px); }
.post p, .terms p { color: var(--muted); overflow-wrap: anywhere; }
.terms h2 { margin-top: 22px; font: 650 24px/1.2 var(--display); }
.terms p:last-child { margin-bottom: 0; }

.account-shell {
  min-height: 660px;
  background:
    linear-gradient(90deg, #f2fafffa 4%, #eef9ffbd 40%, #eaf8ff38 75%),
    url("/assets/moonverse/sky-village.webp") center 52%/cover no-repeat,
    var(--night);
}
.account-shell .wrap {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 6vw, 80px);
  padding-block: 28px;
}
.account-shell .page-head { color: #fff6e7; }
.account-shell .account-tagline {
  color: #fff6e7;
  margin: 0;
  font: 650 clamp(42px, 5.5vw, 79px)/1.05 var(--display);
  letter-spacing: -.036em;
}
.site-loading { padding: 16px; color: #fff6e7; }
#account-app .v5-browser-auth.ba-site {
  --ba-card: var(--paper);
  --ba-line: #d6cab2;
  --ba-text: var(--ink);
  --ba-muted: var(--muted);
  --ba-field: #fffdf7;
  --ba-accent: #236962;
  --ba-accent-hover: #1a5652;
  --ba-accent-press: #144743;
  --ba-radius: 6px;
  color-scheme: light;
  min-height: 0;
  padding: 0;
  font-family: var(--body);
}
#account-app .v5-browser-auth .ba-card { max-width: 465px; border-radius: 12px; padding: clamp(18px, 3vw, 36px); }
#account-app .v5-browser-auth .ba-brand { display: none; }
#account-app .v5-browser-auth .ba-title { font: 650 clamp(28px, 3vw, 42px)/1.04 var(--display); letter-spacing: -.04em; margin-bottom: 18px; }
#account-app .v5-browser-auth .ba-message[data-kind="error"] { color: #962d3b; }
#account-app .v5-browser-auth .ba-warn { color: #8b4c1a; }
#account-app .v5-browser-auth .ba-links a, #account-app .v5-browser-auth .ba-links button { color: var(--teal); font-size: 14px; }

/* Footer */
.site-foot { margin-top: clamp(42px, 6vw, 84px); }
.account-page .site-foot { margin-top: 0; }
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 27px max(27px, env(safe-area-inset-bottom));
}
.foot-links { display: flex; flex-wrap: wrap; gap: 7px 19px; }
.foot-links a { color: #dce7ec; font-size: 13px; text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.copy { margin: 0; color: #b6c9d1; font-size: 12px; }

@media (max-width: 1100px) {
  :root { --head: 72px; }
  .head-inner { grid-template-areas: "brand . menu"; grid-template-rows: var(--head); }
  .menu-toggle { display: inline-grid; place-items: center; grid-area: menu; justify-self: end; }
  .site-nav, .site-user { display: none; }
  .site-head.open .head-inner { height: auto; min-height: var(--head); grid-template-areas: "brand . menu" "nav nav nav" "user user user"; gap: 0 12px; padding-bottom: 12px; }
  .site-head.open .site-nav, .site-head.open .site-user { display: flex; justify-self: stretch; }
  .site-head.open .site-nav { order: 1; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid #f1d6a13b; }
  .site-head.open .site-user { order: 2; }
  .site-nav a { min-height: 44px; }
  .site-user .btn-quiet { padding-left: 0; }
}
@media (max-width: 850px) {
  .hero-picture { width: 100%; }
  .hero::after {
    background: linear-gradient(0deg, #14172c 0%, #14172c66 13%, transparent 40%),
      linear-gradient(90deg, #131731ed 0%, #131731ae 29%, #13173139 58%, transparent 95%);
  }
  .status-inner, .status-card { column-gap: 15px; }
  .status-card[data-status="full"] .status-item:nth-child(3) { margin-left: 0; }
  .world-grid { gap: 28px; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .hero { align-items: end; min-height: 0; }
  .hero-picture { height: min(102vw, 440px); }
  .hero-art { object-position: 95% center; }
  .hero-sky { height: min(102vw, 440px); }
  .motion-control {
    top: 12px;
    right: auto;
    bottom: auto;
    left: max(var(--gutter), env(safe-area-inset-left));
  }
  .hero::after {
    background: linear-gradient(180deg, transparent min(42vw, 170px), #13173193 min(66vw, 275px), #131731 min(105vw, 437px));
  }
  .hero-inner { padding-block: min(68vw, 310px) 37px; }
  .hero h1 { font-size: clamp(42px, 9.4vw, 58px); }
  .hero .eyebrow { font-size: 10px; }
  .hero-tag { margin: 16px 0 20px; }
  .btn-lg { min-height: 48px; padding-inline: 13px; }
  .status-inner { align-items: flex-start; flex-direction: column; }
  .status-item { font-size: 12px; }
  .world-grid, .grid-2, .news-list, .account-shell .wrap { grid-template-columns: minmax(0, 1fr); }
  .world-copy { grid-row: 1; }
  .section h2, .page-head h1 { letter-spacing: -.045em; }
  .section-head { margin-bottom: 18px; }
  .community { min-height: 0; }
  .community-mark { position: absolute; z-index: -1; right: 8px; top: 14px; opacity: .21; }
  .interior-banner { background-size: auto, auto 390px, auto; }
  .account-shell { min-height: 0; }
  .account-shell .wrap { padding-block: 38px; gap: 22px; }
  .foot-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-art { animation: sky-pan 15s ease-in-out infinite; }
  .motion-ready .hero-sky span { animation: twinkle 4.8s var(--delay) ease-in-out infinite; }
  .motion-ready .hero-sky::before { animation: aurora-glow 12s ease-in-out infinite; }
  .motion-ready .hero-sky::after { animation: shooting-star 11s ease-out infinite; }
  .motion-ready:not(.motion-paused) :is(.hero-copy, .is-in-view) {
    animation: settle-in .65s cubic-bezier(.22,.61,.36,1) both;
  }
  .motion-paused :is(.hero-art, .hero-sky span),
  .motion-paused .hero-sky::before,
  .motion-paused .hero-sky::after,
  .hero-offscreen :is(.hero-art, .hero-sky span),
  .hero-offscreen .hero-sky::before,
  .hero-offscreen .hero-sky::after { animation-play-state: paused; }

  @keyframes sky-pan {
    0%, 100% { transform: scale(1.025); }
    50% { transform: scale(1.075) translate3d(-.7%, .45%, 0); }
  }
  @keyframes twinkle {
    0%, 100% { opacity: .24; transform: scale(.7); }
    46% { opacity: .95; transform: scale(1.3); }
  }
  @keyframes aurora-glow {
    0%, 100% { opacity: .35; transform: translate3d(0, 0, 0); }
    50% { opacity: .78; transform: translate3d(-4%, 4%, 0); }
  }
  @keyframes shooting-star {
    0%, 19% { opacity: 0; transform: translate3d(58px, -38px, 0) rotate(-34deg) scale(.4); }
    21% { opacity: .9; }
    27%, 100% { opacity: 0; transform: translate3d(-109px, 73px, 0) rotate(-34deg) scale(1.12); }
  }
  @keyframes settle-in {
    from { opacity: .82; transform: translate3d(0, 9px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .motion-control, .hero-sky { display: none; }
}

/* Daylight theme and painted character artwork */
.site-head, .site-foot {
  color: var(--ink);
  background: #fbfdff;
  border-color: var(--line);
}
.site-nav a, .foot-links a { color: #38566a; }
.site-nav a:hover, .site-nav [aria-current], .foot-links a:hover,
.btn-quiet:hover { color: #096881; }
.copy { color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); }
.site-head :focus-visible, .site-foot :focus-visible, .hero :focus-visible { outline-color: #136f89; }
.btn { border-radius: 12px; }
.btn-outline, .btn-gold {
  background: linear-gradient(#ffe7a7, #ffcf70);
  color: #3e3426;
  border-color: #d6ad57;
  box-shadow: 0 3px 0 #c79940;
}
.btn-outline:hover, .btn-gold:hover { background: #ffe4a0; border-color: #bc9040; }
.menu-toggle { color: #27576a; border-color: var(--line); background: #edf7fd; }
.hero {
  min-height: clamp(590px, 47vw, 820px);
  color: var(--ink);
  background: #eff9f5;
}
.hero-picture { width: 100%; }
.hero-art { object-position: 50% 42%; }
.hero::after {
  background: radial-gradient(ellipse 31% 67% at 50% 48%, #f4fbf5ed 0%, #f2fbf4bc 55%, transparent 100%),
    linear-gradient(0deg, #e8f7eb80, transparent 14%);
}
.hero-inner { padding-block: 60px; }
.hero-copy { margin: auto; max-width: 570px; text-align: center; }
.hero .eyebrow { justify-content: center; color: #254e64; }
.hero-logo {
  position: relative;
  width: clamp(275px, 27.5vw, 390px);
  max-width: 100%;
  margin: -12px auto -9px;
}
.hero-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 3px 6px #233c6038); }
.play-shine { position: relative; isolation: isolate; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready:not(.motion-paused) .hero-logo .logo-glint {
    opacity: .8;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    mask: url("/assets/img/logo.png?v=dea82fcb1f") center / contain no-repeat;
    -webkit-mask: url("/assets/img/logo.png?v=dea82fcb1f") center / contain no-repeat;
  }
  .motion-ready:not(.motion-paused) .hero-logo .logo-glint::after,
  .motion-ready:not(.motion-paused) .play-shine::after {
    content: "";
    position: absolute;
    inset: -30% auto -30% 0;
    width: 36%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #fff9dfcf 47%, #fffaf3ed 52%, transparent);
    animation: moonverse-glint 5s ease-in-out infinite both;
  }
  .motion-ready:not(.motion-paused) .play-shine::after {
    opacity: .68;
    animation-delay: 1.15s;
    z-index: -1;
  }
  @keyframes moonverse-glint {
    0%, 17% { transform: translateX(-170%) skewX(-17deg); }
    50%, 100% { transform: translateX(370%) skewX(-17deg); }
  }
}
@media (max-width: 1100px) {
  .site-head .brand img { width: 120px; height: 72px; }
}
.hero h1 { font: 700 clamp(28px, 3.2vw, 50px)/1.08 var(--body); letter-spacing: -.045em; text-shadow: none; }
.hero-tag { max-width: 380px; margin: 16px auto 21px; font-size: 17px; color: #284654; }
.hero-actions { justify-content: center; gap: 14px; }
.btn-glass, .motion-control {
  color: #214d65;
  background: #fbfefff2;
  border-color: #a9c5d5;
}
.btn-glass { box-shadow: 0 3px 0 #a6c2cf; }
.btn-glass:hover, .motion-control:hover { background: white; border-color: #628fa4; }
.status { color: #305469; background: #eaf6fc; border-color: var(--line); }
.status-label { color: #225b78; }
.status .dot.on { background: #278255; }
.status .dot.off { background: #ae4350; }
.status-inner { min-height: 54px; }
.section h2, .page-head h1 { font-size: clamp(36px, 4vw, 58px); }
.community {
  background: linear-gradient(90deg, #17324c 8%, #213850de 43%, #18263d29 87%),
    url("/assets/moonverse/sky-observatory.webp") center 43%/cover;
  border-color: #c0d6dd;
  border-radius: 22px;
}
.community-mark, .community::after { display: none; }
.interior-banner, .account-shell .page-head, .account-shell .account-tagline, .site-loading { color: var(--ink); }
.interior-banner { border-color: var(--line); }
.page-head .eyebrow { color: #26627c; }
.page-head p:not(.eyebrow) { color: #35566d; }
@media (min-width: 621px) and (max-width: 950px) {
  .hero-copy { max-width: 420px; }
  .hero::after { background: radial-gradient(ellipse 43% 68% at center, #f4fbf5f5 10%, #f2fbf4d4 50%, transparent 100%); }
}
@media (max-width: 850px) {
  .hero { min-height: 0; background: #eff9f5; }
  .hero-picture, .hero-sky { height: clamp(195px, 63vw, 440px); }
  .hero-art { object-position: center 53%; }
  .hero::after { background: linear-gradient(180deg, transparent clamp(135px, 46vw, 320px), #eff9f5 clamp(195px, 63vw, 440px)); }
  .hero-inner { padding-block: clamp(172px, 55vw, 391px) 20px; }
  .motion-control { position: relative; inset: auto; justify-self: center; margin: 0 0 16px; }
  .hero-logo { width: clamp(248px, 66vw, 312px); margin-block: -8px -6px; }
  .hero h1 { font-size: 28px; }
  .hero .eyebrow { margin-bottom: 2px; }
  .hero-tag { font-size: 15px; margin: 12px auto 18px; }
  .hero-actions { gap: 10px; }
}
@media (max-width: 620px) {
  .site-head.open .site-nav { border-color: var(--line); }
  .account-shell { background: linear-gradient(#eff9ffe6, #eff9ffb3), url("/assets/moonverse/sky-village.webp") center/cover; }
}


.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}
.hero-film.is-playing { opacity: 1; }
.world-figure img { aspect-ratio: 4 / 3; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .hero-film { display: none; }
}

/* Flarine atlas */
.world { background: linear-gradient(160deg,#fbfaf0,#f0f6ed); }
.world .eyebrow { color: #426253; }
.atlas {
  gap: 0;
  overflow: hidden;
  border: 1px solid #c7c8ae;
  border-radius: 18px;
  background: #fffdf3;
  box-shadow: 0 12px 28px #3e583214;
}
.atlas .world-figure { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.atlas .world-figure img { border-radius: 0; }
.map-image-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
.map-image-open:focus-visible { outline-offset: -4px; }
.world-figure img, .map-viewer img { -webkit-touch-callout: none; user-select: none; }
.map-open { border: 0; background: none; padding: 6px 0; font-family: inherit; cursor: pointer; }
.map-viewer {
  width: fit-content;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fffdf3;
}
.map-viewer::backdrop { background: rgb(12 29 46 / 80%); }
.map-viewer header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 16px; }
.map-viewer h3 { margin: 0; }
.map-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: 78vh; margin: auto; }
.atlas-guide { padding: clamp(20px,4vw,56px); }
.atlas-guide h3 { margin: 0; font: 650 clamp(28px,3.5vw,49px)/1.1 Fraunces,Georgia,serif; letter-spacing: -.035em; }
.atlas-guide p:not(.eyebrow) { color: var(--muted); max-width: 41ch; }
.atlas-guide .btn { margin-top: 8px; }
.atlas-pins button {
  position: absolute; transform: translate(-50%,-50%);
  min-height: 36px; padding: 6px 13px; border: 2px solid #fff9e2;
  border-radius: 999px; background: #163b44; color: white;
  box-shadow: 0 3px 10px #30352055;
  font: 700 13px var(--body); cursor: pointer;
}
.atlas-pins button[aria-pressed="true"] { color: #302713; background: #ffda87; border-color: #815f21; }
.atlas-pins button:hover { outline: 2px solid white; }
.atlas-pins [data-district="north"] { left: 28%; top: 30%; }
.atlas-pins [data-district="central"] { left: 26%; top: 58%; }
.atlas-pins [data-district="east"] { left: 75%; top: 57%; }

/* Illustrated page headers */
body[data-page="ranking"] .interior-banner {
  --banner-color: #172f4b;
  --banner-veil: #172f4be8;
  --banner-art: url("/assets/moonverse/fwc-header.webp");
  --banner-position: center 41%;
}
body[data-page="news"] .interior-banner {
  --banner-color: #fff7e5;
  --banner-veil: #fff7e5ef;
  --banner-art: url("/assets/moonverse/dispatch-landscape.webp");
  --banner-position: center 53%;
}
:is([data-page="ranking"], [data-page="news"]) .interior-banner {
  position: relative;
  isolation: isolate;
  background: var(--banner-color);
}
:is([data-page="ranking"], [data-page="news"]) .interior-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  max-width: 1440px;
  margin-inline: auto;
  background:
    linear-gradient(90deg, var(--banner-color), var(--banner-veil) 36%, transparent 68%, transparent 87%, var(--banner-color)),
    var(--banner-art) var(--banner-position) / cover no-repeat;
}
:is([data-page="ranking"], [data-page="news"]) .page-head .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
body[data-page="ranking"] .page-head h1 { color: #fff9e9; font-family: Fraunces, Georgia, serif; }
body[data-page="ranking"] .page-head .eyebrow { color: #ffda87; }
body[data-page="ranking"] .page-head p:not(.eyebrow) { color: #e4eef6; }
body[data-page="news"] .page-head h1, .news-section h2, .post h1 { font-family: Fraunces,Georgia,serif; }
body[data-page="news"] .page-head h1 { max-width: 16ch; }
body[data-page="news"] .page-head .eyebrow, .news-section .eyebrow { color: #815931; }

/* Dispatches */
.news-section { background: #faf6ed; border-color: #e5dcc8; }
.news-card { border-color: #e1dbcc; border-radius: 11px; }
.news-card :is(h2,h3) { font-family: Fraunces,Georgia,serif; }
.news-section .news-card { border-top: 3px solid #9abcb0; }
.news-section .news-card:has(.badge.notices) { border-top-color: #b6a4c4; }
.news-section .news-card:has(.badge.events) { border-top-color: #dab76d; }
body[data-page="news"] .news-list { grid-template-columns: minmax(0,1fr); gap: 0; }
body[data-page="news"] .news-card {
  display: grid; grid-template-columns: minmax(118px, .45fr) minmax(0,2fr) auto;
  grid-template-areas: "meta title link" "meta summary link";
  gap: 5px 24px; padding: 24px 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
body[data-page="news"] .news-card:hover { background: #f2f7fa; box-shadow: none; }
body[data-page="news"] .news-meta { grid-area: meta; }
body[data-page="news"] .news-card .news-meta { align-content: center; align-items: start; flex-direction: column; justify-content: center; }
body[data-page="news"] .news-card h2 { grid-area: title; }
body[data-page="news"] .news-card p { grid-area: summary; }
body[data-page="news"] .news-card .more { grid-area: link; align-self: center; margin: 0; }
.post.panel { margin: 0 auto; padding: clamp(22px,5vw,65px); border-top: 4px solid #c19c54; }
.post p { font-size: 17px; line-height: 1.75; }

/* Standings */
.standings-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.standings-tools .tabs { order: -1; margin: 0; }
.standings-tools .status-card { margin: 0; }
.standings .panel { padding: 0; overflow: hidden; border-radius: 13px; }
.rank thead { background: #eaf2f7; }
.rank tbody tr:nth-child(even) { background: #f7fafc; }
.rank tbody tr:first-child { background: #fff8e4; }
.rank .rank-name { font-weight: 700; color: #294760; }
.rank .place { display: inline-grid; place-items: center; min-width: 29px; height: 29px; border-radius: 50%; }
.rank tbody tr:nth-child(1) .place { background: #f6d783; color: #614315; }
.rank tbody tr:nth-child(2) .place { background: #dfe7ef; color: #34485d; }
.rank tbody tr:nth-child(3) .place { background: #f6d9c4; color: #784324; }
.standings .rank :is(th,td) { padding: 11px clamp(8px,2.2vw,32px); }
.standings .rank :is(th,td):first-child { width: 10%; text-align: center; }
.standings :is(.rank-empty,.updated) { margin: 0; padding: 14px 20px; }
@media (max-width: 620px) {
  .atlas { gap: 0; }
  .atlas-guide { padding: 21px; }
  .atlas-pins button { min-height: 34px; padding-inline: 10px; }
  body[data-page="news"] .news-card { grid-template-columns: minmax(0,1fr); grid-template-areas: "meta" "title" "summary" "link"; gap: 9px; }
  body[data-page="news"] .news-card .news-meta { flex-direction: row; align-items: center; justify-content: start; }
  body[data-page="ranking"] .interior-banner {
    --banner-art: url("/assets/moonverse/fwc-header-small.webp");
    --banner-position: 72% center;
  }
  body[data-page="news"] .interior-banner { --banner-position: 70% center; }
  :is([data-page="ranking"], [data-page="news"]) .interior-banner::before {
    background: linear-gradient(90deg, var(--banner-color), var(--banner-veil) 45%, transparent 105%),
      var(--banner-art) var(--banner-position) / cover no-repeat;
  }
  body[data-page="ranking"] .page-head h1 { max-width: 10ch; }
  body[data-page="ranking"] .page-head p:not(.eyebrow) { max-width: 25ch; }
}

/* Homepage Play check (site.js, Cloudflare Turnstile): its short status / retry note; the widget's slot (an invisible widget shows
   nothing; were the widget switched to a visible mode, its box would show here, above the page) */
.play-check {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #f1d6a145;
  border-radius: 12px;
  background: var(--navy);
  color: #e2edf0;
  box-shadow: 0 10px 30px #0d102040;
  font-size: 15px;
  text-align: center;
  transform: translateX(-50%);
}
.play-check.is-error { border-color: var(--gold); color: var(--gold); }
.turnstile-slot { position: fixed; z-index: 70; left: 16px; bottom: 16px; }
