:root {
  color-scheme: dark;
  --bg: #100b17;
  --panel: #191222;
  --muted: #bdb0cc;
  --text: #faf3ff;
  --accent: #d198ff;
  --line: #3d2b4d;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #f3d1ff; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(1136px, calc(100% - 112px)); margin-inline: auto; }
.topbar { height: 74px; border-bottom: 1px solid #ffffff12; background: #100b17; position: relative; z-index: 2; }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 26px/1 var(--display); letter-spacing: .025em; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid #e0b5ff; border-radius: 6px; color: #140b20; background: var(--accent); font: 900 italic 25px/1 var(--display); box-shadow: inset 0 -3px 0 #9036c555, 0 0 22px #c877ff33; }
.brand-accent { color: var(--accent); }
nav { display: flex; align-items: center; gap: 32px; font-size: .9rem; font-weight: 700; }
.nav-play { color: #e4d6ee; }
.nav-play:hover { color: var(--accent); }
.nav-discord { padding: 7px 15px; border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s, background .2s; }
.nav-discord:hover { border-color: var(--accent); background: #271a33; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #21132c; }
.hero-art { position: absolute; inset: -12px; z-index: -3; background: radial-gradient(ellipse at 76% 50%, #823a9f, #25132e 60%) center / cover; background-image: url("world.webp"), radial-gradient(ellipse at 76% 50%, #823a9f, #25132e 60%); background-position: 64% 54%; transform: translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before { z-index: -2; background: linear-gradient(90deg, #100b17f2 1%, #100b17bd 32%, #100b172b 64%, #100b170b), linear-gradient(0deg, var(--bg), #100b1700 39%, #100b1724); }
.hero::after { z-index: -1; background: repeating-linear-gradient(0deg, transparent 0 3px, #100b1716 3px 4px); opacity: .48; }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero-inner { min-height: 586px; display: flex; align-items: center; padding-block: 70px 102px; }
.hero-copy { animation: arrive .8s ease-out both; }
@keyframes arrive { from { opacity: .2; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 10px; width: fit-content; color: #e3bcff; font: 600 .78rem/1.4 var(--mono); letter-spacing: .13em; margin: 0 0 19px; }
.pixel { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); box-shadow: 0 0 13px #d198ff; }
h1, h2, h3, p { margin: 0; }
h1 { font: 900 clamp(5rem, 12.1vw, 10.3rem)/.78 var(--display); letter-spacing: -.025em; white-space: nowrap; text-shadow: 0 10px 35px #13091b99; }
h1 span { color: var(--accent); }
.hero-line { font: 800 clamp(2rem, 4.5vw, 3.45rem)/1.03 var(--display); margin-top: 22px; }
.hero-description { max-width: 365px; margin-top: 12px; color: #e0d2eb; font-size: 1.05rem; }
.actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 45px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; white-space: nowrap; font-size: .94rem; font-weight: 800; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.primary { color: #1c1026; background: var(--accent); border-color: #e5baff; box-shadow: 0 4px 0 #8043a8, 0 6px 22px #c36aff39; }
.primary:hover { background: #e1b4ff; box-shadow: 0 4px 0 #8043a8, 0 7px 34px #c36aff69; }
.play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.secondary { background: #1c1326a6; border-color: #aa85bb70; color: #fbf1ff; }
.secondary:hover { background: #342346; border-color: #d198ff; }

.server { margin-top: -47px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .65fr 1fr auto; align-items: center; gap: 24px; border: 1px solid #604776; border-radius: 10px; background: linear-gradient(125deg, #23182e, #16101f 70%); padding: 20px 24px; box-shadow: 0 14px 38px #06040984, inset 0 1px 0 #ffffff0a; }
.server-field { min-width: 0; }
.server-field + .server-field { padding-left: 24px; border-left: 1px solid var(--line); }
.label { display: block; color: #c6a9da; font: 600 .73rem/1.4 var(--mono); letter-spacing: .1em; margin-bottom: 6px; }
.server strong { display: block; font: 600 clamp(.81rem, 1.65vw, 1rem)/1.3 var(--mono); overflow-wrap: anywhere; }
.server #server-status { font: 700 .95rem/1.35 var(--body); display: flex; align-items: center; gap: 8px; }
#server-status i { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #a396af; }
#server-status[data-state="online"] i { background: #86efac; box-shadow: 0 0 12px #86efac8c; }
#server-status[data-state="sleep"] i { background: #f9c278; box-shadow: 0 0 12px #f9c27888; }
#server-status[data-state="offline"] i { background: #f69ea8; }
.copy { justify-self: end; background: #311e40; border-color: #6a4885; color: #f2d9ff; min-height: 41px; }
.copy:hover { background: #472b5d; border-color: #d198ff; }
.copy-icon { display: block; width: 11px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; margin-left: 3px; }
.copy-icon::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 10px; border: 1.5px solid currentColor; border-right: 0; border-bottom: 0; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.join { padding: 94px 0 82px; display: grid; grid-template-columns: 1fr 1.36fr; gap: clamp(34px, 8vw, 110px); align-items: start; }
h2 { font: 900 clamp(3rem, 6.4vw, 5.8rem)/.82 var(--display); letter-spacing: -.01em; }
h2 span { color: var(--accent); }
.join-intro > p:not(.eyebrow), .community p:not(.eyebrow) { margin-top: 19px; color: var(--muted); max-width: 38ch; }
.join-intro .sleep-note { border-left: 2px solid #f9c278; padding-left: 12px; color: #f0c899; font-size: .9rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 17px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--accent); background: #21152c; border: 1px solid #4e3462; border-radius: 6px; font: 600 .85rem/1 var(--mono); display: grid; place-items: center; width: 42px; height: 42px; }
.steps h3 { font-weight: 800; font-size: 1.12rem; }
.steps p { color: var(--muted); margin-top: 2px; }
.steps strong { color: #f0defb; overflow-wrap: anywhere; }
.community { padding: clamp(24px, 5vw, 55px); position: relative; isolation: isolate; overflow: hidden; border: 1px solid #604776; border-radius: 10px; background: #1b1124; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.community-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #21142e 11%, #21142ee8 50%, #21142e68), url("world.webp") 84% 60% / cover; opacity: .82; }
.community h2 { font-size: clamp(2.7rem, 6vw, 5rem); }
.community p:not(.eyebrow) { color: #e0d1ec; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 105px; }
.footer p { color: var(--muted); font-size: .85rem; }
.footer .brand-icon { width: 26px; font-size: 20px; }
.footer .brand { font-size: 21px; }

@media (max-width: 950px) {
  .shell { width: calc(100% - 64px); }
  .server { gap: 15px; padding-inline: 18px; }
  .server-field + .server-field { padding-left: 15px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .hero-inner { min-height: 555px; padding-block: 72px 90px; align-items: end; }
  .hero-art { background-position: 88% 44%; }
  .hero::before { background: linear-gradient(0deg, var(--bg), #100b17b0 40%, #100b171c 90%), linear-gradient(90deg, #100b1770, #100b1700); }
  .server { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: -35px; }
  .server .live { padding-left: 0; border-left: 0; }
  .server .copy { justify-self: start; padding-inline: 11px; }
  .join { grid-template-columns: 1fr; padding-block: 62px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 32px); }
  nav { gap: 10px; }
  .nav-discord { padding-inline: 9px; }
  h1 { font-size: clamp(3.9rem, 20vw, 5rem); }
  .hero-description { font-size: 1rem; }
  .actions { gap: 9px; }
  .actions .button { padding-inline: 12px; }
  .server { padding-inline: 12px; }
  .server strong { font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-art { transform: none; }
}

.nav-vote { color: var(--accent); }
.nav-vote:hover, .nav-vote[aria-current="page"] { color: #f0d7ff; text-decoration: underline; text-underline-offset: 5px; }
.vote-hero .hero-inner { min-height: 540px; }
.vote-hero h1 { font-size: clamp(3.2rem, 9vw, 7.7rem); line-height: .83; }
.vote-hero .hero-description { margin-top: 20px; }

@media (max-width: 450px) {
  .topbar nav { gap: 12px; }
  .topbar .nav-play { display: none; }
}
@media (max-width: 700px) {
  .vote-hero .hero-inner { min-height: 520px; padding-bottom: 58px; }
}

.nav-casino { color: var(--accent); }
.nav-casino:hover, .nav-casino[aria-current="page"] { color: #f0d7ff; text-decoration: underline; text-underline-offset: 5px; }
.vote-rewards { padding: 32px 0; }
.vote-rewards h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.vote-rewards p { margin-block: 14px 18px; color: var(--muted); }
@media (max-width: 640px) { .topbar .nav-play { display: none; } }
@media (max-width: 355px) { .topbar nav { gap: 8px; font-size: .81rem; } .topbar .brand { gap: 6px; font-size: 22px; } .topbar .nav-discord { padding-inline: 6px; } }
