:root {
  --night: #120a1c;
  --night-2: #1d1030;
  --dusk: #3a1830;
  --ember: #d0602c;
  --gold: #f2c96b;
  --gold-hi: #ffe8a8;
  --gold-lo: #b9822a;
  --wall: #0b0710;
  --panel: #18101f;
  --text: #f3eadb;
  --muted: #b7a79f;
  --line: rgba(242, 201, 107, 0.18);
  --line-strong: rgba(242, 201, 107, 0.45);
  --ok: #73d97a;
  --bad: #ef5b4f;
  --radius: 14px;
  --head: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mc: "VT323", ui-monospace, monospace;
  --gold-grad: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
img { max-width: 100%; display: block; }
code {
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 7px; font-size: 0.9em; color: var(--gold-hi);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 10, 28, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font: 26px/1 var(--head); letter-spacing: 1.5px; text-decoration: none;
}
.logo img { width: 26px; height: 26px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; opacity: 0.85; white-space: nowrap; }
.nav ul a:hover, .nav ul a[aria-current] { opacity: 1; color: var(--gold); }
.nav .nav-premium {
  opacity: 1; color: #2a1806; background: var(--gold-grad);
  padding: 7px 14px; border-radius: 999px; box-shadow: 0 0 18px rgba(242, 201, 107, 0.25);
}
.nav .nav-premium:hover, .nav .nav-premium[aria-current] { color: #2a1806; filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(860px, 100svh);
  display: flex; align-items: center;
  padding: 80px 0 190px; text-align: center;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 38%, var(--dusk) 68%, #7a2f2a 88%, var(--ember) 100%);
}
.hero .stars, .hero canvas, .hero .skyline { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .stars {
  background-image:
    radial-gradient(1px 1px at 8% 14%, #fffa 50%, transparent 52%),
    radial-gradient(1px 1px at 19% 31%, #fff8 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 28% 9%, #fffc 50%, transparent 52%),
    radial-gradient(1px 1px at 41% 24%, #fff7 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 53% 6%, #fffb 50%, transparent 52%),
    radial-gradient(1px 1px at 61% 33%, #fff6 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 72% 15%, #fffc 50%, transparent 52%),
    radial-gradient(1px 1px at 83% 27%, #fff8 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 92% 8%, #fffa 50%, transparent 52%),
    radial-gradient(1px 1px at 35% 44%, #fff5 50%, transparent 52%),
    radial-gradient(1px 1px at 77% 46%, #fff5 50%, transparent 52%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.65; } to { opacity: 1; } }
.hero .skyline { top: auto; height: 220px; }
.hero .skyline svg { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: max(100%, 1100px); height: 220px; }
.hero > .wrap { position: relative; width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.badge .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.wordmark {
  font: clamp(68px, 15vw, 168px)/0.9 var(--head);
  letter-spacing: 3px; margin: 22px 0 14px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #3a2208) drop-shadow(0 0 40px rgba(242, 201, 107, 0.25));
}
.tagline { font-size: clamp(17px, 2.3vw, 21px); max-width: 620px; margin: 0 auto 34px; color: #eadfcd; }

.join { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ip {
  display: inline-flex; align-items: stretch; max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
  background: rgba(8, 5, 12, 0.6); backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.ip span {
  font: 600 clamp(18px, 4vw, 23px)/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  padding: 16px 20px; white-space: nowrap; letter-spacing: 0.5px;
}
.ip button {
  border: 0; cursor: pointer; padding: 0 22px;
  background: var(--gold-grad); color: #2a1806; font: 800 15px var(--body); letter-spacing: 0.5px;
}
.ip button:hover { filter: brightness(1.08); }

.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; font-size: 14.5px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.online .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(115, 217, 122, 0.6); animation: pulse 2s infinite; }
.status.offline .dot { background: var(--bad); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(115, 217, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(115, 217, 122, 0); } }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; font: 700 15.5px var(--body); cursor: pointer;
  padding: 13px 24px; border-radius: 12px; border: 1px solid var(--line-strong);
  color: var(--text); background: rgba(255, 255, 255, 0.04);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn.gold { background: var(--gold-grad); color: #2a1806; border-color: transparent; box-shadow: 0 8px 30px rgba(242, 201, 107, 0.25); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.btn svg { width: 19px; height: 19px; }

/* ---------- War strip ---------- */
.war { background: var(--wall); border-bottom: 1px solid var(--line); }
.war .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 26px 16px; }
.war .label { font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.war .count { font: clamp(30px, 5.5vw, 46px)/1 var(--head); letter-spacing: 1.5px; text-align: center; }
.war .count span { display: inline-block; min-width: 1.9ch; }
.war .count small { font: 600 13px var(--body); color: var(--muted); margin: 0 10px 0 3px; letter-spacing: 0; }
.war.live .count { color: var(--bad); }
.war .when { text-align: right; color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
section.alt { background: var(--wall); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ember); margin: 0 0 10px; }
h2 { font: clamp(36px, 6vw, 56px)/1.02 var(--head); letter-spacing: 1px; margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 44px; font-size: 18px; }
h3 { margin: 0 0 6px; font-size: 18.5px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split > *, .teaser > * { min-width: 0; }

.loop { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: step; }
.loop li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loop li:last-child { border-bottom: 0; }
.loop li::before {
  counter-increment: step; content: "0" counter(step);
  font: 30px/1 var(--head); color: var(--ember); padding-top: 3px;
}
.loop p { margin: 0; color: var(--muted); font-size: 15.5px; }

.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(242, 201, 107, 0.05);
  transform: rotate(1deg);
}
.shot img { width: 100%; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(242, 201, 107, 0.1); border: 1px solid var(--line); margin-bottom: 16px; font-size: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { list-style: none; padding: 22px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps li::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  font: 22px/1 var(--head); color: #2a1806; background: var(--gold-grad);
}
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Premium teaser on the home page */
.teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 44px; border-radius: 22px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(242, 201, 107, 0.18), transparent 70%),
    linear-gradient(135deg, #22142a, #150c1c);
  border: 1px solid var(--line-strong);
}
.teaser h2 { margin-bottom: 10px; }
.teaser .lead { margin-bottom: 26px; }

.alpha {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 20px 22px; background: rgba(242, 201, 107, 0.05);
}
.alpha .icon { font-size: 26px; line-height: 1; }
.alpha p { margin: 0; color: var(--muted); }
.alpha strong { color: var(--gold); }

/* ---------- Minecraft chat preview ---------- */
.mc-chat {
  font: 24px/1.25 var(--mc); color: #fff;
  background: rgba(0, 0, 0, 0.55); border-radius: 6px; padding: 12px 14px;
  text-shadow: 2px 2px 0 #3f3f3f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mc-chat div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-chat .town { color: #55ffff; }
.mc-chat .grey { color: #aaaaaa; }
.mc-chat .star { background: linear-gradient(90deg, #f5c542, #e07b1a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.mc-chat .pname { color: #ffaa00; }
.mc-chat .plain-name { color: #ffffff; }

/* ---------- Premium page ---------- */
.p-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 80px 0 90px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(242, 201, 107, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #1c1022 100%);
  border-bottom: 1px solid var(--line);
}
.p-hero canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.p-hero .split { align-items: start; }
.p-title { font: clamp(54px, 8.4vw, 96px)/0.95 var(--head); letter-spacing: 2px; margin: 18px 0 16px; white-space: nowrap; }
.p-title .star { display: inline-block; margin-right: 12px; font-size: 0.8em; vertical-align: 0.08em; filter: drop-shadow(0 0 24px rgba(242, 201, 107, 0.6)); }

.buy {
  position: relative; border-radius: 22px; padding: 30px;
  background: linear-gradient(180deg, #24162c, #170e1d);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.buy::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--gold-hi), transparent 35%, transparent 70%, var(--gold-lo));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.price b { font: 64px/1 var(--head); letter-spacing: 1px; }
.price span { color: var(--muted); font-size: 17px; }
.price-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.name-row { display: flex; gap: 10px; align-items: center; }
.head {
  width: 48px; height: 48px; border-radius: 8px; flex: none; image-rendering: pixelated;
  background: #2b1d33 center / cover; border: 1px solid var(--line);
}
.name-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.35);
  color: var(--text); font: 600 17px var(--body);
}
.name-row input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.name-msg { min-height: 22px; font-size: 13.5px; color: var(--muted); margin: 6px 0 14px; }
.name-msg.ok { color: var(--ok); }
.name-msg.err { color: var(--bad); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 0 0 18px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.pay { display: grid; gap: 10px; }
.pay .btn { width: 100%; padding: 15px; font-size: 16px; }
#paypal-buttons { min-height: 48px; }
#paypal-buttons.locked { opacity: 0.4; pointer-events: none; filter: grayscale(0.6); }
.pay-msg { font-size: 13.5px; color: var(--bad); min-height: 20px; margin-top: 10px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.soon {
  text-align: center; padding: 16px; border-radius: 12px;
  border: 1px dashed var(--line-strong); color: var(--muted); font-size: 14.5px;
}

.perk-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.perk-group { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.perk-group h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 14px; }
.perk-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perk-group li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; color: #e2d7c6; font-size: 15px; }
.tag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tag.live { color: #0f2b12; background: var(--ok); }
.tag.soon { color: var(--gold); border: 1px solid var(--line-strong); }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Checkout modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(5, 3, 8, 0.75); backdrop-filter: blur(4px); }
.modal.open { display: grid; }
.modal-box { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: #fff; border-radius: 16px; position: relative; }
.modal-close {
  position: sticky; top: 8px; float: right; margin: 8px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1d1030; color: #fff; font-size: 20px; line-height: 1;
}
#stripe-checkout { min-height: 400px; padding: 8px 0; }

/* ---------- Legal and text pages ---------- */
.page-head { padding: 72px 0 24px; }
.prose { max-width: 760px; }
.prose h3 { margin-top: 32px; font-size: 20px; }
.prose p, .prose li { color: #ddd2c1; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.note { padding: 14px 16px; border-radius: 10px; background: rgba(242, 201, 107, 0.07); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }

.rules { padding: 0; margin: 0 0 36px; display: grid; gap: 12px; counter-reset: r; }
.rules li {
  list-style: none; position: relative; padding: 16px 18px 16px 64px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.rules li::before { counter-increment: r; content: counter(r); position: absolute; left: 20px; top: 13px; font: 28px/1 var(--head); color: var(--gold); }
.rules.allowed li::before { content: "✔"; font: 18px/1 var(--body); color: var(--ok); top: 19px; left: 24px; }

/* Thanks page */
.thanks { min-height: 70svh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks .big { font: clamp(46px, 8vw, 80px)/1 var(--head); margin: 18px 0 12px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: spin 0.9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 13.5px; background: var(--wall); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .legal { flex-basis: 100%; font-size: 12px; opacity: 0.8; }

@media (max-width: 960px) {
  .split, .teaser { grid-template-columns: 1fr; gap: 36px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .perk-groups { grid-template-columns: 1fr; }
  .war .wrap { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .war .when { text-align: center; }
  .shot { transform: none; }
}
@media (max-width: 600px) {
  .nav ul { gap: 14px; }
  .nav .hide-sm { display: none; }
  .logo { font-size: 22px; }
  .hero .skyline svg { left: -520px; transform: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 150px; min-height: 0; }
  section { padding: 68px 0; }
  .teaser, .buy { padding: 22px; }
  .ip span { padding: 14px; }
  .mc-chat { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
