:root {
  color-scheme: dark;
  --ink: #07030d;
  --panel: #0c0616;
  --purple: #a14cff;
  --purple-soft: #c986ff;
  --gold: #ffd15a;
  --copy: rgba(250, 247, 255, .9);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: "Nunito", "Noto Sans SC", system-ui, sans-serif;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: url("/landing/assets/cursor.png") 8 5, auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(93, 31, 157, .2), transparent 32%),
    radial-gradient(circle at 84% 78%, rgba(28, 68, 133, .14), transparent 34%),
    radial-gradient(circle at 54% 45%, rgba(69, 24, 116, .1), transparent 42%),
    linear-gradient(145deg, #020106 0%, #08030f 48%, #02040b 100%);
}

a, button { cursor: inherit; }

.landing-shell {
  position: relative;
  z-index: 1;
  width: min(100vw, 1800px);
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(530px, 47%) 1fr;
  overflow: hidden;
  background: #090311;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, .72),
    0 0 100px rgba(105, 39, 171, .13),
    inset 0 1px rgba(255, 255, 255, .04);
}

@media (min-width: 1801px) {
  .landing-shell {
    border-inline: 1px solid rgba(174, 101, 241, .16);
  }
}

.promo-panel {
  position: relative;
  z-index: 5;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #08030f 0%, #0c0517 72%, #0f051c 100%);
  box-shadow: 34px 0 74px rgba(5, 0, 12, .88);
}

.promo-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(24px, 3.5vw, 66px) clamp(36px, 5vw, 92px) clamp(24px, 3.5vw, 54px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(175, 101, 241, .46) transparent;
}

.promo-scroll::-webkit-scrollbar { width: 6px; }
.promo-scroll::-webkit-scrollbar-track { background: transparent; }
.promo-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(175, 101, 241, .42);
}
.promo-scroll::-webkit-scrollbar-thumb:hover { background: rgba(199, 142, 255, .68); }

.promo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 5, 31, .62) 0%, rgba(20, 6, 39, .72) 72%, rgba(17, 5, 34, .84) 100%),
    linear-gradient(rgba(177, 92, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 92, 255, .13) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
}

.promo-cubes-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: .42;
  filter: saturate(.82) brightness(.58) blur(6px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.72), #000 44%, rgba(0,0,0,.66) 82%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.72), #000 44%, rgba(0,0,0,.66) 82%, transparent 100%);
}

.promo-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -130px;
  width: 260px;
  height: 100%;
  background: linear-gradient(90deg, rgba(12, 5, 23, .98), transparent);
}

.promo-glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.promo-glow-one {
  width: 480px;
  height: 480px;
  left: -240px;
  top: 4%;
  background: radial-gradient(circle, rgba(125, 42, 218, .22), transparent 68%);
}

.promo-glow-two {
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(255, 65, 155, .12), transparent 68%);
}

.promo-header,
.promo-content,
.promo-footer { position: relative; z-index: 2; }

.promo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.platform-label {
  color: var(--purple-soft);
  font-size: clamp(11px, .78vw, 15px);
  font-weight: 1000;
  letter-spacing: .22em;
}

.language-chip {
  width: 46px;
  height: 46px;
  padding: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 142, 255, .38);
  border-radius: 50%;
  color: rgba(255,255,255,.9);
  background: rgba(25, 13, 43, .74);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.3);
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.language-chip:hover,
.language-chip:focus-visible {
  transform: scale(1.08);
  border-color: rgba(216, 174, 255, .86);
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 24px rgba(151, 73, 235, .34);
  outline: none;
}

.promo-content {
  width: min(680px, 100%);
  margin: auto 0;
  padding: clamp(26px, 4vh, 48px) 0;
}

.brand-logo {
  display: block;
  width: min(500px, 82%);
  height: auto;
  margin: 0 0 clamp(22px, 3vh, 38px);
  filter: drop-shadow(0 20px 18px rgba(0,0,0,.58)) drop-shadow(0 0 28px rgba(136,62,222,.2));
  animation: logoFloat 4.6s ease-in-out infinite;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--purple-soft);
  font-size: clamp(12px, .84vw, 15px);
  font-weight: 1000;
  line-height: 1.2;
  letter-spacing: .18em;
}

.hero-kicker span {
  margin-inline: .25em;
  color: #e0b6ff;
}

