:root {
  --ink: #183428;
  --ink-soft: #50665a;
  --green: #2f7d4d;
  --green-dark: #1d5a37;
  --lime: #a9d864;
  --cream: #fbf9ef;
  --sky: #dff3ff;
  --water: #67b9dd;
  --sun: #f4c85c;
  --white: #ffffff;
  --line: rgba(34, 86, 56, 0.14);
  --shadow: 0 22px 60px rgba(31, 76, 48, 0.12);
  --edition-accent: var(--green);
  --edition-dark: var(--green-dark);
  --edition-soft: var(--cream);
  --edition-surface: #ffffff;
  --edition-muted: var(--ink-soft);
}

.edition-java {
  --edition-accent: #b48a52;
  --edition-dark: #14231b;
  --edition-soft: #e8e1d3;
  --edition-surface: #26372d;
  --edition-muted: #5f6f63;
}

.edition-bedrock {
  --edition-accent: #d58b52;
  --edition-dark: #10252b;
  --edition-soft: #e5eee9;
  --edition-surface: #1d3d43;
  --edition-muted: #567c82;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #1676a5;
  outline-offset: 4px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24, 52, 40, 0.08);
  background: rgba(251, 249, 239, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #7fb84f;
  border: 3px solid #365c2d;
  box-shadow: inset 0 -9px 0 #8a6740;
}

.brand__mark span {
  width: 10px;
  height: 10px;
  display: block;
  background: #d9ef9b;
  box-shadow: 10px 10px 0 #4d8538, -10px 10px 0 #4d8538;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.site-header__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #365345;
  font-size: 0.92rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(80, 139, 75, 0.1);
  color: var(--green-dark);
  outline: none;
}

