:root {
  color-scheme: dark;
  --ink: #f8f7ff;
  --muted: #c9bed7;
  --violet: #941cff;
  --cyan: #38e8ff;
  --green: #24e66f;
  --panel: rgba(9, 8, 13, 0.72);
  --spark-size: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #0b0a10;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #0b1022 0, #111128 44%, #090911 100%);
}

a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

a:hover {
  color: var(--violet);
  text-shadow: 0 0 12px rgba(148, 28, 255, 0.75);
}

.site-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 245px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.76) 0 var(--spark-size), transparent calc(var(--spark-size) + 1px)) 30px 12px / 108px 72px,
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px) 72px 42px / 142px 94px;
  mask-image: linear-gradient(180deg, #000 0 58%, transparent 100%);
  animation: driftStars 18s linear infinite;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
}

body.page .bg,
body.page .shade {
  position: fixed;
}

body.page .bg {
  z-index: -3;
}

body.page .shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6, 5, 9, 0.34), rgba(10, 9, 21, 0.9) 56%, #090911 100%),
    linear-gradient(90deg, rgba(3, 2, 5, 0.7), rgba(3, 2, 5, 0.18), rgba(3, 2, 5, 0.7));
}

.bg,
.shade {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.bg {
  background-image: var(--image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1400ms ease, transform 7000ms ease;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.bg.show {
  opacity: 1;
}

.shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 22%, rgba(148, 28, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(6, 5, 9, 0.28), #0b0a10 92%),
    linear-gradient(90deg, rgba(3, 2, 5, 0.75), rgba(3, 2, 5, 0.2), rgba(3, 2, 5, 0.75));
}

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.page-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand,
.links,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  transition: transform 180ms ease, filter 180ms ease;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px rgba(148, 28, 255, 0.75));
}

.accent {
  color: #68ff94;
}

.links {
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.links a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.links a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: #775584;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.links a:hover,
.links a.active {
  color: var(--ink);
  position: relative;
}

.links a:hover {
  transform: translateY(-1px);
}

.links a:hover::after,
.links a.active::after {
  content: "";
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 3px;
  transform: scaleX(1);
  background: #775584;
  border-radius: 5px;
}

.intro {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  align-self: start;
  padding: 8px 0 86px;
  text-align: center;
  animation: riseIn 700ms ease both;
}

.logo {
  width: clamp(120px, 21vw, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(148, 28, 255, 0.78));
  animation: floatLogo 4.8s ease-in-out infinite;
}

.kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8.5vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0 37%, #c13cff 74%, #ff4fc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.copy {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.actions {
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 13px 22px;
  background: rgba(9, 8, 13, 0.68);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), #5f13ff);
  box-shadow: 0 14px 34px rgba(148, 28, 255, 0.32);
}

.button.green {
  background: linear-gradient(135deg, var(--green), #16b957);
  color: #06100a;
  box-shadow: 0 14px 34px rgba(36, 230, 111, 0.22);
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 42px rgba(148, 28, 255, 0.28);
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(0);
}

.info {
  padding: 72px max(16px, calc((100% - 1160px) / 2)) 88px;
  background: #0b0a10;
}

.info h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

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

article {
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  animation: riseIn 600ms ease both;
}

article:hover {
  border-color: rgba(148, 28, 255, 0.46);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

article h3 {
  margin: 0 0 10px;
}

article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq {
  position: relative;
  overflow: hidden;
  padding: 68px max(16px, calc((100% - 1120px) / 2)) 84px;
  background: #0b0a10;
}

.faq h2 {
  position: relative;
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(148, 28, 255, 0.28);
}

.faq-list {
  position: relative;
  display: grid;
  gap: 18px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(12, 12, 22, 0.74);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.faq-item:hover {
  border-color: rgba(148, 28, 255, 0.44);
  background: rgba(16, 14, 28, 0.82);
  transform: translateY(-2px);
}

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

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

.faq-item summary::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid currentColor;
  flex: 0 0 auto;
  opacity: 0.9;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  margin: -6px 20px 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.faq-item strong {
  color: var(--ink);
  font-style: italic;
}

.faq a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.war-panel {
  position: relative;
  overflow: hidden;
  padding: 72px max(16px, calc((100% - 1160px) / 2)) 84px;
  background: #0b0a10;
}

.war-panel::before {
  content: none;
}

.war-panel > * {
  position: relative;
  z-index: 1;
}

.war-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 58px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 34px;
}

.war-button {
  appearance: none;
  min-width: 0;
  min-height: 53px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 15px 24px;
  background: rgba(5, 5, 9, 0.48);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.war-button.download {
  border-color: rgba(148, 28, 255, 0.9);
  background: linear-gradient(135deg, #9d19ff, #6413e8);
  box-shadow: 0 0 30px rgba(148, 28, 255, 0.24);
}

.war-button.download:hover {
  background: linear-gradient(135deg, #9d19ff, #6413e8);
}

.war-button.about {
  border-color: rgba(255, 255, 255, 0.26);
}

.war-button.copy-ip-button {
  border-color: rgba(255, 255, 255, 0.26);
}

.war-button.discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(84, 105, 255, 0.75);
  color: #7d8cff;
  box-shadow: 0 0 24px rgba(84, 105, 255, 0.24);
}

.discord-mark {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-actions .war-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.button-mark {
  width: 19px;
  height: 19px;
  flex: none;
}

.about-mark {
  color: #ff314f;
}

.war-button.discord:hover .discord-mark {
  animation: bounceDiscord 1.6s ease-in-out infinite;
}

.war-button:hover {
  background: rgba(5, 5, 9, 0.62);
  transform: translateY(-4px);
}

.war-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.war-cards article {
  min-height: 280px;
  border-radius: 0;
  background: rgba(5, 5, 7, 0.72);
}

.tag {
  margin: 0 0 28px;
  color: #ff3d6a;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.war-cards h3 {
  font-size: 1.55rem;
  line-height: 1.35;
}

.page-main {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 176px);
  margin: 0 auto;
  padding: 42px 0 76px;
}

.page-title {
  margin-bottom: 24px;
  animation: riseIn 550ms ease both;
}

.page-title h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1;
}

.page-title p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.download-card h2,
.rules-list h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.download-card p,
.rules-list p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.featured {
  border-color: rgba(36, 230, 111, 0.28);
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px max(16px, calc((100% - 1160px) / 2));
  color: var(--muted);
  background: rgba(5, 5, 10, 0.72);
}

.site-footer p {
  margin: 0;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.09);
  }
}

@keyframes driftStars {
  from {
    background-position: 30px 12px, 72px 42px;
  }
  to {
    background-position: 138px 84px, -70px 136px;
  }
}

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

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .links {
    gap: 12px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .intro {
    padding-top: 18px;
  }

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

  .download-grid,
  .rules-list,
  .war-cards {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .war-button {
    width: 100%;
  }
}
