/* Blitz MC. A storm at night: ink-blue sky, one gold bolt. Pixel art from the game is the imagery.
   Shape rule: panels 18px, buttons and chips full pill, pixel art never rounded. */
:root {
  --ink: #090b12;          /* night sky */
  --ink-2: #0f131e;        /* raised panel */
  --ink-3: #171c2b;        /* hover, inset */
  --line: rgba(160, 178, 220, .14);
  --line-2: rgba(160, 178, 220, .26);
  --text: #eef1f8;
  --mute: #9aa3b8;
  --bolt: #ffd23f;         /* the one accent */
  --bolt-ink: #1a1400;     /* text on the accent */
  --good: #7ee08a;
  --bad: #ff7a6b;
  --r: 18px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; }
a { color: var(--bolt); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--bolt); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.lede { color: var(--mute); font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }
.sub { color: var(--mute); max-width: 40em; margin-top: 14px; }
.mark { color: var(--bolt); }
section { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--bolt); margin-bottom: 18px; }

/* night sky behind everything: fixed, never repaints on scroll */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(255, 210, 63, .13), transparent 70%),
    radial-gradient(50vw 60vh at 0% 30%, rgba(70, 110, 255, .09), transparent 70%),
    var(--ink); }

/* ── nav ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(9, 11, 18, .78); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.nav .logo img { height: 26px; width: auto; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--mute); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: var(--ink-3); }
.nav nav a[aria-current="page"] { color: var(--bolt); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px;
  font: 600 14px/1 var(--body); padding: 10px 16px; cursor: pointer; }

/* ── buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; cursor: pointer;
  font: 700 16px/1 var(--body); padding: 16px 26px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text);
  background: transparent; text-decoration: none; transition: transform .25s var(--ease), background .2s, border-color .2s; }
.btn:hover { background: var(--ink-3); border-color: var(--mute); }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--bolt); color: var(--bolt-ink); border-color: var(--bolt); }
.btn.gold:hover { background: #ffe07a; }
.btn img { width: 20px; height: 20px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── IP pill ─────────────────────────────────────────── */
.ip { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2);
  overflow: hidden; max-width: 100%; }