.language-switcher {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-switcher--desktop {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
}

.language-switcher--desktop a {
  min-width: 34px;
  padding: 7px 8px;
  border-radius: 7px;
  text-align: center;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.is-active {
  background: #e7f1dc;
  color: var(--green-dark);
}

.language-switcher--mobile {
  display: none;
  position: relative;
}

.language-switcher--mobile summary {
  min-width: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  list-style: none;
}

.language-switcher--mobile summary::-webkit-details-marker { display: none; }

.language-switcher__menu {
  min-width: 165px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  box-shadow: var(--shadow);
}

.language-switcher__menu a {
  padding: 10px 12px;
  border-radius: 7px;
}

.hero {
  min-height: 680px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #ccefc8;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(247, 248, 224, 0.98) 0%, rgba(247, 248, 224, 0.9) 35%, rgba(247, 248, 224, 0.2) 67%, rgba(247, 248, 224, 0.06) 100%),
    linear-gradient(0deg, rgba(28, 73, 42, 0.16), transparent 45%);
}

.edition-java .hero__veil {
  background:
    linear-gradient(90deg, rgba(12, 22, 17, 0.98) 0%, rgba(12, 22, 17, 0.9) 42%, rgba(12, 22, 17, 0.48) 68%, rgba(12, 22, 17, 0.12) 100%),
    linear-gradient(0deg, rgba(12, 22, 17, 0.48), transparent 54%),
    radial-gradient(circle at 28% 78%, rgba(180, 138, 82, 0.28), transparent 32%);
}

.edition-bedrock .hero__veil {
  background:
    linear-gradient(90deg, rgba(8, 25, 30, 0.98) 0%, rgba(8, 25, 30, 0.9) 42%, rgba(8, 25, 30, 0.48) 68%, rgba(8, 25, 30, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 25, 30, 0.5), transparent 54%),
    radial-gradient(circle at 24% 72%, rgba(213, 139, 82, 0.26), transparent 34%),
    linear-gradient(0deg, rgba(87, 157, 172, 0.12), transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 90px 110px;
}

.summer-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.summer-particles span {
  width: 9px;
  height: 14px;
  position: absolute;
  border-radius: 70% 10% 70% 10%;
  background: rgba(221, 242, 167, 0.72);
  box-shadow: 0 0 16px rgba(244, 255, 204, 0.42);
  animation: summer-drift 7s ease-in-out infinite alternate;
}

.summer-particles span:nth-child(1) { top: 15%; left: 7%; animation-delay: -1s; }
.summer-particles span:nth-child(2) { top: 24%; left: 42%; width: 7px; height: 10px; animation-delay: -4s; }
.summer-particles span:nth-child(3) { top: 12%; right: 25%; animation-delay: -2.5s; }
.summer-particles span:nth-child(4) { top: 34%; right: 8%; width: 6px; height: 9px; animation-delay: -5s; }
.summer-particles span:nth-child(5) { bottom: 22%; left: 5%; width: 7px; height: 11px; animation-delay: -3s; }
.summer-particles span:nth-child(6) { bottom: 15%; left: 47%; animation-delay: -6s; }
.summer-particles span:nth-child(7) { bottom: 28%; right: 18%; width: 6px; height: 8px; animation-delay: -1.5s; }
.summer-particles span:nth-child(8) { top: 48%; right: 4%; animation-delay: -4.5s; }

@keyframes summer-drift {
  from { transform: translate3d(-3px, 3px, 0) rotate(-18deg); opacity: 0.48; }
  to { transform: translate3d(5px, -6px, 0) rotate(16deg); opacity: 0.78; }
}

.eyebrow {
  margin: 0 0 16px;
  color: #275c3d;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow--green {
  color: var(--green);
}

.edition-java .eyebrow--green,
.edition-bedrock .eyebrow--green {
  color: var(--edition-accent);
}

.hero h1,
.page-hero h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.edition-java .hero h1,
.edition-bedrock .hero h1 {
  color: #ffffff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.38);
}

.hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #365448;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--green);
  color: white;
  box-shadow: 0 8px 0 #1f5c39, 0 18px 35px rgba(34, 104, 62, 0.22);
}

.edition-java .button--primary,
.edition-bedrock .button--primary {
  background: var(--edition-accent);
  color: #ffffff;
  box-shadow: 0 8px 0 color-mix(in srgb, var(--edition-dark) 74%, black), 0 18px 35px color-mix(in srgb, var(--edition-accent) 28%, transparent);
}

.button--primary:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #1f5c39;
}

.button--secondary {
  border: 1px solid rgba(47, 125, 77, 0.24);
  background: #eef5e7;
  color: var(--green-dark);
}

.button--secondary:hover {
  background: #e3efd9;
}

.copy-button {
  min-width: 310px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 30px rgba(37, 84, 51, 0.1);
  cursor: pointer;
}

.copy-button span:first-child,
.copy-button small,
.copy-button strong {
  display: block;
}

.copy-button small {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.copy-button strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.copy-button__action {
  padding: 8px 10px;
  border-radius: 8px;
  background: #edf6df;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.copy-button--compact {
  min-height: 54px;
  min-width: 330px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
}

.status-section {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.server-status {
  display: grid;
  grid-template-columns: 1fr auto minmax(280px, 0.65fr);
  align-items: center;
  gap: 32px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  animation: status-card-appear 560ms ease-out both;
}

@keyframes status-card-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.server-status__summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-status__summary .eyebrow {
  margin-bottom: 7px;
}

.server-status__summary h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.1;
}

.status-dot {
  width: 32px;
  height: 32px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(117, 134, 124, 0.12);
  animation: status-ring-breathe 2.4s ease-in-out infinite;
  transition: background-color 180ms ease;
}

.status-dot::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #9aa8a0;
  animation: status-core-breathe 2.4s ease-in-out infinite;
  transition: background-color 180ms ease;
}

.server-status.is-online .status-dot,
[data-server-status].is-online .status-dot {
  background: rgba(60, 169, 92, 0.14);
}

.server-status.is-online .status-dot::after,
[data-server-status].is-online .status-dot::after {
  background: #3ca95c;
}

.server-status.is-offline .status-dot,
[data-server-status].is-offline .status-dot {
  background: rgba(210, 85, 76, 0.13);
}

.server-status.is-offline .status-dot::after,
[data-server-status].is-offline .status-dot::after {
  background: #d2554c;
}

@keyframes status-ring-breathe {
  0%, 100% { transform: scale(0.94); }
  50% { transform: scale(1.06); }
}

@keyframes status-core-breathe {
  0%, 100% { transform: scale(0.97); }
  50% { transform: scale(1.03); }
}

.server-status__details {
  display: flex;
  gap: 28px;
  margin: 0;
}

.server-status__details div {
  min-width: 80px;
}

.server-status__details dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.server-status__details dd {
  margin: 0;
  font-weight: 800;
}

[data-status-text],
[data-status-version],
[data-status-players],
[data-status-time],
[data-live-version] {
  transition: opacity 160ms ease, transform 160ms ease;
}

.is-changing {
  opacity: 0.2;
  transform: translateY(2px);
}

.copy-button--status {
  width: 100%;
  min-width: 0;
  box-shadow: none;
}

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

.status-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 125, 77, 0.2);
  border-radius: 12px;
  background: #f5f8ed;
  color: var(--green-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.status-refresh-button:hover,
.status-refresh-button:focus-visible {
  background: #e7f1dc;
  box-shadow: 0 10px 24px rgba(47, 125, 77, 0.16);
  transform: translateY(-1px);
}

.status-refresh-button:focus-visible {
  outline: 3px solid rgba(74, 178, 109, 0.34);
  outline-offset: 3px;
}

.status-refresh-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.status-refresh-button__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(47, 125, 77, 0.24);
  border-top-color: var(--green);
  border-radius: 999px;
  opacity: 0;
}

