:root {
  --plum: #302442;
  --wine: #422427;
  --moss: #364224;
  --teal: #24423f;
  --ink: #090b0a;
  --ink-2: #101410;
  --panel: rgba(12, 17, 14, 0.86);
  --panel-soft: rgba(246, 241, 232, 0.055);
  --text: #f2eadb;
  --muted: #c6bba8;
  --dim: #938979;
  --line: rgba(230, 184, 93, 0.18);
  --line-cold: rgba(131, 213, 200, 0.16);
  --amber: #d6a24a;
  --amber-2: #e0b96a;
  --flame: #c66938;
  --aqua: #83d5c8;
  --danger: #ffb199;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.92), rgba(9, 11, 10, 0.98)),
    linear-gradient(135deg, var(--ink), var(--moss) 45%, var(--plum));
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 50%, rgba(0, 0, 0, 0.035) 50%),
    radial-gradient(circle at 28% 18%, rgba(131, 213, 200, 0.08), transparent 26rem),
    radial-gradient(circle at 74% 8%, rgba(214, 162, 74, 0.07), transparent 22rem);
  background-size: 100% 4px, auto, auto;
  mix-blend-mode: screen;
}

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

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

svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: 5.6rem;
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3.35rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(9, 11, 10, 0.86);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.header-account,
.header-download,
.button,
.section-actions {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 0.72rem;
  color: var(--text);
  font-weight: 850;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-block;
  flex: 0 0 auto;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.16) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.16) 42% 58%, transparent 58%),
    linear-gradient(135deg, var(--amber), var(--teal));
  border: 1px solid rgba(246, 241, 232, 0.24);
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(214, 162, 74, 0.28);
  transform: rotate(8deg);
}

.nav-links {
  justify-self: center;
  max-width: 100%;
  gap: 0.2rem;
  padding: 0.24rem;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--line-cold);
  border-radius: 8px;
  background: rgba(36, 66, 63, 0.22);
}

.nav-links a {
  flex: 0 0 auto;
  padding: 0.5rem 0.72rem;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(214, 162, 74, 0.12);
  outline: none;
}

.nav-links .nav-discord {
  color: var(--aqua);
}

.header-actions {
  justify-self: end;
  gap: 0.55rem;
}

.header-account,
.header-download {
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.62rem 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-account {
  background: rgba(36, 66, 63, 0.7);
}

.header-download {
  color: #140d08;
  background: linear-gradient(135deg, var(--amber-2), var(--flame));
}

.header-account:hover,
.header-account:focus-visible,
.header-account.is-active,
.header-download:hover,
.header-download:focus-visible,
.header-download.is-active {
  transform: translateY(-1px);
  border-color: rgba(230, 184, 93, 0.58);
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 710px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 5.5rem clamp(1rem, 5vw, 5rem) 3.5rem;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.hero-media-aeronautics {
  background-image: url("assets/aeronautics-hero.png");
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.98) 0%, rgba(9, 11, 10, 0.88) 37%, rgba(9, 11, 10, 0.42) 70%, rgba(9, 11, 10, 0.7) 100%),
    linear-gradient(0deg, rgba(9, 11, 10, 0.96), transparent 46%, rgba(9, 11, 10, 0.35));
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy,
.section-copy p,
.manual-panel p,
.manual-panel li,
.system-panel p,
.news-list p,
.support-panel p,
.launcher-panel p,
.launcher-steps,
.account-copy p,
.password-card p {
  color: var(--muted);
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 1.75rem;
  font-size: 1.14rem;
}

.hero-actions,
.section-actions {
  flex-wrap: wrap;
  gap: 0.72rem;
}

.hero-actions {
  margin-bottom: 1.15rem;
}

.button {
  min-height: 3rem;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(12, 17, 14, 0.74);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(230, 184, 93, 0.58);
  outline: none;
}

.button.primary {
  color: #160f0a;
  background: linear-gradient(135deg, var(--amber-2), var(--flame));
}

.button.secondary {
  background: rgba(36, 66, 63, 0.72);
}

.button.ghost {
  background: rgba(48, 36, 66, 0.48);
}

.button.discord {
  border-color: rgba(131, 213, 200, 0.34);
  background: rgba(36, 66, 63, 0.62);
}

.button.compact {
  width: fit-content;
}

.access-section,
.world-section,
.systems-section,
.news-section,
.support-section,
.final-cta,
.account-section,
.page-hero,
.manual-section,
.launcher-section {
  padding: 5.2rem clamp(1rem, 5vw, 5rem);
}

.access-section {
  background:
    linear-gradient(135deg, rgba(36, 66, 63, 0.42), rgba(9, 11, 10, 0.92)),
    var(--ink);
}

.section-copy {
  width: min(860px, 100%);
  margin-bottom: 2rem;
}

.section-copy p.is-error {
  color: var(--danger);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.access-grid li,
.manual-panel,
.system-panel,
.news-list article,
.support-panel,
.launcher-panel,
.auth-panel,
.profile-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(246, 241, 232, 0.055), rgba(246, 241, 232, 0.03)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.access-grid li {
  min-height: 9.8rem;
  padding: 1rem;
  border: 0;
  border-radius: 0;
}

.access-grid span,
.system-panel span,
.manual-panel > span,
.news-list time {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--amber-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.access-grid strong {
  display: block;
  font-size: 1rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(20rem, 1fr);
  gap: 2rem;
  align-items: center;
}

.world-section {
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.84), rgba(16, 20, 16, 0.96)),
    var(--ink-2);
}

.media-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-panel img,
.system-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.systems-section {
  background:
    linear-gradient(145deg, rgba(48, 36, 66, 0.5), rgba(9, 11, 10, 0.94)),
    var(--ink);
}

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

.system-panel {
  min-height: 18rem;
  overflow: hidden;
}

.system-panel > div {
  padding: 1.1rem;
}

.system-panel img {
  aspect-ratio: 16 / 9;
}

.news-section {
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.94), rgba(36, 66, 63, 0.28)),
    var(--ink);
}

