/* BlockNation website. One stylesheet, mobile first, no framework.
   The palette is the key art's: a blue night, the red of the banner, the orange of the campfire. */

:root {
  --bg: #05070d;
  --bg-2: #090d18;
  --bg-3: #0f1524;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(140, 160, 210, 0.14);
  --line-strong: rgba(140, 160, 210, 0.28);
  --text: #eef1f8;
  --muted: #a2abc4;
  --dim: #6f7893;
  --red: #e5322d;
  --red-2: #ff5a4f;
  --orange: #ff8a1f;
  --amber: #ffb347;
  --blue: #6fb6ff;
  --blue-2: #a8d4ff;
  --green: #34d399;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 10px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --container: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
code, .inline-code { font-family: var(--font-mono); }
.inline-code {
  font-size: 0.92em;
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: rgba(111, 182, 255, 0.1);
  border: 1px solid rgba(111, 182, 255, 0.22);
  color: var(--blue-2);
  overflow-wrap: anywhere;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
@media (max-width: 600px) { .container { width: min(100% - 32px, var(--container)); } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 14px; background: var(--red); color: #fff; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 0.88rem; }
.btn--lg { min-height: 54px; padding: 16px 28px; font-size: 1.02rem; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #e5322d 0%, #ff6a1f 100%);
  box-shadow: 0 8px 30px rgba(229, 50, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 106, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--amber); background: rgba(255, 179, 71, 0.08); transform: translateY(-2px); }

/* -------------------------------------------------------------- the address */
/* mc.playblocknation.net with its copy button: the secondary action, and the thing a player who
   already wants in is looking for. Copying swaps the icon for a check and the label for Copied. */
.addr {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(5, 7, 13, 0.7); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.addr:hover { border-color: rgba(255, 179, 71, 0.5); }
.addr:has(.is-copied) { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.addr__label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.addr__value { font-size: 1rem; color: var(--text); letter-spacing: 0.01em; }
.addr__copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 12px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--amber); font-weight: 600; font-size: 0.85rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.addr__copy:hover { background: rgba(255, 179, 71, 0.16); }
.addr__copy .icon { width: 16px; height: 16px; }
.addr__copy .icon--check { display: none; }
.addr__copy.is-copied { background: rgba(52, 211, 153, 0.18); color: var(--green); }
.addr__copy.is-copied .icon--copy { display: none; }
.addr__copy.is-copied .icon--check { display: block; animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: scale(0.4); } 60% { transform: scale(1.25); } to { transform: scale(1); } }
.addr--lg { padding: 8px 8px 8px 20px; }
.addr--lg .addr__value { font-size: 1.08rem; }
.addr--lg .addr__copy { min-height: 44px; padding: 10px 18px 10px 14px; }
.addr--block { width: 100%; justify-content: space-between; border-radius: 14px; margin-top: 18px; }
@media (max-width: 480px) {
  .addr { flex-wrap: wrap; row-gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; }
  .addr__label { width: 100%; }
  .addr__value { flex: 1 1 auto; font-size: 1rem; }
  .addr__copy { flex: 1 1 100%; justify-content: center; }
}

/* --------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(5, 7, 13, 0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled { background: rgba(5, 7, 13, 0.88); border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - 40px, var(--container)); margin-inline: auto; }
@media (max-width: 600px) { .nav__inner { width: min(100% - 32px, var(--container)); } }
.nav__logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none !important; }
.emblem { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(229, 50, 45, 0.35); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.wordmark__tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 4px 7px 3px; border-radius: 5px; line-height: 1;
}
.nav__menu { display: flex; align-items: center; gap: 18px; }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted);
  font-weight: 500; font-size: 0.93rem; text-decoration: none !important;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px 20px 22px; background: rgba(5, 7, 13, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__links { flex-direction: column; gap: 2px; }
  .nav__links a { padding: 12px 14px; font-size: 1rem; }
  .nav__menu .btn { margin-top: 6px; }
}

/* -------------------------------------------------------------------- hero */
/* The key art is the hero: full width, faded out at the foot, with the words riding up into the
   fade. Phones get the square version of the same picture. */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: var(--nav-h) 0 64px; }
/* the fade is on the frame and the slow drift on the picture inside it: a mask and an animated
   transform on one element is the combination that has blanked large images before */
.hero__art { position: relative; z-index: 0; margin: 0; display: block; overflow: hidden; }
/* the fade into the page is a gradient laid over the picture, not a mask: a mask on a large layer
   has blanked whole frames in embedded browsers */
.hero__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0) 50%, rgba(5, 7, 13, 0.55) 76%, var(--bg) 100%);
}
/* the picture itself does not move: an animated transform on it blanked the hero in the
   editor's embedded browser, and the words rising beneath it are entrance enough */
