:root {
  --bg: #070b14;
  --bg-2: #0b121f;
  --panel: #0f1828;
  --panel-2: #131e32;
  --line: #1f2d45;
  --text: #dbe4f1;
  --muted: #9aabc4;
  --moon: #eaf1fb;
  --ice: #8fb2e0;
  --red: #b02a2e;
  --red-hi: #e0575b;
  --green: #5fd68e;
  --display: "Bahnschrift SemiBold Condensed", "Bahnschrift", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--ui); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: url("/assets/grain.png"); opacity: .07; mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; line-height: 1.05; margin: 0; color: var(--moon); }
p { margin: 0 0 1em; }
code { font: 600 .95em ui-monospace, Consolas, monospace; color: var(--moon); background: rgba(143,178,224,.12); padding: .1em .45em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 4px; }
.sr-only, .offscreen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offscreen { position: fixed; top: 0; left: 0; opacity: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--moon); color: #000; padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex-direction: column;
  font: 700 1rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  padding: .95rem 1.6rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s; color: #fff;
}
.btn.primary { background: var(--red); border-color: #cf4a4e; box-shadow: 0 8px 30px -8px rgba(176,42,46,.7); }
.btn.primary:hover { background: #c3343a; transform: translateY(-1px); }
.btn.ghost { background: rgba(10,16,28,.55); border-color: #4b6288; color: var(--moon); backdrop-filter: blur(4px); }
.btn.ghost:hover { border-color: var(--moon); background: rgba(20,32,54,.7); }
.btn.discord:not(.primary):not(.ghost) { background: #1a2740; border-color: #4b6288; color: var(--moon); }
.btn-sm { white-space: nowrap; padding: .5rem 1rem; font-size: .9rem; flex-direction: row; }
.btn-label { font-size: .8rem; letter-spacing: .16em; opacity: .9; }
.btn-addr { font: 600 1.15rem/1.1 ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; }
.btn.big { padding: 1.2rem 2.6rem; font-size: 1.3rem; flex-direction: row; }
.btn.disabled { opacity: .75; cursor: not-allowed; }
.btn.disabled:hover { transform: none; }
.btn.primary.disabled:hover { background: var(--red); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; background: rgba(7,11,20,.78); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(143,178,224,.12); }
.nav-inner { width: min(1180px, 100% - 40px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; }
.brand { font: 700 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; color: var(--moon); text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font: 600 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--moon); border-color: var(--red); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.layer { position: absolute; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.layer.sky { top: 0; object-position: center bottom; }
.layer.fog { height: 34%; width: 200%; background: url(/assets/hero-fog.svg) repeat-x 0 0 / 50% 100%; opacity: .9; }
.fog-1 { bottom: 24%; animation: drift 120s linear infinite; }
.fog-2 { bottom: 6%; opacity: .7; animation: drift 80s linear infinite reverse; }
.layer.shade { background: linear-gradient(90deg, rgba(4,7,12,.72) 0%, rgba(4,7,12,.25) 55%, rgba(4,7,12,0) 80%), linear-gradient(0deg, var(--bg) 0, rgba(7,11,20,0) 14%); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-inner { width: min(1180px, 100% - 40px); margin-inline: auto; padding: calc(var(--nav-h) + 2rem) 0 9rem; }
.eyebrow { font: 600 .9rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .3em; color: var(--ice); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3rem, 13.5vw, 9.5rem); letter-spacing: .08em; line-height: .9; color: var(--moon); text-shadow: 0 0 60px rgba(143,178,224,.35), 0 4px 0 rgba(0,0,0,.4); margin-left: -.04em; }
.subline { font: 600 clamp(1.1rem, 3.2vw, 1.7rem)/1.2 var(--display); text-transform: uppercase; letter-spacing: .22em; color: var(--text); margin: 1.2rem 0 1.8rem; }
.status-pill { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1rem; border: 1px solid rgba(143,178,224,.3); border-radius: 999px; background: rgba(8,14,26,.72); backdrop-filter: blur(6px); font-size: .95rem; font-weight: 600; margin-bottom: 1.6rem; max-width: 100%; }
.dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; background: #8a96a8; }
.status-pill.ok .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(95,214,142,.6); animation: pulse 2.4s ease-out infinite; }
.status-pill.bad .dot { background: var(--red-hi); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,214,142,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(95,214,142,0); } }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.actions .btn { min-height: 64px; }
.hint { margin: 1.2rem 0 0; color: var(--muted); font-size: .98rem; }
.hint strong { color: var(--moon); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(143,178,224,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--moon); border-radius: 2px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* Sections */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.kicker { font: 600 .85rem/1 var(--display); text-transform: uppercase; letter-spacing: .3em; color: var(--red-hi); margin-bottom: .9rem; }
section h2 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: .05em; margin-bottom: clamp(2rem, 5vw, 3.2rem); }

/* How it plays */
.how { background: var(--bg); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.col { padding: 2.2rem 2rem 2.4rem; border-left: 1px solid var(--line); }
.col:first-child { border-left: 0; padding-left: 0; }
.col:last-child { padding-right: 0; }
.col h3 { font-size: 2rem; margin: 1.2rem 0 .8rem; }
.col p { color: var(--muted); margin: 0; max-width: 34ch; }
.ico { width: 56px; height: 56px; fill: var(--ice); stroke: var(--ice); stroke-linejoin: round; stroke-linecap: round; }
.col-pvp .ico { fill: var(--red-hi); stroke: var(--red-hi); }
.col-pvp h3 { color: #fff; }
.col-pvp { background: linear-gradient(180deg, rgba(176,42,46,.14), rgba(176,42,46,0) 70%); }

/* Map */
.map-sec { background: radial-gradient(ellipse at 50% 0, #0f1a2e 0, var(--bg-2) 60%); border-block: 1px solid var(--line); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.map-fig { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -30px #000, 0 0 0 6px rgba(143,178,224,.04); background: #060a12; }
.map-fig img { width: 100%; height: auto; aspect-ratio: 1; }
.legend h3 { font-size: 1.6rem; margin-bottom: 1.4rem; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; align-items: start; }
.legend strong { display: block; font: 700 1.1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--moon); }
.legend li span:not(.sw) { color: var(--muted); font-size: .98rem; display: block; margin-top: .2rem; }
.sw { width: 28px; height: 28px; border-radius: 50%; margin-top: 2px; }
.sw-safe { background: rgba(95,214,142,.35); border: 2px solid var(--green); }
.sw-pvp { background: rgba(176,42,46,.55); border: 2px solid var(--red-hi); }
.sw-move { background: transparent; border: 2px dashed var(--red-hi); }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.tile { grid-column: span 2; padding: 1.6rem; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 6px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: #3a5282; transform: translateY(-2px); }
.tile h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; }
.tile p strong { color: var(--moon); }
.t-big { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; background: radial-gradient(circle at 85% 15%, rgba(143,178,224,.2), transparent 45%), linear-gradient(160deg, #16243c, var(--panel)); }
.t-big h3 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.t-big p { font-size: 1.1rem; max-width: 52ch; }
.t-tall { grid-row: span 2; }
.t-red { background: linear-gradient(160deg, rgba(176,42,46,.4), var(--panel) 80%); border-color: rgba(224,87,91,.5); }
.t-red h3 { color: #fff; }
.t-wide { grid-column: span 4; }
.t-time { display: flex; flex-direction: column; justify-content: flex-end; }
.t-time h3 { font-size: 4.2rem; color: var(--ice); line-height: .9; }

/* Join */
.join { background: var(--bg-2); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { position: relative; padding-top: 5.2rem; }
.steps li::before { content: ""; position: absolute; top: 2.2rem; left: 4.6rem; right: -2rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.steps li:last-child::before { display: none; }
.num { position: absolute; top: 0; left: 0; width: 4.4rem; height: 4.4rem; display: grid; place-items: center; font: 700 2.4rem/1 var(--display); color: var(--moon); border: 2px solid var(--ice); border-radius: 50%; background: var(--panel); }
.steps li:last-child .num { background: var(--red); border-color: #cf4a4e; }
.steps h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }
.fullname { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--red); padding-left: 1rem; margin: 2rem 0; max-width: 70ch; }
.fullname em { font-style: normal; color: var(--text); overflow-wrap: anywhere; }
.join .btn { flex-direction: row; }

/* Rules */
.rule-list { list-style: none; margin: 0; padding: 0; counter-reset: r; border-top: 1px solid var(--line); }
.rule-list li { counter-increment: r; display: grid; grid-template-columns: clamp(4.2rem, 11vw, 7rem) 1fr; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid var(--line); font: 700 clamp(1.3rem, 3.6vw, 2.2rem)/1.15 var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--moon); }
.rule-list li::before { content: "0" counter(r); font-size: clamp(2rem, 6vw, 4rem); color: transparent; -webkit-text-stroke: 1.5px var(--red-hi); letter-spacing: .02em; }

/* Discord band */
.band { background: radial-gradient(ellipse at 50% 120%, rgba(176,42,46,.4), transparent 60%), linear-gradient(180deg, var(--bg-2), #0a0f1a); border-top: 1px solid var(--line); text-align: center; }
.band-inner h2 { font-size: clamp(2.6rem, 8vw, 6rem); margin-bottom: 1rem; }
.band-inner p { color: var(--muted); font-size: 1.2rem; margin-bottom: 2rem; }

.footer { padding: 2rem 20px 3rem; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: #050810; }
.footer p { margin: 0; }

/* Tablet / phone */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cols { grid-template-columns: 1fr; }
  .col, .col:first-child, .col:last-child { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .col p { max-width: none; }
  .map-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .t-wide, .t-big { grid-column: span 2; grid-row: auto; }
  .t-tall, .t-red, .t-time { grid-column: span 1; grid-row: auto; }
  .t-big { min-height: 220px; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps li { padding: 0 0 0 5.8rem; min-height: 4.4rem; }
  .steps li::before { display: none; }
}
@media (max-width: 560px) {
  .nav-inner, .wrap, .hero-inner { width: calc(100% - 32px); }
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: calc(var(--nav-h) + 2.2rem); padding-bottom: 10rem; }
  .layer { object-position: 80% bottom; }
  .btn-sm { padding: .5rem .7rem; font-size: .78rem; letter-spacing: .06em; }
  .brand { font-size: 1.15rem; }
  .eyebrow { letter-spacing: .18em; font-size: .78rem; }
  .actions .btn { width: 100%; }
  .btn-addr { font-size: 1rem; overflow-wrap: anywhere; }
  .status-pill { font-size: .85rem; }
  .layer.shade { background: linear-gradient(180deg, rgba(4,7,12,.7) 0%, rgba(4,7,12,.5) 60%, rgba(4,7,12,0) 85%), linear-gradient(0deg, var(--bg) 0, rgba(7,11,20,0) 10%); }
  .bento { grid-template-columns: 1fr; }
  .tile, .t-wide, .t-big, .t-tall, .t-red, .t-time { grid-column: auto; }
  .btn.big { width: 100%; padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.steps code { white-space: nowrap; font-size: .82em; }
