:root {
  --sky: #72d9f4;
  --sky-light: #d8f7ff;
  --water: #08a8d4;
  --cyan: #12cbe7;
  --blue: #1768d8;
  --ink: #07384c;
  --ink-dark: #032633;
  --paper: #fff9e8;
  --cloud: #fff;
  --grass: #67c94a;
  --leaf: #258d55;
  --dirt: #8b5838;
  --orange: #ff782e;
  --gold: #ffc84c;
  --red: #ec4f37;
  --outline: 3px solid var(--ink);
  --shadow: 0 7px 0 var(--ink);
  --display: "Bungee", Impact, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
  --page: min(1180px, calc(100% - 40px));
  --header: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  background: var(--ink-dark);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1000;
  content: "";
  pointer-events: none;
  opacity: 0.075;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, var(--ink) 3px 4px);
  mix-blend-mode: multiply;
}

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: var(--paper);
  background: var(--blue);
}

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(235px, 1fr) auto minmax(235px, 1fr);
  align-items: center;
  height: var(--header);
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: var(--ink);
  border-bottom: var(--outline);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand b {
  color: var(--blue);
}

.brand-infinity {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  border: 3px solid var(--ink);
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--body);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav a {
  display: grid;
  height: 100%;
  padding: 0 18px;
  place-items: center;
  border-left: 2px solid rgba(7, 56, 76, 0.12);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:last-child {
  border-right: 2px solid rgba(7, 56, 76, 0.12);
}

.site-nav a:hover {
  color: var(--blue);
  background: var(--sky-light);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-status i,
.status-cube,
.board-cube {
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  background: var(--grass);
  box-shadow: 2px 2px 0 var(--ink);
}

.topbar-status i.is-offline,
.status-cube.is-offline,
.board-cube.is-offline {
  background: var(--red);
}

.block-button,
.menu-button {
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  border: var(--outline);
  background: var(--cyan);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 11px;
}

.block-button:hover,
.menu-button:hover {
  background: var(--gold);
}

.block-button:active,
.menu-button:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.block-button.is-copied {
  background: var(--grass);
}

.menu-button {
  display: none;
}

.world-hero {
  position: relative;
  display: flex;
  min-height: max(640px, calc(100svh - var(--header)));
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 44px 20px 120px;
  color: var(--paper);
  border-bottom: var(--outline);
  background:
    linear-gradient(to bottom, rgba(216, 247, 255, 0.04) 0 55%, rgba(7, 56, 76, 0.2)),
    linear-gradient(var(--sky-light), var(--sky));
}

.world-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(216, 247, 255, 0.04) 0 46%, rgba(7, 56, 76, 0.22) 100%),
    url("assets/endless-world-v2.png") center 58% / cover no-repeat;
}

.world-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, rgba(3, 38, 51, 0.04) 0 34%, rgba(3, 38, 51, 0.38) 90%),
    linear-gradient(to bottom, transparent 55%, rgba(3, 38, 51, 0.14));
}

.pixel-cloud {
  position: absolute;
  z-index: 1;
  width: 110px;
  height: 26px;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    28px -18px 0 rgba(255, 255, 255, 0.86),
    68px -8px 0 rgba(255, 255, 255, 0.86),
    96px 4px 0 rgba(255, 255, 255, 0.86);
  animation: cloud-drift 28s ease-in-out infinite alternate;
}

.pixel-cloud--one {
  top: 13%;
  left: 5%;
}

.pixel-cloud--two {
  top: 22%;
  right: 7%;
  transform: scale(0.72);
  animation-delay: -12s;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(760px, 100%);
  align-items: center;
  flex-direction: column;
  text-align: center;
  text-shadow: 0 3px 0 rgba(3, 38, 51, 0.8);
}

.hero-kicker,
.section-tag {
  margin: 0 0 15px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.hero-kicker span {
  color: var(--blue);
}

.hero-kicker {
  margin-bottom: 22px;
  padding: 7px 11px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--ink);
  text-shadow: none;
}

