:root {
  color-scheme: dark light;
  --bg: #0b0f12;
  --panel: #111820;
  --panel-2: #17212a;
  --text: #eef3f5;
  --muted: #9badb6;
  --line: #2a3943;
  --header-bg: rgba(11, 15, 18, 0.82);
  --select-bg: #0c1217;
  --hero-copy-bg: linear-gradient(90deg, rgba(5, 10, 12, 0.5), rgba(5, 10, 12, 0.18));
  --section-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  --green: #7bdc8d;
  --amber: #f0b45b;
  --red: #f26f5f;
  --cyan: #62c6d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(98, 198, 217, 0.18), transparent 34rem),
    radial-gradient(circle at 78% 0%, rgba(123, 220, 141, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body,
button,
select,
a {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid var(--section-border);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #050505;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.main-nav a {
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
}

.main-nav a:hover {
  background: rgba(98, 198, 217, 0.1);
  color: var(--text);
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.language-control select {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 2rem 0 0.65rem;
  background: var(--select-bg);
  color: var(--text);
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: calc(100vh - 5rem);
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem) 4.5rem;
  background:
    linear-gradient(90deg, rgba(3, 7, 9, 0.9) 0%, rgba(3, 7, 9, 0.72) 34%, rgba(3, 7, 9, 0.22) 66%, rgba(3, 7, 9, 0.08) 100%),
    linear-gradient(0deg, rgba(11, 15, 18, 0.78) 0%, transparent 30%, rgba(11, 15, 18, 0.12) 100%);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.2);
  filter: saturate(1.08) contrast(1.06) brightness(0.92);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 42%, rgba(98, 198, 217, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(11, 15, 18, 0) 72%, var(--bg) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  margin-top: clamp(0.5rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.55rem);
  border-left: 2px solid rgba(123, 220, 141, 0.72);
  background: var(--hero-copy-bg);
  backdrop-filter: blur(2px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.hero-text,
.section p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text {
  color: rgba(238, 243, 245, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

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

.button,
button {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  padding: 0.78rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.button.primary,
button {
  border-color: transparent;
  background: var(--green);
  color: #071009;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tactical-panel {
  position: relative;
  min-height: 34rem;
  border: 1px solid rgba(203, 218, 213, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 65%, rgba(76, 103, 124, 0.24), transparent 32%),
    radial-gradient(circle at 70% 18%, rgba(174, 199, 165, 0.08), transparent 30%),
    linear-gradient(145deg, #111720, #070b0f 64%, #020405);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.3),
    inset 0 0 32px rgba(203, 218, 213, 0.08);
}

.tactical-panel::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 2px solid rgba(230, 236, 222, 0.72);
  border-radius: 2.2rem;
  box-shadow:
    inset 0 0 22px rgba(107, 142, 255, 0.1),
    0 0 20px rgba(230, 236, 222, 0.08);
  pointer-events: none;
  z-index: 4;
}

.radar {
  position: absolute;
  inset: 1.2rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 50% 68%, rgba(113, 116, 220, 0.18) 0 16%, transparent 16.4%),
    radial-gradient(circle at 50% 68%, transparent 0 33%, rgba(113, 116, 220, 0.22) 33.2% 33.6%, transparent 33.9%),
    radial-gradient(circle at 50% 68%, transparent 0 53%, rgba(113, 116, 220, 0.2) 53.2% 53.6%, transparent 53.9%),
    radial-gradient(circle at 50% 68%, transparent 0 73%, rgba(113, 116, 220, 0.18) 73.2% 73.6%, transparent 73.9%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.82), rgba(6, 9, 13, 0.96));
  box-shadow: inset 0 0 48px rgba(18, 30, 48, 0.72);
  overflow: hidden;
}

.radar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 31%;
  width: 1px;
  height: 58%;
  background: rgba(122, 179, 238, 0.52);
  transform-origin: bottom center;
  transform: rotate(-22deg);
  box-shadow:
    5.4rem 0 0 rgba(122, 179, 238, 0.34),
    -5.4rem 0 0 rgba(122, 179, 238, 0.26);
}

.radar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 31%;
  width: 1px;
  height: 58%;
  background: rgba(122, 179, 238, 0.54);
  transform-origin: bottom center;
  transform: rotate(22deg);
}

.mfd-label,
.scale-number,
.radar-fuel,
.contact,
.ownship {
  position: absolute;
  z-index: 3;
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.mfd-label,
.scale-number,
.radar-fuel {
  color: rgba(236, 243, 238, 0.92);
  text-shadow: 0 0 7px rgba(223, 239, 234, 0.22);
}

.mfd-label {
  font-size: clamp(0.82rem, 2vw, 1.15rem);
}

.label-dep { left: 13%; top: 4%; }
.label-dcpl { left: 30%; top: 4%; }
.label-norm { left: 48%; top: 4%; transform: translateX(-50%); }
.label-msg { right: 28%; top: 4%; }
.label-cntl { right: 8%; top: 4%; }
.label-xmt { right: 5%; top: 18%; text-align: center; }
.label-fz { right: 6%; top: 35%; text-align: center; }
.label-fr { right: 6%; bottom: 32%; text-align: center; }
.label-swap { left: 13%; bottom: 5%; }
.label-sms { left: 31%; bottom: 5%; }
.label-hsd {
  left: 50%;
  bottom: 4.3%;
  padding: 0.1rem 0.34rem;
  color: #18202b;
  background: rgba(238, 242, 236, 0.94);
  transform: translateX(-50%);
}
.label-dclt { right: 10%; bottom: 5%; }

.scale {
  position: absolute;
  left: 5.4%;
  z-index: 3;
  width: 1.8rem;
  height: 1.25rem;
  border-left: 0.18rem solid rgba(236, 243, 238, 0.92);
  border-top: 0.18rem solid rgba(236, 243, 238, 0.92);
  transform: rotate(45deg);
}

.scale-up { top: 24%; }
.scale-down { top: 34%; transform: rotate(225deg); }

.scale-number {
  left: 6.3%;
  top: 30%;
  font-size: 1.1rem;
}

.radar-fuel {
  left: 6%;
  bottom: 12%;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 0.12rem solid rgba(127, 210, 246, 0.9);
  border-radius: 50%;
  color: rgba(148, 220, 255, 0.95);
  font-size: 0.88rem;
  text-align: center;
}

.radar-fuel small {
  position: absolute;
  top: 2.45rem;
  font-size: 0.76rem;
}

.scan-wedge {
  position: absolute;
  left: 50%;
  bottom: 31%;
  width: 1px;
  height: 60%;
  z-index: 1;
  background: linear-gradient(0deg, rgba(128, 188, 255, 0.7), rgba(128, 188, 255, 0.06));
  transform-origin: bottom center;
  opacity: 0.52;
}

.scan-left {
  transform: rotate(-31deg);
  animation: radarSweepLeft 4.6s ease-in-out infinite alternate;
}

.scan-right {
  transform: rotate(31deg);
  animation: radarSweepRight 4.6s ease-in-out infinite alternate;
}

.lock-ring {
  position: absolute;
  z-index: 2;
  border: 0.16rem solid rgba(242, 240, 177, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(242, 240, 177, 0.12);
}

.lock-primary {
  left: 42%;
  top: 8%;
  width: 7.8rem;
  height: 7.8rem;
}

.lock-secondary {
  right: 22%;
  top: 29%;
  width: 6.1rem;
  height: 6.1rem;
}

.contact {
  min-width: 2rem;
  min-height: 2.2rem;
}

.contact b,
.contact small,
.ownship b,
.ownship small {
  position: absolute;
  display: block;
  font-size: 0.82rem;
}

.hostile {
  color: #ff746f;
}

.hostile::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0;
  width: 0;
  height: 0;
  border-left: 0.42rem solid transparent;
  border-right: 0.42rem solid transparent;
  border-top: 1.1rem solid #ff746f;
  filter: drop-shadow(0 0 8px rgba(255, 116, 111, 0.5));
}

.hostile b {
  left: 0.45rem;
  top: 1.1rem;
}

.hostile small {
  left: 1.45rem;
  top: 1.45rem;
  color: rgba(242, 240, 177, 0.9);
}

.hostile-a { left: 46%; top: 15%; }
.hostile-b { right: 35%; top: 28%; }
.hostile-c { right: 26%; top: 28%; }

.friendly {
  color: #45f57d;
}

.friendly::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #45f57d;
  box-shadow: 0 0 12px rgba(69, 245, 125, 0.62);
}

.friendly::after {
  content: "";
  position: absolute;
  left: 0.76rem;
  top: 0.88rem;
  width: 0.16rem;
  height: 1.45rem;
  background: #45f57d;
}

.friendly b {
  left: 0.2rem;
  top: 2.08rem;
}

.friendly-a { left: 30%; top: 30%; }

.ownship {
  left: 50%;
  bottom: 28%;
  width: 1.4rem;
  height: 1.4rem;
  color: #6eeeff;
  border: 0.14rem solid rgba(110, 238, 255, 0.9);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 13px rgba(110, 238, 255, 0.52);
}

.ownship::before,
.ownship::after {
  content: "";
  position: absolute;
  background: rgba(110, 238, 255, 0.85);
}

.ownship::before {
  left: 50%;
  top: -0.4rem;
  width: 1px;
  height: 2.2rem;
}

.ownship::after {
  left: -0.4rem;
  top: 50%;
  width: 2.2rem;
  height: 1px;
}

.ownship b {
  left: 0.39rem;
  top: 0.24rem;
  font-size: 0.68rem;
}

.ownship small {
  left: 0.15rem;
  top: 1.6rem;
  color: #6eeeff;
}

.stats,
.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  padding-top: 1px;
  padding-bottom: 1px;
}

.stats div {
  min-height: 18rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(17, 24, 32, 0.94);
}

.game-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(123, 220, 141, 0.16), rgba(98, 198, 217, 0.1)),
    var(--panel-2);
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.game-poster-contain {
  padding: 0.6rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(98, 198, 217, 0.14), transparent 55%),
    #090f14;
  object-fit: contain;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 0.3rem;
  color: var(--amber);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.stats span {
  color: var(--muted);
}

.branches {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(98, 198, 217, 0.1), transparent 36%),
    linear-gradient(315deg, rgba(240, 180, 91, 0.12), transparent 42%),
    #0c1217;
}

.branch-backgrounds,
.branch-backgrounds::after,
.branch-background {
  position: absolute;
  inset: 0;
}

.branch-backgrounds {
  z-index: -2;
  pointer-events: none;
}

.branch-backgrounds::after {
  content: "";
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 18, 23, 0.94) 0%, rgba(12, 18, 23, 0.76) 42%, rgba(12, 18, 23, 0.5) 100%),
    linear-gradient(180deg, rgba(12, 18, 23, 0.14), rgba(12, 18, 23, 0.86));
}

