:root {
  --bg: #080714;
  --bg-soft: #111027;
  --panel: #17142f;
  --panel-light: #27204a;
  --text: #f4f7f1;
  --muted: #adbacb;
  --line: rgba(255, 255, 255, .09);
  --green: #63c671;
  --green-dark: #369352;
  --gold: #f2b934;
  --gold-deep: #a76521;
  --violet: #8d54ff;
  --violet-dark: #33205d;
  --steel: #9dadc9;
  --steel-dark: #35445f;
  --cyan: #73d8ff;
  --danger: #e56d5f;
  --shadow: 0 18px 60px rgba(0, 0, 0, .32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(141, 84, 255, .16), transparent 420px),
    radial-gradient(circle at 82% 14%, rgba(115, 216, 255, .18), transparent 320px),
    radial-gradient(circle at 42% 18%, rgba(242, 185, 52, .12), transparent 290px),
    radial-gradient(circle at 12% 26%, rgba(157, 173, 201, .13), transparent 280px),
    var(--bg);
  overflow-x: hidden;
  position: relative;
}

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

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

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

.ambient canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
}

.site-header,
main,
.site-footer,
.checkout-modal {
  position: relative;
  z-index: 1;
}

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

.ambient span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(244, 247, 241, .85);
  box-shadow:
    0 0 0 2px rgba(115, 216, 255, .12),
    0 0 18px rgba(115, 216, 255, .55);
  image-rendering: pixelated;
  animation: starFloat 8s ease-in-out infinite;
}

.ambient span:nth-of-type(1) {
  left: 8%;
  top: 18%;
}

.ambient span:nth-of-type(2) {
  left: 22%;
  top: 72%;
  animation-delay: -2s;
}

.ambient span:nth-of-type(3) {
  left: 52%;
  top: 14%;
  animation-delay: -4s;
}

.ambient span:nth-of-type(4) {
  left: 78%;
  top: 34%;
  background: var(--gold);
  animation-delay: -1s;
}

.ambient span:nth-of-type(5) {
  left: 92%;
  top: 68%;
  animation-delay: -5s;
}

.ambient span:nth-of-type(6) {
  left: 38%;
  top: 48%;
  background: var(--cyan);
  animation-delay: -3s;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(8, 7, 20, .9);
  border-bottom: 3px solid rgba(141, 84, 255, .34);
  backdrop-filter: blur(16px);
  animation: headerDrop .7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  width: clamp(150px, 18vw, 230px);
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .34));
  transition: transform .22s ease, filter .22s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
  filter:
    drop-shadow(0 5px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 0 16px rgba(242, 185, 52, .2));
}

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

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(242, 185, 52, .13), rgba(115, 216, 255, .07));
  border-color: rgba(242, 185, 52, .25);
}

.site-nav a.launcher-nav {
  color: #321703;
  background: linear-gradient(180deg, #fff0a6, #f2b934 62%, #a76521);
  border: 3px solid #6d390e;
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .28),
    0 5px 0 rgba(75, 33, 8, .55),
    0 0 22px rgba(242, 185, 52, .22);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  animation: launcherNavPulse 2.4s ease-in-out infinite;
}

.site-nav a.launcher-nav:hover,
.site-nav a.launcher-nav.active {
  color: #321703;
  border-color: #8a4d14;
  background: linear-gradient(180deg, #fff6c4, #ffc94a 62%, #b96f20);
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .42),
    0 6px 0 rgba(75, 33, 8, .62),
    0 0 34px rgba(242, 185, 52, .36);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 185, 52, .18);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(141, 84, 255, .23), transparent 30%),
    linear-gradient(135deg, rgba(53, 68, 95, .58), transparent 46%, rgba(167, 101, 33, .2));
  background-size: 48px 48px, 48px 48px, auto, auto;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
  animation: gridDrift 18s linear infinite;
}

.game-window {
  position: relative;
  margin-block: 38px 54px;
  padding: clamp(18px, 3vw, 34px);
  border: 4px solid #1a1232;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    radial-gradient(circle at 56% 18%, rgba(141, 84, 255, .32), transparent 34%),
    linear-gradient(180deg, #12102b, #0b0920 72%, #170d2a);
  box-shadow:
    0 0 0 4px rgba(141, 84, 255, .24),
    0 22px 70px rgba(0, 0, 0, .56),
    inset 0 0 0 2px rgba(255, 255, 255, .05);
  overflow: hidden;
}

.game-window::before,
.game-window::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 2px solid rgba(115, 216, 255, .18);
  border-radius: 8px;
}

.game-window::after {
  inset: auto 28px 0;
  height: 8px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), transparent);
  opacity: .42;
  animation: dockGlow 3.6s ease-in-out infinite;
}

.game-topbar,
.game-layout,
.news-panel,
.game-dock {
  position: relative;
  z-index: 2;
}

.game-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.game-logo {
  width: min(430px, 58vw);
  height: auto;
  filter:
    drop-shadow(0 7px 0 rgba(0, 0, 0, .46))
    drop-shadow(0 0 24px rgba(242, 185, 52, .18));
  animation: logoPulse 4.4s ease-in-out infinite;
}

.player-widget {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 240px;
  padding: 10px;
  border: 3px solid rgba(141, 84, 255, .42);
  border-radius: 8px;
  background: rgba(9, 8, 25, .82);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .24);
}

.avatar {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid rgba(115, 216, 255, .5);
  border-radius: 8px;
  color: #160d2f;
  background: linear-gradient(135deg, #d9f6ff, #73d8ff 48%, #f2b934);
  font-weight: 950;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.player-widget strong,
.player-widget span {
  display: block;
}

.player-widget strong {
  font-size: 1.05rem;
}

.player-widget span {
  color: var(--muted);
  font-size: .9rem;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.panel-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .55);
}

.play-panel,
.realm-panel,
.news-panel {
  padding: 14px;
  border: 3px solid rgba(141, 84, 255, .42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
    rgba(8, 7, 20, .72);
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, .28),
    0 18px 44px rgba(0, 0, 0, .28);
}

.pixel-art {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  border: 3px solid #17112d;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(115, 216, 255, .22), transparent 45%),
    radial-gradient(circle at 52% 28%, rgba(115, 216, 255, .38), transparent 18%),
    linear-gradient(180deg, #15113b 0%, #241854 46%, #123b4e 68%, #163f38 100%);
  box-shadow:
    inset 0 0 0 3px rgba(115, 216, 255, .12),
    inset 0 -10px 0 rgba(0, 0, 0, .22);
  image-rendering: pixelated;
}

.pixel-sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, .8) 18% 19%, transparent 19% 100%),
    linear-gradient(90deg, transparent 0 64%, rgba(242, 185, 52, .8) 64% 65%, transparent 65% 100%),
    linear-gradient(90deg, transparent 0 82%, rgba(115, 216, 255, .8) 82% 83%, transparent 83% 100%);
  background-size: 100% 58px, 100% 84px, 100% 116px;
  opacity: .72;
  animation: starRain 9s linear infinite;
}