.world-hero h1,
.section-intro h2,
.rank-hero h1,
.rank-join h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
}

.world-hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 5px 0 var(--ink);
}

.world-hero h1 span {
  color: var(--gold);
}

.hero-copy {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.5;
}

.join-controls {
  display: flex;
  width: min(680px, 100%);
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  text-shadow: none;
}

.server-sign {
  display: grid;
  flex: 1 1 430px;
  min-height: 86px;
  padding: 12px 18px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  border: var(--outline);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.server-sign:hover {
  background: var(--sky-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 0 var(--ink);
}

.server-sign:active,
.server-sign.is-copied {
  background: var(--grass);
  box-shadow: 0 2px 0 var(--ink);
  transform: translateY(5px);
}

.server-sign-label,
.server-sign-copy {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.server-sign strong {
  font-family: var(--mono);
  font-size: clamp(17px, 2.3vw, 23px);
  overflow-wrap: anywhere;
}

.server-sign-copy {
  justify-self: end;
  color: var(--blue);
}

.discord-button {
  display: flex;
  min-width: 180px;
  min-height: 86px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--paper);
  border: var(--outline);
  background: var(--blue);
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-size: 12px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.discord-button:hover {
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 10px 0 var(--ink);
}

.discord-button:active {
  box-shadow: 0 2px 0 var(--ink);
  transform: translateY(5px);
}

.discord-button--gold {
  color: var(--ink);
  background: var(--gold);
}

.hero-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 11px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: rgba(255, 249, 232, 0.88);
  box-shadow: 3px 3px 0 var(--ink);
  text-shadow: none;
}

.hero-live > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-live b {
  font-size: 13px;
}

.hero-live small {
  font-family: var(--mono);
  font-size: 9px;
}

.world-tabs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: var(--page);
  margin: 0 auto;
}

.world-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 92px;
  padding: 16px 22px;
  align-items: center;
  gap: 16px;
  color: var(--paper);
  border: var(--outline);
  border-bottom: 0;
  box-shadow: 0 -6px 0 rgba(3, 38, 51, 0.35);
  transition: transform 150ms ease, min-height 150ms ease;
}

.world-tab:first-child {
  border-right: 0;
}

.world-tab:hover {
  min-height: 102px;
  transform: translateY(-10px);
}

.world-tab--survival {
  background: var(--leaf);
}

.world-tab--pvp {
  background: var(--orange);
}

.world-tab-number {
  font-family: var(--display);
  font-size: 30px;
}

.world-tab span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.world-tab b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
}

.world-tab small {
  font-size: 14px;
}

.world-tab i {
  font-family: var(--display);
  font-size: 24px;
  font-style: normal;
}

.worlds-section,
.why-section,
.ranks-section,
.perk-section {
  padding: 110px 20px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  width: var(--page);
  align-items: end;
  gap: 36px;
  margin: 0 auto 50px;
}

.section-tag {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue);
}

.section-intro h2 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 74px);
}

.section-intro > p:last-child {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.55;
}

.section-intro--center {
  display: flex;
  max-width: 850px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.section-intro--light {
  color: var(--paper);
}

.section-intro--light .section-tag {
  color: var(--gold);
}

.worlds-section {
  background:
    linear-gradient(rgba(7, 56, 76, 0.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(7, 56, 76, 0.035) 2px, transparent 2px),
    var(--paper);
  background-size: 32px 32px;
}

.world-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: var(--page);
  min-height: 650px;
  margin: 0 auto;
  border: var(--outline);
  box-shadow: 10px 10px 0 var(--ink);
}

.world-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: flex-end;
  color: var(--paper);
}

.world-card:first-child {
  border-right: var(--outline);
}

.world-card-art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, transparent 24%, rgba(3, 38, 51, 0.9) 84%),
    url("assets/endless-world-v2.png");
  background-repeat: no-repeat;
  background-size: auto 100%, cover;
  transition: transform 550ms ease;
}