.branch-background {
  opacity: 0;
  background-position: center center;
  background-size: cover;
  transform: scale(1.03);
  transition: opacity 420ms ease, transform 900ms ease;
}

.branch-background.is-visible {
  opacity: 1;
  transform: scale(1);
}

.branch-background-fs {
  background-image: url("branch-fs.jpg");
  background-position: center 45%;
}

.branch-background-vfa {
  background-image: url("branch-vfa.jpg");
  background-position: center 48%;
}

.branch-background-hc {
  background-image: url("branch-hc.jpg");
  background-position: center 42%;
}

.branch-background-cafb {
  background-image: url("branch-cafb.jpg");
  background-position: center 52%;
}

.branches .section-heading {
  position: relative;
  max-width: 56rem;
}

.branches .section-heading p:not(.eyebrow) {
  max-width: 46rem;
  color: var(--muted);
}

.branch-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.branch-card {
  min-height: 17rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(98, 198, 217, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(98, 198, 217, 0.08), transparent),
    rgba(17, 24, 32, 0.78);
  box-shadow:
    inset 0 0 28px rgba(98, 198, 217, 0.05),
    0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
  cursor: default;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.branch-card:hover,
.branch-card:focus-visible,
.branch-card.is-active {
  transform: translateY(-0.25rem);
  border-color: rgba(123, 220, 141, 0.72);
  background:
    linear-gradient(180deg, rgba(98, 198, 217, 0.14), transparent),
    rgba(17, 24, 32, 0.88);
  box-shadow:
    inset 0 0 34px rgba(98, 198, 217, 0.09),
    0 24px 58px rgba(0, 0, 0, 0.22);
}

.branch-card span {
  width: fit-content;
  min-width: 4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(123, 220, 141, 0.44);
  border-radius: 999px;
  color: var(--green);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.branch-card h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.branch-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.branch-card strong {
  color: var(--amber);
  font-size: 0.9rem;
}

.branch-civil {
  border-color: rgba(240, 180, 91, 0.35);
  background:
    linear-gradient(180deg, rgba(240, 180, 91, 0.1), transparent),
    rgba(17, 24, 32, 0.9);
}

.netdisk-service {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(120deg, rgba(98, 198, 217, 0.18), transparent 48%),
    linear-gradient(270deg, rgba(123, 220, 141, 0.12), transparent 44%),
    #0d141a;
}

.netdisk-copy {
  max-width: 48rem;
}

.netdisk-copy h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.netdisk-copy p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.netdisk-button {
  margin-top: 1.4rem;
}

.netdisk-console {
  min-height: 14rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(98, 198, 217, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(98, 198, 217, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 198, 217, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(16, 28, 36, 0.96), rgba(7, 12, 16, 0.98));
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow:
    inset 0 0 32px rgba(98, 198, 217, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.24);
}

.netdisk-console span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.netdisk-capacity {
  display: grid;
  gap: 0.8rem;
}

.netdisk-capacity strong {
  color: var(--text);
  font-family: "Consolas", "Courier New", monospace;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1;
}

.netdisk-capacity em {
  display: block;
  height: 0.72rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  overflow: hidden;
}

.netdisk-capacity i {
  display: block;
  height: 100%;
  min-width: 0.5rem;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(98, 198, 217, 0.42);
  transition: width 900ms ease;
}

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

.netdisk-grid b {
  min-height: 3.1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.76rem;
}

.srs-service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 198, 92, 0.12), transparent 42%),
    linear-gradient(270deg, rgba(98, 198, 217, 0.12), transparent 48%),
    #10151c;
}