.pixel-moon {
  position: absolute;
  left: 50%;
  top: 32%;
  width: clamp(145px, 23vw, 220px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 30%, rgba(255, 245, 178, .95) 0 7%, transparent 7.5%),
    radial-gradient(circle at 72% 70%, rgba(167, 101, 33, .28) 0 10%, transparent 10.5%),
    linear-gradient(145deg, #fff2a5, #f2b934 58%, #a76521);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .08),
    0 0 60px rgba(242, 185, 52, .38),
    inset -18px -18px 0 rgba(112, 61, 17, .22);
  animation: moonHover 6s ease-in-out infinite;
}

.pixel-moon span {
  position: absolute;
  left: 53%;
  top: 47%;
  width: 25%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fff7ad;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  box-shadow: 0 0 18px rgba(255, 244, 172, .92);
}

.pixel-forest {
  position: absolute;
  bottom: 0;
  width: 30%;
  height: 46%;
  background:
    linear-gradient(135deg, transparent 0 18%, #153b35 18% 38%, transparent 38% 100%),
    linear-gradient(45deg, transparent 0 20%, #1f624a 20% 46%, transparent 46% 100%),
    linear-gradient(180deg, transparent 0 42%, #35231d 42% 100%);
}

.pixel-forest.left {
  left: 0;
}

.pixel-forest.right {
  right: 0;
  transform: scaleX(-1);
}

.pixel-ruins {
  position: absolute;
  right: 18%;
  bottom: 18%;
  width: 120px;
  height: 88px;
  background:
    linear-gradient(90deg, #71819a 0 14%, transparent 14% 24%, #71819a 24% 38%, transparent 38% 52%, #71819a 52% 66%, transparent 66% 100%),
    linear-gradient(180deg, transparent 0 70%, #71819a 70% 82%, transparent 82% 100%);
  opacity: .75;
}

.mega-play {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  min-width: min(360px, calc(100% - 44px));
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 0 26px;
  border: 4px solid #7b4312;
  border-radius: 8px;
  color: #321703;
  background: linear-gradient(180deg, #fff0a6, #f2b934 55%, #b76b1e);
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .35);
  box-shadow:
    0 8px 0 #5d2a0d,
    0 0 32px rgba(242, 185, 52, .34);
  animation: playPulse 2.8s ease-in-out infinite;
}

.mega-play:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.02);
}

.realm-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.realm-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border: 2px solid rgba(115, 216, 255, .16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.realm-link span {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #160d2f;
  background: linear-gradient(135deg, #d9f6ff, #73d8ff);
  font-size: .82rem;
  font-weight: 950;
}

.realm-link.active,
.realm-link:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 185, 52, .42);
  background: rgba(242, 185, 52, .1);
}

.server-card.mini {
  margin-top: 10px;
  padding: 14px;
  box-shadow: none;
}

.server-card.mini dl div {
  padding: 10px 0;
}

.news-panel {
  margin-top: 20px;
}

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

.news-grid article {
  overflow: hidden;
  border: 3px solid rgba(141, 84, 255, .34);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  transition: transform .22s ease, border-color .22s ease;
}

.news-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 185, 52, .48);
}

.news-grid strong {
  display: block;
  padding: 10px;
}

.news-art {
  height: 112px;
  background: linear-gradient(135deg, #17142f, #33205d);
  image-rendering: pixelated;
}

.news-art.asteroids {
  background:
    radial-gradient(circle at 24% 36%, #71819a 0 10%, transparent 10.5%),
    radial-gradient(circle at 56% 52%, #9dadc9 0 15%, transparent 15.5%),
    radial-gradient(circle at 78% 28%, #35445f 0 8%, transparent 8.5%),
    linear-gradient(135deg, #111027, #33205d);
}

.news-art.trophy {
  background:
    radial-gradient(circle at 50% 42%, #f2b934 0 22%, transparent 22.5%),
    linear-gradient(90deg, transparent 0 38%, #a76521 38% 62%, transparent 62% 100%),
    linear-gradient(180deg, #73d8ff, #163f38);
}

.news-art.roadmap {
  background:
    linear-gradient(90deg, transparent 0 10%, #f2b934 10% 14%, transparent 14% 100%),
    linear-gradient(90deg, transparent 0 34%, #73d8ff 34% 38%, transparent 38% 100%),
    linear-gradient(90deg, transparent 0 68%, #e56d5f 68% 72%, transparent 72% 100%),
    linear-gradient(135deg, #17142f, #253244);
}

.game-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.game-dock a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(115, 216, 255, .28);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #263f69, #14233f);
  font-weight: 950;
  text-transform: uppercase;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, .24),
    0 6px 0 rgba(0, 0, 0, .24);
}

.game-dock a:hover {
  border-color: rgba(242, 185, 52, .5);
  background: linear-gradient(180deg, #3c5590, #1c2d52);
}

.moon-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
}

.moon-disc {
  position: absolute;
  right: max(28px, calc((100vw - 1160px) / 2));
  top: 86px;
  width: clamp(170px, 24vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(255, 244, 172, .98) 0 7%, transparent 7.5%),
    radial-gradient(circle at 67% 62%, rgba(167, 101, 33, .26) 0 9%, transparent 9.5%),
    radial-gradient(circle at 35% 74%, rgba(167, 101, 33, .22) 0 7%, transparent 7.5%),
    linear-gradient(145deg, #fff2a5, #f2b934 48%, #a76521);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .08),
    0 0 72px rgba(242, 185, 52, .32),
    inset -18px -18px 0 rgba(112, 61, 17, .22);
  opacity: .92;
  animation: moonHover 6s ease-in-out infinite;
}

.moon-star {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 16%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fff7ad;
  box-shadow:
    0 0 0 5px rgba(117, 70, 19, .55),
    0 0 22px rgba(255, 244, 172, .85);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

.block {
  position: absolute;
  width: clamp(48px, 8vw, 96px);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 36%),
    linear-gradient(180deg, rgba(157, 173, 201, .38), rgba(53, 68, 95, .42));
  box-shadow: 0 20px 44px rgba(0, 0, 0, .28);
  image-rendering: pixelated;
}

.block-a {
  right: 14%;
  bottom: 11%;
  animation: blockFloat 7s ease-in-out infinite;
}

.block-b {
  right: 31%;
  top: 18%;
  width: clamp(34px, 5vw, 62px);
  animation: blockFloat 8s ease-in-out infinite -2s;
}

.block-c {
  left: 7%;
  bottom: 16%;
  width: clamp(36px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .2), transparent 36%),
    linear-gradient(180deg, rgba(242, 185, 52, .45), rgba(167, 101, 33, .48));
  animation: blockFloat 6s ease-in-out infinite -4s;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-logo {
  width: min(760px, 100%);
  height: auto;
  margin: 0 0 24px;
  filter:
    drop-shadow(0 7px 0 rgba(0, 0, 0, .32))
    drop-shadow(0 0 18px rgba(115, 216, 255, .14));
  animation: logoPulse 4.4s ease-in-out infinite;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lead {
  max-width: 620px;
  font-size: 1.12rem;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.button::after,
button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  transition: transform .55s ease;
}

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

.button:hover::after,
button:hover::after {
  transform: translateX(120%);
}

.button.primary,
button {
  color: #170d03;
  background: linear-gradient(180deg, #ffe487, var(--gold) 58%, #c98226);
  box-shadow: 0 10px 28px rgba(242, 185, 52, .24);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
  border-bottom: 4px solid rgba(87, 42, 7, .38);
}

.button.secondary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(157, 173, 201, .16), rgba(53, 68, 95, .2));
  border: 1px solid rgba(115, 216, 255, .22);
  border-bottom: 4px solid rgba(53, 68, 95, .8);
}

.button.compact {
  align-self: end;
}

.server-card,
.feature,
.product-card,
.category-panel,
.store-item,
.rule-block,
.rules-index,
.download-panel,
.step,
.faq-list details {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.server-card:hover,
.feature:hover,
.product-card:hover,
.store-item:hover,
.step:hover,
.faq-list details:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 185, 52, .34);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .38),
    0 0 34px rgba(242, 185, 52, .08);
}

.server-card {
  padding: 24px;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--cyan);
  font-weight: 850;
}

.pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(115, 216, 255, .12);
  animation: pulseStatus 1.8s ease-in-out infinite;
}

dl {
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
}

.feature-grid,
.product-row,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.product-card,
.step {
  padding: 24px;
}

.step {
  border-width: 3px;
  border-color: rgba(141, 84, 255, .28);
}

.feature-icon,
.step span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #07110a;
  background: linear-gradient(180deg, var(--steel), var(--steel-dark));
  color: #f5f8ff;
  font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.shop-preview,
.faq-band {
  background: rgba(255, 255, 255, .025);
  border-block: 1px solid var(--line);
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.split p {
  max-width: 620px;
}

.product-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
}

.product-card::before,
.store-item::before,
.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, .1), transparent 65%);
  transform: translateX(-40%);
  transition: opacity .22s ease, transform .5s ease;
  pointer-events: none;
}

.product-card:hover::before,
.store-item:hover::before,
.download-panel:hover::before,
.supporter-card:hover::before {
  opacity: 1;
  transform: translateX(40%);
}

.product-card.highlighted,
.store-item.promoted {
  border-color: rgba(242, 185, 52, .48);
  background: linear-gradient(180deg, rgba(242, 185, 52, .14), rgba(115, 216, 255, .045));
}

.product-top,
.item-bottom,
.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-top span {
  color: var(--text);
  font-weight: 900;
  font-size: 1.35rem;
}

.product-top strong,
.item-bottom strong {
  color: var(--gold);
}

.badge {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #170d03;
  background: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero {
  padding: 74px 0 44px;
  background:
    radial-gradient(circle at 52% 12%, rgba(141, 84, 255, .28), transparent 32%),
    linear-gradient(180deg, rgba(115, 216, 255, .12), rgba(242, 185, 52, .055), transparent);
  border-bottom: 3px solid rgba(141, 84, 255, .34);
}

.page-hero .container,
.launcher-grid {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 4px solid #1a1232;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    radial-gradient(circle at 82% 18%, rgba(115, 216, 255, .16), transparent 32%),
    linear-gradient(180deg, #12102b, #0b0920 74%, #170d2a);
  box-shadow:
    0 0 0 4px rgba(141, 84, 255, .2),
    0 22px 70px rgba(0, 0, 0, .42),
    inset 0 0 0 2px rgba(255, 255, 255, .05);
}

.page-hero .container::before,
.launcher-grid::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 2px solid rgba(115, 216, 255, .16);
  border-radius: 8px;
}

.page-hero h1,
.launcher-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.page-hero p,
.launcher-hero p {
  max-width: 720px;
}

.shop-layout,
.rules-layout,
.faq-grid,
.launcher-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.category-panel,
.rules-index {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-width: 3px;
  border-color: rgba(141, 84, 255, .35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)),
    rgba(12, 10, 31, .82);
}

.category-panel h2 {
  font-size: 1.15rem;
}

.category-panel a,
.rules-index a,
.site-footer nav a {
  display: block;
  padding: 11px 12px;
  color: var(--muted);
  border-radius: 8px;
}

.category-panel a:hover,
.category-panel a.active,
.rules-index a:hover,
.site-footer nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.store-content {
  min-width: 0;
}

.store-toolbar {
  margin-bottom: 22px;
  padding: 14px;
  border: 3px solid rgba(141, 84, 255, .28);
  border-radius: 8px;
  background: rgba(8, 7, 20, .42);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.secure-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(242, 185, 52, .34);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(242, 185, 52, .08);
  font-weight: 800;
  white-space: nowrap;
}

.discount-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.discount-pill {
  min-height: 58px;
  display: grid;
  align-content: center;
  padding: 10px 12px;
  border: 4px solid #6d390e;
  border-radius: 4px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 240, 166, .3), transparent 32%),
    linear-gradient(180deg, rgba(255, 240, 166, .18), rgba(242, 185, 52, .08)),
    rgba(8, 7, 20, .82);
  box-shadow:
    0 0 0 3px rgba(242, 185, 52, .28),
    inset 0 -6px 0 rgba(0, 0, 0, .24);
}

.discount-pill span {
  color: var(--gold);
  font-weight: 950;
}

.discount-pill strong {
  color: var(--text);
}

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

.store-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 18px;
  overflow: hidden;
  border-width: 3px;
  border-color: rgba(141, 84, 255, .3);
  box-shadow:
    inset 0 -7px 0 rgba(0, 0, 0, .2),
    var(--shadow);
}

.item-visual {
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #07110a;
  font-weight: 950;
  font-size: 1.8rem;
  background: var(--green);
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, .18),
    inset 0 8px 0 rgba(255, 255, 255, .16);
}

.item-visual.vip {
  background: linear-gradient(135deg, #d9e5ff, #647796 58%, #2b3852);
  color: #f8fbff;
}

.item-visual.moon {
  background: linear-gradient(135deg, #ffe99b, #f2b934 58%, #a76521);
}

.item-visual.elite {
  background: linear-gradient(135deg, #74d9ff, #f2b934 45%, #c98226);
}

.item-visual.keys,
.item-visual.pack,
.item-visual.cosmetic,
.item-visual.cyan {
  background: linear-gradient(135deg, #f4f7f1, #9dadc9 44%, #73d8ff);
}

.item-visual.gold {
  background: linear-gradient(135deg, #ffe99b, #f2b934 58%, #a76521);
}

.item-visual.steel {
  background: linear-gradient(135deg, #d9e5ff, #647796 58%, #2b3852);
  color: #f8fbff;
}

.item-visual.nova {
  background: linear-gradient(135deg, #74d9ff, #f2b934 45%, #c98226);
}

.item-bottom {
  margin-top: auto;
  padding-top: 18px;
}

.item-bottom button {
  min-width: 112px;
}

.checkout-modal[hidden] {
  display: none;
}

.modal-open {
  overflow: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(242, 185, 52, .16), transparent 34%),
    rgba(3, 6, 10, .78);
  backdrop-filter: blur(12px);
}

.checkout-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(242, 185, 52, .34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    var(--panel);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .52),
    0 0 48px rgba(242, 185, 52, .1);
  animation: modalIn .22s ease both;
}

.checkout-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: auto;
  min-width: 88px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.checkout-form {
  display: grid;
  gap: 15px;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid rgba(115, 216, 255, .2);
  border-radius: 8px;
  background: rgba(115, 216, 255, .06);
}

.checkout-summary span {
  font-weight: 850;
}

.checkout-summary strong {
  color: var(--gold);
}

.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(8, 11, 16, .72);
  border: 1px solid rgba(157, 173, 201, .24);
  border-radius: 8px;
  font: inherit;
  outline: 0;
}

.checkout-form input:focus {
  border-color: rgba(242, 185, 52, .62);
  box-shadow: 0 0 0 4px rgba(242, 185, 52, .1);
}

.checkbox-line {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.checkbox-line input {
  margin-top: 4px;
}

.checkout-note {
  margin: -4px 0 0;
  font-size: .9rem;
}

.discount-preview {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 3px solid rgba(115, 216, 255, .24);
  border-radius: 4px;
  background: rgba(8, 7, 20, .58);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.discount-preview[hidden] {
  display: none;
}

.discount-preview span {
  color: var(--muted);
  font-weight: 800;
}

.discount-preview strong {
  color: var(--gold);
}

.discount-preview.valid {
  border-color: rgba(99, 198, 113, .56);
  background: rgba(99, 198, 113, .09);
}

.discount-preview.invalid {
  border-color: rgba(229, 109, 95, .56);
  background: rgba(229, 109, 95, .1);
}

.supporters-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(115, 216, 255, .035), rgba(242, 185, 52, .025));
}

.voucher-section {
  background:
    radial-gradient(circle at 22% 12%, rgba(115, 216, 255, .1), transparent 32%),
    rgba(255, 255, 255, .018);
  border-top: 4px solid rgba(36, 19, 66, .82);
}

.voucher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
}

.voucher-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.voucher-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 900;
}

.voucher-form input {
  min-height: 48px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(8, 11, 16, .72);
  border: 3px solid rgba(157, 173, 201, .24);
  border-radius: 4px;
  font: inherit;
  outline: 0;
}

.voucher-form input:focus {
  border-color: rgba(115, 216, 255, .58);
  box-shadow: 0 0 0 4px rgba(115, 216, 255, .11);
}

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

.supporter-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(242, 185, 52, .24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.supporter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, .1), transparent 65%);
  transform: translateX(-40%);
  transition: opacity .22s ease, transform .5s ease;
  pointer-events: none;
}

.supporter-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 185, 52, .52);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .38),
    0 0 34px rgba(242, 185, 52, .1);
}

