@font-face {
  font-family: "Niche Pixel";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/press-start-2p.ttf") format("truetype");
}

:root {
  --bg: #050505;
  --bg-grid: rgba(243, 234, 20, 0.055);
  --panel: #111;
  --panel-2: #171717;
  --panel-3: #202020;
  --line: #373737;
  --line-soft: #242424;
  --text: #f4f0df;
  --muted: #afa78f;
  --soft: #77705f;
  --accent: #f3ea14;
  --accent-dark: #595400;
  --black: #000;
  --pixel: "Niche Pixel", "Courier New", monospace;
  --container: 1120px;
  --gutter: 32px;
  --section-y: clamp(3.6rem, 7vw, 5rem);
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.8;
}
body {
  overflow-x: hidden;
}

html:not(.is-loaded) body {
  overflow: hidden;
}

main {
  min-width: 0;
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--bg);
  opacity: 1;
  transition: opacity 560ms ease, visibility 0s 640ms;
}

.page-loader::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.loader-frame {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(var(--container), calc(100% - var(--gutter)));
  padding: clamp(1.4rem, 4vw, 3rem);
  color: var(--accent);
  background: var(--black);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--black);
  animation: loader-frame 620ms steps(5, end) both, loader-idle 900ms steps(3, end) 620ms infinite alternate;
}

.loader-content {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 2.2vw, 1.6rem);
  width: min(100%, max(50%, 620px));
}

.loader-content img {
  width: clamp(150px, 24vw, 320px);
  height: clamp(150px, 24vw, 320px);
  image-rendering: pixelated;
  border: 2px solid var(--line);
  animation: loader-logo 620ms steps(4, end) both;
}

.loader-content span {
  width: 100%;
  font-size: clamp(1rem, 3.2vw, 2.25rem);
  line-height: 1.6;
  text-align: center;
}

html.is-loaded .page-loader {
  visibility: hidden;
  opacity: 0;
}

html.is-loaded .loader-frame {
  animation: loader-out 560ms steps(5, end) both;
}

html.is-loaded .loader-content img {
  animation: loader-logo-out 560ms steps(4, end) both;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

p {
  margin-top: 0;
  color: var(--muted);
}

code {
  display: inline-block;
  max-width: 100%;
  margin: 0.16rem 0.04rem;
  padding: 0.1rem 0.32rem;
  overflow-wrap: anywhere;
  color: var(--accent);
  background: var(--black);
  border: 1px solid var(--accent-dark);
  font-family: var(--pixel);
  font-size: 0.9em;
  line-height: 1.35;
  vertical-align: middle;
}

.cmd-arg {
  display: inline-block;
  padding: 0.04rem 0.18rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  line-height: 1.15;
  vertical-align: middle;
}

.accent-word {
  color: var(--accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.75rem 0.9rem;
  color: var(--black);
  background: var(--accent);
  border: 2px solid var(--text);
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  width: min(var(--container), calc(100% - var(--gutter)));
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0.45rem 0;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.brand {
  --brand-logo-size: 64px;
  --brand-title-size: 0.62rem;
  --brand-domain-size: 0.48rem;
  --brand-text-scale-y: 1;

  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 0.68rem;
  min-height: var(--brand-logo-size);
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  line-height: 1;
}

.brand img {
  flex: 0 0 auto;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  image-rendering: pixelated;
  background: var(--black);
  border: 2px solid var(--line);
}

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

.brand span {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.04rem;
  min-width: 0;
  height: var(--brand-logo-size);
  min-height: var(--brand-logo-size);
  padding: 0;
}

.brand strong {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: var(--brand-title-size);
  font-weight: 400;
  line-height: 1;
  transform: scaleY(var(--brand-text-scale-y));
  transform-origin: left center;
  white-space: nowrap;
}

.brand small {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: var(--brand-domain-size);
  line-height: 1;
  transform: scaleY(var(--brand-text-scale-y));
  transform-origin: left center;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-height: 64px;
  padding: 0.1rem 0.78rem 0;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dark);
}

.section {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: var(--section-y) 0;
  scroll-margin-top: 5.5rem;
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(0.9rem, 2.2svh, 1.8rem) 0 clamp(1.1rem, 2.8svh, 2.2rem);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: clamp(0.65rem, 1.7svh, 1.35rem) 0 clamp(0.85rem, 2svh, 1.5rem);
  z-index: 0;
  background: rgba(17, 17, 17, 0.86);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--black);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 0;
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.hero-copy {
  max-width: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.58rem;
  line-height: 1.8;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-weight: 400;
}

h1 {
  max-width: 820px;
  margin-bottom: clamp(0.85rem, 1.8svh, 1.25rem);
  color: white;
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: 1.25;
  text-shadow: 5px 5px 0 var(--black);
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.1rem, 3vw, 2.15rem);
  line-height: 1.45;
  text-shadow: 3px 3px 0 var(--black);
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.65;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: clamp(0.8rem, 1.8svh, 1.15rem);
  font-size: 0.78rem;
}

.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
  padding: 1rem;
  background: var(--black);
  border: 2px solid var(--accent-dark);
}