.world-card--survival .world-card-art {
  background-position: center, left center;
}

.world-card--pvp .world-card-art {
  background-position: center, right center;
}

.world-card:hover .world-card-art {
  transform: scale(1.035);
}

.world-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 46px;
}

.world-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 8px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.world-card--survival .world-label {
  background: var(--grass);
}

.world-card--pvp .world-label {
  background: var(--orange);
}

.world-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 4px 4px 0 var(--ink);
}

.world-card p {
  max-width: 500px;
  margin: 16px 0 0;
  line-height: 1.5;
}

.world-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.world-card li {
  padding: 8px 10px;
  border: 2px solid rgba(255, 249, 232, 0.65);
  background: rgba(3, 38, 51, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.world-copy {
  min-height: 48px;
  margin-top: 22px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink);
  border: var(--outline);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 11px;
}

.world-copy:hover,
.world-copy.is-copied {
  background: var(--gold);
}

.server-board {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(380px, 1.25fr) minmax(260px, 1fr);
  width: var(--page);
  margin: -2px auto 0;
  color: var(--ink);
  border: var(--outline);
  background: var(--cyan);
  box-shadow: 10px 10px 0 var(--ink);
}

.board-title {
  display: flex;
  padding: 25px;
  align-items: center;
  gap: 14px;
  border-right: var(--outline);
}

.board-title > div {
  display: flex;
  flex-direction: column;
}

.board-title small,
.server-board dt,
.board-address span,
.board-address b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.board-title strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
}

.server-board dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.server-board dl div {
  display: flex;
  padding: 20px;
  justify-content: center;
  flex-direction: column;
  border-right: 2px solid rgba(7, 56, 76, 0.25);
}

.server-board dt {
  margin-bottom: 6px;
}

.server-board dd {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
}

.board-address {
  display: grid;
  padding: 18px 22px;
  cursor: pointer;
  text-align: left;
  border: 0;
  background: var(--gold);
}

.board-address:hover,
.board-address.is-copied {
  background: var(--grass);
}

.board-address strong {
  font-family: var(--mono);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.board-address b {
  justify-self: end;
}

.why-section {
  padding-top: 140px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  margin: 0 auto;
  border: var(--outline);
  box-shadow: 8px 8px 0 var(--ink);
}

.why-grid article {
  min-height: 260px;
  padding: 30px;
  border-right: var(--outline);
  background: var(--cloud);
}

.why-grid article:nth-child(1) {
  border-top: 12px solid var(--grass);
}

.why-grid article:nth-child(2) {
  border-top: 12px solid var(--orange);
}

.why-grid article:nth-child(3) {
  border-top: 12px solid var(--cyan);
  border-right: 0;
}

.why-grid span {
  color: var(--blue);
  font-family: var(--display);
  font-size: 42px;
}

.why-grid h3 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
}

.why-grid p {
  margin: 0;
  line-height: 1.55;
}

.ranks-section {
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.24) 49% 51%, transparent 52%) 0 0 / 42px 42px,
    var(--sky-light);
  border-block: var(--outline);
}

.rank-passes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: var(--page);
  gap: 28px;
  margin: 0 auto;
}