.supporter-card.rank-1 {
  background:
    linear-gradient(180deg, rgba(242, 185, 52, .18), rgba(255, 255, 255, .025)),
    var(--panel);
}

.place {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 10px;
  color: #170d03;
  background: var(--gold);
  border-radius: 8px;
  font-weight: 950;
}

.supporter-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.transactions-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  box-shadow: var(--shadow);
}

.transactions-list {
  display: grid;
  gap: 10px;
}

.transaction-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(157, 173, 201, .16);
  border-radius: 8px;
  background: rgba(8, 11, 16, .38);
}

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

.transaction-row strong {
  color: var(--gold);
  white-space: nowrap;
}

.rules-content {
  display: grid;
  gap: 18px;
}

.rule-block {
  padding: 26px;
  border-width: 3px;
  border-color: rgba(141, 84, 255, .3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018)),
    rgba(12, 10, 31, .72);
}

.rule-block h2 {
  font-size: 1.4rem;
}

.rule-block li {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.7;
}

.launcher-hero {
  padding: 86px 0;
  background:
    radial-gradient(circle at 58% 16%, rgba(141, 84, 255, .28), transparent 34%),
    linear-gradient(90deg, rgba(242, 185, 52, .12), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
  border-bottom: 3px solid rgba(141, 84, 255, .34);
}

.launcher-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
}

