body.mopys-ascension-home.m17-site {
  --ma-night: #0b1021;
  --ma-panel: #141d33;
  --ma-cream: #fbf2dc;
  --ma-muted: #c3ccdf;
  --ma-gold: #ffd391;
  --ma-line: #bbc8f12c;
  background: var(--ma-night);
  color: var(--ma-cream);
}

.mopys-ascension-home .m17-header {
  background: #10182b !important;
  border-bottom: 1px solid var(--ma-line);
}

.mopys-ascension-home :is(.m17-navigation a, .m17-signin) { color: #dce4f4; }
.mopys-ascension-home .m17-brand small { color: #bfcce3; }
.mopys-ascension-home .m17-footer { background: #090e1b; border-top: 1px solid var(--ma-line); }

.ma-hero {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: 610px;
  min-height: clamp(610px, 78svh, 840px);
  background: #17295d;
}

.ma-sky, .ma-scene, .ma-shade { position: absolute; inset: 0; pointer-events: none; }
.ma-sky img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% 35%; }
.ma-scene { overflow: hidden; }
.ma-scene > img { position: absolute; display: block; height: auto; }
.ma-scene .ma-tree { width: min(49%, 780px); right: 0; bottom: -9%; }
.ma-scene .ma-ledge { width: min(43%, 710px); right: -1.5%; bottom: -20%; }
.ma-scene .ma-mushrooms { width: clamp(98px, 13vw, 223px); right: 6%; bottom: 7%; }
.ma-scene .ma-lantern { width: clamp(41px, 4.6vw, 73px); right: 26%; top: 49%; }

.ma-mist {
  position: absolute;
  inset: 32% -12% -12% 20%;
  background: radial-gradient(ellipse at 70% 68%, #286dc873, transparent 48%),
              radial-gradient(ellipse at 51% 45%, #8074df40, transparent 58%);
  opacity: .8;
}

.ma-lantern-light {
  position: absolute;
  top: calc(49% + clamp(50px, 6.8vw, 111px));
  right: calc(26% + clamp(17px, 2vw, 32px));
  translate: 50% -50%;
  width: clamp(158px, 23vw, 370px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0bba8, #ffaa4b65 13%, #ff9b2323 39%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .8;
}

.ma-fireflies {
  position: absolute;
  inset: 28% 2% 10% 43%;
  background: radial-gradient(3px 3px at 21% 27%, #a9eeff, #7cd6ff72 52%, transparent),
              radial-gradient(4px 4px at 58% 42%, #ffebb4, #fbc87b60 58%, transparent),
              radial-gradient(3px 3px at 39% 68%, #c8e6ff, transparent),
              radial-gradient(3px 3px at 81% 76%, #a9eeff, transparent),
              radial-gradient(4px 4px at 90% 28%, #ffd08f, #ffc78962 49%, transparent),
              radial-gradient(2.5px 2.5px at 14% 79%, #ffebb4, transparent),
              radial-gradient(3px 3px at 71% 59%, #b7eaff, transparent),
              radial-gradient(3.5px 3.5px at 53% 9%, #ffd8a2, #f8be7e61 52%, transparent);
  opacity: .82;
}

.ma-shade {
  background: linear-gradient(90deg, #0a1025f5 0%, #0a1025e0 25%, #10193688 49%, #10193616 75%),
              linear-gradient(0deg, #090e1dea 0%, #0b122346 25%, transparent 53%);
}

.ma-hero-inner { position: relative; align-self: stretch; display: grid; align-content: center; padding-block: 62px 117px; }
.ma-hero-copy { max-width: 660px; }
.ma-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #f6d1a0; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ma-kicker span { width: 20px; height: 1px; background: currentColor; }
.ma-hero h1 { margin: 0; font-size: clamp(4.15rem, 7.1vw, 7.1rem); font-weight: 700; line-height: .94; letter-spacing: -.061em; text-wrap: balance; }
.ma-hero h1 em { display: block; font-weight: 400; color: var(--ma-gold); letter-spacing: -.065em; }
.ma-hero-description { max-width: 425px; margin: 25px 0 27px; color: #eeeaf3; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; }
.ma-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ma-button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  font-size: .88rem;
  text-align: center;
  font-weight: 700;
  transition: background-color .18s, border-color .18s;
}
.ma-button .m17-icon, .ma-realm .m17-icon, .ma-card a .m17-icon { width: 17px; height: 17px; }
.mopys-ascension-home .ma-button-gold { background: #ffcc83; color: #25192b; box-shadow: 0 5px 24px #ffb9632f; }
.mopys-ascension-home .ma-button-gold:hover { background: #ffe0aa; }
.ma-button-glass { background: #111b4e79; border-color: #daebfe5c; }
.ma-button-glass:hover { background: #283355; border-color: #cadbfa; }

.ma-scene-caption { position: absolute; right: 0; bottom: 26px; display: flex; align-items: end; gap: 18px; }
.ma-scene-caption div { display: grid; line-height: 1.3; }
.ma-scene-caption div span { color: #c8d4ec; font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ma-scene-caption strong { color: #fff1d4; font: 600 1.24rem/1.35 var(--mopys-heading-font); }
.mopys-ascension-home .ma-effects {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #c5d4f86b;
  border-radius: 6px;
  background: #141c33ee;
  color: #edf2fe;
  font-size: .72rem;
  white-space: nowrap;
  cursor: pointer;
}
.mopys-ascension-home .ma-effects:hover { background: #25375a; }

.ma-realm { background: #131d34; border-block: 1px solid var(--ma-line); }
.ma-realm-inner { min-height: 61px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 23px; padding-block: 10px; font-size: .86rem; }
.ma-state, .ma-realm-patches { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; }
.ma-state { font-weight: 700; }
.ma-population { color: var(--ma-muted); }
.ma-population strong, .mopys-ascension-home .ma-realm-patches { color: var(--ma-gold); }
.ma-realm-patches { margin-left: auto; font-weight: 700; }
.ma-state:hover, .ma-realm-patches:hover, .ma-card a:hover { text-decoration: underline; text-underline-offset: .2em; }

.ma-world { padding-block: clamp(48px, 7vw, 90px); scroll-margin-top: 10px; }
.ma-section-heading { margin-bottom: clamp(25px, 4vw, 39px); }
.ma-section-heading h2, .ma-community h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.052em; }
.ma-section-heading p, .ma-community p { margin: 13px 0 0; color: var(--ma-muted); }
.ma-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.25vw, 27px); }
.ma-card { display: flex; flex-direction: column; background: var(--ma-panel); border: 1px solid var(--ma-line); border-radius: 13px; overflow: hidden; }
.ma-card-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2; }
.ma-card-art img { position: absolute; display: block; height: auto; }
.ma-card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #11182ba0, transparent 54%); }
.ma-card-explore { background: radial-gradient(ellipse at 47% 35%, #286879, #102338 71%); }
.ma-card-explore img:first-child { width: 39%; left: 33%; bottom: 1%; }
.ma-card-explore img:last-child { width: 57%; left: 19%; top: 77%; }
.ma-card-grow { background: radial-gradient(ellipse at 63% 40%, #63507d, #201832 72%); }
.ma-card-grow img:first-child { width: 61%; right: 10%; bottom: 4%; }
.ma-card-grow img:last-child { width: 29%; left: 7%; bottom: -5%; }
.ma-card-party img { width: 100%; height: 100%; object-fit: cover; }
.ma-card-body { display: flex; flex-direction: column; align-items: start; flex: 1; padding: clamp(18px, 2.2vw, 27px); }
.ma-card h3 { margin: 0; font-size: clamp(1.43rem, 2.3vw, 1.9rem); line-height: 1.12; letter-spacing: -.03em; }
.ma-card p { margin: 9px 0 11px; color: var(--ma-muted); font-size: .9rem; }
.mopys-ascension-home .ma-card a { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; margin-top: auto; color: var(--ma-gold); font-size: .85rem; font-weight: 700; }

.ma-community { background: linear-gradient(105deg, #1d2845, #211a34); border-top: 1px solid var(--ma-line); }
.ma-community-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-block: clamp(33px, 5vw, 64px); }
.ma-community h2 { font-size: clamp(2.1rem, 3.8vw, 3.5rem); }

@media (prefers-reduced-motion: no-preference) {
  .ma-hero[data-effects-ready] .ma-mist { animation: ma-mist-drift 14s ease-in-out infinite alternate; }
  .ma-hero[data-effects-ready] .ma-lantern-light { animation: ma-lantern-glow 5.4s ease-in-out infinite alternate; }
  .ma-hero[data-effects-ready] .ma-fireflies { animation: ma-firefly-drift 8.4s ease-in-out infinite alternate; }
  .ma-hero:not([data-effects-playing]) :is(.ma-mist, .ma-lantern-light, .ma-fireflies) { animation-play-state: paused; }
}

@keyframes ma-mist-drift { to { transform: translate3d(-7%, -4%, 0) scale(1.06); opacity: .52; } }
@keyframes ma-lantern-glow { 40% { opacity: .56; } to { opacity: .96; } }
@keyframes ma-firefly-drift { to { transform: translate3d(3%, -13%, 0); opacity: .39; } }

@media (max-width: 900px) {
  .mopys-ascension-home .m17-navigation { background: #10182b; }
}

@media (max-width: 700px) {
  .ma-hero { min-height: 600px; min-height: max(565px, 77svh); }
  .ma-hero h1 { font-size: clamp(3.15rem, 9.65vw, 5.1rem); }
  .ma-hero-inner { align-content: end; padding-block: 156px 89px; }
  .ma-hero-description { max-width: 355px; margin-block: 18px 20px; }
  .ma-kicker { margin-bottom: 12px; }
  .ma-sky img { object-position: 66% 20%; }
  .ma-scene .ma-tree { width: 74%; right: -12%; bottom: 15%; opacity: .8; }
  .ma-scene .ma-ledge { width: 65%; right: -14%; bottom: 10%; opacity: .7; }
  .ma-scene .ma-mushrooms { right: -1%; bottom: 17%; opacity: .74; }
  .ma-scene .ma-lantern, .ma-lantern-light { display: none; }
  .ma-fireflies { inset: 17% 0 33% 36%; }
  .ma-shade { background: linear-gradient(90deg, #0a10256d, transparent 86%), linear-gradient(0deg, #090e1e 2%, #0a1025ee 22%, #0d1328bc 48%, #1019360a 87%); }
  .ma-scene-caption { width: 100%; right: auto; bottom: 15px; justify-content: space-between; align-items: center; }
  .ma-scene-caption strong { font-size: 1.02rem; }
  .ma-realm-inner { gap: 0 14px; }
  .ma-state, .ma-realm-patches { min-height: 42px; }
  .ma-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 470px) {
  .ma-cards { grid-template-columns: minmax(0, 1fr); }
  .ma-realm-patches { margin-left: 0; }
}

@media (max-width: 350px) {
  .mopys-ascension-home .m17-header-inner { gap: 8px; }
  .mopys-ascension-home .m17-header .m17-brand { gap: 6px; }
  .mopys-ascension-home .m17-header .m17-brand img { width: 34px; height: 34px; }
  .mopys-ascension-home .m17-header .m17-brand > span { font-size: 25px; }
  .mopys-ascension-home .m17-header .m17-brand small,
  .mopys-ascension-home .m17-header .m17-button .m17-icon { display: none; }
  .mopys-ascension-home .m17-header .m17-button { padding-inline: 10px; white-space: nowrap; }
  .ma-button { padding-inline: 12px; }
  .ma-hero h1 { font-size: 2.78rem; }
}