.rank-pass {
  position: relative;
  padding: 30px;
  border: var(--outline);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.rank-pass::before,
.rank-pass::after {
  position: absolute;
  width: 22px;
  height: 22px;
  content: "";
  border: 3px solid var(--ink);
  background: var(--cyan);
}

.rank-pass::before {
  top: -11px;
  left: 28px;
}

.rank-pass::after {
  right: 28px;
  bottom: -11px;
}

.rank-pass--mvp::before,
.rank-pass--mvp::after {
  background: var(--orange);
}

.rank-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.rank-topline span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.rank-topline b {
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.8;
}

.rank-pass--mvp .rank-topline b {
  color: var(--orange);
}

.rank-price {
  display: flex;
  margin-top: 28px;
  align-items: end;
  gap: 12px;
}

.rank-price strong {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 400;
}

.rank-price span {
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.rank-pass > p {
  line-height: 1.5;
}

.rank-pass ul {
  margin: 26px 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.rank-pass li {
  padding: 10px 0;
  border-bottom: 2px solid rgba(7, 56, 76, 0.18);
  font-weight: 700;
}

.rank-pass li::before {
  margin-right: 10px;
  color: var(--grass);
  content: "■";
}

.rank-pass--mvp li::before {
  color: var(--orange);
}

.rank-pass > a {
  display: flex;
  min-height: 50px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  border: var(--outline);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 11px;
}

.rank-pass--mvp > a {
  color: var(--ink);
  background: var(--orange);
}

.rank-pass > a:hover {
  color: var(--ink);
  background: var(--gold);
}

.staff-section {
  position: relative;
  overflow: hidden;
  padding: 110px 20px 0;
  color: var(--paper);
  border-bottom: var(--outline);
  background:
    linear-gradient(to bottom, var(--sky) 0 47%, var(--leaf) 47% 52%, var(--grass) 52% 57%, var(--dirt) 57%);
}

.staff-section::after {
  position: absolute;
  inset: 57% 0 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 2px, transparent 2px);
  background-size: 44px 44px;
}

.staff-sky {
  position: absolute;
  top: 54px;
  left: 7%;
  width: 120px;
  height: 32px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 36px -18px 0 rgba(255, 255, 255, 0.65), 95px 8px 0 rgba(255, 255, 255, 0.65);
}

.staff-lineup {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: var(--page);
  margin: 20px auto 0;
}

.staff-player {
  min-width: 0;
  text-align: center;
  transition: transform 150ms ease;
}

.staff-player:hover {
  transform: translateY(-7px);
}

.staff-render {
  position: relative;
  display: grid;
  height: 330px;
  place-items: end center;
}

.staff-render::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 26px;
  content: "";
  border: var(--outline);
  background: var(--grass);
  box-shadow: 0 8px 0 var(--dirt), 0 11px 0 var(--ink);
}

.staff-render img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 300px;
  opacity: 0;
  filter: drop-shadow(6px 8px 0 rgba(3, 38, 51, 0.45));
  transition: opacity 180ms ease;
}

.staff-render.is-loaded img {
  opacity: 1;
}

.staff-render > span {
  position: absolute;
  top: 42%;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--display);
  font-size: 58px;
}

.staff-render.is-loaded > span {
  opacity: 0;
}

.staff-nametag {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-width: calc(100% - 16px);
  margin-top: 16px;
  padding: 10px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  border: var(--outline);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.staff-nametag strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
}

.staff-nametag small {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.final-join {
  position: relative;
  overflow: hidden;
  padding: 130px 20px;
  color: var(--paper);
  background:
    linear-gradient(to bottom, rgba(23, 104, 216, 0.58), rgba(3, 38, 51, 0.9)),
    url("assets/endless-world-v2.png") center 65% / cover;
}

.final-join::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 320px;
  height: 320px;
  content: "";
  border: 32px solid rgba(18, 203, 231, 0.22);
  transform: rotate(45deg);
}

.final-join-content {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
}

.final-join .section-tag {
  color: var(--gold);
}

.final-join h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(50px, 8vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  text-shadow: 5px 5px 0 var(--ink);
}

.final-join-content > p:not(.section-tag) {
  font-size: 19px;
}

.server-sign--dark {
  color: var(--paper);
  background: var(--ink-dark);
}

.server-sign--dark:hover {
  background: var(--blue);
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  padding: 50px max(20px, calc((100vw - 1180px) / 2));
  align-items: start;
  gap: 32px;
  color: var(--paper);
  background: var(--ink-dark);
}

.brand--footer b {
  color: var(--cyan);
}

.footer > p {
  max-width: 460px;
  margin: 8px 0 0;
  color: var(--sky-light);
}