h1 {
  margin: 0;
  max-width: 720px;
  color: #eaf5ff;
  background: linear-gradient(110deg, #aab8c9 0%, #f7fbff 22%, #c4d2e1 42%, #ffffff 50%, #9eafc2 58%, #edf6ff 78%, #a8b8ca 100%);
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(42px, 3.6vw, 70px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: .025em;
  text-wrap: balance;
  filter: drop-shadow(0 6px 0 rgba(30, 9, 46, .88)) drop-shadow(0 15px 20px rgba(0,0,0,.58)) drop-shadow(0 0 11px rgba(125, 202, 255, .2));
  animation: titleSilverShine 7s ease-in-out infinite;
}

html[lang="zh-CN"] h1 {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .01em;
}

html[lang="zh-CN"] .platform-label { letter-spacing: .1em; }

.promo-copy {
  max-width: 620px;
  margin: clamp(22px, 3vh, 34px) 0 0;
  color: #9fdcff;
  font-size: clamp(17px, 1.24vw, 23px);
  font-weight: 800;
  line-height: 1.48;
}

.promo-actions {
  margin-top: clamp(18px, 2.6vh, 30px);
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.steam-button {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform .2s cubic-bezier(.2,1,.3,1), filter .2s ease, box-shadow .2s ease;
}

.steam-button {
  min-width: 286px;
  padding: 11px 25px 11px 16px;
  border: 2px solid rgba(124, 201, 255, .72);
  background: linear-gradient(145deg, #243b55, #101c2c 66%);
  color: #fff;
  box-shadow: 0 15px 34px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.12), 0 0 22px rgba(70,169,235,.12);
}

.steam-button img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(1.9) contrast(.8);
}

.steam-button span {
  display: flex;
  flex-direction: column;
  font-size: 25px;
  font-weight: 1000;
  line-height: .95;
  letter-spacing: .04em;
}

.steam-button small {
  margin-bottom: 5px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: .13em;
}

.steam-button:hover,
.steam-button:focus-visible {
  transform: translateY(-4px) scale(1.025);
  filter: brightness(1.13);
  outline: none;
}

.steam-button:hover,
.steam-button:focus-visible { box-shadow: 0 20px 38px rgba(0,0,0,.42), 0 0 28px rgba(83,178,241,.3); }

.feature-row {
  width: min(590px, 100%);
  margin-top: clamp(28px, 4vh, 46px);
  padding: 15px 19px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  border: 1px solid rgba(175, 104, 244, .24);
  border-radius: 16px;
  background: rgba(22, 10, 39, .58);
  box-shadow: inset 0 1px rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.feature-item strong {
  color: var(--purple-soft);
  font: 700 29px/1 "Fredoka", "Nunito", sans-serif;
}

.feature-infinity strong {
  font-size: 42px;
  line-height: 1;
}

.feature-item span {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: .12em;
}

.feature-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.13);
}

.promo-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(224, 210, 237, .38);
  font-size: clamp(10px, .68vw, 13px);
  font-weight: 1000;
  letter-spacing: .14em;
}

.promo-footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(171, 85, 255, .5);
}

.showcase-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #08040d;
}

.showcase-stage,
.showcase-poster,
.showcase-blend,
.showcase-vignette { position: absolute; inset: 0; }

.showcase-stage { overflow: hidden; }

.gameplay-frame {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #08040d;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.showcase-poster {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(130, 51, 205, .12), transparent 42%),
    linear-gradient(rgba(4,1,8,.54), rgba(4,1,8,.78)),
    url("/landing/assets/forest-background.jpg") center/cover;
  transition: opacity .7s ease, visibility 0s linear .7s;
}

body.showcase-ready .showcase-poster { opacity: 0; visibility: hidden; }

.poster-blocks {
  height: 118px;
  display: flex;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.72));
}

.poster-blocks img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  animation: posterBlockFloat 1.7s ease-in-out infinite alternate;
}

.poster-blocks img:nth-child(2) { animation-delay: -.45s; }
.poster-blocks img:nth-child(3) { animation-delay: -.9s; }

.loader-orbit {
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 3px solid rgba(192, 126, 255, .16);
  border-top-color: var(--purple-soft);
  border-radius: 50%;
  animation: orbit .75s linear infinite;
}

.loader-orbit span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--purple-soft);
}

.showcase-poster p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .2em;
}

.showcase-blend {
  z-index: 3;
  width: 28%;
  right: auto;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,4,18,.98), rgba(10,4,18,.66) 30%, transparent);
}

.showcase-vignette {
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 110px 18px rgba(3,0,7,.58);
  background: linear-gradient(180deg, rgba(4,1,8,.38), transparent 22%, transparent 72%, rgba(4,1,8,.55));
}

.live-chip {
  position: absolute;
  z-index: 5;
  top: clamp(22px, 3vw, 48px);
  right: clamp(22px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(8,3,15,.68);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .15em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.96);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s;
}

.sound-chip {
  position: absolute;
  z-index: 6;
  top: clamp(22px, 3vw, 48px);
  left: clamp(22px, 3vw, 48px);
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(8,3,15,.72);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  font: inherit;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.96);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.showcase-ready .sound-chip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: .12s, .12s, 0s, 0s, 0s, 0s;
}

.sound-chip:hover,
.sound-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(166, 220, 255, .65);
  color: #fff;
  outline: none;
}

.sound-chip.sound-enabled {
  color: #bce7ff;
  border-color: rgba(119, 207, 255, .7);
  box-shadow: 0 0 22px rgba(77, 184, 255, .2), 0 8px 24px rgba(0,0,0,.3);
}

