:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #111;
  --yellow: #ffc400;
  --yellow-hot: #ff9f00;
  --white: #f8f5ea;
  --muted: #adadad;
  --line: rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, sans-serif;
  color: var(--white);
  background: var(--black);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(116deg, transparent 0 47%, rgba(255, 196, 0, 0.96) 47% 57%, transparent 57%),
    repeating-linear-gradient(90deg, #080808 0 22px, #0e0e0e 22px 44px);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 2px, transparent 2px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 178px;
  height: 64px;
  padding: 5px;
  border: 3px solid #000;
  border-radius: 6px;
  background: var(--yellow);
  box-shadow: 7px 7px 0 #000;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 10px;
  padding: 7px;
  border: 3px solid #000;
  border-radius: 6px;
  background: rgba(255, 196, 0, 0.97);
  box-shadow: 7px 7px 0 #000;
}

.nav a {
  padding: 9px 13px;
  border-radius: 4px;
  color: #090909;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
  background: #090909;
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto auto;
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 22px;
  align-items: stretch;
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.hero-logo::before,
.hero-logo::after {
  position: absolute;
  z-index: -1;
  content: "";
  background: #000;
}

.hero-logo::before {
  width: min(58vw, 670px);
  height: 26px;
  transform: rotate(-6deg) translateY(144px);
}

.hero-logo::after {
  width: min(50vw, 560px);
  height: 26px;
  transform: rotate(7deg) translateY(-148px);
}

.hero-logo img {
  width: min(760px, 100%);
  max-height: 430px;
  border: 3px solid #000;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 196, 0, 0.1);
  box-shadow: 14px 14px 0 #000, 0 0 70px rgba(255, 196, 0, 0.34);
}

.server-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 470px;
  padding: 30px;
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 6px;
  background:
    linear-gradient(140deg, rgba(255, 196, 0, 0.18), transparent 44%),
    rgba(17, 17, 17, 0.96);
  box-shadow: 10px 10px 0 #000;
}

.server-card__state {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-card strong {
  z-index: 1;
  display: block;
  margin: 34px 0 8px;
  color: var(--yellow);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(76px, 8vw, 118px);
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 #000;
}

.server-card small {
  z-index: 1;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.join-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 22px;
}

.ip-card,
.shop-card,
.rules-card,
.shop {
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 9px 9px 0 #000;
}

.ip-card,
.shop-card {
  color: #060606;
  background: var(--yellow);
}

.rules-card {
  color: var(--white);
  background: rgba(17, 17, 17, 0.94);
}

.ip-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shop-card,
.rules-card {
  display: grid;
  align-content: center;
  min-height: 96px;
  padding: 18px;
}

.ip-card span,
.shop-card span,
.rules-card span,
.shop span,
.legal-hero span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ip-card strong,
.shop-card strong,
.rules-card strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ip-card small,
.shop-card small,
.rules-card small {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal {
  width: 12px;
  height: 12px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #777;
}

.signal.is-online {
  background: #3cff7b;
  box-shadow: 0 0 0 6px rgba(60, 255, 123, 0.16);
}

.signal.is-offline {
  background: #ff4040;
  box-shadow: 0 0 0 6px rgba(255, 64, 64, 0.16);
}

.motto {
  width: fit-content;
  max-width: 100%;
  margin: 34px auto 0;
  padding: 12px 18px;
  border: 3px solid #000;
  border-radius: 6px;
  color: #090909;
  background: var(--white);
  box-shadow: 7px 7px 0 #000;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.quick,
.shop,
footer,
.legal-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 42px 0 26px;
}

.quick article {
  min-height: 215px;
  padding: 22px;
  border: 3px solid #000;
  border-radius: 6px;
  background: rgba(248, 245, 234, 0.96);
  box-shadow: 9px 9px 0 #000;
  color: #090909;
}

.quick article:nth-child(2) {
  transform: translateY(22px);
  background: var(--yellow);
}

.quick span {
  display: block;
  margin-bottom: 36px;
  font-weight: 900;
}

.quick h2,
.shop h2,
.legal-hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick p {
  max-width: 290px;
  margin: 14px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.shop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 58px;
  margin-bottom: 38px;
  padding: 24px;
  color: #090909;
  background: var(--yellow);
}

.shop a,
.legal-hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  border: 2px solid #000;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 6px 6px 0 #000;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-page {
  padding: 42px 0 30px;
}

.legal-hero {
  padding: 28px;
  border: 3px solid #000;
  border-radius: 6px;
  color: #080808;
  background: var(--yellow);
  box-shadow: 10px 10px 0 #000;
}

.legal-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  font-weight: 900;
  line-height: 1.45;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.legal-grid article {
  padding: 22px;
  border: 3px solid #000;
  border-radius: 6px;
  background: rgba(248, 245, 234, 0.96);
  box-shadow: 8px 8px 0 #000;
  color: #090909;
}

.legal-grid article:nth-child(3n + 2) {
  background: rgba(17, 17, 17, 0.95);
  color: var(--white);
}

.legal-grid h2 {
  margin: 0 0 14px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
}

.legal-grid p {
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.58;
}

.legal-grid p:last-child {
  margin-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

footer a:hover {
  color: var(--yellow);
}

@media (max-width: 980px) {
  .hero-board {
    grid-template-columns: 1fr;
  }

  .hero-logo,
  .server-card {
    min-height: 340px;
  }

}

@media (max-width: 860px) {
  .join-strip,
  .quick,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .quick article:nth-child(2) {
    transform: none;
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .mark {
    width: 112px;
    height: 58px;
  }

  .nav {
    max-width: calc(100vw - 142px);
    overflow-x: auto;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-logo {
    min-height: 250px;
  }

  .hero-logo img {
    box-shadow: 9px 9px 0 #000, 0 0 42px rgba(255, 196, 0, 0.3);
  }

  .server-card {
    min-height: 280px;
    padding: 22px;
  }

  .server-card strong {
    font-size: 78px;
  }

  .ip-card {
    grid-template-columns: 1fr;
  }

  .motto {
    font-size: 28px;
  }

  footer {
    flex-direction: column;
  }
}