.footer-links {
  display: flex;
  gap: 18px;
  padding-top: 8px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer > small {
  grid-column: 1 / -1;
  padding-top: 24px;
  color: var(--sky);
  border-top: 2px solid rgba(114, 217, 244, 0.2);
  font-family: var(--mono);
  font-size: 9px;
}

.footer--compact {
  grid-template-columns: 1fr auto;
}

.footer--compact > small {
  grid-column: auto;
  border: 0;
}

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  padding: 13px 18px;
  color: var(--ink);
  border: var(--outline);
  background: var(--grass);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  transform: translateY(140%);
  transition: transform 160ms ease;
}

.copy-toast.is-visible {
  transform: none;
}

.rank-page {
  background: var(--paper);
}

.rank-hero {
  position: relative;
  display: flex;
  min-height: 650px;
  overflow: hidden;
  align-items: center;
  color: var(--paper);
  border-bottom: var(--outline);
}

.rank-hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 38, 51, 0.96) 0 42%, rgba(3, 38, 51, 0.35) 80%),
    url("assets/endless-world-v2.png") center / cover;
}

.rank-hero--mvp .rank-hero-art {
  background:
    linear-gradient(90deg, rgba(65, 24, 5, 0.95) 0 42%, rgba(65, 24, 5, 0.22) 80%),
    url("assets/endless-world-v2.png") right center / cover;
}

.rank-hero-content {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
}

.rank-back {
  display: inline-block;
  margin-bottom: 55px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.rank-back:hover {
  color: var(--gold);
}

.rank-hero .section-tag {
  color: var(--cyan);
}

.rank-hero--mvp .section-tag {
  color: var(--gold);
}

.rank-hero h1 {
  font-size: clamp(100px, 17vw, 210px);
  text-shadow: 8px 8px 0 var(--ink);
}

.rank-hero--vip h1 {
  color: var(--cyan);
}

.rank-hero--mvp h1 {
  color: var(--orange);
}

.rank-hero-content > p:not(.section-tag) {
  max-width: 570px;
  margin: 22px 0;
  font-size: 19px;
  line-height: 1.5;
}

.rank-hero-price {
  display: flex;
  align-items: end;
  gap: 14px;
}

.rank-hero-price strong {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 400;
}

.rank-hero-price span {
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.perk-section .section-intro {
  margin-bottom: 44px;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  margin: 0 auto;
  border-top: var(--outline);
  border-left: var(--outline);
  box-shadow: 8px 8px 0 var(--ink);
}

.perk-grid article {
  display: flex;
  min-height: 120px;
  padding: 24px;
  justify-content: space-between;
  flex-direction: column;
  border-right: var(--outline);
  border-bottom: var(--outline);
  background: var(--cloud);
}

.perk-grid code {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.perk-grid--mvp code {
  color: var(--orange);
}

.perk-grid .perk-feature {
  grid-column: 1 / -1;
  background: var(--sky-light);
}

.perk-grid:not(.perk-grid--mvp) article:last-child {
  grid-column: span 2;
}

.rank-join {
  padding: 110px 20px;
  border-top: var(--outline);
  background: var(--sky);
}

.rank-join--mvp {
  background: #ffd19b;
}

.rank-join > div {
  width: var(--page);
  margin: 0 auto;
}

.rank-join h2 {
  font-size: clamp(64px, 10vw, 120px);
}

.rank-join .discord-button {
  display: inline-flex;
  margin-top: 24px;
}

.store-page {
  background: var(--paper);
}

.store-hero {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100svh - var(--header)));
  overflow: hidden;
  align-items: center;
  color: var(--paper);
  border-bottom: var(--outline);
  background: var(--ink-dark);
}

.store-hero-art {
  position: absolute;
  inset: 0;
  opacity: 0.78;
  background:
    linear-gradient(90deg, rgba(3, 38, 51, 0.96) 0 38%, rgba(3, 38, 51, 0.3) 80%),
    url("assets/endless-world-v2.png") center / cover;
}

.store-hero-content {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
}

.store-hero .section-tag {
  color: var(--gold);
}

.store-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 11vw, 132px);
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 7px 7px 0 var(--ink);
}