.download-panel {
  overflow: hidden;
  position: relative;
  border-width: 3px;
  border-color: rgba(141, 84, 255, .38);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.launcher-card {
  display: grid;
  justify-items: center;
  padding: 42px 26px;
  text-align: center;
}

.launcher-logo {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .28));
}

.launcher-card strong {
  font-size: 1.35rem;
}

.progress {
  width: min(260px, 100%);
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.progress span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  animation: progressGlow 2.8s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .22s;
}

.faq-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

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

.faq-list details {
  padding: 18px 20px;
  border-width: 3px;
  border-color: rgba(141, 84, 255, .28);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #080c11;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-logo {
  width: min(260px, 100%);
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .3));
}

.site-footer p {
  max-width: 520px;
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .hero-grid,
  .launcher-grid,
  .shop-layout,
  .rules-layout,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .game-topbar,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-topbar {
    flex-direction: column;
  }

  .player-widget {
    min-width: 0;
    width: min(360px, 100%);
  }

  .game-layout {
    display: grid;
  }

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

  .realm-panel .panel-title,
  .server-card.mini {
    grid-column: 1 / -1;
  }

  .server-card,
  .download-panel {
    max-width: 520px;
  }

  .moon-disc {
    opacity: .35;
    right: -44px;
    top: 110px;
  }

  .category-panel,
  .rules-index {
    position: static;
  }

  .store-grid,
  .feature-grid,
  .product-row,
  .steps-grid,
  .supporters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand-logo {
    width: min(190px, 58vw);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(17, 25, 34, .98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 54px;
  }

  .game-window {
    width: min(100% - 18px, 1160px);
    padding: 14px;
    margin-block: 18px 34px;
  }

  .game-logo {
    width: min(100%, 360px);
  }

  .pixel-art {
    min-height: 300px;
  }

  .mega-play {
    min-height: 62px;
    font-size: 1.35rem;
  }

  .realm-panel,
  .news-grid,
  .game-dock {
    grid-template-columns: 1fr;
  }

  .news-art {
    height: 92px;
  }

  .moon-scene {
    opacity: .52;
  }

  .block-a,
  .block-b {
    display: none;
  }

  .hero-actions,
  .download-actions,
  .split,
  .store-toolbar,
  .item-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
  }

  .store-grid,
  .feature-grid,
  .product-row,
  .steps-grid,
  .supporters-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .transaction-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .secure-note {
    width: fit-content;
    white-space: normal;
  }

  .section,
  .launcher-hero {
    padding: 52px 0;
  }
}

/* Ostrzejszy pixel-artowy szlif calego UI */
.feature,
.product-card,
.store-item,
.rule-block,
.step,
.faq-list details,
.transactions-panel,
.voucher-grid,
.supporter-card {
  image-rendering: pixelated;
}

.feature::after,
.product-card::after,
.store-item::after,
.rule-block::after,
.step::after,
.supporter-card::after {
  image-rendering: pixelated;
}

.section-head,
.split {
  position: relative;
}

.section-head::before,
.split::before {
  content: "";
  display: block;
  width: 84px;
  height: 8px;
  margin-bottom: 16px;
  background:
    linear-gradient(90deg, var(--gold) 0 32px, transparent 32px 40px, var(--cyan) 40px 64px, transparent 64px 72px, var(--violet) 72px 84px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .32);
}

.feature-icon,
.step span,
.place {
  border: 3px solid rgba(255, 255, 255, .18);
}

.product-card,
.feature {
  min-height: 190px;
}

.product-card::after,
.feature::after,
.store-item::after,
.rule-block::after,
.step::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 22px;
  opacity: .18;
  background:
    linear-gradient(90deg, transparent 0 38%, var(--cyan) 38% 62%, transparent 62% 100%),
    linear-gradient(0deg, transparent 0 38%, var(--cyan) 38% 62%, transparent 62% 100%);
}

.feature,
.product-card,
.rule-block,
.step,
.store-item {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px, 0 0;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: translateY(0);
    filter:
      drop-shadow(0 7px 0 rgba(0, 0, 0, .32))
      drop-shadow(0 0 18px rgba(115, 216, 255, .14));
  }
  50% {
    transform: translateY(-3px);
    filter:
      drop-shadow(0 7px 0 rgba(0, 0, 0, .32))
      drop-shadow(0 0 26px rgba(242, 185, 52, .22));
  }
}

@keyframes moonHover {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes blockFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(4deg);
  }
}

@keyframes starFloat {
  0%,
  100% {
    opacity: .35;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-16px) scale(1.35);
  }
}

@keyframes pulseStatus {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(115, 216, 255, .12);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(115, 216, 255, .04);
  }
}

@keyframes progressGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.28);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Finalny styl CraftMoon: pixelowy kosmiczny launcher */
:root {
  --pixel-border: #241342;
  --pixel-border-soft: rgba(141, 84, 255, .42);
  --pixel-inner: rgba(115, 216, 255, .16);
  --pixel-panel: rgba(12, 10, 31, .86);
  --pixel-panel-2: rgba(20, 16, 48, .88);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: .28;
  mix-blend-mode: screen;
}

.site-header {
  border-bottom: 4px solid var(--pixel-border);
  box-shadow:
    0 4px 0 rgba(115, 216, 255, .18),
    0 18px 40px rgba(0, 0, 0, .32);
}

.site-nav a,
.category-panel a,
.rules-index a,
.site-footer nav a {
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: .86rem;
}

.site-nav a:hover,
.site-nav a.active,
.category-panel a:hover,
.category-panel a.active,
.rules-index a:hover,
.site-footer nav a:hover {
  background:
    linear-gradient(180deg, rgba(115, 216, 255, .18), rgba(141, 84, 255, .16)),
    rgba(255, 255, 255, .04);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22);
}

.game-window,
.page-hero .container,
.launcher-grid,
.voucher-grid,
.voucher-form,
.category-panel,
.rules-index,
.store-toolbar,
.store-item,
.rule-block,
.download-panel,
.step,
.faq-list details,
.transactions-panel,
.supporter-card,
.feature,
.product-card,
.server-card {
  border-radius: 4px;
  border-width: 4px;
  border-color: var(--pixel-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018)),
    radial-gradient(circle at 78% 12%, rgba(115, 216, 255, .12), transparent 30%),
    var(--pixel-panel);
  box-shadow:
    0 0 0 3px var(--pixel-border-soft),
    0 8px 0 rgba(0, 0, 0, .28),
    0 22px 58px rgba(0, 0, 0, .42),
    inset 0 0 0 2px rgba(255, 255, 255, .045);
}