.server-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--soft);
  font-size: 0.58rem;
}

.server-card strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: clamp(0.72rem, 2vw, 1rem);
  font-weight: 400;
  line-height: 1.7;
}

.copy-button,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--panel-3);
  border: 2px solid #555;
  border-right-color: var(--black);
  border-bottom-color: var(--black);
  cursor: pointer;
  font-size: 0.62rem;
  line-height: 1.55;
  text-align: center;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.copy-button {
  flex: 0 0 auto;
  gap: 0.6rem;
}

.copy-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  box-shadow: 5px -5px 0 -2px var(--panel-3), 5px -5px 0 0 currentColor;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  color: var(--accent);
  background: var(--panel-2);
  border-color: var(--accent-dark);
  border-right-color: var(--black);
  border-bottom-color: var(--black);
}

.button:active,
.copy-button:active {
  transform: none;
}

.button-primary {
  color: var(--black);
  background: var(--accent);
  border-color: #fff889;
  border-right-color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--black);
  background: #fff889;
}

.nav-links a:focus:not(:focus-visible),
.social-link:focus:not(:focus-visible),
.footer-title:focus:not(:focus-visible),
.button:focus:not(:focus-visible),
.copy-button:focus:not(:focus-visible),
.guide-toggle:focus:not(:focus-visible),
.news-history summary:focus:not(:focus-visible) {
  outline: 0;
}

.copy-status {
  min-height: 1.15rem;
  margin: 0.45rem 0 0;
  color: var(--accent);
  font-size: 0.58rem;
}

.copy-buffer {
  position: fixed;
  top: -999px;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.version-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.version-line span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.45rem 0.6rem;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  font-size: 0.52rem;
  line-height: 1.55;
}

.version-line span:first-child {
  color: var(--accent);
  background: var(--black);
  border-color: var(--accent-dark);
}

.launch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 0.55rem;
  padding: 0.85rem;
  background: var(--panel);
  border: 2px solid var(--line);
}

.launch-meta strong {
  display: block;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.7;
}

.launch-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 0.5rem;
}

.launch-timer span {
  display: grid;
  gap: 0.25rem;
  min-width: 64px;
  padding: 0.55rem 0.5rem;
  text-align: center;
  background: var(--black);
  border: 2px solid var(--line-soft);
}

.launch-timer strong,
.launch-timer small {
  display: block;
}

.launch-timer strong {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.2;
}

.launch-timer small {
  color: var(--soft);
  font-size: 0.44rem;
  line-height: 1.45;
}

.launch-card.is-open .launch-timer {
  display: block;
  color: var(--accent);
  font-size: 0.62rem;
  line-height: 1.7;
  text-align: right;
}

.launch-card.is-open .launch-timer:empty {
  display: none;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  font-size: 0.52rem;
  line-height: 1.5;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dark);
}

.pixel-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: var(--black);
  border: 2px solid var(--line);
  image-rendering: pixelated;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.news-section .section-heading h2,
