:root {
  --bg: #050505;
  --bg-2: #0d0d0f;
  --panel: rgba(15, 13, 12, 0.86);
  --panel-solid: #12100f;
  --line: rgba(255, 125, 18, 0.42);
  --line-dim: rgba(255, 255, 255, 0.12);
  --orange: #ff8a00;
  --orange-2: #ff5a00;
  --ember: #d64000;
  --white: #f4f1ec;
  --muted: #b5b0a8;
  --steel: #252a2d;
  --cyan: #62d7e8;
  --green: #58d36b;
  --shadow: rgba(0, 0, 0, 0.72);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.06), transparent 360px),
    radial-gradient(circle at 50% 0, rgba(255, 138, 0, 0.12), transparent 34rem),
    var(--bg);
  color: var(--white);
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  animation: gridDrift 28s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 41;
  pointer-events: none;
  opacity: 0.12;
  background: linear-gradient(rgba(255, 255, 255, 0.08) 50%, transparent 50%);
  background-size: 100% 4px;
  mix-blend-mode: screen;
}

body.has-alert-modal {
  overflow: hidden;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 18px auto 0;
  padding: 10px 12px 10px 14px;
  background: rgba(7, 7, 7, 0.68);
  border: 1px solid var(--line-dim);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-color: rgba(255, 138, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  color: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.9rem;
  text-shadow: 0 0 16px rgba(255, 122, 0, 0.72);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(255, 138, 0, 0.75))
    drop-shadow(0 0 18px rgba(255, 82, 0, 0.35));
}

.site-alert {
  position: fixed;
  top: 96px;
  right: max(18px, calc((100vw - var(--max)) / 2));
  z-index: 30;
  width: min(420px, calc(100vw - 32px));
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.16), transparent 44%),
    rgba(9, 8, 7, 0.94);
  border: 1px solid rgba(255, 138, 0, 0.44);
  border-radius: 8px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(255, 92, 0, 0.2);
  backdrop-filter: blur(14px);
  cursor: pointer;
  animation: alertDropIn 560ms cubic-bezier(0.18, 0.9, 0.22, 1) both, alertGlow 3.6s ease-in-out infinite;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-alert:hover,
.site-alert:focus-visible {
  border-color: rgba(255, 166, 66, 0.78);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(255, 92, 0, 0.28);
  outline: 0;
}

.site-alert-banner {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.32);
  border-bottom: 1px solid rgba(255, 138, 0, 0.24);
}

.site-alert-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.site-alert-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--orange);
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 138, 0, 0.44);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.site-alert-icon .icon {
  width: 26px;
  height: 26px;
}

.site-alert strong {
  display: block;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.site-alert p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.site-alert small {
  display: block;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

.site-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
  animation: alertModalFade 220ms ease both;
}

.site-alert-modal[hidden] {
  display: none;
}

.site-alert-modal-card {
  position: relative;
  width: min(860px, 100%);
  max-height: min(86svh, 760px);
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.16), transparent 44%),
    rgba(9, 8, 7, 0.96);
  border: 1px solid rgba(255, 138, 0, 0.5);
  border-radius: 8px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.7),
    0 0 46px rgba(255, 92, 0, 0.22);
  animation: alertExpandIn 320ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

.site-alert-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 54px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 12px 12px -54px auto;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 138, 0, 0.46);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-alert-close:hover,
.site-alert-close:focus-visible {
  color: #1a0c00;
  background: var(--orange);
  outline: 0;
}

.site-alert-modal-banner {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.32);
  border-bottom: 1px solid rgba(255, 138, 0, 0.24);
}

.site-alert-modal-body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
}

.site-alert-modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--orange);
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 138, 0, 0.48);
  border-radius: 8px;
}

.site-alert-modal-icon .icon {
  width: 34px;
  height: 34px;
}

.site-alert-modal h2 {
  margin: 0;
  color: var(--white);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 1.25rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.site-alert-modal p:not(.section-kicker) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-line;
}

.site-alert-modal small {
  display: block;
  margin-top: 18px;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--orange);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(255, 105, 0, 0.58);
}

.brand-mark span {
  width: 17px;
  height: 17px;
  background: linear-gradient(135deg, #ffb13d, var(--orange-2));
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.75);
}