.hero__art img {
  width: 100%; aspect-ratio: 16 / 9; max-height: min(80vh, 1000px);
  object-fit: cover; object-position: center 42%;
}
@media (max-width: 899px) {
  .hero__art img { aspect-ratio: 1; max-height: none; object-position: center; }
}
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.hero__glow--a { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; left: -20vw; bottom: -20%; background: radial-gradient(circle, rgba(229, 50, 45, 0.5), transparent 65%); }
.hero__glow--b { width: 50vw; height: 50vw; max-width: 620px; max-height: 620px; right: -14vw; bottom: -10%; background: radial-gradient(circle, rgba(111, 182, 255, 0.3), transparent 65%); }

.hero__content { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: clamp(-170px, -14vw, -70px) auto 0; }
@media (max-width: 899px) { .hero__content { margin-top: -24vw; } }
/* entrance: each line rises in turn once the page is in */
.hero__content > * { animation: rise 0.8s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__content > :nth-child(5) { animation-delay: 0.32s; }
.hero__content > :nth-child(6) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-2); background: rgba(229, 50, 45, 0.12); border: 1px solid rgba(229, 50, 45, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(229, 50, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 50, 45, 0); } }

.hero__title { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__brand { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.hero__tagline {
  font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff 0%, #ffd9c2 45%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 20px auto 0; max-width: 560px; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); color: #c6cde0; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.hero .status-pill { margin-top: 18px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  background: rgba(5, 7, 13, 0.6); border: 1px solid var(--line-strong); color: var(--muted);
}
.status-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.status-pill.is-online { color: var(--text); }
.status-pill.is-online .status-pill__dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.status-pill.is-offline .status-pill__dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.status-pill.is-unknown .status-pill__dot { background: var(--dim); }

.pillars { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pillar {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted);
  font-size: 0.86rem; font-weight: 600; text-decoration: none !important;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.pillar .icon { width: 16px; height: 16px; color: var(--amber); }
.pillar:hover { color: var(--text); border-color: rgba(255, 179, 71, 0.5); background: rgba(255, 179, 71, 0.08); transform: translateY(-1px); }

/* ------------------------------------------------------------------ glance */
.glance { position: relative; z-index: 1; padding: 8px 0 20px; }
.glance__grid {
  margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 21, 36, 0.95), rgba(9, 13, 24, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.glance__item { padding: 18px 20px; border-right: 1px solid var(--line); }
.glance__item:last-child { border-right: 0; }
.glance__item dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.glance__item dd { margin: 5px 0 0; font-weight: 600; color: var(--text); font-size: 0.96rem; }
@media (max-width: 1000px) { .glance__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .glance__item:nth-child(3) { border-right: 0; } .glance__item:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glance__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 16px; } .glance__item:nth-child(2n) { border-right: 0; } .glance__item:nth-last-child(-n+2) { border-bottom: 0; } }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(64px, 5vw + 36px, 110px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section--alt::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
/* the raid band wears the armored plate, faintly, so it does not look like every other section */
.section--texture { background: var(--bg-2); }
.section--texture::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("img/tiers/tuff_bricks.png"); background-size: 256px 256px; opacity: 0.07;
}
/* the plate fades in and out at the band's edges: a gradient over it, since a mask on a large
   layer has blanked whole frames in embedded browsers */
.section--texture::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-2) 0%, transparent 30%, transparent 70%, var(--bg-2) 100%);
}
.section--texture > .container { position: relative; z-index: 1; }
.section--join { background: radial-gradient(70% 60% at 50% 0%, rgba(229, 50, 45, 0.14), transparent 70%); }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-2); margin-bottom: 12px; }
.lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* expandable detail blocks: the long form, kept below the short one */
.more { margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.more summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--text);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform 0.25s var(--ease);
}
.more[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.more[open] { border-color: rgba(255, 179, 71, 0.35); }
.more > :not(summary) { padding: 0 20px 20px; }
.more--center { max-width: 760px; margin-inline: auto; }
.more__body p { color: var(--muted); }
.more__body p + p { margin-top: 12px; }

/* ------------------------------------------------------------------- cards */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr; } }
.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: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 138, 31, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.card h3 { margin-top: 16px; font-size: 1.2rem; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }
.card__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.card__icon svg { width: 24px; height: 24px; }
.card__icon--red { color: var(--red-2); background: rgba(229, 50, 45, 0.14); }
.card__icon--blue { color: var(--blue); background: rgba(111, 182, 255, 0.14); }
.card__icon--orange { color: var(--orange); background: rgba(255, 138, 31, 0.14); }
.card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; }
.card__cta .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.card__cta:hover .icon { transform: translateX(3px); }