.about-section .section-heading h2,
.guides-section .section-heading h2,
.start-section .section-heading h2 {
  font-size: clamp(1.45rem, 4vw, 2.8rem);
}

.news-board,
.news-latest,
.news-history,
.rules-block {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--black);
}

.news-board {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.news-latest,
.news-item {
  padding: 1rem;
  background: var(--black);
  border: 2px solid var(--line-soft);
}

.news-latest h3,
.news-item h3 {
  margin-bottom: 0.75rem;
}

.news-latest-label {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.58rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.news-date {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.52rem;
  line-height: 1.6;
}

.news-history {
  padding: 0.9rem 1rem 1rem;
  box-shadow: none;
}

.news-history summary {
  color: var(--text);
  cursor: pointer;
}

.news-history summary:hover,
.news-history summary:focus-visible {
  color: var(--accent);
}

.news-history-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 1rem;
}

.about-copy {
  padding: 1.25rem;
  background: var(--panel);
  border: 2px solid var(--line);
}

.about-copy h3 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
}

.about-copy p:last-child,
.feature p:last-child,
.guide-body p:last-child,
.steps p:last-child,
.site-footer p {
  margin-bottom: 0;
}

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

.feature,
.guide-card,
.steps li {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 var(--black);
}

.feature {
  min-height: 190px;
  padding: 1rem;
}

.feature-mark {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 1rem;
  background: var(--accent);
  box-shadow: 8px 8px 0 var(--accent-dark);
}

.feature h3,
.steps h3 {
  color: var(--text);
}

.rules-block {
  margin-top: 1rem;
  padding: 1.25rem;
}

.rules-title {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  line-height: 1.45;
  text-shadow: 3px 3px 0 var(--black);
}

.rules-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

.rules-list > li::marker,
.rules-list li::marker {
  color: var(--accent);
}

.rules-list ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-left: 1.1rem;
}

.guides-list {
  display: grid;
  gap: 0.75rem;
}

.guide-card {
  overflow: hidden;
}

.guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.guide-toggle strong,
.guide-toggle small {
  display: block;
}

.guide-toggle strong {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.65;
}

.guide-toggle small {
  margin-top: 0.25rem;
  color: var(--soft);
  font-size: 0.56rem;
  line-height: 1.65;
}

.guide-toggle:hover,
.guide-toggle:focus-visible {
  color: var(--accent);
}

.toggle-mark {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: var(--black);
  border: 2px solid var(--accent-dark);
}

.toggle-mark::before,
.toggle-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 3px;
  content: "";
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.toggle-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.guide-toggle[aria-expanded="true"] .toggle-mark::after {
  opacity: 0;
}

.guide-body {
  padding: 0 1rem 1rem;
}

.guide-body p,
.guide-body li,
.steps p {
  line-height: 2.25;
}

