:root {
  --bg: #08111f;
  --panel: #0f1b2f;
  --line: rgba(173, 204, 255, 0.2);
  --text: #edf3ff;
  --muted: #a7b6d1;
  --primary: #49c4ff;
  --primary2: #00a9ff;
}

@font-face {
  font-family: "Open Sans Subspace";
  src: url("font/OpenSansSubspace.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(160deg, #060b14, #0d1626);
  color: var(--text);
}

body {
  background-attachment: fixed;
  overscroll-behavior-x: none;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 6rem;
}

.hero,
.section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 18, 34, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero {
  overflow: hidden;
}

.hero-media {
  position: relative;
  height: clamp(240px, 35vw, 320px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  display: block;
}

.hero-copy {
  position: absolute;
  left: 1rem;
  top: 1rem;
  max-width: min(560px, calc(100% - 2rem));
  padding: 1rem;
  border-radius: 12px;
  background: rgba(4, 10, 20, 0.62);
}

.wordmark {
  margin: 0;
  display: inline-block;
  position: relative;
  font-family: "Open Sans Subspace", "Open Sans", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  line-height: 1.05;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.5px #7efcff;
  text-shadow: none;
  filter:
    drop-shadow(0 0 1px rgba(126, 252, 255, 0.92))
    drop-shadow(0 0 2px rgba(133, 29, 255, 0.68))
    drop-shadow(0 0 4px rgba(133, 29, 255, 0.42))
    drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.55));
}

.wordmark::before {
  content: attr(data-text);
  position: absolute;
  inset: 0 0 -1px 0;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.15px rgba(62, 165, 176, 0.94);
  -webkit-mask-image: url("images/logo-noise.png");
  mask-image: url("images/logo-noise.png");
  -webkit-mask-size: 128px 128px;
  mask-size: 128px 128px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  transform: translate(0.3px, 0);
  opacity: 0.5;
}

.hero p {
  margin: 0.55rem 0 0;
  line-height: 1.45;
  color: #d7e7ff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.66rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #042039;
  background: linear-gradient(130deg, var(--primary), var(--primary2));
  box-shadow: 0 0 0 rgba(73, 196, 255, 0), 0 0 0 rgba(0, 169, 255, 0);
}

.btn-secondary {
  color: #eef7ff;
  background: rgba(238, 247, 255, 0.08);
  border-color: rgba(238, 247, 255, 0.28);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 18px rgba(73, 196, 255, 0.45), 0 0 34px rgba(0, 169, 255, 0.25);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(73, 196, 255, 0.65);
  background: rgba(73, 196, 255, 0.16);
  box-shadow: 0 0 14px rgba(73, 196, 255, 0.2);
}

.section {
  margin-top: 1rem;
  padding: 1.2rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.section-head {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
}

.proof-layout {
  position: relative;
}

.proof-media {
  width: min(100%, 760px);
  aspect-ratio: 700/176;
  border-radius: 12px;
  border: 1px solid rgba(178, 209, 255, 0.3);
  overflow: hidden;
  background: #02070f;
}

.proof-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-character-wrap {
  position: absolute;
  right: 0;
  top: -170px;
  width: clamp(160px, 24vw, 320px);
  pointer-events: none;
}

.proof-character {
  animation: float 4.8s ease-in-out infinite;
}

.proof-character img {
  display: block;
  width: 100%;
}

.gameplay-grid,
.overview-grid,
.videos {
  display: grid;
  gap: 0.85rem;
}

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

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

.overview-grid-two,
.videos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gameplay-card,
.overview-card {
  border: 1px solid rgba(167, 182, 209, 0.2);
  background: rgba(10, 18, 32, 0.56);
  border-radius: 12px;
}

.gameplay-card {
  overflow: hidden;
  cursor: zoom-in;
}

.gameplay-card:hover,
.gameplay-card:focus-visible {
  border-color: rgba(73, 196, 255, 0.55);
  transform: translateY(-2px);
}

.gameplay-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.gameplay-card h3 {
  margin: 0;
  padding: 0.65rem 0.8rem 0.8rem;
  font-size: 1rem;
}

.overview-card {
  padding: 0.9rem;
}

.overview-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.more-systems {
  margin-top: 1rem;
}

.more-systems details {
  border: 1px solid rgba(178, 209, 255, 0.28);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.6);
  padding: 0.6rem 0.8rem 0.8rem;
}