.store-hero h1 span {
  color: var(--cyan);
}

.store-hero-content > p:not(.section-tag) {
  max-width: 550px;
  margin: 26px 0 34px;
  font-size: 19px;
  line-height: 1.5;
}

.store-hero .server-sign {
  max-width: 350px;
}

.store-passes {
  padding: 118px 20px;
  background:
    linear-gradient(rgba(7, 56, 76, 0.035) 2px, transparent 2px),
    linear-gradient(90deg, rgba(7, 56, 76, 0.035) 2px, transparent 2px),
    var(--sky-light);
  background-size: 32px 32px;
}

.store-passes .section-intro {
  margin-bottom: 54px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: var(--page);
  margin: 0 auto;
  gap: 28px;
}

.store-card {
  display: flex;
  min-height: 530px;
  padding: 34px;
  flex-direction: column;
  color: var(--ink);
  border: var(--outline);
  background: var(--cloud);
  box-shadow: 8px 8px 0 var(--ink);
}

.store-card--mvp {
  background: #ffe3b8;
}

.store-card-label,
.store-price span {
  margin: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.store-card--mvp .store-card-label,
.store-card--mvp .store-price span {
  color: #a44312;
}

.store-card h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(68px, 9vw, 104px);
  font-weight: 400;
  line-height: 0.85;
}

.store-card--mvp h2 {
  color: var(--orange);
}

.store-price {
  display: flex;
  margin: 24px 0 20px;
  align-items: end;
  gap: 12px;
}

.store-price strong {
  font-family: var(--display);
  font-size: 50px;
  font-weight: 400;
  line-height: 0.9;
}

.store-card > p:not(.store-card-label) {
  max-width: 460px;
  margin: 0;
  line-height: 1.5;
}

.store-card ul {
  margin: 28px 0 auto;
  padding: 0;
  list-style: none;
}

.store-card li {
  padding: 9px 0;
  border-bottom: 2px solid rgba(7, 56, 76, 0.16);
  font-weight: 700;
}

.store-card li::before {
  margin-right: 10px;
  color: var(--grass);
  content: "■";
}

.store-card--mvp li::before {
  color: var(--orange);
}

.store-card-actions {
  display: flex;
  margin-top: 30px;
  gap: 12px;
}

.store-card-actions > * {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}

.store-help {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.8fr) auto;
  width: var(--page);
  margin: 100px auto;
  padding: 38px;
  align-items: center;
  gap: 34px;
  color: var(--paper);
  border: var(--outline);
  background: var(--ink-dark);
  box-shadow: 8px 8px 0 var(--ink);
}

.store-help .section-tag {
  color: var(--gold);
}

.store-help h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
}

.store-help > p {
  margin: 0;
  color: var(--sky-light);
  line-height: 1.5;
}

@keyframes cloud-drift {
  to { transform: translateX(36px); }
}