.brand-mark::before {
  top: -8px;
  right: 3px;
}

.brand-mark::after {
  right: -8px;
  top: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 138, 0, 0.1);
  border-color: rgba(255, 138, 0, 0.36);
  outline: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 138, 0, 0.38);
  background: rgba(255, 138, 0, 0.08);
  color: var(--orange);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.8);
}

.hero {
  position: relative;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --parallax-logo-x: 0px;
  --parallax-logo-y: 0px;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 126px 20px 62px;
  border-bottom: 1px solid rgba(255, 138, 0, 0.2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.76)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 138, 0, 0.12) 0 2px, transparent 2px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, #030303 0%, #14100d 46%, #050505 100%);
  background-size: auto, auto, 96px 96px, 48px 48px, auto;
  filter: saturate(1.12) contrast(1.05);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate, blockFieldMove 26s linear infinite;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 30%, rgba(255, 96, 0, 0.06) 58%, rgba(7, 7, 7, 0.9) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 100, 0, 0.1) 42%, transparent 82%),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(255, 138, 0, 0.08) 118px 119px, transparent 119px 238px);
  opacity: 0.82;
  pointer-events: none;
  animation: heroOverlayDrift 20s ease-in-out infinite alternate;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--white);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.72rem;
  line-height: 1.9;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000, 0 0 16px rgba(255, 255, 255, 0.25);
}

.section-kicker {
  color: var(--orange);
}

.hero-title {
  margin: 0;
  color: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 5px 0 #8d2c00,
    0 10px 0 rgba(0, 0, 0, 0.7),
    0 0 34px rgba(255, 104, 0, 0.82);
  animation: titleGlow 3.4s ease-in-out infinite;
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 95, 0, 0.86);
}

.server-dock {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(100%, 820px);
  min-height: 74px;
  padding: 12px 14px 12px 18px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.14), transparent 24%),
    rgba(15, 13, 12, 0.88);
  border: 1px solid rgba(255, 138, 0, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 54px rgba(0, 0, 0, 0.54),
    0 0 34px rgba(255, 91, 0, 0.16);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  animation: dockPulse 4.8s ease-in-out infinite;
}

.server-dock::before,
.server-dock::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.server-dock::before {
  left: -132px;
}

.server-dock::after {
  right: -132px;
  transform: rotate(180deg);
}

.dock-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-light {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(88, 211, 107, 0.85);
  animation: statusPulse 1.6s ease-in-out infinite;
}

.status-light.status-checking {
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.85);
}

.status-light.status-offline {
  background: #ff4d38;
  box-shadow: 0 0 14px rgba(255, 77, 56, 0.75);
}

.server-ip {
  min-width: 0;
  overflow: hidden;
  color: var(--white);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 138, 0, 0.5);
  background: rgba(255, 138, 0, 0.1);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.copy-button:hover,
.copy-button:focus-visible,
.copy-button.is-copied,
.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(255, 138, 0, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 105, 0, 0.24);
  outline: 0;
}

.copy-feedback {
  position: absolute;
  left: 18px;
  bottom: -26px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-primary {
  color: #1a0c00;
  background: linear-gradient(180deg, #ffb13c, var(--orange));
  border-color: #ffb13c;
  text-shadow: none;
  box-shadow: 0 12px 34px rgba(255, 94, 0, 0.22);
  animation: primaryButtonGlow 3.2s ease-in-out infinite;
}

.action-primary:hover,
.action-primary:focus-visible {
  background: linear-gradient(180deg, #ffc15e, #ff7900);
}

.icon,
.button-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  position: relative;
}

.icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.4));
}

.block-icon {
  background: var(--orange);
  box-shadow:
    inset 4px 4px 0 rgba(0, 0, 0, 0.24),
    0 0 0 2px rgba(0, 0, 0, 0.18);
}

.sword-icon::before,
.sword-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.sword-icon::before {
  width: 4px;
  height: 20px;
  left: 7px;
  top: -2px;
  transform: rotate(45deg);
}

.sword-icon::after {
  width: 18px;
  height: 4px;
  left: 0;
  top: 11px;
  transform: rotate(45deg);
}