.game-window {
  background:
    radial-gradient(circle at 52% 22%, rgba(141, 84, 255, .38), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(115, 216, 255, .16), transparent 28%),
    linear-gradient(180deg, #151238, #08071a 70%, #1b0e2d);
}

.panel-title,
.section-head h2,
.split h2,
.store-toolbar h2,
.page-hero h1,
.launcher-hero h1 {
  text-shadow:
    0 3px 0 rgba(0, 0, 0, .75),
    0 0 18px rgba(115, 216, 255, .18);
}

.eyebrow {
  color: #ffe487;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55);
}

.play-panel,
.realm-panel,
.news-panel {
  border-radius: 4px;
  border-color: var(--pixel-border);
  box-shadow:
    0 0 0 3px rgba(141, 84, 255, .34),
    inset 0 -8px 0 rgba(0, 0, 0, .28);
}

.pixel-art {
  border-radius: 4px;
  border: 4px solid #140b28;
  box-shadow:
    0 0 0 3px rgba(115, 216, 255, .22),
    inset 0 -12px 0 rgba(0, 0, 0, .26),
    inset 0 0 54px rgba(141, 84, 255, .16);
}

.mega-play,
.button.primary,
button {
  border-radius: 4px;
  border: 3px solid #6d390e;
  box-shadow:
    0 7px 0 #4b2108,
    0 0 28px rgba(242, 185, 52, .28);
}

.button.secondary,
.game-dock a,
.realm-link {
  border-radius: 4px;
  border-width: 3px;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, .26),
    0 5px 0 rgba(0, 0, 0, .2);
}

.item-visual,
.feature-icon,
.step span,
.avatar,
.realm-link span,
.place {
  border-radius: 4px;
  image-rendering: pixelated;
}

.store-item:hover,
.product-card:hover,
.feature:hover,
.step:hover,
.supporter-card:hover,
.rule-block:hover,
.download-panel:hover {
  transform: translateY(-6px);
  border-color: #3b216d;
  box-shadow:
    0 0 0 3px rgba(242, 185, 52, .36),
    0 10px 0 rgba(0, 0, 0, .28),
    0 28px 70px rgba(0, 0, 0, .48),
    0 0 38px rgba(115, 216, 255, .1);
}

.supporters-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 185, 52, .12), transparent 38%),
    rgba(255, 255, 255, .02);
  border-block: 4px solid rgba(36, 19, 66, .82);
}

.supporters-grid {
  align-items: stretch;
}

.supporter-card {
  min-height: 218px;
  display: grid;
  align-content: start;
  isolation: isolate;
}

.supporter-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 78px;
  aspect-ratio: 1;
  opacity: .28;
  background:
    linear-gradient(90deg, transparent 0 38%, currentColor 38% 62%, transparent 62% 100%),
    linear-gradient(0deg, transparent 0 38%, currentColor 38% 62%, transparent 62% 100%);
  transform: rotate(45deg);
  z-index: -1;
}

.supporter-card.rank-1 {
  order: 2;
  transform: translateY(-12px);
  color: #ffe487;
  border-color: #6d390e;
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 228, 135, .38), transparent 24%),
    linear-gradient(180deg, rgba(242, 185, 52, .28), rgba(20, 16, 48, .88) 58%),
    var(--pixel-panel);
  box-shadow:
    0 0 0 4px rgba(242, 185, 52, .42),
    0 13px 0 rgba(75, 33, 8, .7),
    0 30px 76px rgba(0, 0, 0, .55),
    0 0 44px rgba(242, 185, 52, .18);
}

.supporter-card.rank-2 {
  order: 1;
  color: #d9e5ff;
  background:
    radial-gradient(circle at 76% 16%, rgba(217, 229, 255, .26), transparent 24%),
    linear-gradient(180deg, rgba(157, 173, 201, .2), rgba(20, 16, 48, .88) 58%),
    var(--pixel-panel);
}

.supporter-card.rank-3 {
  order: 3;
  color: #f1a15d;
  background:
    radial-gradient(circle at 76% 16%, rgba(241, 161, 93, .25), transparent 24%),
    linear-gradient(180deg, rgba(167, 101, 33, .2), rgba(20, 16, 48, .88) 58%),
    var(--pixel-panel);
}

.supporter-card.rank-1:hover {
  transform: translateY(-18px);
}

.supporter-card.rank-2:hover,
.supporter-card.rank-3:hover {
  transform: translateY(-6px);
}

.supporter-card .place {
  min-height: 46px;
  padding: 0 14px;
  color: #160d2f;
  border: 3px solid rgba(255, 255, 255, .22);
  font-size: 1.25rem;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, .18),
    0 5px 0 rgba(0, 0, 0, .24);
}

.supporter-card.rank-1 .place {
  background: linear-gradient(180deg, #fff0a6, #f2b934 60%, #a76521);
}

.supporter-card.rank-2 .place {
  background: linear-gradient(180deg, #f5f8ff, #9dadc9 62%, #566985);
}

.supporter-card.rank-3 .place {
  background: linear-gradient(180deg, #ffd3a1, #c98226 62%, #7b4312);
}

.supporter-card strong {
  color: var(--text);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .58);
}

.transactions-panel,
.checkout-dialog {
  border-radius: 4px;
  border: 4px solid var(--pixel-border);
  box-shadow:
    0 0 0 3px rgba(141, 84, 255, .34),
    0 14px 0 rgba(0, 0, 0, .24),
    0 28px 80px rgba(0, 0, 0, .46);
}

.transaction-row,
.checkout-summary,
.voucher-form input,
.checkout-form input[type="text"],
.checkout-form input[type="email"] {
  border-radius: 4px;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(141, 84, 255, .08), transparent),
    #080714;
  border-top: 4px solid var(--pixel-border);
}

@media (max-width: 920px) {
  .supporter-card.rank-1 {
    order: 1;
    transform: none;
  }

  .supporter-card.rank-2 {
    order: 2;
  }

  .supporter-card.rank-3 {
    order: 3;
  }
}

@keyframes dockGlow {
  0%,
  100% {
    opacity: .28;
    transform: translateX(-12%);
  }
  50% {
    opacity: .72;
    transform: translateX(12%);
  }
}

@keyframes starRain {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 58px, 0 84px, 0 116px;
  }
}

@keyframes playPulse {
  0%,
  100% {
    box-shadow:
      0 8px 0 #5d2a0d,
      0 0 32px rgba(242, 185, 52, .34);
  }
  50% {
    box-shadow:
      0 8px 0 #5d2a0d,
      0 0 54px rgba(242, 185, 52, .56),
      0 0 18px rgba(115, 216, 255, .22);
  }
}

/* Przebudowana gora strony glownej: jeden pixelowy ekran startowy */
.hero-console {
  width: min(1040px, calc(100% - 32px));
  display: grid;
  gap: 22px;
  margin-block: 34px 48px;
  padding: clamp(16px, 2.6vw, 28px);
}

.console-logo {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 4px 12px 0;
}

.console-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: center;
}

.hero-status {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 4px solid #140b28;
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 0%, rgba(242, 185, 52, .2), transparent 38%),
    rgba(8, 7, 20, .72);
  box-shadow:
    0 0 0 3px rgba(141, 84, 255, .32),
    inset 0 -8px 0 rgba(0, 0, 0, .24),
    0 8px 0 rgba(0, 0, 0, .28);
}

.online-count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.online-count strong {
  display: block;
  color: var(--cyan);
  font-size: 2.4rem;
  line-height: .95;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .58);
}

