:root {
  color-scheme: dark;
  --night: #170d19;
  --surface: #251525;
  --ink: #fff4e9;
  --muted: #d7bfcf;
  --line: #53344c;
  --pink: #ff78a5;
  --bright: #ff528a;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  font: 16px/1.55 system-ui, -apple-system, sans-serif;
  scroll-padding-top: 1.2rem;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--night); }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
a { color: inherit; }
a:hover { color: var(--pink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
code { font: .87rem/1.45 var(--mono); }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .5rem 1rem; color: var(--night); background: var(--ink); }
.skip:focus { transform: translateY(0); }

.top { border-bottom: 1px solid #412638; background: #150c17; }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-weight: 800; text-decoration: none; white-space: nowrap; }
.wordmark img { border: 1px solid var(--line); }
.site-nav, .store-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.8rem; }
.site-nav a, .store-nav a { color: var(--muted); font-weight: 650; font-size: .88rem; text-decoration: none; }
.site-nav a:hover, .store-nav a:hover { color: var(--pink); }
.nav-play { justify-self: end; color: var(--ink); border: 1px solid #86405f; padding: .5rem .85rem; font-weight: 750; font-size: .84rem; text-decoration: none; white-space: nowrap; }
.nav-play span { margin-left: .15rem; color: var(--pink); }

.hero { position: relative; isolation: isolate; background: #180f1d; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1a0c1df5 0%, #200e21bd 28%, #21122544 48%, transparent 67%), linear-gradient(0deg, #170d19 0%, #170d1900 21%), url("assets/horizon-world.webp") center 59% / cover no-repeat; }
.hero-inner { position: relative; display: grid; align-items: center; min-height: clamp(620px, 83svh, 795px); padding-top: 3.35rem; padding-bottom: 6rem; }
.hero-copy { max-width: 425px; }
.label { color: var(--muted); font: .73rem/1.5 var(--mono); font-weight: 650; letter-spacing: .115em; text-transform: uppercase; }
.hero-label { display: flex; align-items: center; gap: .65rem; color: #f9c5d9; }
.hero-label span { width: 4px; height: 4px; background: var(--pink); transform: rotate(45deg); }
.crest { display: block; width: min(100%, 380px); height: auto; margin: 1.05rem 0 .95rem; filter: drop-shadow(0 8px 16px #160717b8); }
.intro { max-width: 32ch; margin-bottom: 1.35rem; color: var(--ink); font-size: clamp(1.04rem, 1.5vw, 1.2rem); font-weight: 560; }
.address { display: flex; align-items: stretch; width: fit-content; max-width: 100%; border: 1px solid #b9587a; background: #1a0b1be8; box-shadow: 0 6px 0 #10071188; }
.address code { display: grid; align-items: center; min-width: 0; padding: .7rem .82rem; overflow-wrap: anywhere; }
button { flex: none; min-height: 46px; padding: .6rem .85rem; border: 0; color: #2b1022; background: #ff89ad; font: 800 .87rem system-ui, sans-serif; cursor: pointer; }
button:hover { background: #ffb1c8; }
button span { margin-left: .15rem; }
.hint { min-height: 1.25rem; margin-top: .75rem; color: #e1bcca; font-size: .8rem; }
.server-meta { margin-top: .9rem; color: var(--muted); font: .76rem/1.4 var(--mono); }
.server-meta strong { color: var(--ink); }
.scene-caption { position: absolute; right: 0; bottom: 2.65rem; display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border: 1px solid #72445f; background: #190e1bd9; color: var(--muted); font: .69rem/1.55 var(--mono); }
.scene-caption span { width: 16px; height: 16px; border: 1px solid var(--pink); transform: rotate(45deg) scale(.72); }
.scene-caption strong { color: var(--ink); font-size: .75rem; }
.explore { position: absolute; bottom: 2.9rem; left: 0; color: var(--ink); font-size: .83rem; font-weight: 700; text-decoration: none; }
.explore span { margin-left: .3rem; color: var(--pink); }

.world { padding: clamp(3.5rem, 7vw, 6.8rem) 0 clamp(2.6rem, 5vw, 4.8rem); color-scheme: light; background: #fbecee; color: #2e1628; }
.world-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 6vw, 5.4rem); }
.world .label { color: #8d375c; }
.world h2 { font-size: clamp(2.3rem, 4.8vw, 4.65rem); }
.world h2 em { color: #ae275d; font-style: normal; }
.world-intro p:not(.label) { max-width: 44ch; margin-top: 1rem; color: #634256; }
.text-link { display: inline-block; color: inherit; font-size: .88rem; font-weight: 750; text-decoration: underline; text-underline-offset: .28em; }
.text-link span { margin-left: .2rem; }
.world .text-link { margin-top: 1.25rem; color: #93244f; }
.world .text-link:hover { color: #610c32; }
.spawn { overflow: hidden; border: 1px solid #5b3150; background: #1c1323; box-shadow: 8px 8px 0 #eec4d3; color: #fceaf1; }
.spawn img { display: block; width: 100%; height: auto; }
.spawn figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .75rem .95rem; border-top: 1px solid #57354e; color: #dec0d0; font: .73rem var(--mono); }
.spawn figcaption span:first-child { color: #fff0f4; }
.world-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: clamp(2.4rem, 5vw, 4.7rem) 0 0; border-block: 1px solid #dab3c3; list-style: none; }
.world-features li { padding: 1.45rem clamp(1rem, 3vw, 2.55rem); }
.world-features li:first-child { padding-left: 0; }
.world-features li + li { border-left: 1px solid #dab3c3; }
.world-features h3 { margin-top: .3rem; }
.world-features p:not(.label) { margin-top: .38rem; color: #634256; }
.world-features code { color: #89264c; }

.band { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1.5rem clamp(1.5rem, 4vw, 4.2rem); padding: clamp(2.8rem, 6vw, 5.6rem) 0; }
.band + .band { border-top: 1px solid var(--line); }
.section-label { color: var(--pink); }
h2 { margin-top: .52rem; font-size: clamp(2rem, 4.8vw, 4rem); font-weight: 850; letter-spacing: -.059em; line-height: 1.01; }
h3 { font-size: clamp(1.13rem, 2vw, 1.42rem); letter-spacing: -.024em; line-height: 1.18; }
.section-note { margin-top: .8rem; color: var(--muted); }
.first-night { margin: 0 0 1.5rem; padding-left: 1.6rem; color: var(--muted); }
.first-night li { padding-left: .3rem; }
.first-night li + li { margin-top: .65rem; }
.first-night li::marker { color: var(--pink); font: 750 .8rem var(--mono); }
.first-night strong, .first-night code, dd code { color: var(--ink); }
.disclosure { border-top: 1px solid var(--line); }
.disclosure summary { padding: .85rem 0; cursor: pointer; color: var(--ink); font-weight: 720; }
.disclosure summary::marker { color: var(--pink); }
.disclosure summary:hover { color: var(--pink); }
.disclosure p { margin: 0 0 .9rem; }
.command-guide[open] > summary { margin-bottom: .5rem; }
.commands { margin: 0; }
.commands > div { display: grid; grid-template-columns: minmax(10rem, .62fr) minmax(0, 1fr); gap: .35rem 1.1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.commands > div:first-child { border-top: none; padding-top: .15rem; }
dd { margin: 0; color: var(--muted); }
dt code { color: var(--pink); }

.store-status { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.05rem; color: var(--muted); font-size: .86rem; }
.marker { display: inline-block; width: .52rem; height: .52rem; background: var(--bright); }
.store-nav { gap: .55rem 1rem; margin-top: .75rem; }
.store-nav a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .27em; }
.catalog-top { margin-bottom: 1rem; }
.catalog p { color: var(--muted); margin-top: .3rem; }
.ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 0; }
.ranks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .6rem; min-width: 0; padding: .85rem .95rem; border: 1px solid var(--line); border-left: 3px solid var(--tier); background: var(--surface); color: var(--muted); }
.ranks li:nth-child(1) { --tier: #efb5f5; }
.ranks li:nth-child(2) { --tier: #c8a5fd; }
.ranks li:nth-child(3) { --tier: #8fe9ee; }
.ranks li:nth-child(4) { --tier: #eee1f0; }
.rank-number { grid-column: 2; grid-row: 1; font: .73rem var(--mono); }
.rank { grid-column: 1; grid-row: 1; color: var(--tier); font: 750 .91rem var(--mono); }
.ranks li > :last-child { grid-column: 1 / -1; font-size: .86rem; }
.currency { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.6rem; }
.currency .label { flex: none; color: var(--pink); }
.faq { margin-top: 1.8rem; }
.faq h3 { margin-bottom: .6rem; }
.faq .disclosure:last-child { border-bottom: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: 1.4rem 0 2.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer .wordmark, .footer .text-link { color: var(--ink); }
.footer small { font-size: .79rem; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 56px); }
  .hero::before { background-position: 61% center; }
  .hero-copy { max-width: 360px; }
  .crest { width: min(100%, 330px); }
  .world-intro { gap: 1.9rem; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .top-inner { grid-template-columns: 1fr auto; gap: .8rem; padding: .85rem 0 .7rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: .55rem 1.25rem; }
  .hero::before { top: auto; height: clamp(265px, 63vw, 430px); background-image: linear-gradient(180deg, #180f1d 0%, #180f1d00 30%, #180f1d00 70%, #170d19 100%), url("assets/horizon-world.webp"); background-position: center, 69% 62%; background-size: cover; }
  .hero-inner { min-height: 0; padding-top: 2.25rem; padding-bottom: clamp(245px, 58vw, 385px); }
  .hero-copy { max-width: 400px; }
  .crest { width: min(89%, 310px); margin-top: .75rem; margin-bottom: .7rem; }
  .scene-caption { right: 0; bottom: 1.55rem; }
  .explore { bottom: 1.83rem; }
  .world-intro, .band { grid-template-columns: 1fr; }
  .world-features { grid-template-columns: 1fr; }
  .world-features li { padding: 1.05rem 0; }
  .world-features li + li { border-left: 0; border-top: 1px solid #dab3c3; }
}

@media (max-width: 465px) {
  .wrap { width: calc(100% - 32px); }
  .commands > div { grid-template-columns: 1fr; gap: .12rem; }
  .ranks { grid-template-columns: 1fr; }
  .currency { display: grid; }
  .scene-caption { padding: .4rem .5rem; }
  .scene-caption span { display: none; }
}