.news-status {
  min-height: 1.5rem;
}

.news-status.is-error {
  color: var(--danger);
}

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

.news-list article {
  min-height: 13rem;
  padding: 1.1rem;
}

.news-page-hero {
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.96), rgba(9, 11, 10, 0.74)),
    url("assets/aeronautics-event.png") center / cover;
}

.news-page-section {
  padding: 5.2rem clamp(1rem, 5vw, 5rem);
  background:
    linear-gradient(180deg, rgba(9, 11, 10, 0.94), rgba(36, 66, 63, 0.24)),
    var(--ink);
}

.news-list-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-list-page article {
  min-height: 12rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.pagination a {
  min-width: 2.75rem;
  min-height: 2.65rem;
  display: inline-grid;
  place-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(12, 17, 14, 0.74);
  font-weight: 850;
}

.pagination a.is-active {
  color: #160f0a;
  background: linear-gradient(135deg, var(--amber-2), var(--flame));
}

.pagination a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.support-section {
  background:
    linear-gradient(110deg, rgba(66, 36, 39, 0.58), rgba(9, 11, 10, 0.9)),
    var(--wine);
}

.support-panel,
.launcher-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.35rem;
}

.support-side {
  display: grid;
  gap: 0.9rem;
}

.donate-qr {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line-cold);
  border-radius: 8px;
  background: rgba(246, 241, 232, 0.92);
  color: #111;
}

.donate-qr img {
  width: min(13rem, 100%);
  margin-inline: auto;
  border-radius: 4px;
  image-rendering: pixelated;
}

.donate-qr figcaption {
  margin-top: 0.65rem;
  color: #17120d;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 850;
}

.support-details {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.support-details div {
  padding: 0.75rem;
  border: 1px solid var(--line-cold);
  border-radius: 8px;
  background: rgba(9, 11, 10, 0.46);
}

.support-details dt {
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.support-details dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.final-cta {
  background: linear-gradient(180deg, var(--ink), #070807);
}

.page-hero {
  min-height: 26rem;
  display: grid;
  align-content: end;
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.96), rgba(9, 11, 10, 0.78)),
    url("assets/aeronautics-hero.png") center / cover;
}

.page-hero p {
  width: min(720px, 100%);
  color: var(--muted);
}

.manual-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: var(--ink);
}

.manual-panel {
  padding: 1.15rem;
}

.manual-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.manual-panel li + li {
  margin-top: 0.35rem;
}

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

.launcher-section {
  min-height: calc(100svh - 5rem);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 11, 10, 0.95), rgba(9, 11, 10, 0.62)),
    url("assets/aeronautics-satellite.png") center / cover;
}

.launcher-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.2rem;
  font-weight: 800;
}