.online-count small,
.ip-box span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.ip-box {
  padding: 11px 12px;
  border: 3px solid rgba(115, 216, 255, .22);
  border-radius: 4px;
  background: rgba(0, 0, 0, .22);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.ip-box strong {
  display: block;
  margin-top: 3px;
  font-size: 1.15rem;
}

.hero-play {
  min-height: 58px;
  width: 100%;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.console-logo .eyebrow {
  margin-bottom: 6px;
}

.hero-console .game-logo {
  width: min(650px, 92%);
}

.console-screen {
  position: relative;
  min-height: clamp(390px, 48vw, 560px);
  overflow: hidden;
  border: 5px solid #140b28;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(115, 216, 255, .2), transparent 42%),
    radial-gradient(circle at 50% 26%, rgba(141, 84, 255, .44), transparent 20%),
    linear-gradient(180deg, #101038 0%, #251052 42%, #17465c 67%, #0f352e 100%);
  box-shadow:
    0 0 0 4px rgba(115, 216, 255, .2),
    inset 0 0 0 4px rgba(255, 255, 255, .045),
    inset 0 -18px 0 rgba(0, 0, 0, .24),
    0 12px 0 rgba(0, 0, 0, .34);
  image-rendering: pixelated;
}

.console-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 2px, transparent 2px);
  background-size: 22px 22px;
  opacity: .32;
  animation: gridDrift 22s linear infinite;
}

.console-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(19, 59, 53, .9) 18% 34%, transparent 34% 100%),
    linear-gradient(45deg, transparent 0 22%, rgba(31, 98, 74, .95) 22% 42%, transparent 42% 100%),
    linear-gradient(180deg, transparent 0 40%, #0c221f 40% 100%);
  background-size: 160px 100%, 190px 100%, auto;
  opacity: .92;
}

.console-screen .pixel-sky,
.console-screen .pixel-moon,
.console-screen .pixel-planet,
.console-screen .pixel-mountains,
.console-screen .pixel-forest,
.console-screen .pixel-ruins,
.console-screen .mega-play {
  z-index: 2;
}

.console-screen .pixel-moon {
  top: 34%;
  width: clamp(180px, 25vw, 280px);
}

.pixel-planet {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .86;
  image-rendering: pixelated;
}

.planet-a {
  left: 16%;
  top: 21%;
  width: 54px;
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(255, 255, 255, .38) 28% 42%, transparent 42% 100%),
    linear-gradient(135deg, #73d8ff, #33205d);
  box-shadow: 0 0 22px rgba(115, 216, 255, .28);
  animation: blockFloat 7s ease-in-out infinite -2s;
}

.planet-b {
  right: 17%;
  top: 18%;
  width: 36px;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(255, 255, 255, .32) 45% 60%, transparent 60% 100%),
    linear-gradient(135deg, #f2b934, #a76521);
  box-shadow: 0 0 20px rgba(242, 185, 52, .22);
  animation: blockFloat 8s ease-in-out infinite -4s;
}

.pixel-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 28%;
  background:
    linear-gradient(135deg, transparent 0 22%, #1d6b74 22% 44%, transparent 44% 100%),
    linear-gradient(45deg, transparent 0 30%, #243e73 30% 54%, transparent 54% 100%),
    linear-gradient(135deg, transparent 0 46%, #73d8ff 46% 50%, transparent 50% 100%);
  background-size: 210px 100%, 260px 100%, 240px 100%;
  opacity: .72;
}

.console-screen .pixel-forest {
  width: 24%;
  height: 38%;
  z-index: 3;
}

.console-screen .pixel-ruins {
  right: 13%;
  bottom: 19%;
  z-index: 3;
}

.console-status {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 10px;
}

.console-status > div,
.console-actions a {
  min-height: 58px;
  display: grid;
  align-content: center;
  padding: 10px 14px;
  border: 4px solid #140b28;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)),
    rgba(8, 7, 20, .72);
  box-shadow:
    0 0 0 2px rgba(141, 84, 255, .3),
    inset 0 -6px 0 rgba(0, 0, 0, .24);
}

.console-status span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.console-status strong {
  font-size: 1.05rem;
}

.status-chip {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-weight: 950;
}

.console-actions {
  display: grid;
  grid-template-columns: 1.65fr repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.console-actions a {
  grid-template-columns: 44px 1fr;
  align-items: center;
  color: var(--text);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.console-actions a strong,
.console-actions a small {
  display: block;
}

.console-actions a small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  line-height: 1.2;
}

.console-actions a:hover {
  transform: translateY(-4px);
  border-color: #3b216d;
  background:
    linear-gradient(180deg, rgba(242, 185, 52, .16), rgba(115, 216, 255, .08)),
    rgba(8, 7, 20, .82);
}

.console-actions a span {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #160d2f;
  background: linear-gradient(180deg, #d9f6ff, #73d8ff);
  border: 3px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.console-actions .launcher-cta {
  border-color: #6d390e;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 240, 166, .36), transparent 34%),
    linear-gradient(180deg, rgba(255, 240, 166, .34), rgba(242, 185, 52, .16)),
    rgba(8, 7, 20, .82);
  box-shadow:
    0 0 0 4px rgba(242, 185, 52, .5),
    inset 0 -8px 0 rgba(0, 0, 0, .26),
    0 10px 0 rgba(75, 33, 8, .58),
    0 0 46px rgba(242, 185, 52, .28);
  animation: launcherTempt 2.4s ease-in-out infinite;
}

.console-actions .launcher-cta::before {
  content: "Polecane";
  position: absolute;
  right: 10px;
  top: -13px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 3px solid #6d390e;
  border-radius: 4px;
  color: #321703;
  background: linear-gradient(180deg, #fff0a6, #f2b934 62%, #a76521);
  font-size: .72rem;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 4px 0 rgba(75, 33, 8, .5);
}

.console-actions .launcher-cta span {
  background: linear-gradient(180deg, #fff0a6, #f2b934 62%, #a76521);
  color: #321703;
}

@media (max-width: 920px) {
  .console-hero {
    grid-template-columns: 1fr;
  }

  .hero-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .hero-play {
    min-height: 100%;
  }

  .console-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .console-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero-console {
    width: min(100% - 18px, 1160px);
    padding: 12px;
  }

  .console-screen {
    min-height: 360px;
  }

  .console-screen .pixel-moon {
    width: 178px;
  }

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

  .hero-status,
  .console-actions {
    grid-template-columns: 1fr;
  }

  .console-actions .launcher-cta {
    margin-top: 10px;
  }

  .console-actions .launcher-cta::before {
    top: -12px;
    right: 12px;
  }
}

@keyframes launcherTempt {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 4px rgba(242, 185, 52, .42),
      inset 0 -8px 0 rgba(0, 0, 0, .26),
      0 10px 0 rgba(75, 33, 8, .58),
      0 0 32px rgba(242, 185, 52, .22);
  }
  50% {
    transform: translateY(-3px);
    box-shadow:
      0 0 0 4px rgba(242, 185, 52, .68),
      inset 0 -8px 0 rgba(0, 0, 0, .26),
      0 13px 0 rgba(75, 33, 8, .58),
      0 0 62px rgba(242, 185, 52, .44);
  }
}

@keyframes launcherNavPulse {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-2px);
    filter: brightness(1.12);
  }
}

/* Strona informacyjna podczas przygotowania */
.maintenance-root,
html:has(.maintenance-page) {
  height: 100%;
  overflow: hidden;
}

.maintenance-page {
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(141, 84, 255, .24), transparent 34%),
    radial-gradient(circle at 74% 18%, rgba(242, 185, 52, .16), transparent 28%),
    #070713;
}

.maintenance-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(115, 216, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 216, 255, .035) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .86), rgba(0, 0, 0, .2));
  animation: maintenanceGrid 12s linear infinite;
}

.maintenance-shell {
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.4vw, 28px);
  overflow: hidden;
}