.srs-copy h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.srs-copy p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.srs-toggle {
  margin-top: 1.35rem;
}

.srs-guide {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(98, 198, 217, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(98, 198, 217, 0.08), transparent),
    rgba(8, 13, 18, 0.78);
  box-shadow: inset 0 0 28px rgba(98, 198, 217, 0.06);
}

.srs-guide[hidden] {
  display: none;
}

.srs-guide ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.srs-guide li {
  color: var(--muted);
  line-height: 1.65;
}

.livery-service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(23rem, 42vw, 34rem);
  display: flex;
  align-items: center;
  padding: clamp(2.4rem, 6vw, 4.8rem) clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080d12;
}

.livery-backgrounds,
.livery-backgrounds::after,
.livery-background {
  position: absolute;
  inset: 0;
}

.livery-backgrounds {
  z-index: -2;
  pointer-events: none;
}

.livery-backgrounds::after {
  content: "";
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 9, 12, 0.88) 0%, rgba(5, 9, 12, 0.66) 34%, rgba(5, 9, 12, 0.22) 66%, rgba(5, 9, 12, 0.42) 100%),
    linear-gradient(0deg, rgba(11, 15, 18, 0.5), rgba(11, 15, 18, 0.06));
}

.livery-background {
  z-index: 1;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.025);
  transition: opacity 420ms ease, transform 900ms ease;
}