.status-refresh-button[aria-busy="true"] .status-refresh-button__spinner {
  opacity: 1;
  animation: status-refresh-spin 780ms linear infinite;
}

@keyframes status-refresh-spin {
  to { transform: rotate(360deg); }
}

.connection-faq {
  padding-top: 0;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.faq-item {
  border: 1px solid rgba(47, 125, 77, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(49, 76, 61, 0.08);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e7f1dc;
  color: var(--green-dark);
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(74, 178, 109, 0.34);
  outline-offset: -6px;
}

.faq-item__body {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
  color: var(--ink-soft);
}

.faq-item__body p {
  margin: 0;
}

.faq-steps {
  margin: 0;
  padding-left: 22px;
}

.faq-steps li + li {
  margin-top: 6px;
}

.faq-server-details,
.faq-inline-fact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f8ed;
}

.faq-server-details p,
.faq-inline-fact {
  margin: 0;
}

.faq-server-details span,
.faq-inline-fact span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.faq-server-details strong,
.faq-inline-fact strong {
  color: var(--ink);
}

.faq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.server-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(37, 96, 55, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #315841;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.section {
  padding-block: 105px;
}

.section--soft {
  background: #eef4df;
}

.section-heading {
  max-width: 700px;
}

.section-heading h2,
.join-panel h2,
.contact-card h2,
.contact-tips h2,
.help-note h2,
.connect-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > p,
.join-panel p,
.contact-card > p,
.contact-tips > p,
.help-note p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.feature-card {
  min-height: 255px;
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 85px;
  height: 85px;
  opacity: 0.18;
  background: currentColor;
  box-shadow: -42px 42px 0 currentColor, 42px -42px 0 currentColor;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 68px rgba(31, 76, 48, 0.17);
  }

  .feature-card:hover::after {
    transform: translate(-5px, -3px);
  }
}

.feature-card--grass { color: #6a9d42; }
.feature-card--water { color: #3694bf; }
.feature-card--sun { color: #d69b28; }

.feature-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 15%, white);
  font-size: 1.3rem;
}

.feature-card h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 1.35rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.edition-java .hero .eyebrow,
.edition-bedrock .hero .eyebrow {
  color: color-mix(in srgb, var(--edition-accent) 74%, white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.edition-java .hero__lead,
.edition-bedrock .hero__lead {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.world-principles {
  padding-top: 0;
}

.world-principles__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid color-mix(in srgb, var(--edition-accent) 28%, transparent);
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--edition-surface) 94%, white), color-mix(in srgb, var(--edition-dark) 88%, var(--edition-accent))),
    var(--edition-surface);
  color: var(--edition-soft);
  box-shadow: 0 30px 80px rgba(16, 37, 31, 0.16);
  animation: world-principles-reveal 420ms ease both;
}