.maintenance-window {
  position: relative;
  isolation: isolate;
  width: min(980px, 100%);
  height: min(690px, calc(100svh - clamp(28px, 5.6vw, 68px)));
  max-height: calc(100svh - clamp(20px, 4.8vw, 56px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(12px, 1.9vh, 18px);
  padding: clamp(24px, 3.8vw, 54px) clamp(18px, 3.5vw, 48px);
  text-align: center;
  border: 5px solid #180c2e;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 34%, rgba(242, 185, 52, .16), transparent 22%),
    radial-gradient(circle at 50% 42%, rgba(115, 216, 255, .13), transparent 38%),
    linear-gradient(180deg, rgba(36, 20, 70, .92), rgba(11, 8, 30, .96));
  box-shadow:
    0 0 0 3px rgba(141, 84, 255, .54),
    0 0 0 8px rgba(5, 3, 15, .92),
    inset 0 -10px 0 rgba(0, 0, 0, .3),
    0 36px 100px rgba(0, 0, 0, .62);
  overflow: visible;
}

.maintenance-window::before,
.maintenance-window::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.maintenance-window::before {
  inset: 14px;
  border: 3px solid rgba(115, 216, 255, .28);
  border-radius: 4px;
  box-shadow: inset 0 0 36px rgba(115, 216, 255, .12);
}

.maintenance-window::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(135deg, transparent 0 28%, rgba(31, 111, 119, .58) 28% 48%, transparent 48% 100%),
    linear-gradient(45deg, transparent 0 34%, rgba(33, 61, 116, .62) 34% 55%, transparent 55% 100%);
  background-size: 230px 100%, 310px 100%;
  opacity: .42;
  clip-path: inset(0 round 0 0 6px 6px);
}

.maintenance-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  width: min(72vw, 680px);
  aspect-ratio: 1;
  border: 3px solid rgba(115, 216, 255, .18);
  border-radius: 50%;
  transform: rotate(0deg) scaleY(.42);
  box-shadow: 0 0 38px rgba(115, 216, 255, .12);
}

.ring-a {
  animation: orbitSpin 12s linear infinite;
}

.ring-b {
  width: min(62vw, 570px);
  border-color: rgba(242, 185, 52, .2);
  animation: orbitSpin 9s linear infinite reverse;
}

.ring-c {
  width: min(82vw, 760px);
  border-style: dashed;
  opacity: .72;
  animation: orbitSpin 18s linear infinite;
}

.meteor {
  position: absolute;
  width: var(--meteor-width, 92px);
  height: 4px;
  background: linear-gradient(90deg, transparent 0 8%, rgba(115, 216, 255, .45) 46%, #fff0a6 100%);
  box-shadow:
    0 0 12px rgba(115, 216, 255, .42),
    0 0 24px rgba(242, 185, 52, .2);
  transform: rotate(145deg);
  opacity: 0;
  animation: meteorFly var(--meteor-speed, 5.8s) linear infinite;
}

.meteor::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 9px;
  aspect-ratio: 1;
  background: #fff0a6;
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .42),
    0 0 16px rgba(242, 185, 52, .72);
  transform: translateY(-50%);
}

.meteor-a {
  top: 9%;
  left: 92%;
  --meteor-width: 86px;
  --meteor-speed: 5.4s;
  --meteor-x: -34vw;
  --meteor-y: 25vh;
}

.meteor-b {
  top: 24%;
  left: 102%;
  --meteor-width: 68px;
  --meteor-speed: 6.6s;
  --meteor-x: -42vw;
  --meteor-y: 30vh;
  animation-delay: 2.2s;
}

.meteor-c {
  top: -2%;
  left: 72%;
  --meteor-width: 74px;
  --meteor-speed: 7.4s;
  --meteor-x: -30vw;
  --meteor-y: 22vh;
  animation-delay: 4.1s;
}

.maintenance-logo-wrap {
  position: relative;
  z-index: 1;
  width: min(255px, 34vh, 54vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-top: clamp(4px, 1vh, 12px);
  animation: logoHover 4s ease-in-out infinite;
}

.maintenance-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 18px rgba(242, 185, 52, .58))
    drop-shadow(0 10px 0 rgba(54, 24, 6, .28));
}

.logo-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 185, 52, .34), transparent 62%);
  filter: blur(8px);
  animation: glowPulse 2.6s ease-in-out infinite;
}

.maintenance-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.maintenance-copy h1 {
  margin: 8px 0 14px;
  color: #fff7d3;
  font-size: clamp(2rem, 5.4vw, 4.25rem);
  line-height: .95;
  text-shadow:
    0 4px 0 #4a2107,
    0 0 36px rgba(242, 185, 52, .48);
}

.maintenance-copy p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 660px;
  color: #d6deef;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.maintenance-progress {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  display: grid;
  gap: 8px;
  margin-top: clamp(2px, 1vh, 10px);
  margin-bottom: clamp(4px, 1vh, 10px);
}

.maintenance-progress div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff7d3;
  font-size: .92rem;
  font-weight: 950;
  text-transform: uppercase;
}

.maintenance-progress i {
  position: relative;
  height: 22px;
  border: 4px solid #140b28;
  border-radius: 4px;
  background: rgba(7, 7, 19, .86);
  box-shadow:
    0 0 0 2px rgba(115, 216, 255, .22),
    inset 0 0 0 2px rgba(255, 255, 255, .04);
  overflow: hidden;
}

.maintenance-progress i::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: var(--progress, 37%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .26) 0 8px, transparent 8px 14px),
    linear-gradient(180deg, #d9f6ff, #73d8ff 48%, #2c7da0);
  background-size: 14px 100%, 100% 100%;
  box-shadow: 0 0 24px rgba(115, 216, 255, .52);
  transition: width .16s linear, background .2s ease, box-shadow .2s ease;
  animation: progressScan 1.2s steps(12) infinite;
}

.maintenance-progress.is-error div {
  color: #ff9b80;
}

.maintenance-progress.is-error i {
  border-color: #401224;
  box-shadow:
    0 0 0 2px rgba(255, 93, 93, .34),
    0 0 28px rgba(255, 93, 93, .18),
    inset 0 0 0 2px rgba(255, 255, 255, .04);
}

.maintenance-progress.is-error i::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .2) 0 8px, transparent 8px 14px),
    linear-gradient(180deg, #ffc0a8, #e56d5f 52%, #8e2635);
  box-shadow: 0 0 26px rgba(229, 109, 95, .56);
  animation: errorPulse .7s steps(2) infinite;
}

.maintenance-socials {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  transform: translateY(-50%);
}

.maintenance-socials a {
  min-height: 58px;
  display: inline-grid;
  grid-template-columns: 44px auto;
  align-items: center;
  gap: 12px;
  min-width: 166px;
  padding: 7px 18px 10px 8px;
  border: 4px solid #140b28;
  border-left: 0;
  border-radius: 4px;
  color: #f4f7f1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    rgba(8, 7, 20, .72);
  box-shadow:
    0 0 0 2px rgba(141, 84, 255, .34),
    inset 0 -6px 0 rgba(0, 0, 0, .24);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
  transform: translateX(0);
  transition: transform .18s steps(4), border-color .18s ease, box-shadow .18s ease;
}

.maintenance-socials a:hover,
.maintenance-socials a:focus-visible {
  transform: translateX(4px);
  border-color: #3b216d;
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .42),
    inset 0 -6px 0 rgba(0, 0, 0, .24),
    0 0 34px rgba(115, 216, 255, .2);
}

.maintenance-socials span {
  width: 40px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  color: #160d2f;
  background: linear-gradient(180deg, #d9f6ff, #73d8ff);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18);
}

.maintenance-socials a:first-child span {
  background: linear-gradient(180deg, #8ea1ff, #5865f2 62%, #3440a6);
  color: #fff;
}

.maintenance-socials a:last-child span {
  background:
    linear-gradient(135deg, rgba(37, 244, 238, .85), transparent 42%),
    linear-gradient(315deg, rgba(254, 44, 85, .85), transparent 42%),
    #090b12;
  color: #fff;
}

.maintenance-socials svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .24));
}