.livery-background.is-visible {
  opacity: 1;
  transform: scale(1);
}

.livery-background-1 {
  background-image: url("livery-slide-1.jpg");
  background-position: center 46%;
}

.livery-background-2 {
  background-image: url("livery-slide-2.jpg");
  background-position: center 48%;
}

.livery-background-3 {
  background-image: url("livery-slide-3.jpg");
  background-position: center 50%;
}

.livery-background-4 {
  background-image: url("livery-slide-4.png");
  background-position: center 48%;
}

.livery-background-5 {
  background-image: url("livery-slide-5.png");
  background-position: center 48%;
}

.livery-background-6 {
  background-image: url("livery-slide-6.png");
  background-position: center 50%;
}

.livery-copy {
  max-width: 44rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid rgba(98, 198, 217, 0.8);
  background: linear-gradient(90deg, rgba(7, 13, 16, 0.56), rgba(7, 13, 16, 0.12));
  backdrop-filter: blur(2px);
}

.livery-copy h2 {
  max-width: 18ch;
  margin-bottom: 0.9rem;
}

.livery-copy p:not(.eyebrow) {
  max-width: 40rem;
  color: rgba(238, 243, 245, 0.84);
  font-size: 1.08rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.52);
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
}

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

.feature-grid article {
  min-height: 13rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.74);
}

