:root {
  color-scheme: dark;
  --bg: #061429;
  --panel: #09213c;
  --line: #246381;
  --ink: #f7fbff;
  --muted: #c3d4e8;
  --mint: #42e9ff;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--mint); text-underline-offset: .23em; }
a:hover { color: #a6f5ff; }
:focus-visible { outline: 3px solid #a6f5ff; outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
.skip { position: fixed; z-index: 10; left: 1rem; top: 1rem; padding: .75rem; background: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top, .footer { border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner, .shell { width: min(calc(100% - 4rem), 82rem); margin-inline: auto; }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 850; font-size: 1.35rem; letter-spacing: -.035em; text-decoration: none; width: max-content; }

nav { display: flex; gap: clamp(.2rem, 1.4vw, 1.4rem); }
nav a { padding: .55rem .45rem; font-weight: 650; font-size: .94rem; text-decoration: none; color: var(--muted); }
nav a[aria-current=page] { color: var(--mint); text-decoration: underline; text-underline-offset: .55em; }
.header-play, .button, .copy, .menu-toggle { font-weight: 750; border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: .5rem; padding: .67rem 1rem; background: #103353; white-space: nowrap; }
.header-play { color: var(--mint); }
.shell { padding-block: 2rem 4rem; }
.hero { display: flex; align-items: center; min-height: min(65vw, 33rem); border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; position: relative; isolation: isolate; background: #0a2240; }
.hero-content { padding: clamp(2rem, 6vw, 5.7rem); }
.eyebrow, .label { color: #daf2ff; font-weight: 800; letter-spacing: .14em; font-size: .82rem; }
.eyebrow span { display: inline-block; width: .55rem; height: .55rem; background: var(--mint); margin: 0 .65rem .08rem 0; }
h1 { font-size: clamp(3rem, 7.6vw, 6.7rem); line-height: .97; margin-block: .9rem 1.15rem; letter-spacing: -.075em; text-wrap: balance; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url('/assets/landscape.jpg') 50% 52%/cover; }
.hero::after { background: linear-gradient(90deg,#061429f5 4%,#081d38c9 38%,#17264926 85%), linear-gradient(0deg,#061429c9,transparent 70%); }
.hero-content > p:not(.eyebrow) { color: #edf0f5; max-width: 33rem; font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.button { display: inline-block; padding: .78rem 1.15rem; }
.primary { background: var(--mint); color: #001b2c; border-color: var(--mint); }
.primary:hover { background: #a6f5ff; color: #001b2c; }
.secondary { background: #071a31ef; }
.server-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; border: 1px solid var(--line); border-radius: .8rem; padding: 1.05rem 1.3rem; margin-top: 1rem; background: var(--panel); }
.server-address { display: flex; align-items: center; gap: .8rem; }
.server-address strong { font-size: 1.18rem; overflow-wrap: anywhere; }
.server-reading { margin-left: auto; text-align: right; }
.server-reading p { color: var(--muted); font-size: .9rem; }
.status { font-weight: 750; color: #f2cea1; }
.status::before { content: ''; display: inline-block; width: .55rem; height: .55rem; background: currentColor; border-radius: 50%; margin-right: .45rem; vertical-align: .08em; }
.status[data-state=online] { color: var(--mint); }
.status[data-state=offline] { color: #ffadab; }
.join, .detail { margin-top: 3rem; }
.section-heading { margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.55rem); letter-spacing: -.04em; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li, .detail article { background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: 1.35rem; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .35rem; background: #103353; color: var(--mint); font-weight: 800; margin-bottom: .7rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p, .detail p, .footer p { color: var(--muted); }
.interior { min-height: 19rem; }
.interior h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.detail { max-width: 55rem; }
.detail article + article { margin-top: .7rem; }
.detail h2 { font-size: 1.36rem; margin-bottom: .3rem; }
.footer { border-top: 1px solid var(--line); border-bottom: 0; }
.footer-inner { flex-wrap: wrap; padding-block: 1rem; }
.notice:not(:empty) { position: fixed; z-index: 2; bottom: 1rem; right: 1rem; max-width: calc(100% - 2rem); padding: .8rem 1rem; border-radius: .5rem; border: 1px solid var(--mint); background: var(--panel); }
@media (max-width: 53rem) {
  .top-inner { flex-wrap: wrap; gap: .6rem; padding-block: .75rem; }
  .header-play { display: none; }
  .menu-toggle { display: inline-flex; gap: .55rem; align-items: center; }
  nav { width: 100%; flex-wrap: wrap; order: 3; }
  nav a { padding: .75rem; }
}
@media (min-width: 53.001rem) { .menu-toggle { display: none; } }
@media (max-width: 39rem) {
  .top-inner, .footer-inner, .shell { width: calc(100% - 2rem); }
  .shell { padding-top: 1rem; }
  .hero { min-height: 26rem; }
  .hero::before { background-position: 64% center; }
  .hero-content { padding: 1.4rem; }
  .steps { grid-template-columns: 1fr; }
  .server-reading { width: 100%; text-align: left; margin-left: 0; }
  .server-bar { gap: .8rem; }
}


.brand img { width: 2.6rem; height: auto; }
.server-address img { width: 2.5rem; height: auto; }
.top { border-color: #287caa; }
nav a[aria-current=page] { text-decoration-thickness: .18rem; }
.home-hero { justify-content: center; text-align: center; min-height: 36rem; }
.home-hero::before { background-position: center 38%; }
.home-hero::after { background: linear-gradient(0deg,#061429 0%,#061429db 21%,#06142924 62%,#06142917 100%); }
.home-hero .hero-content { width: 100%; padding: 2.75rem 1rem 2.5rem; }
.home-hero h1 { margin: 0 auto .25rem; }
.hero-logo { display: block; width: min(100%, 35rem); height: auto; margin: auto; filter: drop-shadow(0 .6rem 1rem #020e20c9); }
.home-hero .hero-content > p { margin-inline: auto; }
.home-hero .actions { justify-content: center; margin-top: 1.25rem; }

.rules-shell { width: 100%; padding-top: 0; }
.rules-hero { border-width: 0 0 1px; border-radius: 0; min-height: clamp(16rem, 28vw, 24rem); }
.rules-hero::before { background: url('/assets/rules-village.jpg') right center / min(66%, 76rem) auto no-repeat; }
.rules-hero::after { background: linear-gradient(90deg,#061429 0%,#061429 31%,#061429ba 46%,#0614290c 72%); }
.rules-hero .hero-content { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); width: min(100%, 86rem); margin-inline: auto; padding: 1.5rem clamp(1rem, 4vw, 4rem); }
.rules-shield { width: clamp(5rem, 14vw, 11.5rem); height: auto; flex: none; border-radius: 1rem; }
.rules-hero h1 { margin: 0 0 .35rem; font-size: clamp(2.1rem, 5vw, 4.6rem); letter-spacing: -.045em; }
.rules-hero p { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.4rem); }
.rule-grid { list-style: none; width: min(calc(100% - 3rem), 82rem); margin: 2rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.rule-grid li { display: grid; grid-template-columns: clamp(3.8rem, 7vw, 6rem) minmax(0,1fr); gap: .9rem; align-items: center; padding: 1.1rem; background: linear-gradient(135deg,#0a2541,#061a33); border: 1px solid #37dcf4; border-radius: .9rem; }
.rule-grid img { width: 100%; height: auto; border-radius: .4rem; }
.rule-copy { border-left: 1px solid #37dcf4; padding-left: .9rem; }
.rule-number { color: var(--mint); font-size: 1.15rem; font-weight: 850; }
.rule-copy h2 { margin: .2rem 0 .3rem; font-size: clamp(1.05rem, 1.65vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; }
.rule-copy p { color: var(--muted); line-height: 1.4; }
@media (max-width: 63rem) { .rule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 39rem) {
  .home-hero { min-height: 0; }
  .home-hero .hero-content { padding: 2.25rem 1rem 2rem; }
  .home-hero::before { background-position: center; }
  .home-hero::after { background: linear-gradient(0deg,#061429 5%,#061429bf 43%,#06142926 100%); }
  .rules-shell { width: 100%; padding-top: 0; }
  .rules-hero { min-height: 15rem; }
  .rules-hero::before { background-size: cover; }
  .rules-hero::after { background: linear-gradient(90deg,#061429f0,#061429c7 54%,#06142970); }
  .rule-grid { width: calc(100% - 2rem); grid-template-columns: 1fr; margin-top: 1rem; }
}