.world-principles__panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -58px auto;
  width: 190px;
  height: 190px;
  opacity: 0.16;
  background: var(--edition-accent);
  box-shadow: -58px -42px 0 color-mix(in srgb, var(--edition-accent) 62%, transparent), 42px -84px 0 color-mix(in srgb, var(--edition-soft) 38%, transparent);
  transform: rotate(8deg);
  animation: world-principles-glow 9s ease-in-out infinite alternate;
}

.world-principles__header {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.world-principles__header h2 {
  margin: 0;
  color: white;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.world-principles__header p:last-child,
.world-principles__item p,
.world-principles__outro {
  color: color-mix(in srgb, var(--edition-soft) 86%, white);
  line-height: 1.7;
}

.world-principles__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.world-principles__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.world-principles__number {
  color: var(--edition-accent);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.world-principles__item h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.08rem;
}

.world-principles__item p {
  margin: 0;
  font-size: 1rem;
}

.world-principles__outro {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-weight: 750;
}

@keyframes world-principles-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes world-principles-glow {
  from { transform: translate3d(-3px, -2px, 0) rotate(8deg); filter: brightness(0.96); }
  to { transform: translate3d(6px, 5px, 0) rotate(8deg); filter: brightness(1.08); }
}

.section--facts {
  padding-top: 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 42px 0 0;
}

.facts-grid div {
  min-height: 125px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.facts-grid dt {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.facts-grid dd {
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
}

.join-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
}

.join-panel__actions {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 110px 100px;
  background: var(--sky);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  opacity: 0.25;
}

.page-hero::before {
  right: 7%;
  top: 22%;
  background: #88c95a;
  box-shadow: 65px 65px 0 #5aa34b, -65px 65px 0 #a8d766;
  animation: page-pixels-drift-a 13s ease-in-out infinite alternate;
}

.page-hero::after {
  right: 23%;
  bottom: -75px;
  background: #6cc0e1;
  box-shadow: 65px 0 0 #8ad2ea, 130px 0 0 #5badd3;
  animation: page-pixels-drift-b 15s ease-in-out infinite alternate;
}

@keyframes page-pixels-drift-a {
  from { transform: translate3d(-3px, -2px, 0); }
  to { transform: translate3d(6px, 7px, 0); }
}

@keyframes page-pixels-drift-b {
  from { transform: translate3d(3px, 2px, 0); }
  to { transform: translate3d(-5px, -6px, 0); }
}

.page-hero--contacts {
  background: #f5efca;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  animation: page-heading-appear 620ms ease-out both;
}

@keyframes page-heading-appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .inner-page main > .section {
    animation: section-scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
}

@keyframes section-scroll-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3f6152;
  font-size: 1.1rem;
  line-height: 1.75;
}

.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: 70px;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 0 0 38px;
}

.steps li:not(:last-child) .steps__number::after {
  content: "";
  width: 2px;
  height: 62px;
  position: absolute;
  top: 54px;
  left: 50%;
  background: #cdddbb;
}

.steps__number {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-weight: 850;
  box-shadow: 0 6px 0 #1d5b37;
}

.steps h2 {
  margin: 2px 0 9px;
  font-size: 1.35rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.connect-card {
  position: sticky;
  top: 105px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.connect-card h2 {
  margin-bottom: 24px;
}

.connect-card .copy-button {
  min-width: 0;
  width: 100%;
  display: grid;
}

.connect-card__facts {
  display: grid;
  gap: 13px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.connect-card__facts p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  font-size: 0.86rem;
}

.connect-card__facts span {
  color: var(--ink-soft);
}

.support-note {
  margin-top: 24px;
  padding: 20px;
  border-radius: 13px;
  background: #f2f6e7;
}

.support-note p {
  margin: 7px 0 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.support-note .button {
  width: 100%;
  min-height: 46px;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.command-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(22, 40, 30, 0.08);
}

.command-card h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.command-list {
  display: grid;
  gap: 12px;
}

.command-list div {
  display: grid;
  gap: 4px;
}

.command-list dt,
.command-list dd {
  margin: 0;
}

.command-list code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 7px;
  background: #edf5e7;
  color: var(--green-dark);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.command-list dd {
  color: var(--ink-soft);
  line-height: 1.55;
}

.help-note {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 22px;
}

.help-note__icon,
.contact-card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sun);
  color: #5c4714;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 7px 0 #c99d38;
}

.help-note h2 {
  font-size: 2rem;
}

.help-note p {
  max-width: 770px;
}

.help-note a,
.contact-card h2 {
  color: var(--green-dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
}

.contact-card,
.contact-tips {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-card {
  background: white;
  box-shadow: var(--shadow);
}

.contact-card__icon {
  margin-bottom: 34px;
  background: #8ac4e5;
  color: #1c526c;
  box-shadow: 0 7px 0 #5296bc;
}

.contact-card h2 {
  overflow-wrap: anywhere;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-card__hint {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-tips {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #eff4df;
}

.contact-tips__note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(47, 125, 77, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
}

.contact-tips__note span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.page-hero--rules {
  background: #e6f2d4;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1.28fr;
  align-items: start;
  gap: 70px;
}

.rules-intro {
  position: sticky;
  top: 110px;
}

.rules-intro .button {
  margin-top: 20px;
}

.rules-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.rules-list li > span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 850;
}

.rules-list h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.rules-list p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #180604;
  color: #fff7e8;
}

.error-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 58% 68%, rgba(224, 62, 13, 0.16), transparent 42%);
  pointer-events: none;
  animation: nether-glow 8s ease-in-out infinite alternate;
}

.error-page__backdrop,
.error-page__backdrop img,
.error-page__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.error-page__backdrop img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  animation: nether-background-drift 20s ease-in-out infinite alternate;
}

.error-page__veil {
  background:
    linear-gradient(90deg, rgba(12, 3, 3, 0.94) 0%, rgba(21, 5, 4, 0.82) 32%, rgba(27, 5, 3, 0.25) 62%, rgba(13, 2, 2, 0.08) 100%),
    linear-gradient(0deg, rgba(12, 2, 1, 0.52), transparent 58%);
}

.error-page__content {
  position: relative;
  z-index: 2;
  padding-block: 84px;
}

.error-page__switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.error-page__switcher .language-switcher--desktop {
  background: rgb(20 10 8 / 58%);
  border-color: rgb(255 255 255 / 18%);
}

.nether-ash {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.nether-ash span {
  width: 4px;
  height: 4px;
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: rgba(255, 174, 98, 0.58);
  box-shadow: 0 0 8px rgba(237, 76, 25, 0.45);
  animation: ash-rise 11s linear infinite;
}

.nether-ash span:nth-child(1) { left: 10%; animation-delay: -3s; }
.nether-ash span:nth-child(2) { left: 24%; width: 3px; height: 3px; animation-delay: -8s; animation-duration: 13s; }
.nether-ash span:nth-child(3) { left: 41%; animation-delay: -5s; animation-duration: 15s; }
.nether-ash span:nth-child(4) { left: 58%; width: 2px; height: 2px; animation-delay: -10s; }
.nether-ash span:nth-child(5) { left: 72%; animation-delay: -1s; animation-duration: 14s; }
.nether-ash span:nth-child(6) { left: 84%; width: 3px; height: 3px; animation-delay: -7s; animation-duration: 16s; }
.nether-ash span:nth-child(7) { left: 94%; animation-delay: -4s; animation-duration: 12s; }

@keyframes ash-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 0.55; }
  80% { opacity: 0.25; }
  100% { transform: translate3d(7px, -105vh, 0); opacity: 0; }
}

