:root {
  color-scheme: dark;
  --black: #020403;
  --ink: #07100c;
  --panel: #0c1711;
  --panel-strong: #122118;
  --green: #63ff00;
  --green-deep: #22c20d;
  --mint: #baff91;
  --white: #f8fff4;
  --muted: #b7c7b0;
  --cyan: #39e6ff;
  --yellow: #f6ff5f;
  --pink: #ff4fd8;
  --line: rgba(99, 255, 0, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 255, 0, 0.12), transparent 26rem),
    radial-gradient(circle at 86% 26%, rgba(57, 230, 255, 0.1), transparent 24rem),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  z-index: -2;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(99, 255, 0, 0.16);
  background: rgba(2, 4, 3, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(99, 255, 0, 0.5));
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.nav a {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(99, 255, 0, 0.14);
  color: var(--white);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2rem 0 1.5rem;
  background:
    linear-gradient(135deg, rgba(2, 4, 3, 0.72), rgba(2, 4, 3, 0.96)),
    radial-gradient(circle at 50% 15%, rgba(99, 255, 0, 0.24), transparent 22rem);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 94%, rgba(99, 255, 0, 0.16) 94% 100%),
    linear-gradient(transparent 0 94%, rgba(99, 255, 0, 0.16) 94% 100%);
  background-size: 64px 64px;
  transform: perspective(540px) rotateX(62deg) translateY(6rem) scale(1.7);
  transform-origin: bottom center;
  opacity: 0.38;
  z-index: -1;
}

.hero__blocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero__blocks span {
  position: absolute;
  width: 54px;
  aspect-ratio: 1;
  border: 2px solid rgba(99, 255, 0, 0.45);
  background:
    linear-gradient(135deg, rgba(99, 255, 0, 0.22), rgba(57, 230, 255, 0.06)),
    rgba(2, 4, 3, 0.8);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.25), 0 0 24px rgba(99, 255, 0, 0.16);
  transform: rotate(12deg);
}

.hero__blocks span:nth-child(1) {
  left: 9%;
  top: 20%;
}

.hero__blocks span:nth-child(2) {
  right: 13%;
  top: 17%;
  border-color: rgba(57, 230, 255, 0.45);
}

.hero__blocks span:nth-child(3) {
  left: 18%;
  bottom: 14%;
  border-color: rgba(246, 255, 95, 0.42);
}

.hero__blocks span:nth-child(4) {
  right: 19%;
  bottom: 11%;
  border-color: rgba(255, 79, 216, 0.42);
}

.hero__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__logo {
  width: min(174px, 54vw);
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 0 28px rgba(99, 255, 0, 0.52));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: 3.8rem;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: normal;
  text-shadow: 0 0 28px rgba(99, 255, 0, 0.34);
}

h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

p {
  line-height: 1.7;
}

.hero__intro {
  max-width: 680px;
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.server-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  width: min(720px, 100%);
  margin-top: 1.25rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 12, 0.82);
  box-shadow: var(--shadow);
}

.server-strip__label {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(99, 255, 0, 0.14);
  color: var(--mint);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.server-strip strong {
  font-size: 1.35rem;
  color: var(--white);
}

.icon-button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button {
  padding: 0 0.9rem;
  background: var(--green);
  color: #061006;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.button {
  min-width: 142px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--green);
  color: #061006;
  box-shadow: 0 0 22px rgba(99, 255, 0, 0.28);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.button--full {
  width: 100%;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--line);
  background: rgba(99, 255, 0, 0.12);
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--dark {
  background: linear-gradient(180deg, var(--black), #07100c);
}

.section--lime {
  background:
    linear-gradient(135deg, rgba(99, 255, 0, 0.12), transparent 44%),
    #08130d;
}

.section--ink {
  background: #020403;
}

.section--ideas {
  background:
    linear-gradient(135deg, rgba(57, 230, 255, 0.1), transparent 40%),
    linear-gradient(315deg, rgba(99, 255, 0, 0.12), transparent 34%),
    #08110d;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.split p,
.section-heading p,
.ideas-layout p {
  color: var(--muted);
  max-width: 660px;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 0.8rem;
  min-height: 54px;
  padding: 0.7rem 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.steps li::before {
  content: counter(step);
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(99, 255, 0, 0.16);
  color: var(--green);
  font-weight: 900;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(99, 255, 0, 0.09), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.status-panel {
  display: grid;
  gap: 1.2rem;
  padding: 1.25rem;
}

.panel__topline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 800;
}

.signal {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 16px rgba(246, 255, 95, 0.8);
}

.status-panel[data-state="online"] .signal {
  background: var(--green);
  box-shadow: 0 0 16px rgba(99, 255, 0, 0.8);
}

.status-panel[data-state="offline"] .signal,
.status-panel[data-state="error"] .signal {
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.7);
}

.status-panel__address {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.stats div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  color: var(--white);
  font-size: 1.55rem;
  font-weight: 900;
}

.status-panel__motd {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center p {
  margin-inline: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.game-card,
.rule {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.game-card {
  min-height: 248px;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.2rem;
  overflow: hidden;
  position: relative;
}

.game-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 132px;
  aspect-ratio: 1;
  border: 18px solid currentColor;
  opacity: 0.16;
  transform: rotate(18deg);
}

.game-card--cyan {
  color: var(--cyan);
}

.game-card--yellow {
  color: var(--yellow);
}

.game-card--pink {
  color: var(--pink);
}

.game-card h3,
.game-card p {
  color: var(--white);
}

.game-card p,
.rule p {
  margin: 0;
  color: var(--muted);
}

.game-card__icon {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  color: currentColor;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 950;
}

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

.rule {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.1rem;
}

.rule span {
  color: var(--green);
  font-weight: 950;
}

.ideas-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.idea-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.idea-list li {
  min-height: 58px;
  display: grid;
  align-items: center;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  position: relative;
}

.idea-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(99, 255, 0, 0.55);
}

.footer {
  padding: 1.3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--black);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.footer__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 50;
  min-width: min(320px, calc(100% - 32px));
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 16, 12, 0.96);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .nav a {
    flex: 1;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .split,
  .ideas-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding: 2.25rem 0 2.4rem;
  }

  .hero__blocks span {
    width: 38px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav a {
    min-width: 84px;
    padding: 0 0.65rem;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero__intro {
    font-size: 1rem;
  }

  .server-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .server-strip strong {
    font-size: 1.1rem;
  }

  .icon-button,
  .button {
    width: 100%;
  }

  .section {
    padding: 3.2rem 0;
  }

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

  .status-panel__address {
    font-size: 1.15rem;
  }
}
