:root {
  --bg: #070708;
  --bg-soft: #101016;
  --panel: rgba(16, 16, 22, 0.74);
  --panel-strong: rgba(12, 12, 18, 0.9);
  --text: #f7efe5;
  --muted: #c7baaa;
  --dim: #8d8290;
  --gold: #d9b86c;
  --gold-bright: #f2cf82;
  --blue: #75d4ff;
  --violet: #8d75ff;
  --red: #d84032;
  --line: rgba(242, 207, 130, 0.22);
  --line-cool: rgba(117, 212, 255, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --header-height: 76px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(141, 117, 255, 0.16), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(216, 64, 50, 0.12), transparent 28%),
    linear-gradient(180deg, #070708 0%, #0d0d13 46%, #08080b 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 74%, transparent);
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 1px solid rgba(117, 212, 255, 0.72);
  outline-offset: 3px;
}

.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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 8, 0.66);
  backdrop-filter: blur(18px);
}

.header-tools {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(216, 184, 108, 0.16);
}

.site-nav {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px;
  border: 1px solid rgba(242, 207, 130, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.language-label {
  padding: 0 4px 0 8px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-button {
  position: relative;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-button + .language-button::before {
  position: absolute;
  left: -4px;
  width: 1px;
  height: 14px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
}

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

.language-button.is-active {
  border-color: rgba(216, 184, 108, 0.34);
  background: rgba(216, 184, 108, 0.14);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 58px) clamp(20px, 7vw, 120px) 78px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 7, 8, 0.94) 0%, rgba(7, 7, 8, 0.66) 44%, rgba(7, 7, 8, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.22), rgba(7, 7, 8, 0.94)),
    url("assets/bg/hero-bg.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.hero-logo {
  width: min(430px, 82vw);
  margin-bottom: 30px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.66));
}

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

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

h1 {
  max-width: 830px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-subtitle {
  width: min(690px, 100%);
  margin-bottom: 30px;
  color: #f0e4d6;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #e66b43);
  color: #160f0a;
  box-shadow: 0 16px 40px rgba(216, 184, 108, 0.2);
}

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

.button-quiet {
  border-color: var(--line-cool);
  background: rgba(117, 212, 255, 0.07);
  color: #dff7ff;
}

.hero-scroll {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: 40px;
  z-index: 1;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 92px);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 36px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.prose {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 42px);
}

.prose p:last-child,
.world-copy p:last-child,
.contact-panel p:last-of-type {
  margin-bottom: 0;
}

.pitch-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--bg);
}

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

.pillar-card,
.about-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.pillar-card {
  min-height: 230px;
  padding: 24px;
}

.card-mark {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.pillar-card p {
  margin-bottom: 0;
}

.gameplay-section {
  background:
    radial-gradient(circle at 76% 28%, rgba(117, 212, 255, 0.11), transparent 26%),
    #09090d;
}

.music-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 184, 108, 0.14), transparent 28%),
    radial-gradient(circle at 80% 40%, rgba(117, 212, 255, 0.11), transparent 30%),
    #08080b;
}

.music-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(12, 12, 18, 0.78);
  box-shadow: var(--shadow);
}

.music-copy p:last-child {
  margin-bottom: 0;
}

.music-player {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.music-orb {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 184, 108, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 207, 130, 0.3), rgba(117, 212, 255, 0.05) 54%, rgba(7, 7, 8, 0.18));
  box-shadow: 0 0 54px rgba(216, 184, 108, 0.2);
}

.music-orb span {
  width: 52px;
  height: 52px;
  display: block;
  border: 1px solid rgba(117, 212, 255, 0.5);
  border-radius: 50%;
  background: rgba(117, 212, 255, 0.12);
}

.music-card.is-playing .music-orb {
  border-color: rgba(117, 212, 255, 0.56);
  box-shadow: 0 0 70px rgba(117, 212, 255, 0.24);
}

.music-player-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold), #e66b43);
  color: #160f0a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(216, 184, 108, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.music-player-button:hover,
.music-player-button:focus-visible {
  transform: translateY(-2px);
}

.music-player-button.is-playing {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #08080b;
  box-shadow: 0 18px 42px rgba(117, 212, 255, 0.23);
}

.music-note {
  max-width: 320px;
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(8, 8, 10, 0.58), rgba(8, 8, 10, 0.88)),
    url("assets/screenshots/main-menu-01.png") center / cover;
  box-shadow: var(--shadow);
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-fallback {
  min-height: 100%;
  display: grid;
  place-content: center;
  padding: 28px;
  text-align: center;
}

.fallback-symbol {
  width: 70px;
  height: 70px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(216, 184, 108, 0.12);
  color: var(--gold-bright);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-block + .gallery-block {
  margin-top: clamp(34px, 5vw, 64px);
}

.gallery-block > h3 {
  margin-bottom: 16px;
  color: var(--gold-bright);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
}

.gallery-item {
  min-height: 250px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 0;
  background: var(--panel);
  cursor: pointer;
}

.gallery-grid-featured .gallery-item {
  min-height: 300px;
}

.gallery-grid-compact .gallery-item {
  min-height: 210px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 14, 0.88);
}

.gallery-grid-compact .gallery-item img {
  object-fit: contain;
  padding: 18px;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.03);
}

.world-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(141, 117, 255, 0.06), transparent);
}

.world-art {
  min-height: 560px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.04), rgba(7, 7, 8, 0.28)),
    url("assets/concept/realtha-landscape-concept-01.png") center / cover;
  box-shadow: var(--shadow);
}

.world-copy {
  max-width: 720px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 18px 20px 18px 50px;
  background: rgba(255, 255, 255, 0.035);
  color: #eadfce;
  font-weight: 700;
}

.feature-list li::before {
  position: absolute;
  left: 20px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 18px rgba(216, 184, 108, 0.52);
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 5vw, 58px);
}

.about-card p {
  margin-bottom: 0;
}

.contact-section {
  padding-bottom: 160px;
}

.contact-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 72px);
  text-align: center;
}

.contact-panel .eyebrow,
.contact-panel h2,
.contact-panel p {
  margin-left: auto;
  margin-right: auto;
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-panel p {
  max-width: 680px;
}

.contact-email {
  display: inline-block;
  margin: 12px 0 28px;
  color: var(--gold-bright);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
}

.contact-actions {
  justify-content: center;
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--line);
  color: var(--text);
}

.back-to-top {
  position: fixed;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.78);
  color: var(--text);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.music-icon {
  font-size: 1.1rem;
}

.back-to-top {
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 82vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 14px 0 0;
  color: var(--text);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: rgba(10, 10, 12, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(117, 212, 255, 0.58);
  background: rgba(18, 18, 24, 0.92);
  transform: translateY(-1px);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-header {
    gap: 14px;
  }

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

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

  .site-nav a {
    padding: 14px;
  }

  .section-grid,
  .world-section,
  .about-card,
  .music-card {
    grid-template-columns: 1fr;
  }

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

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

  .world-art {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .language-switcher {
    gap: 4px;
    min-height: 32px;
  }

  .language-button {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .language-label {
    padding-left: 7px;
    font-size: 0.62rem;
  }

  .hero {
    padding: calc(var(--header-height) + 38px) 18px 70px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 66px 18px;
  }

  .prose {
    border-left: 0;
    padding-left: 0;
  }

  .pillar-grid,
  .gallery-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .gallery-wide,
  .gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item {
    min-height: 230px;
  }

  .gallery-grid-featured .gallery-item,
  .gallery-grid-compact .gallery-item {
    min-height: 220px;
  }

  .world-art {
    min-height: 340px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}