.more-systems summary {
  cursor: pointer;
  font-weight: 600;
  color: #f1f8ff;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid rgba(167, 182, 209, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-gate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  color: #edf6ff;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 80% 15%, rgba(73, 196, 255, 0.35), transparent 38%),
    linear-gradient(160deg, #08192f, #061121);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1rem;
}

.video-gate:hover,
.video-gate:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(73, 196, 255, 0.65);
}

.video-gate-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.video-gate-note {
  font-size: 0.86rem;
  color: #b7c9e4;
}

.video-fallback-link {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  color: #b9dfff;
  font-size: 0.82rem;
}

.community,
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-strip {
  background: linear-gradient(120deg, rgba(10, 30, 54, 0.88), rgba(0, 120, 184, 0.2));
}

.community-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.community img {
  width: min(210px, 100%);
  height: auto;
}

.community-right {
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.lang-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 10.2rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 247, 255, 0.28);
  cursor: pointer;
  color: #edf3ff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  background: rgba(238, 247, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lang-trigger:hover,
.lang-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 196, 255, 0.65);
  background: rgba(73, 196, 255, 0.12);
  box-shadow: 0 0 14px rgba(73, 196, 255, 0.2);
  outline: none;
}

.lang-trigger-caret {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.lang-toggle.open .lang-trigger-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  min-width: 12rem;
  border-radius: 12px;
  border: 1px solid rgba(178, 209, 255, 0.35);
  background: #091425;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  z-index: 40;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: block;
  padding: 0.46rem 0.62rem;
  border-radius: 9px;
  text-decoration: none;
  color: #edf3ff;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(73, 196, 255, 0.18);
  color: #f4faff;
  outline: none;
}

.lang-option.active {
  color: #031525;
  font-weight: 700;
  background: linear-gradient(130deg, var(--primary), var(--primary2));
}

.discord-mark {
  margin-top: 1rem;
  display: inline-block;
}

.imprint {
  text-align: center;
  margin-top: 1rem;
}

.imprint summary {
  cursor: pointer;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  list-style: none;
}

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

.imprint img {
  width: min(300px, 72vw);
  height: auto;
  opacity: 0.88;
  margin-top: 0.7rem;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 7, 14, 0.92);
  padding: 1rem;
  z-index: 120;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 2rem);
  border: 1px solid rgba(178, 209, 255, 0.25);
  border-radius: 14px;
  background: rgba(6, 14, 26, 0.96);
  overflow: hidden;
}

.gallery-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 640px);
  background: #01050c;
}

.gallery-media img {
  width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
  display: block;
}

.gallery-caption {
  margin: 0;
  padding: 0.8rem 1rem 0.9rem;
  text-align: center;
  border-top: 1px solid rgba(178, 209, 255, 0.18);
}

.gallery-nav,
.gallery-close {
  position: absolute;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 247, 255, 0.3);
  background: rgba(5, 13, 26, 0.78);
  color: #f2f8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.gallery-close {
  top: 0.7rem;
  right: 0.7rem;
}

.gallery-prev {
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-next {
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

footer {
  margin-top: 1.2rem;
  color: #9fb0ce;
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-media {
    height: clamp(280px, 52vw, 420px);
  }

  .hero-copy {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .gameplay-grid,
  .overview-grid,
  .overview-grid-two,
  .videos {
    grid-template-columns: 1fr;
  }

  .proof-character-wrap {
    right: -14%;
    top: -110px;
    width: clamp(110px, 36vw, 180px);
  }

  .community-right {
    margin-left: 0;
    width: 100%;
  }

  .lang-menu {
    right: auto;
    left: 0;
  }
}

@media (max-width: 700px) {
  .hero-media {
    height: clamp(330px, 108vw, 500px);
  }

  .gallery-lightbox {
    padding: 0.45rem;
  }

  .gallery-dialog {
    max-height: calc(100vh - 0.9rem);
  }

  .gallery-media,
  .gallery-media img {
    max-height: min(68vh, 420px);
  }

  .video-gate {
    padding: 0.75rem;
    justify-content: center;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}