.sound-chip-icon {
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

.live-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff487d;
  box-shadow: 0 0 12px #ff487d;
  animation: livePulse 1.4s ease-in-out infinite;
}

.live-chip b { font: inherit; }

.world-card {
  position: absolute;
  z-index: 5;
  left: clamp(26px, 4vw, 72px);
  bottom: clamp(26px, 4vw, 64px);
  width: min(470px, calc(100% - 52px));
  min-height: 112px;
  padding: 16px 22px 17px 16px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(190, 124, 255, .28);
  border-left: 4px solid var(--purple);
  border-radius: 4px 18px 18px 4px;
  background: linear-gradient(110deg, rgba(10,4,18,.9), rgba(25,10,42,.72));
  box-shadow: 0 18px 42px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(13px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22,1,.36,1), border-color .3s ease, visibility 0s linear .3s;
}

body.showcase-ready .live-chip,
body.showcase-ready .world-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: .12s, .12s, 0s, 0s;
}

.world-map-visual {
  position: relative;
  z-index: 1;
  width: 146px;
  height: 146px;
  margin: -34px -4px -32px -18px;
  object-fit: contain;
  filter: drop-shadow(0 18px 13px rgba(0,0,0,.58)) drop-shadow(0 0 17px currentColor);
  animation: worldMapFloat 5.2s ease-in-out infinite;
  pointer-events: none;
}

.world-card-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.world-card.changing { opacity: .22; transform: translateY(8px); }
body.showcase-ready .world-card.changing { opacity: .22; transform: translateY(8px); }

.world-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--purple-soft);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .15em;
}

.world-card strong {
  display: block;
  font: 700 clamp(24px, 2.2vw, 38px)/1 "Fredoka", "Nunito", sans-serif;
  letter-spacing: .05em;
  text-shadow: 0 4px 0 rgba(0,0,0,.65);
}

html[lang="zh-CN"] .world-card strong {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 900;
}

.world-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
}

@keyframes worldMapFloat {
  0%, 100% { transform: translate3d(0, 2px, 0) rotate(-1.2deg); }
  45% { transform: translate3d(2px, -7px, 0) rotate(1.3deg); }
  72% { transform: translate3d(-2px, -2px, 0) rotate(.2deg); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-.25deg); }
  50% { transform: translateY(-7px) rotate(.25deg); }
}

@keyframes titleSilverShine {
  0%, 22% { background-position: 100% 50%; }
  48%, 100% { background-position: 0% 50%; }
}

@keyframes posterBlockFloat {
  from { transform: translateY(7px) scale(.96); filter: brightness(.84); }
  to { transform: translateY(-8px) scale(1.04); filter: brightness(1.16); }
}

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes livePulse { 50% { opacity: .35; transform: scale(.72); } }

@media (max-width: 1050px) {
  body { display: block; overflow: auto; }
  .landing-shell {
    width: 100%;
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .promo-panel { min-height: 92vh; }
  .promo-scroll {
    height: auto;
    min-height: 92vh;
    padding-inline: clamp(25px, 8vw, 70px);
    overflow: visible;
  }
  .showcase-panel { height: 70vh; min-height: 620px; }
  .gameplay-frame { width: auto; height: 100%; }
  .showcase-blend { width: 100%; height: 22%; bottom: auto; background: linear-gradient(180deg, rgba(9,3,17,.95), transparent); }
  .brand-logo { width: min(440px, 78%); }
}

@media (max-width: 620px) {
  .promo-panel { min-height: 100svh; }
  .promo-scroll { min-height: 100svh; padding: 22px 22px 28px; }
  .platform-label { max-width: 250px; line-height: 1.45; }
  .promo-content { padding-block: 25px; }
  .brand-logo { width: min(370px, 90%); }
  h1 {
    font-size: clamp(28px, 8.8vw, 42px);
    letter-spacing: 0;
    white-space: nowrap;
  }
  html[lang="es"] h1 {
    font-size: clamp(28px, 8.8vw, 42px);
    white-space: normal;
  }
  .promo-copy { font-size: 17px; }
  .promo-actions { display: grid; grid-template-columns: 1fr; }
  .steam-button { width: 100%; min-width: 0; }
  .feature-row { justify-content: space-between; gap: 8px; padding-inline: 12px; }
  .feature-item { flex-direction: column; gap: 2px; align-items: center; }
  .feature-item-wide strong { font-size: 22px; }
  .promo-footer { flex-wrap: wrap; }
  .showcase-panel { min-height: 560px; }
  .live-chip { top: 18px; right: 18px; }
  .sound-chip { top: 18px; left: 18px; }
  .world-card { left: 18px; bottom: 18px; width: calc(100% - 36px); }
  body.showcase-ready.mobile-card-dismissed .world-card {
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-100% - 36px));
    transition-delay: 0s, 0s, 0s, .38s;
  }
  .world-card { grid-template-columns: 96px minmax(0, 1fr); padding-left: 12px; }
  .world-map-visual { width: 112px; height: 112px; margin: -22px -4px -22px -18px; }
}

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