.ip code { font: 700 clamp(16px, 2.2vw, 22px)/1 var(--mono); color: var(--text); padding: 18px 8px 18px 26px; user-select: all;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip button { font: 700 15px/1 var(--body); border: 0; background: var(--bolt); color: var(--bolt-ink); padding: 0 24px; margin: 6px;
  border-radius: 999px; cursor: pointer; transition: transform .25s var(--ease), background .2s; }
.ip button:hover { background: #ffe07a; }
.ip button:active { transform: scale(.96); }
.live { display: inline-flex; align-items: center; gap: 9px; color: var(--mute); font-size: 15px; margin-top: 18px; min-height: 24px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(126, 224, 138, .16); }
.live b { color: var(--text); font-weight: 600; }
.live[hidden] { display: none; }

/* ── hero ────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(32px, 4.3vw, 54px); }
.hero .ip { margin-top: 30px; }
.emblem { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.emblem::before { content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, .30), transparent 68%); filter: blur(22px); }
.emblem img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(1.2deg); } }

/* ── the loop ────────────────────────────────────────── */
.loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.loop div { padding: 28px 24px 4px 0; border-right: 1px solid var(--line); min-width: 0; }
.loop div + div { padding-left: 24px; }
.loop div:last-child { border-right: 0; }
.loop img { width: 56px; height: 56px; margin-bottom: 18px; }
.loop p { color: var(--mute); font-size: 16px; margin-top: 8px; }

/* ── powers picker ───────────────────────────────────── */
.powers { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin-top: 44px; }
.sigils { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sigils button { aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; padding: 0; transition: transform .3s var(--ease), border-color .2s, background .2s; }
.sigils button img { width: 62%; height: 62%; transition: transform .3s var(--ease); }
.sigils button:hover { border-color: var(--line-2); }
.sigils button:hover img { transform: scale(1.12); }
.sigils button[aria-pressed="true"] { border-color: var(--bolt); background: var(--ink-3); }
.pcard { border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); padding: clamp(14px, 2.4vw, 26px); min-height: 280px;
  display: grid; place-items: center; }
.pcard img { width: 100%; height: auto; transition: opacity .25s; }
.pmeta { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.pmeta b { font: 800 22px/1 var(--display); }
.pmeta span { color: var(--mute); }

/* ── creatures ───────────────────────────────────────── */
.rift { background: linear-gradient(180deg, transparent, rgba(255, 110, 40, .07) 40%, transparent); }
.creatures { width: 100%; margin-top: 36px; filter: brightness(1.18) saturate(1.1);
  background: radial-gradient(ellipse 60% 55% at 50% 78%, rgba(255, 150, 70, .30), transparent 70%); }
.roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.roster div { min-width: 0; text-align: center; }
.roster b { display: block; font-weight: 600; }
.roster span { font-size: 15px; color: var(--mute); }

/* ── bento ───────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.cell { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); padding: 28px; min-width: 0;
  overflow: hidden; }
.cell p { color: var(--mute); margin-top: 8px; font-size: 16px; max-width: 30em; }
.c-ah { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--ink-2), #1a1f33); }
.c-ah img { width: 210px; transform: rotate(4deg) translateY(34px); border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.c-wear { grid-column: span 2; grid-row: span 2; padding: 0; display: flex; flex-direction: column; }
.c-wear img { width: 100%; flex: 1; object-fit: cover; object-position: top; min-height: 260px; }
.c-wear div { padding: 24px 28px 28px; }
.c-brew { grid-column: span 2; }
.c-duel { grid-column: span 2; background: linear-gradient(160deg, rgba(255, 210, 63, .12), var(--ink-2) 60%); }
.icons { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.icons img { width: 40px; height: 40px; }
.cmds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cmds code { font: 500 14px/1 var(--mono); padding: 8px 12px; border-radius: 999px; background: var(--ink-3); color: var(--text); }

/* ── plans ───────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 44px; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2);
  padding: 30px 28px 28px; min-width: 0; transition: transform .35s var(--ease), border-color .2s; }
.plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.plan.top { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 13%, var(--ink-2)), var(--ink-2) 55%);
  border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.plan .badge { height: 30px; width: auto; align-self: flex-start; margin-bottom: 18px; }
.plan .tag { position: absolute; top: 28px; right: 24px; font: 600 12px/1 var(--body); padding: 7px 12px; border-radius: 999px;
  background: var(--c); color: var(--bolt-ink); }
.plan h3 { font-size: 26px; color: var(--c); }
.price { font: 700 34px/1 var(--mono); margin-top: 14px; font-variant-numeric: tabular-nums; }
.price small { font: 400 15px/1 var(--body); color: var(--mute); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0 6px; }
.nums div { background: var(--ink-3); border-radius: 12px; padding: 12px 8px; text-align: center; }
.nums b { display: block; font: 700 22px/1.1 var(--mono); }
.nums span { font-size: 13px; color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 26px; display: grid; gap: 9px; color: var(--mute); font-size: 16px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--c);
  border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.note { margin-top: 26px; color: var(--mute); font-size: 15px; max-width: 60em; }

/* what happens when a plan ends */
.ends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 36px; }
.ends div { padding: 22px 0; border-top: 1px solid var(--line); }
.ends p { color: var(--mute); margin-top: 6px; font-size: 16px; }

/* keys */
.keys { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.keylist { display: grid; gap: 12px; }
.key { display: flex; align-items: center; gap: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2);
  padding: 16px 16px 16px 24px; }
.key b { font: 700 18px/1.2 var(--body); }
.key span { color: var(--mute); font-size: 14px; display: block; }
.key .price { font-size: 22px; margin: 0 0 0 auto; }
.key .btn { padding: 12px 20px; font-size: 15px; }
.odds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.odds span { font: 500 14px/1 var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); }
.odds b { color: var(--text); }

/* ── join + faq ──────────────────────────────────────── */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 44px; }
.how { border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); padding: 30px; }
.how ol { margin: 16px 0 0; padding-left: 20px; color: var(--mute); display: grid; gap: 8px; }
.how b { color: var(--text); font-weight: 600; }
.how code { font: 500 15px/1 var(--mono); color: var(--bolt); }
.faq { max-width: 820px; margin-top: 30px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 20px 34px 20px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--body); color: var(--bolt); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--mute); padding: 0 0 22px; max-width: 62ch; }

/* ── page heads (store, vote, discord) ───────────────── */
.head { padding-block: clamp(48px, 7vw, 88px) 0; }
.head h1 { font-size: clamp(32px, 5vw, 58px); }
.head .lede { margin-top: 18px; }