.account-section {
  min-height: calc(100svh - 5rem);
  background:
    linear-gradient(135deg, rgba(36, 66, 63, 0.62), rgba(48, 36, 66, 0.42)),
    url("assets/aeronautics-kpt.png") center / cover fixed;
}

.account-copy {
  width: min(780px, 100%);
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 3px solid var(--amber);
  background: rgba(9, 11, 10, 0.52);
}

.account-copy h1 {
  font-size: 4.2rem;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.recovery-shell {
  width: min(42rem, 100%);
}

.auth-panel,
.profile-panel {
  min-height: 100%;
  padding: 1.2rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.28rem;
  border: 1px solid var(--line-cold);
  border-radius: 8px;
  background: rgba(9, 11, 10, 0.58);
}

.auth-tab {
  min-height: 2.6rem;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
}

.auth-tab.is-active,
.auth-tab:hover,
.auth-tab:focus-visible {
  color: var(--text);
  background: rgba(214, 162, 74, 0.14);
  outline: none;
}

.auth-form,
.auth-form form,
.skin-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: grid;
}

.link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--aqua);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--text);
  outline: none;
}

.small-reset {
  margin-inline: auto;
  font-size: 0.82rem;
}

.back-link {
  margin-bottom: -0.25rem;
  font-size: 0.9rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(230, 184, 93, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(9, 11, 10, 0.76);
  font: inherit;
  outline: none;
}

input[type="file"] {
  padding: 0.65rem;
}

input:focus {
  border-color: rgba(131, 213, 200, 0.62);
  box-shadow: 0 0 0 3px rgba(131, 213, 200, 0.11);
}

.account-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--aqua);
  font-weight: 800;
}

.account-message.is-error {
  color: var(--danger);
}

.profile-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.profile-head h2,
.profile-head h3 {
  margin-bottom: 0.25rem;
  font-size: 2rem;
}

.profile-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.2rem;
}

.profile-meta div {
  padding: 0.8rem;
  border: 1px solid var(--line-cold);
  border-radius: 8px;
  background: rgba(9, 11, 10, 0.48);
}

.profile-meta dt {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-meta dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.skin-block {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.skin-preview {
  position: relative;
  width: 100%;
  min-height: 17rem;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 78%, rgba(0, 0, 0, 0.36), transparent 30%),
    linear-gradient(145deg, rgba(36, 66, 63, 0.45), rgba(66, 36, 39, 0.32)),
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.08) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.08) 49% 51%, transparent 51%),
    rgba(9, 11, 10, 0.7);
  cursor: grab;
  user-select: none;
}

.skin-preview.is-dragging {
  cursor: grabbing;
}

.skin-preview span {
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 850;
}

.skin-preview canvas,
.skin-preview img {
  width: 100%;
  height: 100%;
  display: block;
}

.skin-preview canvas {
  touch-action: none;
}

.skin-preview img {
  object-fit: contain;
  image-rendering: pixelated;
}

.password-card {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 5rem);
  text-align: center;
  color: var(--muted);
  background: #070807;
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--text);
  font-weight: 850;
}

.site-footer a {
  color: var(--aqua);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .access-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero {
    min-height: 680px;
    padding-top: 3.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 11, 10, 0.98), rgba(9, 11, 10, 0.86) 62%, rgba(9, 11, 10, 0.5)),
      linear-gradient(0deg, rgba(9, 11, 10, 0.96), transparent 42%, rgba(9, 11, 10, 0.46));
  }

  .split-layout,
  .support-panel,
  .launcher-panel,
  .account-shell,
  .manual-section,
  .news-list-page,
  .news-list {
    grid-template-columns: 1fr;
  }

  .skin-block {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .skin-preview {
    width: min(13rem, 100%);
  }
}

@media (max-width: 620px) {
  h1,
  .account-copy h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  .site-header {
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-account,
  .header-download {
    min-height: 2.55rem;
    padding: 0.55rem 0.68rem;
  }

  .header-download span {
    max-width: 7.5rem;
    overflow-wrap: anywhere;
    line-height: 1.05;
  }

  .hero {
    min-height: 700px;
    padding-inline: 0.9rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .access-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .access-grid li {
    min-height: 7rem;
  }

  .profile-meta,
  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .profile-head {
    flex-direction: column;
  }

  .account-section {
    background-attachment: scroll;
  }
}