@media (max-width: 1000px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .topbar-status {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    right: 0;
    left: 0;
    display: grid;
    height: auto;
    border-bottom: var(--outline);
    background: var(--sky-light);
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-130%);
    transition:
      transform 160ms ease,
      visibility 0s linear 160ms;
  }

  .site-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav a {
    min-height: 52px;
    border-right: 0;
    border-bottom: 2px solid rgba(7, 56, 76, 0.16);
  }

  .world-hero {
    min-height: 700px;
  }

  .server-board {
    grid-template-columns: 1fr 1.5fr;
  }

  .board-address {
    grid-column: 1 / -1;
    border-top: var(--outline);
  }

  .staff-lineup {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }

  .footer {
    grid-template-columns: 1fr auto;
  }

  .footer > p {
    grid-column: 1;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
  }

  .store-help {
    grid-template-columns: 1fr 1fr;
  }

  .store-help > .discord-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  body {
    font-size: 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-infinity {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .block-button--small {
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .block-button--small::before {
    content: "IP";
    font-size: 11px;
  }

  .world-hero {
    min-height: 800px;
    padding: 20px 14px 174px;
    align-items: flex-start;
  }

  .world-art {
    background-position: center;
  }

  .hero-content {
    padding-top: 28px;
  }

  .world-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
    text-shadow: 3px 4px 0 var(--ink);
  }

  .hero-copy {
    font-size: 16px;
  }

  .join-controls {
    flex-direction: column;
  }

  .server-sign {
    flex-basis: auto;
  }

  .discord-button {
    min-height: 60px;
  }

  .world-tabs {
    grid-template-columns: 1fr;
  }

  .world-tab {
    min-height: 76px;
  }

  .world-tab:first-child {
    border-right: var(--outline);
    border-bottom: 0;
  }

  .world-tab:hover {
    min-height: 76px;
    transform: none;
  }

  .worlds-section,
  .why-section,
  .ranks-section,
  .perk-section {
    padding-block: 80px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-intro h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .world-select {
    grid-template-columns: 1fr;
  }

  .world-card {
    min-height: 570px;
  }

  .world-card:first-child {
    border-right: 0;
    border-bottom: var(--outline);
  }

  .world-card-content {
    padding: 30px 24px;
  }

  .world-card h3 {
    font-size: 42px;
  }

  .server-board {
    grid-template-columns: 1fr;
    width: var(--page);
  }

  .board-title {
    border-right: 0;
    border-bottom: var(--outline);
  }

  .server-board dl {
    border-bottom: var(--outline);
  }

  .server-board dl div:last-child {
    border-right: 0;
  }

  .board-address {
    grid-column: auto;
    border-top: 0;
  }

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

  .why-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: var(--outline);
  }

  .why-grid article:last-child {
    border-bottom: 0;
  }

  .rank-passes {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .staff-section {
    padding-inline: 0;
  }

  .staff-lineup {
    display: flex;
    width: 100%;
    padding: 0 18px 28px;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .staff-lineup::-webkit-scrollbar {
    display: none;
  }

  .staff-player,
  .staff-player:nth-child(4),
  .staff-player:nth-child(5) {
    flex: 0 0 72vw;
    scroll-snap-align: center;
  }

  .staff-render {
    height: 300px;
  }

  .staff-render img {
    height: 270px;
  }

  .final-join {
    padding-block: 90px;
  }

  .footer,
  .footer--compact {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer > p,
  .footer > small,
  .footer--compact > small {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .rank-hero {
    min-height: 580px;
  }

  .rank-hero--vip .rank-hero-art {
    background-position: 24% center;
  }

  .rank-hero--mvp .rank-hero-art {
    background-position: 78% center;
  }

  .rank-hero h1 {
    font-size: clamp(86px, 30vw, 140px);
  }

  .rank-hero-content > p:not(.section-tag) {
    max-width: 88%;
  }

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

  .perk-grid .perk-feature {
    grid-column: auto;
  }

  .perk-grid:not(.perk-grid--mvp) article:last-child {
    grid-column: auto;
  }

  .copy-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }

  .store-hero {
    min-height: 620px;
    padding: 70px 14px;
  }

  .store-hero h1 {
    font-size: clamp(52px, 16vw, 78px);
    text-shadow: 4px 4px 0 var(--ink);
  }

  .store-hero-content > p:not(.section-tag) {
    font-size: 17px;
  }

  .store-passes {
    padding: 80px 14px;
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .store-card {
    min-height: 0;
    padding: 26px;
  }

  .store-card-actions {
    flex-direction: column;
  }

  .store-help {
    grid-template-columns: 1fr;
    width: var(--page);
    margin-block: 70px;
    padding: 28px;
    gap: 22px;
  }

  .store-help > .discord-button {
    grid-column: auto;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