.chat-icon {
  border: 3px solid currentColor;
}

.chat-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: -7px;
  width: 7px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.chest-icon {
  background: currentColor;
  box-shadow: inset 0 7px 0 rgba(0, 0, 0, 0.28), inset 8px 0 0 rgba(0, 0, 0, 0.14);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  width: min(100%, 520px);
  margin: 4px 0 0;
}

.hero-metrics div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--white);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.76rem;
  line-height: 1.6;
}

.hud-corner {
  position: absolute;
  z-index: 1;
  width: min(380px, 42%);
  height: 156px;
  pointer-events: none;
}

.hud-corner::before,
.hud-corner::after {
  content: "";
  position: absolute;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 103, 0, 0.7);
  animation: hudPulse 2.8s ease-in-out infinite;
}

.hud-corner-top {
  top: 0;
  left: 0;
}

.hud-corner-top::before {
  top: 38px;
  left: 0;
  width: 168px;
  height: 3px;
  transform: skewX(-45deg);
  transform-origin: left;
}

.hud-corner-top::after {
  top: 0;
  left: 160px;
  width: 3px;
  height: 142px;
  transform: rotate(45deg);
  transform-origin: top;
}

.hud-corner-bottom {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.hud-corner-bottom::before {
  top: 38px;
  left: 0;
  width: 168px;
  height: 3px;
  transform: skewX(-45deg);
  transform-origin: left;
}

.hud-corner-bottom::after {
  top: 0;
  left: 160px;
  width: 3px;
  height: 142px;
  transform: rotate(45deg);
  transform-origin: top;
}

.pixel-cluster {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0.52;
  box-shadow:
    18px 0 rgba(255, 255, 255, 0.2),
    36px 0 rgba(255, 255, 255, 0.14),
    54px 0 rgba(255, 255, 255, 0.2),
    0 18px rgba(255, 255, 255, 0.12),
    18px 18px rgba(255, 255, 255, 0.2),
    36px 18px rgba(255, 255, 255, 0.14);
  animation: pixelBlink 3.6s steps(2, end) infinite;
}

.pixel-cluster-left {
  top: 92px;
  left: 22px;
}

.pixel-cluster-right {
  right: 70px;
  bottom: 58px;
}

.mode-ribbon {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100% - 32px, var(--max));
  margin: -32px auto 0;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 138, 0, 0.34);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
}

.mode-ribbon a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 160ms ease, background 160ms ease;
}

.mode-ribbon a:last-child {
  border-right: 0;
}

.mode-ribbon a:hover,
.mode-ribbon a:focus-visible {
  color: var(--white);
  background: rgba(255, 138, 0, 0.12);
  outline: 0;
}

.mode-ribbon span {
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.76);
  animation: statusPulse 2s ease-in-out infinite;
}

.section {
  position: relative;
  padding: 88px 20px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 138, 0, 0.07), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading h2,
.join-copy h2,
.community-panel h2 {
  margin: 0;
  color: var(--white);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 1.45rem;
  line-height: 1.55;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 138, 0, 0.2);
}

.section-heading p,
.join-copy p,
.community-panel p {
  margin: 14px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-weight: 600;
}

.mode-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mode-card,
.rule-item {
  position: relative;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 138, 0, 0.12), transparent 42%),
    var(--panel-solid);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.04);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.mode-card::before,
.rule-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.mode-card::after,
.rule-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 138, 0, 0.18), transparent 56%);
  transform: translateX(-65%);
  transition: opacity 180ms ease;
}

.mode-card:hover,
.rule-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 138, 0, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 138, 0, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(255, 92, 0, 0.12);
}

.mode-card:hover::after,
.rule-item:hover::after {
  opacity: 1;
  animation: cardSweep 780ms ease forwards;
}

.mode-card h3,
.rule-item h3 {
  margin: 20px 0 10px;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.mode-card p,
.rule-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--orange);
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 138, 0, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 24px rgba(255, 138, 0, 0.2);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.mode-icon .icon {
  width: 28px;
  height: 28px;
}

.mode-card:hover .mode-icon,
.rule-item:hover .rule-number {
  animation: iconPop 460ms ease;
}