@keyframes nether-glow {
  from { opacity: 0.58; }
  to { opacity: 0.9; }
}

@keyframes nether-background-drift {
  from { transform: scale(1.015) translate3d(-3px, 2px, 0); }
  to { transform: scale(1.015) translate3d(5px, -5px, 0); }
}

.error-page__mark {
  width: max-content;
  margin-bottom: 28px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 181, 84, 0.28);
  border-radius: 9px;
  background: rgba(38, 7, 4, 0.62);
  color: #ffb454;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.error-page .eyebrow {
  color: #ffbd63;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.error-page h1 {
  max-width: 720px;
  margin: 0;
  color: #fff8e9;
  font-size: clamp(3.7rem, 8.5vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-shadow: 0 6px 42px rgba(0, 0, 0, 0.9);
  animation: error-heading-appear 780ms 120ms ease-out both;
}

@keyframes error-heading-appear {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-page p:not(.eyebrow) {
  max-width: 550px;
  margin: 28px 0 0;
  color: #eedcc9;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.72;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.94);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.error-language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.error-language-links a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 181, 84, 0.24);
  border-radius: 9px;
  background: rgba(38, 7, 4, 0.55);
  color: #ffd8a4;
  font-size: 0.8rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

@media (max-width: 1050px) {
  .site-header__inner {
    gap: 16px;
  }

  .site-header__controls {
    gap: 8px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 0.8rem;
  }
}

.error-page .button--primary {
  background: #e7601c;
  box-shadow: 0 8px 0 #86320f, 0 20px 44px rgba(0, 0, 0, 0.35);
}

/* Edition selector portal */
.selector-page {
  min-height: 100svh;
  overflow-x: hidden;
  background: #102417;
}

.edition-selector {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
}

.selector-topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.selector-topbar > * { pointer-events: auto; }

.selector-brand,
.selector-topbar .language-switcher--desktop,
.selector-topbar .language-switcher--mobile summary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(14, 28, 20, 0.58);
  color: white;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.selector-topbar .language-switcher a { color: white; }

.selector-topbar .language-switcher a:hover,
.selector-topbar .language-switcher a:focus-visible,
.selector-topbar .language-switcher a.is-active {
  background: rgba(231, 241, 220, 0.18);
  color: #ecffd8;
}

.selector-topbar .language-switcher__menu {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.selector-topbar .language-switcher__menu a {
  color: var(--ink);
}

.selector-topbar .language-switcher__menu a:hover,
.selector-topbar .language-switcher__menu a:focus-visible,
.selector-topbar .language-switcher__menu a.is-active {
  background: #e7f1dc;
  color: var(--green-dark);
}

.selector-intro {
  position: fixed;
  z-index: 18;
  left: 50%;
  top: clamp(82px, 11svh, 112px);
  width: min(560px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.44);
}

.selector-intro h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.selector-intro p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.edition-panels {
  min-height: 100svh;
  position: relative;
}

.edition-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  text-decoration: none;
  outline-offset: -12px;
  transition: clip-path 520ms cubic-bezier(.22, 1, .36, 1), filter 520ms ease;
}

.edition-panel--java { clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%); }
.edition-panel--bedrock { clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%); }