.maintenance-error-burst {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 6;
  padding: clamp(10px, 1.8vw, 18px) clamp(18px, 4vw, 42px);
  border: 6px solid #250711;
  border-radius: 4px;
  color: #fff2c8;
  background:
    linear-gradient(180deg, #ffb199, #e56d5f 48%, #8e2635);
  box-shadow:
    0 0 0 4px rgba(255, 228, 135, .55),
    0 10px 0 rgba(71, 8, 20, .72),
    0 0 70px rgba(229, 109, 95, .62);
  font-size: clamp(3rem, 12vw, 8.4rem);
  font-weight: 950;
  line-height: .9;
  letter-spacing: 0;
  text-shadow:
    0 5px 0 #4b0814,
    4px 0 0 rgba(255, 228, 135, .28),
    -4px 0 0 rgba(115, 216, 255, .18);
  transform: translate(-50%, -50%) scale(.25) rotate(-5deg);
  opacity: 0;
  pointer-events: none;
}

.maintenance-error-burst small {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  width: max-content;
  max-width: min(520px, 80vw);
  padding: 8px 14px;
  border: 4px solid #180c2e;
  border-radius: 4px;
  color: #ffe4b8;
  background: rgba(8, 7, 20, .84);
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .24),
    0 0 34px rgba(242, 185, 52, .16);
  font-size: clamp(.9rem, 2vw, 1.15rem);
  line-height: 1.25;
  text-shadow: 0 0 18px rgba(242, 185, 52, .34);
  transform: translateX(-50%);
}

.maintenance-error-burst.is-visible {
  animation: errorBurstPop 1.28s steps(8) both, errorBurstBlink .82s steps(2) infinite 1.28s;
}

.maintenance-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.maintenance-signals span {
  min-width: 104px;
  padding: 10px 12px;
  border: 3px solid #170d2e;
  border-radius: 4px;
  color: #d9f6ff;
  background: rgba(11, 8, 30, .78);
  box-shadow:
    0 0 0 2px rgba(141, 84, 255, .3),
    inset 0 -5px 0 rgba(0, 0, 0, .26);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
  animation: signalBlink 2.4s ease-in-out infinite;
}

.maintenance-signals span:nth-child(2) {
  animation-delay: .35s;
}

.maintenance-signals span:nth-child(3) {
  animation-delay: .7s;
}

.maintenance-gate {
  width: min(420px, calc(100vw - 34px));
}

.maintenance-open,
.maintenance-gate .button {
  font-size: 1rem;
  text-transform: uppercase;
}

.maintenance-open {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 20;
  width: 38px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 4px solid #180c2e;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #321703;
  background:
    linear-gradient(180deg, #fff0a6, #f2b934 62%, #a76521);
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .4),
    inset 0 -8px 0 rgba(0, 0, 0, .22),
    0 0 62px rgba(242, 185, 52, .36);
  opacity: .48;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .18s ease, filter .18s ease;
  animation: maintenanceButton 2.8s ease-in-out infinite;
}

.maintenance-open:hover,
.maintenance-open:focus-visible,
.gate-open .maintenance-open {
  opacity: 1;
  filter: brightness(1.12);
}

.maintenance-open span {
  display: block;
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-1px);
}

.maintenance-gate .button {
  width: 100%;
  min-height: 54px;
  box-shadow:
    0 0 0 4px rgba(242, 185, 52, .36),
    inset 0 -8px 0 rgba(0, 0, 0, .22),
    0 0 42px rgba(242, 185, 52, .26);
}

.maintenance-gate {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 21;
  display: grid;
  gap: 12px;
  padding: 42px 16px 16px;
  border: 4px solid #180c2e;
  border-radius: 4px;
  background: rgba(8, 7, 20, .82);
  box-shadow:
    0 0 0 2px rgba(115, 216, 255, .24),
    inset 0 -8px 0 rgba(0, 0, 0, .26),
    0 28px 80px rgba(0, 0, 0, .55);
  transform: translate(calc(100% + 34px), -50%);
  transition: transform .28s steps(8);
}

.maintenance-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid #180c2e;
  border-radius: 4px;
  color: #321703;
  background: linear-gradient(180deg, #fff0a6, #f2b934 62%, #a76521);
  box-shadow:
    0 0 0 2px rgba(242, 185, 52, .28),
    inset 0 -5px 0 rgba(0, 0, 0, .18);
  cursor: pointer;
}

.maintenance-close span {
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.gate-open .maintenance-gate {
  transform: translate(0, -50%);
}

.maintenance-gate[hidden] {
  display: none;
}

.maintenance-gate label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: #fff7d3;
  font-weight: 950;
}

.maintenance-gate input {
  min-height: 52px;
  padding: 0 14px;
  border: 3px solid rgba(115, 216, 255, .28);
  border-radius: 4px;
  color: #f4f7f1;
  background: rgba(4, 5, 14, .92);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.maintenance-gate input:focus {
  border-color: #f2b934;
  box-shadow: 0 0 0 4px rgba(242, 185, 52, .16);
}

.gate-message {
  min-height: 22px;
  margin: 0;
  color: #adbacb;
  font-weight: 850;
}

.gate-message.is-success {
  color: #73d8ff;
}

.gate-message.is-error {
  color: #ff9b80;
}

@keyframes maintenanceGrid {
  to {
    background-position: 0 72px, 72px 0;
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg) scaleY(.42);
  }
}

@keyframes meteorFly {
  0% {
    transform: translate3d(0, 0, 0) rotate(145deg);
    opacity: 0;
  }
  8% {
    opacity: .95;
  }
  34% {
    opacity: .95;
  }
  48% {
    opacity: 0;
  }
  100% {
    transform: translate3d(var(--meteor-x, -36vw), var(--meteor-y, 26vh), 0) rotate(145deg);
    opacity: 0;
  }
}

@keyframes logoHover {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: .58;
    transform: scale(.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes progressScan {
  to {
    background-position: 56px 0, 0 0;
  }
}

@keyframes errorPulse {
  50% {
    filter: brightness(1.26);
  }
}

@keyframes errorBurstPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2) rotate(-8deg);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16) rotate(4deg);
  }
  42% {
    transform: translate(calc(-50% - 8px), calc(-50% + 4px)) scale(.96) rotate(-3deg);
  }
  58% {
    transform: translate(calc(-50% + 7px), calc(-50% - 3px)) scale(1.04) rotate(2deg);
  }
  74% {
    transform: translate(calc(-50% - 3px), -50%) scale(1) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-2deg);
  }
}

@keyframes errorBurstBlink {
  50% {
    filter: brightness(1.24);
    box-shadow:
      0 0 0 4px rgba(255, 228, 135, .8),
      0 10px 0 rgba(71, 8, 20, .72),
      0 0 92px rgba(229, 109, 95, .78);
  }
}

@keyframes signalBlink {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(.9);
  }
  50% {
    transform: translateY(-4px);
    filter: brightness(1.25);
  }
}

@keyframes maintenanceButton {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-5px);
  }
}

@media (max-width: 720px) {
  .maintenance-shell {
    padding: 10px;
  }

  .maintenance-window {
    height: calc(100svh - 28px);
    max-height: calc(100svh - 28px);
    padding: 22px 14px;
  }

  .maintenance-logo-wrap {
    width: min(210px, 29vh, 64vw);
  }

  .maintenance-copy h1 {
    text-shadow:
      0 3px 0 #4a2107,
      0 0 28px rgba(242, 185, 52, .42);
  }

  .maintenance-open {
    width: 34px;
    height: 76px;
  }

  .maintenance-gate {
    right: 10px;
    width: min(360px, calc(100vw - 52px));
  }

  .maintenance-socials {
    top: auto;
    bottom: 12px;
    transform: none;
    gap: 8px;
  }

  .maintenance-socials a {
    min-width: 58px;
    width: 58px;
    grid-template-columns: 40px;
    padding: 6px 8px 8px 6px;
    transform: translateX(0);
    font-size: 0;
  }

  .maintenance-socials a:hover,
  .maintenance-socials a:focus-visible {
    transform: translateX(3px);
  }
}