.section-store {
  background:
    linear-gradient(90deg, rgba(6, 8, 9, 0.92), rgba(17, 10, 6, 0.95)),
    var(--bg-2);
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 34px;
  align-items: center;
}

.store-board {
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 138, 0, 0.32);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.44);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 10px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.store-row span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.store-row .icon {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.store-row strong {
  color: var(--orange);
  text-transform: uppercase;
}

.store-board .action-button {
  width: 100%;
  margin-top: 18px;
}

.store-disabled {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.12), transparent 46%),
    rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(255, 138, 0, 0.46);
  border-radius: 8px;
}

.store-disabled .icon {
  width: 38px;
  height: 38px;
  color: var(--orange);
}

.store-disabled strong {
  color: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.store-disabled p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rule-item {
  min-height: 190px;
}

.rule-item > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.38);
  color: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.72rem;
  box-shadow: 0 0 18px rgba(255, 138, 0, 0.12);
}

.section-join {
  background:
    linear-gradient(rgba(3, 3, 3, 0.9), rgba(3, 3, 3, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 138, 0, 0.12) 0 2px, transparent 2px 74px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, #060606, #15100d 54%, #050505);
  background-size: auto, 74px 74px, 42px 42px, auto;
  animation: sectionBlocks 32s linear infinite;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  align-items: stretch;
}

.join-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.join-server-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.14), transparent 42%),
    rgba(15, 13, 12, 0.93);
  border: 1px solid rgba(255, 138, 0, 0.36);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

.join-status-head {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.join-status-head strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.join-status-head span:not(.status-light) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.join-ip-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.copy-field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.copy-field .copy-button {
  width: 100%;
}

.join-ip-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.join-ip-panel code {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.7rem;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.join-ip-panel .copy-feedback {
  position: static;
  grid-column: 1 / -1;
  min-height: 18px;
}

.server-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.server-live-grid div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.server-live-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.server-live-grid dd {
  margin: 4px 0 0;
  color: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.68rem;
  line-height: 1.6;
}

.add-server-button {
  width: 100%;
}

.join-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: join;
}

.join-steps li {
  counter-increment: join;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: rgba(15, 13, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-height: 88px;
  align-content: center;
  align-items: start;
}

.join-steps li::before {
  content: counter(join, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #1a0c00;
  background: var(--orange);
  font-family: "Press Start 2P", "Lucida Console", monospace;
  font-size: 0.72rem;
  box-shadow: 0 0 20px rgba(255, 138, 0, 0.34);
}

.join-steps strong {
  display: block;
  grid-column: 2;
  min-width: 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: normal;
}

.join-steps span {
  grid-column: 2;
  min-width: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.section-community {
  padding-bottom: 72px;
}

.community-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.16), transparent 40%),
    rgba(13, 13, 15, 0.96);
  border: 1px solid rgba(255, 138, 0, 0.32);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 34px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ember {
  position: absolute;
  left: var(--ember-x);
  bottom: -24px;
  width: var(--ember-size);
  height: var(--ember-size);
  background: var(--orange-2);
  box-shadow:
    0 0 8px rgba(255, 95, 0, 0.9),
    0 0 22px rgba(255, 138, 0, 0.45);
  opacity: 0;
  animation: emberRise var(--ember-duration) linear infinite;
  animation-delay: var(--ember-delay);
}

@keyframes heroDrift {
  0% {
    filter: saturate(1.06) contrast(1.04);
  }
  100% {
    filter: saturate(1.2) contrast(1.08);
  }
}

@keyframes gridDrift {
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

@keyframes blockFieldMove {
  to {
    background-position: 0 0, 0 0, 96px 96px, -48px 48px, 0 0;
  }
}

@keyframes heroOverlayDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 56px 0, 0 238px;
  }
}

@keyframes sectionBlocks {
  to {
    background-position: 0 0, 74px 74px, -42px 42px, 0 0;
  }
}

@keyframes alertDropIn {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes alertModalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes alertExpandIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes alertGlow {
  0%,
  100% {
    border-color: rgba(255, 138, 0, 0.36);
  }
  50% {
    border-color: rgba(255, 138, 0, 0.62);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow:
      0 5px 0 #8d2c00,
      0 10px 0 rgba(0, 0, 0, 0.7),
      0 0 28px rgba(255, 104, 0, 0.72);
  }
  50% {
    text-shadow:
      0 5px 0 #8d2c00,
      0 10px 0 rgba(0, 0, 0, 0.7),
      0 0 48px rgba(255, 104, 0, 0.96);
  }
}

@keyframes dockPulse {
  0%,
  100% {
    border-color: rgba(255, 138, 0, 0.3);
  }
  50% {
    border-color: rgba(255, 138, 0, 0.58);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes primaryButtonGlow {
  0%,
  100% {
    box-shadow: 0 12px 34px rgba(255, 94, 0, 0.2);
  }
  50% {
    box-shadow: 0 16px 42px rgba(255, 94, 0, 0.36);
  }
}

@keyframes hudPulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pixelBlink {
  0%,
  65% {
    opacity: 0.52;
  }
  66%,
  100% {
    opacity: 0.18;
  }
}

@keyframes cardSweep {
  to {
    transform: translateX(70%);
  }
}

@keyframes iconPop {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14) rotate(-3deg);
  }
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }
  12% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--ember-drift), -94vh, 0) scale(1.15);
  }
}