.feature-grid p,
.schedule p {
  color: var(--muted);
}

.split,
.join {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule {
  display: grid;
  gap: 0.85rem;
}

.schedule-row {
  padding: 1.2rem;
  border-left: 3px solid var(--green);
  background: var(--panel);
}

.schedule-row span {
  display: block;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 800;
}

.aircraft {
  background: #e7eceb;
  color: #151b1e;
}

.aircraft .eyebrow {
  color: #2d6941;
}

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

.module-heading {
  margin-top: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.2rem;
}

.module-heading h3 {
  margin: 0;
  color: #151b1e;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.aircraft-card {
  position: relative;
  min-height: 8.2rem;
  overflow: hidden;
  border: 1px solid #253d46;
  border-radius: 6px;
  background: #16242a;
  box-shadow: 0 14px 30px rgba(17, 28, 33, 0.18);
  isolation: isolate;
}

.aircraft-card img {
  width: 100%;
  height: 100%;
  min-height: 8.2rem;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.aircraft-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

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

.module-card {
  min-height: 14rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #c5cfcb;
  border-radius: 6px;
  background: #f7faf8;
  box-shadow: 0 14px 30px rgba(17, 28, 33, 0.14);
}

.module-card img {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  display: block;
  object-fit: cover;
}

.module-card span {
  display: block;
  padding: 0.9rem 1rem;
  color: #151b1e;
  font-weight: 900;
}

.forum-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.58fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(120deg, rgba(15, 21, 28, 0.94), rgba(19, 34, 40, 0.86)),
    radial-gradient(circle at 84% 50%, rgba(240, 180, 91, 0.18), transparent 18rem);
}

.forum-copy {
  max-width: 46rem;
}

.forum-copy h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.forum-copy p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
}

.forum-button {
  margin-top: 0.65rem;
}

.forum-panel {
  min-height: 15rem;
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 2rem;
  border: 1px solid rgba(240, 180, 91, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 180, 91, 0.16), rgba(98, 198, 217, 0.1)),
    #0c1217;
  box-shadow: inset 0 0 2.5rem rgba(240, 180, 91, 0.08);
}