/* ── vote ────────────────────────────────────────────── */
.votegrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; align-items: start; margin-top: 44px; }
.panel { border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); padding: 28px; min-width: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field small { display: block; color: var(--mute); font-size: 14px; margin-top: 8px; }
.field input { width: 100%; font: 500 18px/1 var(--mono); padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--text); outline: none; }
.field input:focus { border-color: var(--bolt); }
.field input::placeholder { color: #6f7890; }
.sites { display: grid; gap: 10px; margin-top: 22px; }
.site { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 20px; border-radius: 14px; background: var(--ink-3);
  border: 1px solid transparent; transition: border-color .2s; }
.site:hover { border-color: var(--line-2); }
.site .n { font: 700 15px/1 var(--mono); color: var(--mute); width: 22px; }
.site b { font-weight: 600; display: block; }
.site span { color: var(--mute); font-size: 14px; }
.site .btn { margin-left: auto; padding: 12px 22px; font-size: 15px; }
.site.done { opacity: .62; }
.site.done .btn { background: transparent; color: var(--good); border-color: rgba(126, 224, 138, .4); }
.empty { text-align: center; padding: 36px 12px; color: var(--mute); }
.empty img { width: 64px; height: 64px; margin: 0 auto 16px; }
.reward { text-align: center; }
.reward .big { font: 700 44px/1 var(--mono); color: var(--bolt); margin-top: 10px; font-variant-numeric: tabular-nums; }
.reward .plus { color: var(--mute); margin-top: 6px; }
.reward .bar { height: 1px; background: var(--line); margin: 24px 0; }
.reward p { color: var(--mute); font-size: 15px; }
.tally { font: 700 20px/1 var(--mono); color: var(--text); }

/* ── discord ─────────────────────────────────────────── */
.dgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 44px; align-items: stretch; }
.invite { display: flex; flex-direction: column; align-items: flex-start; background:
  radial-gradient(120% 80% at 0% 0%, rgba(255, 210, 63, .16), transparent 60%), var(--ink-2); }
.invite .who { display: flex; align-items: center; gap: 16px; }
.invite .who img { width: 72px; height: 72px; border-radius: 22px; background: var(--ink-3); padding: 6px; }
.invite .who b { font: 800 22px/1.1 var(--display); display: block; }
.invite .who span { color: var(--mute); font-size: 15px; }
.counts { display: flex; gap: 28px; margin: 28px 0; min-height: 56px; }
.counts b { font: 700 30px/1 var(--mono); display: block; font-variant-numeric: tabular-nums; }
.counts span { color: var(--mute); font-size: 14px; }
.invite .btn { width: 100%; margin-top: auto; padding-block: 20px; font-size: 18px; }
.invite small { color: var(--mute); margin-top: 14px; font-size: 14px; }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.rooms div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rooms div:nth-last-child(-n+2) { border-bottom: 0; }
.rooms code { font: 600 15px/1 var(--mono); color: var(--bolt); }
.rooms p { color: var(--mute); font-size: 15px; margin-top: 6px; }
.link3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.link3 .panel:nth-child(2) { transform: translateY(22px); }
.link3 code { font: 600 16px/1 var(--mono); color: var(--bolt); }
.link3 p { color: var(--mute); margin-top: 8px; font-size: 16px; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.roles img { height: 26px; width: auto; }

/* ── closing CTA + footer ────────────────────────────── */
.cta { text-align: center; }
.cta .ip { margin-top: 30px; }
footer { border-top: 1px solid var(--line); padding-block: 38px 54px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
footer img { height: 20px; width: auto; }
footer a { color: var(--mute); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .legal { flex-basis: 100%; opacity: .75; }

.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 24px); z-index: 30;
  background: var(--bolt); color: var(--bolt-ink); font-weight: 700; padding: 13px 22px; border-radius: 999px; opacity: 0;
  transition: opacity .25s, transform .35s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll (site.js adds .in) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px;
    background: var(--ink); border-bottom: 1px solid var(--line); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 14px 12px; font-size: 17px; }
  .menu { display: block; }
  .nav .btn { display: none; }
  .hero .wrap, .powers, .keys, .join, .votegrid, .dgrid { grid-template-columns: minmax(0, 1fr); }
  .emblem { width: min(240px, 62%); order: -1; justify-self: start; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop div { border-right: 0; padding: 24px 16px 8px 0; }
  .loop div + div { padding-left: 0; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .roster div { text-align: left; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .c-ah, .c-wear, .c-brew, .c-duel { grid-column: auto; grid-row: auto; }
  .c-ah { grid-template-columns: minmax(0, 1fr); }
  .c-ah img { width: 170px; transform: rotate(3deg); margin-bottom: -60px; }
  .plans, .link3, .ends { grid-template-columns: minmax(0, 1fr); }
  .link3 .panel:nth-child(2) { transform: none; }
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .rooms div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .key { flex-wrap: wrap; }
  .ip code { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem img { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .plan, .sigils button, .sigils button img { transition: none; }
}

.counts[hidden] { display: none; }

/* store: Minecraft name dialog before checkout */
dialog.buy { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ink-2); color: var(--text); padding: 30px;
  width: min(440px, calc(100% - 32px)); }
dialog.buy::backdrop { background: rgba(4, 5, 9, .72); backdrop-filter: blur(4px); }
dialog.buy .btns { margin-top: 24px; }

/* plan perks with their how-to line (store) */
.plan li b { color: var(--text); font-weight: 600; }
.plan li small { display: block; color: var(--mute); font-size: 14px; line-height: 1.45; margin-top: 2px; }
/* BETA chip next to the logo */
.stage { font: 700 11px/1 var(--body); letter-spacing: .12em; padding: 5px 9px; border-radius: 999px; background: var(--good);
  color: #06210b; margin-left: -10px; }
.stage:empty { display: none; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.picks span { font: 500 14px/1 var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