.edition-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1), filter 520ms ease;
}

.edition-panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 11, 0.18), rgba(7, 16, 11, 0.62)), radial-gradient(circle at 50% 65%, transparent 0, rgba(0, 0, 0, 0.4) 68%);
}

.edition-panel__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(430px, 38vw);
  padding: 0 0 clamp(42px, 7vh, 84px);
  transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.edition-panel--java .edition-panel__content {
  margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
}

.edition-panel--bedrock .edition-panel__content {
  justify-self: end;
  margin-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  text-align: right;
}

.edition-panel__kicker {
  color: #cdeeb4;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.edition-panel__theme {
  color: #f5d59d;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  font-weight: 900;
}

.edition-panel--bedrock .edition-panel__theme {
  color: #ffd1a7;
}

.edition-panel__title {
  font-size: clamp(2rem, 3.75vw, 4.2rem);
  font-weight: 950;
  line-height: 0.98;
}

.edition-panel__text {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
}

.edition-panel__status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(11, 23, 17, 0.56);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.edition-panel--bedrock .edition-panel__status { justify-self: end; }

.edition-panel__action {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 8px;
  background: #e7f1dc;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 6px 0 #a7c78b, 0 18px 34px rgba(0, 0, 0, 0.24);
}

.edition-panel--java .edition-panel__action {
  background: #f1dfbf;
  color: #2b2418;
  box-shadow: 0 6px 0 #b48a52, 0 18px 34px rgba(0, 0, 0, 0.24);
}