.forum-panel span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.forum-panel strong {
  color: var(--text);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.forum-panel em {
  color: var(--cyan);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.discord-panel {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  min-height: 10rem;
  padding: 1.5rem;
  border: 1px solid #5865f2;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), var(--panel));
}

.discord-panel span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.discord-button {
  border-color: transparent;
  background: #5865f2;
  color: #fff;
}

.server {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.memory-panel {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  min-height: 10rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(98, 198, 217, 0.16), transparent),
    var(--panel);
}

.memory-panel span,
.memory-meter b {
  display: block;
}

.memory-panel span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.memory-panel strong {
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.memory-panel.unknown .memory-meter b {
  color: var(--muted);
}

.memory-meter {
  display: grid;
  gap: 0.55rem;
}

.memory-meter b {
  color: var(--cyan);
  font-size: 1.2rem;
}

.memory-meter em {
  display: block;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.memory-meter em span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 900ms ease;
}

.server-tile {
  min-height: 7.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
}

.server-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.server-head span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.server-head i {
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 18px var(--status);
}

.occupancy {
  width: 100%;
  display: grid;
  gap: 0.45rem;
}

.occupancy b {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.occupancy em {
  display: block;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.occupancy em span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--status), var(--cyan));
  transition: width 700ms ease;
}

.server-tile.online,
.server-tile.active {
  --status: var(--green);
}

.server-tile.mixed {
  --status: var(--red);
}

.server-tile.unstable {
  --status: var(--amber);
}

.server-tile.offline {
  --status: #2a3338;
}

.server-tile.offline .server-head i {
  background: #263037;
  box-shadow: none;
  opacity: 0.45;
}

.server-tile.offline .occupancy b {
  color: var(--muted);
}

.server-tile.offline .occupancy em span {
  background: transparent;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

footer p {
  margin: 0;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7f6;
    --panel: #ffffff;
    --panel-2: #edf3f3;
    --text: #111a1f;
    --muted: #58676e;
    --line: #cfd9dc;
    --header-bg: rgba(244, 247, 246, 0.84);
    --select-bg: #ffffff;
    --hero-copy-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34));
    --section-border: rgba(17, 26, 31, 0.1);
    --card-shadow: 0 18px 36px rgba(28, 46, 54, 0.13);
    --green: #2f8f5b;
    --amber: #b26d22;
    --red: #c94838;
    --cyan: #227e94;
  }

  body {
    background:
      radial-gradient(circle at 14% 8%, rgba(34, 126, 148, 0.14), transparent 30rem),
      radial-gradient(circle at 86% 2%, rgba(47, 143, 91, 0.12), transparent 26rem),
      var(--bg);
  }

  .brand-logo {
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(28, 46, 54, 0.12);
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(244, 247, 246, 0.9) 0%, rgba(244, 247, 246, 0.7) 30%, rgba(244, 247, 246, 0.18) 62%, rgba(244, 247, 246, 0.06) 100%),
      linear-gradient(0deg, rgba(244, 247, 246, 0.82) 0%, transparent 32%, rgba(244, 247, 246, 0.08) 100%);
  }

  .hero-media {
    filter: saturate(1.04) contrast(1.02) brightness(1.05);
  }

  .hero::before {
    background:
      radial-gradient(circle at 18% 42%, rgba(34, 126, 148, 0.16), transparent 24rem),
      linear-gradient(180deg, rgba(244, 247, 246, 0) 72%, var(--bg) 100%);
  }

  .hero-copy {
    border-left-color: rgba(47, 143, 91, 0.72);
    color: var(--text);
  }

  .hero-text {
    color: rgba(17, 26, 31, 0.82);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.42);
  }

  .button,
  button {
    box-shadow: 0 12px 24px rgba(28, 46, 54, 0.12);
  }

  .button.primary,
  button {
    color: #ffffff;
  }

  .button.secondary {
    background: rgba(255, 255, 255, 0.72);
  }

  .stats {
    background: #d5e0e2;
  }

  .stats div,
  .feature-grid article,
  .schedule-row,
  .server-tile,
  .memory-panel {
    background: var(--panel);
    box-shadow: var(--card-shadow);
  }

  .game-poster-contain {
    background:
      radial-gradient(circle at 50% 30%, rgba(34, 126, 148, 0.12), transparent 55%),
      #ffffff;
  }

  .branches {
    background:
      linear-gradient(145deg, rgba(34, 126, 148, 0.1), transparent 36%),
      linear-gradient(315deg, rgba(178, 109, 34, 0.1), transparent 42%),
      #eef4f4;
  }

  .branch-backgrounds::after {
    background:
      linear-gradient(90deg, rgba(244, 247, 246, 0.92) 0%, rgba(244, 247, 246, 0.7) 42%, rgba(244, 247, 246, 0.42) 100%),
      linear-gradient(180deg, rgba(244, 247, 246, 0.12), rgba(244, 247, 246, 0.88));
  }

  .branch-card,
  .branch-civil {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--card-shadow);
  }

  .branch-card:hover,
  .branch-card:focus-visible,
  .branch-card.is-active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 52px rgba(28, 46, 54, 0.18);
  }

  .netdisk-service {
    background:
      linear-gradient(120deg, rgba(34, 126, 148, 0.12), transparent 48%),
      linear-gradient(270deg, rgba(47, 143, 91, 0.1), transparent 44%),
      #f5faf9;
  }

  .netdisk-console,
  .srs-guide,
  .forum-panel {
    background:
      linear-gradient(135deg, rgba(34, 126, 148, 0.08), rgba(47, 143, 91, 0.04)),
      #ffffff;
    box-shadow: var(--card-shadow);
  }

  .netdisk-grid b {
    border-color: rgba(17, 26, 31, 0.1);
    background: rgba(34, 126, 148, 0.06);
  }

  .srs-service {
    background:
      linear-gradient(135deg, rgba(178, 109, 34, 0.1), transparent 42%),
      linear-gradient(270deg, rgba(34, 126, 148, 0.1), transparent 48%),
      #f2f6f7;
  }

  .livery-service {
    background: #eef4f4;
  }

  .livery-backgrounds::after {
    background:
      linear-gradient(90deg, rgba(244, 247, 246, 0.9) 0%, rgba(244, 247, 246, 0.68) 36%, rgba(244, 247, 246, 0.2) 68%, rgba(244, 247, 246, 0.36) 100%),
      linear-gradient(0deg, rgba(244, 247, 246, 0.5), rgba(244, 247, 246, 0.05));
  }

  .livery-copy {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.2));
  }

  .livery-copy p:not(.eyebrow) {
    color: rgba(17, 26, 31, 0.82);
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.48);
  }

  .aircraft {
    background: #e8efed;
  }

  .forum-service {
    background:
      linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 242, 0.86)),
      radial-gradient(circle at 84% 50%, rgba(178, 109, 34, 0.13), transparent 18rem);
  }

  .forum-panel strong {
    color: var(--text);
  }

  .occupancy em,
  .memory-meter em,
  .netdisk-capacity em {
    background: rgba(17, 26, 31, 0.1);
  }

  footer {
    background: #eef4f4;
  }
}

@keyframes radarSweepLeft {
  from {
    transform: rotate(-35deg);
  }

  to {
    transform: rotate(-16deg);
  }
}

@keyframes radarSweepRight {
  from {
    transform: rotate(35deg);
  }

  to {
    transform: rotate(16deg);
  }
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .join,
  .netdisk-service,
  .srs-service,
  .forum-service {
    grid-template-columns: 1fr;
  }

  .livery-service {
    background-position: 62% center;
  }

  .hero {
    padding-top: 2.5rem;
    justify-content: flex-start;
    background-position: center center;
  }

  .hero-copy {
    width: min(38rem, 100%);
  }

  h1 {
    max-width: 9ch;
  }

  .tactical-panel {
    min-height: 26rem;
  }

  .stats,
  .feature-grid,
  .branch-grid,
  .aircraft-list,
  .module-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .main-nav {
    justify-content: flex-start;
  }

  .stats,
  .feature-grid,
  .branch-grid,
  .aircraft-list,
  .module-list,
  .netdisk-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.2rem;
  }

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

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