@media (min-width: 760px) {
  .hero-title {
    font-size: 5.2rem;
  }
}

@media (min-width: 1080px) {
  .hero-title {
    font-size: 7rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 22px, var(--max));
    margin-top: 10px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px;
    background: rgba(7, 7, 7, 0.96);
    border: 1px solid rgba(255, 138, 0, 0.26);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.55);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
  }

  .server-dock {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copy-button {
    width: 100%;
  }

  .join-ip-panel,
  .copy-field,
  .server-live-grid {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-layout,
  .join-layout,
  .community-panel {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 90svh;
    padding: 112px 14px 56px;
  }

  .hero-title {
    font-size: 2.65rem;
    text-shadow:
      0 4px 0 #8d2c00,
      0 8px 0 rgba(0, 0, 0, 0.72),
      0 0 26px rgba(255, 104, 0, 0.72);
  }

  .eyebrow,
  .section-kicker,
  .hero-tagline {
    font-size: 0.62rem;
  }

  .hero-metrics,
  .mode-ribbon,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-ribbon {
    margin-top: 0;
    width: 100%;
    clip-path: none;
  }

  .mode-ribbon a {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .section {
    padding: 64px 16px;
  }

  .section-heading h2,
  .join-copy h2,
  .community-panel h2 {
    font-size: 1.08rem;
  }

  .mode-card,
  .rule-item {
    min-height: auto;
  }

  .join-steps li {
    grid-template-columns: 1fr;
  }

  .join-steps strong,
  .join-steps span {
    grid-column: 1;
  }

  .site-footer {
    display: grid;
  }

  .site-alert {
    top: auto;
    right: 14px;
    bottom: 12px;
    left: 14px;
    width: auto;
    max-height: min(38svh, 230px);
    overflow: auto;
    animation: alertMobileIn 420ms cubic-bezier(0.18, 0.9, 0.22, 1) both, alertGlow 3.6s ease-in-out infinite;
  }

  .site-alert-banner {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .site-alert-body {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .site-alert-icon {
    width: 34px;
    height: 34px;
  }

  .site-alert-icon .icon {
    width: 18px;
    height: 18px;
  }

  .site-alert strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .site-alert p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .site-alert small {
    overflow: hidden;
    margin-top: 5px;
    font-size: 0.66rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-alert-modal {
    align-items: end;
    padding: 12px;
  }

  .site-alert-modal-card {
    width: 100%;
    max-height: 88svh;
  }

  .site-alert-close {
    width: 38px;
    height: 38px;
    margin: 10px 10px -48px auto;
  }

  .site-alert-modal-body {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 14px 16px;
  }

  .site-alert-modal-icon {
    width: 42px;
    height: 42px;
  }

  .site-alert-modal-icon .icon {
    width: 22px;
    height: 22px;
  }

  .site-alert-modal h2 {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .site-alert-modal p:not(.section-kicker) {
    font-size: 0.98rem;
    line-height: 1.45;
  }
}

@keyframes alertMobileIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