.guide-body ul {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.guide-body li::marker {
  color: var(--accent);
}

.start-section {
  padding-bottom: clamp(2.4rem, 5vw, 3.4rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 1rem;
  min-height: 220px;
  padding: 1rem;
}

.step-number {
  align-self: start;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--black);
  background: var(--accent);
  border: 2px solid #fff889;
  border-right-color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
  box-shadow: 4px 4px 0 var(--black);
  font-family: var(--pixel);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
}

.social-section {
  padding-top: clamp(2.2rem, 5vw, 3.2rem);
}

.social-section .section-heading h2 {
  font-size: clamp(1.45rem, 4vw, 2.8rem);
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.site-footer {
  display: grid;
  gap: 0.45rem;
  width: min(var(--container), calc(100% - var(--gutter)));
  margin: 0 auto;
  padding: 1.8rem 0 2rem;
  color: var(--soft);
  border-top: 2px solid var(--line);
  font-size: 0.56rem;
}

.footer-main {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.footer-title {
  width: max-content;
  max-width: 100%;
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.6;
}

.footer-main span {
  color: var(--accent);
  font-size: 0.48rem;
  line-height: 1.6;
}

.footer-title {
  border-bottom: 2px solid transparent;
}

.footer-title:hover,
.footer-title:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent-dark);
}

.site-footer p {
  margin: 0;
  color: var(--soft);
}

@media (max-width: 1040px) {
  :root {
    --header-height: 162px;
  }

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

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-links a {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
  }

  .hero-content,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature,
  .steps li {
    min-height: 0;
  }
}

@media (min-width: 681px) and (max-height: 760px) {
  .site-header {
    padding: 0.4rem 0;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand {
    --brand-logo-size: 56px;
    --brand-title-size: 0.56rem;
    --brand-domain-size: 0.44rem;
    --brand-text-scale-y: 1;
  }

  .brand span {
    gap: 0.08rem;
  }

  .nav-links a {
    height: 56px;
    min-height: 56px;
  }

  .hero-content {
    padding: clamp(1rem, 3vw, 1.6rem);
  }

  h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.8rem, 4.7vw, 3.4rem);
    line-height: 1.18;
  }

  .hero-lead {
    margin-bottom: 0.7rem;
  }

  .server-card,
  .launch-card {
    padding: 0.7rem;
  }

  .copy-button,
  .button {
    min-height: 40px;
    padding: 0.65rem 0.8rem;
  }
}