.edition-panel--bedrock .edition-panel__action {
  background: #f3e2d2;
  color: #16353a;
  box-shadow: 0 6px 0 #d58b52, 0 18px 34px rgba(0, 0, 0, 0.24);
}

.edition-panel--bedrock .edition-panel__action { justify-self: end; }
.edition-panel:focus-visible { outline: 4px solid #f2ffd8; outline-offset: -18px; }

@media (hover: hover) and (pointer: fine) {
  .edition-panels:hover .edition-panel { filter: brightness(0.74); }
  .edition-panels:has(.edition-panel--java:hover) .edition-panel--java,
  .edition-panels:has(.edition-panel--java:focus-visible) .edition-panel--java {
    clip-path: polygon(0 0, 66% 0, 54% 100%, 0 100%);
    filter: brightness(1.05);
  }
  .edition-panels:has(.edition-panel--java:hover) .edition-panel--bedrock,
  .edition-panels:has(.edition-panel--java:focus-visible) .edition-panel--bedrock {
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 54% 100%);
  }
  .edition-panels:has(.edition-panel--bedrock:hover) .edition-panel--java,
  .edition-panels:has(.edition-panel--bedrock:focus-visible) .edition-panel--java {
    clip-path: polygon(0 0, 46% 0, 34% 100%, 0 100%);
  }
  .edition-panels:has(.edition-panel--bedrock:hover) .edition-panel--bedrock,
  .edition-panels:has(.edition-panel--bedrock:focus-visible) .edition-panel--bedrock {
    clip-path: polygon(46% 0, 100% 0, 100% 100%, 34% 100%);
    filter: brightness(1.05);
  }
  .edition-panel:hover img,
  .edition-panel:focus-visible img { transform: scale(1.055); }
  .edition-panel:hover .edition-panel__content,
  .edition-panel:focus-visible .edition-panel__content { transform: scale(1.035); }
}

.error-page .button--primary:hover {
  background: #f1712a;
}

.error-page .button--primary:active {
  box-shadow: 0 3px 0 #86320f;
}

.site-footer {
  padding-block: 46px 25px;
  background: #1d382b;
  color: #eff6e8;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #b9cabd;
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9rem;
}

.site-footer__note {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #91a799;
  font-size: 0.76rem;
}