/* ----------------------------------------------------------------- compare */
.compare { overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare__table th, .compare__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-size: 0.94rem; }
.compare__table thead th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border-top: 0; }
.compare__table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; width: 1%; }
.compare__table td:nth-child(2) { color: var(--dim); }
.compare__table td:nth-child(3) { color: var(--text); }
@media (max-width: 640px) {
  .compare { overflow: visible; }
  .compare__table { min-width: 0; }
  .compare__table thead { display: none; }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; }
  .compare__table tr { border-top: 1px solid var(--line); padding: 12px 0 14px; }
  .compare__table tbody th { padding: 0 0 8px; border: 0; width: auto; white-space: normal; font-size: 1rem; }
  .compare__table td { padding: 4px 0 8px; border: 0; font-size: 0.93rem; }
  .compare__table td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
}

/* ---------------------------------------------------------------- gameplay */
/* A bento of scenes: each tile is a picture first and a sentence second. */
.play { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background: var(--bg-3); isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: rgba(255, 179, 71, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover .tile__bg { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.05) 0%, rgba(5, 7, 13, 0.25) 45%, rgba(5, 7, 13, 0.93) 100%);
}
.tile__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px 24px 24px; }
.tile__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.tile h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.tile p { margin-top: 8px; color: #c9d0e2; font-size: 0.93rem; max-width: 46ch; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.tile__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 0.9rem; color: var(--amber); }
.tile__link .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.tile__link:hover .icon { transform: translateX(3px); }

.tile--survive { grid-column: 1 / 8; grid-row: span 2; }
.tile--fight { grid-column: 8 / 13; grid-row: span 2; }
.tile--build { grid-column: 1 / 6; grid-row: span 2; }
.tile--raid { grid-column: 6 / 13; grid-row: span 2; }
.tile--clans { grid-column: 1 / 5; grid-row: span 2; }
.tile--vehicles { grid-column: 5 / 9; grid-row: span 2; }
.tile--events { grid-column: 9 / 13; grid-row: span 2; }
.tile--progress { grid-column: 1 / 13; grid-row: span 1; }

/* the four wall textures as a picture of their own */
.tile__tiers { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tile__tier { background-size: 128px 128px; image-rendering: pixelated; filter: saturate(0.9) brightness(0.85); transition: transform 1s var(--ease); }
.tile:hover .tile__tier { transform: scale(1.04); }
.tile__tier--wood { background-image: url("img/tiers/oak_planks.png"); }
.tile__tier--stone { background-image: url("img/tiers/stone_bricks.png"); }
.tile__tier--metal { background-image: url("img/tiers/deepslate_bricks.png"); }
.tile__tier--armored { background-image: url("img/tiers/tuff_bricks.png"); }

/* the raid tile stands on the armored plate with the crate and the charge in front of it */
.tile--raid { background-image: url("img/tiers/tuff_bricks.png"); background-size: 192px 192px; image-rendering: auto; }
.tile--raid::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 75% 40%, rgba(229, 50, 45, 0.28), rgba(5, 7, 13, 0.75) 70%); }
.tile__item { position: absolute; z-index: 1; width: 38%; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); transition: transform 0.8s var(--ease); }
.tile__item--crate { right: 4%; top: 6%; width: 44%; }
.tile__item--c4 { right: 42%; top: 30%; width: 24%; transform: rotate(-8deg); }
.tile:hover .tile__item--crate { transform: translateY(-6px); }
.tile:hover .tile__item--c4 { transform: rotate(-4deg) translateY(-4px); }
.tile__item--sam { right: 2%; top: 4%; width: 42%; }
.tile__item--quad { right: 36%; top: 34%; width: 36%; }
.tile:hover .tile__item--sam { transform: translateY(-6px); }
.tile:hover .tile__item--quad { transform: translateX(-4px); }
.tile--vehicles .tile__bg { object-position: 60% 30%; }
.tile--clans .tile__bg { object-position: center 30%; }
.tile--events .tile__bg { object-position: center 40%; }
.tile--fight .tile__bg { object-position: 40% 40%; }