@media (min-width: 681px) and (max-height: 680px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 0.35rem 0;
  }

  .brand {
    --brand-logo-size: 48px;
    --brand-title-size: 0.5rem;
    --brand-domain-size: 0.38rem;
    gap: 0.55rem;
  }

  .nav-links a {
    height: 48px;
    min-height: 48px;
    padding-inline: 0.62rem;
    font-size: 0.52rem;
  }

  .hero {
    padding-top: 0.45rem;
    padding-bottom: 0.65rem;
  }

  .hero-grid {
    inset: 0.4rem 0 0.55rem;
  }

  .hero-content {
    padding: clamp(0.85rem, 2.4vw, 1.25rem);
  }

  h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.12;
  }

  .hero-lead {
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
    line-height: 1.65;
  }

  .version-line {
    margin-bottom: 0.55rem;
  }

  .server-card,
  .launch-card {
    padding: 0.58rem;
  }

  .copy-button,
  .button {
    min-height: 36px;
    padding: 0.52rem 0.7rem;
  }

  .hero-actions {
    margin-top: 0.45rem;
  }

  .launch-timer span {
    padding: 0.38rem 0.34rem;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
    --section-y: 3rem;
    --header-height: 118px;
  }

  body {
    overflow-x: hidden;
    font-size: 9px;
    line-height: 1.8;
  }

  .site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: var(--header-height);
    margin: 0;
    padding: max(0.65rem, env(safe-area-inset-top)) var(--gutter) 0.65rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    background: var(--bg);
    border-bottom: 2px solid var(--line);
  }

  .brand {
    --brand-logo-size: 42px;
    --brand-title-size: clamp(0.56rem, 3vw, 0.72rem);
    --brand-domain-size: clamp(0.42rem, 2.4vw, 0.54rem);

    width: 100%;
    min-height: var(--brand-logo-size);
    gap: 0.62rem;
  }

  .brand img {
    width: var(--brand-logo-size);
    height: var(--brand-logo-size);
  }

  .brand span {
    height: var(--brand-logo-size);
    min-height: var(--brand-logo-size);
    max-width: calc(100% - var(--brand-logo-size) - 0.62rem);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
  }

  .nav-links a {
    height: 32px;
    min-height: 32px;
    padding: 0.08rem 0.2rem 0;
    font-size: clamp(0.3rem, 1.65vw, 0.4rem);
    line-height: 1.25;
    white-space: normal;
  }

  .section {
    width: 100%;
    padding: var(--section-y) var(--gutter);
    scroll-margin-top: 1rem;
  }

  .hero {
    width: 100%;
    min-height: calc(100dvh - var(--header-height));
    padding: 0.85rem var(--gutter) max(5.5rem, env(safe-area-inset-bottom));
    display: block;
    overflow: visible;
  }

  @supports not (height: 100dvh) {
    .hero {
      min-height: calc(100svh - var(--header-height));
    }
  }

  .hero-grid {
    inset: 0.85rem var(--gutter) max(5.5rem, env(safe-area-inset-bottom));
    box-shadow: 4px 4px 0 var(--black);
  }

  .hero-content {
    display: block;
    min-height: 0;
    padding: clamp(1rem, 3.2svh, 1.35rem) clamp(0.82rem, 4vw, 1.05rem);
  }

  .hero-copy {
    display: block;
    max-width: none;
    min-width: 0;
  }

  h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.35rem, 7.1vw, 2.05rem);
    line-height: 1.12;
    text-shadow: 4px 4px 0 var(--black);
  }

  .hero-lead {
    max-width: 100%;
    margin-bottom: 0.7rem;
    font-size: clamp(0.48rem, 2.35vw, 0.6rem);
    line-height: 1.7;
  }

  .version-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .version-line span {
    min-height: 30px;
    padding: 0.32rem 0.45rem;
    font-size: clamp(0.4rem, 1.95vw, 0.5rem);
    line-height: 1.45;
  }

  .server-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .server-label {
    margin-bottom: 0.25rem;
    font-size: clamp(0.42rem, 2vw, 0.52rem);
  }

  .server-card strong {
    font-size: clamp(0.64rem, 3.3vw, 0.86rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .copy-button {
    width: 100%;
    min-height: 36px;
    padding: 0.45rem 0.55rem;
    font-size: clamp(0.44rem, 2.15vw, 0.56rem);
  }

  .copy-icon {
    width: 14px;
    height: 14px;
  }

  .copy-status {
    min-height: 0.65rem;
    margin: 0.18rem 0 0;
    font-size: 0.42rem;
  }

  .launch-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-top: 0.45rem;
    padding: 0.6rem;
  }

  .launch-meta {
    display: grid;
    gap: 0.2rem;
  }

  .launch-meta strong {
    font-size: clamp(0.42rem, 2.05vw, 0.52rem);
    line-height: 1.45;
  }

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

  .launch-timer span {
    min-width: 0;
    padding: 0.32rem 0.12rem;
  }

  .launch-timer strong {
    font-size: clamp(0.5rem, 2.6vw, 0.65rem);
  }

  .launch-timer small {
    font-size: clamp(0.24rem, 1.35vw, 0.31rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .button {
    min-height: 36px;
    padding: 0.45rem 0.45rem;
    font-size: clamp(0.42rem, 2.1vw, 0.54rem);
  }

  h2 {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

  h3,
  .guide-toggle strong {
    font-size: 0.7rem;
  }

  .news-section,
  .about-section,
  .guides-section,
  .start-section,
  .social-section {
    width: 100%;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .news-section .section-heading h2,
  .about-section .section-heading h2,
  .guides-section .section-heading h2,
  .start-section .section-heading h2,
  .social-section .section-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2.5rem);
  }

  .about-layout,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature,
  .steps li {
    min-height: 0;
  }

  .site-footer {
    width: 100%;
    padding: 1.8rem var(--gutter) 2rem;
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    display: none;
  }

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

@keyframes loader-frame {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loader-logo {
  0% {
    filter: brightness(0.5);
    transform: scale(0.92);
  }

  100% {
    filter: brightness(1.15);
    transform: scale(1);
  }
}

@keyframes loader-idle {
  0% {
    box-shadow: 8px 8px 0 var(--black);
  }

  100% {
    box-shadow: 8px 8px 0 var(--black), 0 0 0 2px rgba(243, 234, 20, 0.2);
  }
}

@keyframes loader-out {
  0% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 8px 8px 0 var(--black), 0 0 0 2px rgba(243, 234, 20, 0.2);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
    box-shadow: 4px 4px 0 var(--black);
  }
}

@keyframes loader-logo-out {
  0% {
    filter: brightness(1.15);
    transform: scale(1);
  }

  100% {
    filter: brightness(0.65);
    transform: scale(0.94);
  }
}