@media (max-width: 840px) {
  .site-header__inner {
    min-height: auto;
    padding-block: 14px;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .site-header__controls {
    align-items: flex-start;
  }

  .language-switcher--desktop { display: none; }
  .language-switcher--mobile { display: block; }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 740px;
    align-items: end;
  }

  .hero__image {
    object-position: 67% center;
  }

  .hero__veil {
    background: linear-gradient(0deg, rgba(247, 248, 224, 0.99) 10%, rgba(247, 248, 224, 0.88) 58%, rgba(247, 248, 224, 0.22) 100%);
  }

  .edition-java .hero__veil {
    background:
      linear-gradient(0deg, rgba(12, 22, 17, 0.96) 7%, rgba(12, 22, 17, 0.86) 58%, rgba(12, 22, 17, 0.34) 100%),
      radial-gradient(circle at 18% 78%, rgba(180, 138, 82, 0.24), transparent 38%);
  }

  .edition-bedrock .hero__veil {
    background:
      linear-gradient(0deg, rgba(8, 25, 30, 0.96) 7%, rgba(8, 25, 30, 0.86) 58%, rgba(8, 25, 30, 0.34) 100%),
      radial-gradient(circle at 18% 78%, rgba(213, 139, 82, 0.23), transparent 38%);
  }

  .hero__content {
    padding-block: 240px 70px;
  }

  .feature-grid,
  .world-principles__grid,
  .join-panel,
  .steps-layout,
  .command-grid,
  .contact-layout,
  .rules-layout {
    grid-template-columns: 1fr;
  }

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

  .copy-button--status {
    grid-column: 1 / -1;
  }

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

  .feature-grid {
    gap: 14px;
  }

  .feature-card {
    min-height: 220px;
  }

  .connect-card {
    position: static;
  }

  .rules-intro {
    position: static;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header__inner,
  .site-footer__inner {
    display: grid;
  }

  .site-header__controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 2px;
  }

  .brand small {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero__actions,
  .copy-button--compact {
    width: 100%;
  }

  .summer-particles span:nth-child(n + 5),
  .nether-ash span:nth-child(n + 5) {
    display: none;
  }

  .button,
  .copy-button,
  .copy-button--compact {
    min-width: 0;
    width: 100%;
  }

  .status-section {
    margin-top: -24px;
  }

  .server-status {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .server-status__details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .copy-button--status {
    grid-column: auto;
  }

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

  .facts-grid div {
    min-height: 0;
  }

  .error-page {
    align-items: end;
  }

  .error-page__backdrop img {
    object-position: 68% center;
  }

  .error-page__veil {
    background: linear-gradient(0deg, rgba(13, 3, 2, 0.98) 3%, rgba(20, 4, 3, 0.9) 47%, rgba(18, 3, 2, 0.18) 100%);
  }

  .error-page__content {
    padding-block: 230px 46px;
  }

  .error-page h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .copy-button {
    gap: 12px;
  }

  .section {
    padding-block: 76px;
  }

  .page-hero {
    padding-block: 82px 76px;
  }

  .steps li {
    grid-template-columns: 46px 1fr;
    gap: 15px;
  }

  .steps__number {
    width: 44px;
    height: 44px;
  }

  .steps li:not(:last-child) .steps__number::after {
    top: 48px;
    height: 78px;
  }

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

  .contact-tips__note {
    display: grid;
  }
}

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

  .summer-particles,
  .nether-ash {
    display: none !important;
  }

  .page-hero__content,
  .inner-page main > .section,
  .server-status,
  .error-page h1,
  .error-page__backdrop img {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px), (hover: none) {
  .selector-topbar {
    top: 12px;
    width: calc(100% - 24px);
    z-index: 40;
  }

  .selector-brand small,
  .selector-intro p:not(.eyebrow) {
    display: none;
  }

  .selector-intro {
    position: relative;
    z-index: 16;
    left: auto;
    top: auto;
    width: min(330px, calc(100% - 36px));
    transform: none;
    margin-inline: auto;
    padding: 92px 0 18px;
  }

  .selector-intro h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .edition-panels {
    display: grid;
    grid-template-rows: 1fr 1fr;
    min-height: auto;
  }

  .edition-panel {
    position: relative;
    min-height: 42svh;
    clip-path: none !important;
  }

  .edition-panel--java {
    border-bottom: 4px solid rgba(231, 241, 220, 0.34);
  }

  .edition-panel__content {
    width: min(330px, calc(100% - 36px));
    padding-bottom: 28px;
  }

  .edition-panel--java .edition-panel__content,
  .edition-panel--bedrock .edition-panel__content {
    margin-inline: 18px;
    text-align: left;
    justify-self: start;
  }

  .edition-panel--bedrock .edition-panel__status,
  .edition-panel--bedrock .edition-panel__action {
    justify-self: start;
  }

  .edition-panel__title {
    font-size: clamp(1.55rem, 8vw, 2.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .edition-panel,
  .edition-panel img,
  .edition-panel__content {
    transform: none !important;
    transition: none !important;
  }

  .edition-panel:focus-visible,
  .edition-panel:hover {
    filter: brightness(1.06);
  }

  .selector-atmosphere,
  .summer-particles,
  .nether-particles {
    display: none !important;
  }

  .status-refresh-button[aria-busy="true"] .status-refresh-button__spinner {
    animation: none !important;
  }
}