/* the progression band is text with a diagram, not a picture */
.tile--progress { background: linear-gradient(90deg, rgba(229, 50, 45, 0.12), rgba(15, 21, 36, 0.9) 45%, rgba(111, 182, 255, 0.08)); }
.tile--progress::after { display: none; }
.tile__body--row { position: static; display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 100%; }
.tile__body--row p { max-width: 60ch; text-shadow: none; }
.flow { display: flex; align-items: center; gap: 12px; flex: none; }
.flow__node { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(5, 7, 13, 0.6); font-weight: 600; font-size: 0.9rem; font-family: var(--font-mono); }
.flow__node .icon { width: 18px; height: 18px; color: var(--blue-2); }
.flow__arrow { width: 18px; height: 18px; color: var(--dim); }
.flow__levels { display: inline-flex; gap: 6px; }
.flow__levels b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: 0 6px 18px rgba(229, 50, 45, 0.3); }

@media (max-width: 1100px) {
  .play { grid-auto-rows: 190px; }
}
@media (max-width: 900px) {
  .play { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 14px; }
  .tile { min-height: 300px; grid-column: auto !important; grid-row: auto !important; }
  .tile--survive, .tile--raid, .tile--progress { grid-column: 1 / -1 !important; }
  .tile--progress { min-height: 0; }
  .tile__body--row { flex-direction: column; align-items: flex-start; }
  .flow { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .play { grid-template-columns: 1fr; }
  .tile { min-height: 240px; }
  .tile__body { padding: 18px; }
  .tile h3 { font-size: 1.3rem; }
  .tile p { font-size: 0.9rem; }
  .tile__item--crate { width: 40%; }
}

/* ------------------------------------------------------------------- tiers */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) {
  .tier__texture { aspect-ratio: 1; background-size: 64px auto; }
  .tier__body { padding: 12px 14px 16px; margin-top: -24px; }
  .tier h3 { font-size: 1rem; }
  .tier p { font-size: 0.82rem; }
}
.tier { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.tier:hover { transform: translateY(-4px); border-color: rgba(255, 138, 31, 0.5); }
.tier__texture { aspect-ratio: 1.15; background-size: 50% auto; background-repeat: repeat; image-rendering: pixelated; position: relative; }
.tier__texture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(15, 21, 36, 0.92)); }
.tier__texture--wood { background-image: url("img/tiers/oak_planks.png"); }
.tier__texture--stone { background-image: url("img/tiers/stone_bricks.png"); }
.tier__texture--metal { background-image: url("img/tiers/deepslate_bricks.png"); }
.tier__texture--armored { background-image: url("img/tiers/tuff_bricks.png"); }
.tier__body { padding: 16px 18px 20px; margin-top: -30px; position: relative; }
.tier__charges { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); background: rgba(255, 138, 31, 0.14); border: 1px solid rgba(255, 138, 31, 0.4); }
.tier h3 { margin-top: 10px; font-size: 1.15rem; }
.tier p { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }

/* -------------------------------------------------------------------- gear */
/* a strip that scrolls sideways on a phone and a grid of ten on a desktop */
.gear { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.gear__item {
  flex: 0 0 200px; scroll-snap-align: start; margin: 0; padding: 12px; border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, rgba(229, 50, 45, 0.14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.gear__item:hover { transform: translateY(-4px); border-color: rgba(255, 179, 71, 0.45); }
.gear__item img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5)); transition: transform 0.4s var(--ease); }
.gear__item:hover img { transform: translateY(-4px) scale(1.04); }
.gear__item figcaption { margin-top: 8px; }
.gear__item h3 { font-size: 0.95rem; }
.gear__item p { margin-top: 3px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
@media (min-width: 1000px) {
  .gear { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding: 0; margin: 0; }
  .gear__item { flex: none; }
}

.renders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .renders { grid-template-columns: 1fr; } }
.render { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #1c2027; display: flex; flex-direction: column; }
.render img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.render:first-child img { object-fit: cover; }
.render figcaption { padding: 14px 16px 16px; background: var(--bg-3); border-top: 1px solid var(--line); flex: 1; }
.render h3 { font-size: 1rem; }
.render p { margin-top: 4px; color: var(--muted); font-size: 0.88rem; }

/* ---------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }
/* icon beside the words on narrow screens (the icon spans both rows), icon above them on wide ones */
.feature {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: start;
  padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: rgba(229, 50, 45, 0.45); }
.feature__icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--amber); background: linear-gradient(135deg, rgba(229, 50, 45, 0.2), rgba(255, 138, 31, 0.14)); border: 1px solid rgba(255, 138, 31, 0.25); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { grid-column: 2; font-size: 1.02rem; }
.feature p { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
@media (min-width: 1001px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__icon { grid-row: auto; }
  .feature h3 { grid-column: auto; margin-top: 14px; }
  .feature p { grid-column: auto; }
}

/* ------------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.stat__label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.stat__value { display: block; margin-top: 10px; font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.stat__value a { color: var(--blue-2); }
.stat__note { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--dim); font-family: var(--font-mono); overflow-wrap: anywhere; }
.stat.is-online .stat__value { color: var(--green); }
.stat.is-offline .stat__value { color: var(--danger); }
.stat.is-unknown .stat__value { color: var(--muted); }

.numbers { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.number { text-align: center; padding: 16px 10px; border-radius: var(--radius-sm); border: 1px dashed var(--line); }
.number__value { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); font-weight: 800; background: linear-gradient(90deg, var(--red-2), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.number__label { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }
.note { margin-top: 20px; color: var(--muted); text-align: center; }

/* -------------------------------------------------------------------- join */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.step3 {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 24px 26px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.step3__num { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); box-shadow: 0 10px 26px rgba(229, 50, 45, 0.35); }
.step3 h3 { margin-top: 16px; font-size: 1.2rem; }
.step3 p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.step3 .btn { margin-top: 18px; }
.step3__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.86rem; color: var(--green); font-weight: 600; }
.step3__hint .icon { width: 16px; height: 16px; }
.step3 .addr--block { text-align: left; }
/* a chevron between the cards on a desktop, a short line between them on a phone */
@media (min-width: 901px) {
  .step3:not(:last-child)::after {
    content: ""; position: absolute; right: -15px; top: 42px; width: 10px; height: 10px; z-index: 1;
    border-right: 2px solid var(--dim); border-top: 2px solid var(--dim); transform: rotate(45deg);
  }
}
@media (max-width: 900px) {
  .steps3 { grid-template-columns: 1fr; gap: 26px; max-width: 560px; margin-inline: auto; }
  .step3:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 2px; height: 18px; background: var(--line-strong); }
}

/* --------------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.faq__item[open] { border-color: rgba(229, 50, 45, 0.4); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--red-2); border-bottom: 2px solid var(--red-2); transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__body { padding: 0 20px 18px; color: var(--muted); }

/* --------------------------------------------------------------- final cta */
.cta-final { position: relative; padding: clamp(72px, 7vw + 36px, 130px) 0; overflow: hidden; text-align: center; }
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 100%, rgba(229, 50, 45, 0.3), transparent 70%), radial-gradient(40% 60% at 80% 20%, rgba(111, 182, 255, 0.14), transparent 70%);
}
.cta-final h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.cta-final .lead { max-width: 520px; margin-inline: auto; }
.cta-final .hero__actions { justify-content: center; }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: #03040a; padding: 52px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 0.93rem; max-width: 420px; }
.footer__ip { color: var(--dim) !important; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__nav a { color: var(--muted); font-size: 0.93rem; }
.footer__nav a:hover { color: var(--text); }
.footer__fine { margin-top: 12px; font-size: 0.82rem; color: var(--dim); }
.footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8rem; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .no-observer .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__content > * { opacity: 1; transform: none; }
}
