@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Tangerine:wght@700&display=swap");

:root {
  --bg: #202232;
  --bg-deep: #11131d;
  --bg-soft: #2b2d42;
  --text: #f0edf5;
  --muted: #aaa7bb;
  --faint: #77758d;
  --line: rgba(226, 220, 255, 0.16);
  --violet: #8a6cff;
  --violet-strong: #6f52ef;
  --gold: #f2b05e;
  --rose: #d96c86;
  --teal: #50c2b1;
  --ink: rgba(5, 7, 14, 0.72);
  --radius-card: 8px;
  --max: 1180px;
  --mx: 0px;
  --my: 0px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

main section {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(17, 19, 29, 0.15), rgba(17, 19, 29, 0.92) 48%),
    var(--bg);
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  overflow-x: hidden;
}

body::selection {
  background: rgba(138, 108, 255, 0.45);
}

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

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--text);
  color: var(--bg-deep);
  padding: 10px 14px;
  border-radius: 6px;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(calc(100% - 28px), 1120px);
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid rgba(237, 231, 255, 0.14);
  border-radius: 8px;
  background: rgba(22, 24, 36, 0.64);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.site-nav.is-scrolled {
  background: rgba(17, 19, 29, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1;
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.nav-links a,
.nav-cta {
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(240, 237, 245, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-cta {
  border: 1px solid rgba(242, 176, 94, 0.5);
  background: rgba(242, 176, 94, 0.12);
  color: #ffe5bf;
}

.nav-cta:hover {
  background: rgba(242, 176, 94, 0.2);
}

/* Par de ações do header: Entrar (discreto) + Começar grátis (CTA dourado).
   Wrapper mantém o grid de 3 colunas do .site-nav intacto. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-login {
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(240, 237, 245, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-login:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  overflow-x: clip;
  contain: paint;
  padding: 106px 20px 44px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(10, 12, 20, 0.2), rgba(10, 12, 20, 0.9)),
    linear-gradient(90deg, rgba(9, 11, 19, 0.96), rgba(9, 11, 19, 0.52) 48%, rgba(9, 11, 19, 0.88));
}

.hero::after {
  background:
    radial-gradient(circle at 22% 28%, rgba(242, 176, 94, 0.18), transparent 24%),
    radial-gradient(circle at 74% 42%, rgba(80, 194, 177, 0.13), transparent 24%),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%);
  opacity: 0.9;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0);
  transition: transform 500ms ease;
}

.hero-paint,
.hero-character {
  position: absolute;
  width: clamp(260px, 28vw, 470px);
  height: clamp(340px, 44vw, 690px);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  filter: saturate(0.9) contrast(0.95);
}

.hero-paint {
  opacity: 0.52;
  transform-origin: center;
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-character {
  opacity: 0.9;
  animation: floatCard 9s ease-in-out infinite;
}

.hero-paint-one {
  left: -7vw;
  top: 3vh;
  width: clamp(360px, 38vw, 650px);
  height: clamp(410px, 52vw, 760px);
}

.hero-paint-two {
  right: 14vw;
  top: -8vh;
  animation-delay: -4s;
}

.hero-paint-three {
  right: -7vw;
  bottom: 3vh;
  animation-delay: -8s;
}

.hero-paint-four {
  left: 39vw;
  bottom: -9vh;
  width: clamp(280px, 30vw, 520px);
  animation-delay: -12s;
}

.hero-character-one {
  right: 10vw;
  bottom: -10vh;
  width: clamp(230px, 21vw, 360px);
  height: clamp(330px, 34vw, 520px);
}

.hero-character-two {
  right: -5vw;
  top: 17vh;
  width: clamp(210px, 18vw, 330px);
  height: clamp(310px, 32vw, 510px);
  animation-delay: -3s;
}

.hero-character-three {
  left: 4vw;
  bottom: -12vh;
  width: clamp(190px, 18vw, 320px);
  height: clamp(280px, 32vw, 500px);
  animation-delay: -5s;
}

.hero-character-four {
  left: 18vw;
  top: 13vh;
  width: clamp(190px, 17vw, 310px);
  height: clamp(290px, 31vw, 500px);
  opacity: 0.78;
  animation-delay: -7s;
}

.hero-copy {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy > * {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffe2b7;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(3rem, 7.6vw, 5.4rem);
  font-weight: 700;
  line-height: 0.84;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.62);
}

.hero-lead {
  max-width: 880px;
  margin-bottom: 20px;
  color: #fff7ed;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.9vw, 2.45rem);
  font-weight: 600;
  line-height: 1.05;
}

.hero-body {
  margin-bottom: 28px;
  color: rgba(240, 237, 245, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.hero-reinforce {
  margin: -16px 0 28px;
  color: rgba(255, 226, 183, 0.72);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-strong) 58%, #b86cff);
  color: white;
  box-shadow: 0 18px 40px rgba(111, 82, 239, 0.32);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.hero-proof {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  gap: 8px;
  overflow-x: auto;
  margin-top: 2px;
  padding-bottom: 0;
  scrollbar-width: none;
}

.hero-proof::-webkit-scrollbar {
  display: none;
}

.hero-proof.reveal {
  transform: translateY(14px);
}

.hero-proof.reveal.is-visible {
  transform: none;
}

.hero-proof span,
.signal-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(32, 34, 50, 0.6);
  color: rgba(240, 237, 245, 0.82);
  padding: 9px 13px 9px 10px;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #ffe1b7;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(calc(100% - 36px), var(--max));
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  background:
    linear-gradient(90deg, rgba(242, 176, 94, 0.08), transparent 45%, rgba(80, 194, 177, 0.08)),
    rgba(24, 26, 39, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.signal-strip span {
  display: grid;
  min-height: 52px;
  place-items: center;
  text-align: center;
}

.section {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
  padding: 64px 0;
}

.intro-band {
  padding-top: 74px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-heading h2,
.panel-copy h2,
.world-copy h2,
.creator-copy h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.95rem);
  font-weight: 650;
  line-height: 1;
}

.panel-copy h2 {
  font-size: clamp(1.8rem, 2.9vw, 2.8rem);
}

.section-heading p,
.panel-copy p,
.world-copy p,
.creator-copy p,
.final-cta p {
  color: rgba(240, 237, 245, 0.72);
  line-height: 1.7;
}

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

.feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(43, 45, 66, 0.7);
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--violet), var(--gold), var(--teal));
  opacity: 0.7;
}

.feature-card:hover {
  border-color: rgba(242, 176, 94, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(43, 45, 66, 0.86);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.feature-index {
  display: block;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.feature-icon {
  --icon-glow: rgba(242, 176, 94, 0.28);
  --icon-accent: var(--gold);
  position: relative;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle, var(--icon-glow), transparent 64%),
    rgba(8, 10, 18, 0.38);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.05),
    0 0 26px var(--icon-glow);
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.feature-icon svg {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--icon-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--icon-glow));
}

.feature-icon-bond {
  --icon-accent: var(--rose);
  --icon-glow: rgba(217, 108, 134, 0.34);
}

.feature-icon-choice,
.feature-icon-memory {
  --icon-accent: var(--teal);
  --icon-glow: rgba(80, 194, 177, 0.32);
}

.feature-icon-create {
  --icon-accent: #c59bff;
  --icon-glow: rgba(138, 108, 255, 0.36);
}

.feature-icon-reward,
.feature-icon-quest {
  --icon-accent: var(--gold);
  --icon-glow: rgba(242, 176, 94, 0.34);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.08;
}

.feature-card p {
  color: rgba(240, 237, 245, 0.66);
  font-size: 0.94rem;
  line-height: 1.62;
}

.story-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  width: min(calc(100% - 36px), 1280px);
  margin: 18px auto;
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(17, 19, 29, 0.84), rgba(32, 34, 50, 0.64)),
    rgba(43, 45, 66, 0.35);
}

.story-panel-compact {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  width: min(calc(100% - 36px), var(--max));
  margin-top: 12px;
  padding: clamp(18px, 3vw, 32px);
}

.story-panel-compact .panel-media {
  min-height: clamp(260px, 30vw, 390px);
  max-height: 430px;
}

.story-panel-compact .panel-copy h2 {
  font-size: clamp(1.78rem, 2.9vw, 2.7rem);
}

.story-panel-compact .panel-copy p {
  line-height: 1.58;
}

.story-panel-compact .check-list {
  gap: 9px;
  margin-top: 20px;
}

.story-panel-right {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(32, 34, 50, 0.64), rgba(17, 19, 29, 0.84)),
    rgba(43, 45, 66, 0.35);
}

.story-panel-right.story-panel-compact {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.panel-media {
  position: relative;
  min-height: clamp(320px, 35vw, 440px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.panel-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: top center;
  animation: livingPainting 16s ease-in-out infinite alternate;
}

.panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 14, 0.18), transparent 32%, rgba(5, 7, 14, 0.38)),
    radial-gradient(circle at 18% 18%, rgba(80, 194, 177, 0.18), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(242, 176, 94, 0.18), transparent 26%);
}

.game-hud,
.affinity-watermark,
.memory-watermark,
.choice-watermark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-hud-top {
  top: 16px;
  left: 16px;
  right: 16px;
}

.game-hud span,
.memory-watermark,
.choice-watermark {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.42);
  color: rgba(255, 244, 226, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.game-hud span {
  padding: 8px 10px;
}

.affinity-watermark {
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(8, 10, 18, 0.42);
}

.affinity-watermark div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.affinity-watermark span {
  color: rgba(240, 237, 245, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.affinity-watermark strong {
  color: #ffe2b7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.affinity-watermark i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.affinity-watermark i::before {
  content: "";
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--rose));
  box-shadow: 0 0 18px rgba(242, 176, 94, 0.35);
}

.memory-watermark {
  top: 64px;
  right: 16px;
  padding: 8px 10px;
}

.choice-watermark {
  right: 16px;
  bottom: 92px;
  display: grid;
  gap: 7px;
  min-width: 150px;
  padding: 10px;
  border-radius: var(--radius-card);
}

.choice-watermark span {
  color: rgba(255, 226, 183, 0.82);
  font-size: 0.68rem;
}

.choice-watermark b {
  border-radius: 6px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(240, 237, 245, 0.88);
  font-size: 0.78rem;
}

.panel-copy {
  max-width: 560px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(240, 237, 245, 0.84);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold), var(--rose));
  box-shadow: 0 0 18px rgba(242, 176, 94, 0.42);
}

.mini-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.mini-timeline span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe3bd;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.world-section {
  padding: 72px 0 44px;
  overflow: hidden;
}

.world-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  overflow-x: clip;
  contain: paint;
  isolation: isolate;
}

.world-hero::before,
.world-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.world-hero::before {
  background:
    linear-gradient(90deg, rgba(17, 19, 29, 0.9), rgba(17, 19, 29, 0.42) 50%, rgba(17, 19, 29, 0.88)),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 19, 29, 0.16) 25%, var(--bg) 100%);
}

.world-hero::after {
  background:
    radial-gradient(circle at 22% 72%, rgba(242, 176, 94, 0.2), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(138, 108, 255, 0.18), transparent 26%);
  opacity: 0.78;
}

.world-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.95);
  animation: livingPainting 20s ease-in-out infinite alternate;
}

.world-copy {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.world-copy > * {
  max-width: 690px;
}

.world-mechanics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(calc(100% - 36px), var(--max));
  margin: -92px auto 0;
}

.world-mechanics article {
  min-height: 236px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(24, 26, 39, 0.84);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.world-mechanics span,
.city-backdrop span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.world-mechanics h3 {
  margin-bottom: 10px;
  font-size: 1.36rem;
  line-height: 1.06;
}

.world-mechanics p {
  color: rgba(240, 237, 245, 0.66);
  font-size: 0.9rem;
  line-height: 1.58;
}

.city-backdrop-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(calc(100% - 36px), var(--max));
  margin: 14px auto 0;
}

.city-backdrop {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-card);
  isolation: isolate;
}

.city-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 28%, rgba(8, 10, 18, 0.88)),
    linear-gradient(90deg, rgba(8, 10, 18, 0.28), transparent 55%);
}

.city-backdrop img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: livingPainting 18s ease-in-out infinite alternate;
}

.city-backdrop:nth-child(2) img {
  animation-delay: -8s;
}

.city-backdrop div {
  position: absolute;
  inset: auto 24px 22px;
}

.city-backdrop span {
  margin-bottom: 10px;
  color: #ffe2b7;
}

.city-backdrop h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.02;
}

.gallery-section,
.system-section {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.gallery-section {
  padding-top: 36px;
}

.play-section {
  position: relative;
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 72px 0;
  isolation: isolate;
}

.play-section::before {
  content: "";
  position: absolute;
  inset: 34px -7vw 38px;
  z-index: -2;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(17, 19, 29, 0.98), rgba(17, 19, 29, 0.68) 52%, rgba(17, 19, 29, 0.94)),
    linear-gradient(180deg, var(--bg) 0%, rgba(17, 19, 29, 0.12) 42%, var(--bg) 100%),
    url("./assets/city-nocturne.png") center / cover no-repeat;
  filter: saturate(0.9) contrast(0.95);
}

.play-section::after {
  content: "";
  position: absolute;
  inset: 34px -7vw 38px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 70%, rgba(80, 194, 177, 0.18), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(242, 176, 94, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%);
}

.play-heading {
  max-width: 980px;
}

.marquee-stack {
  display: grid;
  gap: 8px;
}

.marquee {
  position: relative;
  display: flex;
  gap: 14px;
  width: 100vw;
  margin-left: calc((100vw - min(calc(100vw - 36px), var(--max))) / -2);
  overflow: hidden;
  overflow-x: clip;
  contain: layout paint;
  padding-block: 8px 12px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  min-width: max-content;
  animation: marquee 54s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-name: marqueeReverse;
  animation-duration: 58s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.character-card {
  width: clamp(220px, 18vw, 262px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(43, 45, 66, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.character-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 260ms ease, filter 260ms ease;
}

.character-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.character-card h3 {
  margin: 14px 14px 5px;
  font-size: 1.26rem;
}

.character-tag {
  display: inline-flex;
  max-width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 176, 94, 0.26);
  border-radius: 999px;
  background: rgba(242, 176, 94, 0.1);
  color: #ffe0b2;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.character-card p {
  min-height: 108px;
  margin: 0 14px 16px;
  color: rgba(240, 237, 245, 0.62);
  font-size: 0.88rem;
  line-height: 1.5;
}

.custom-character-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(242, 176, 94, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(138, 108, 255, 0.18), transparent 36%),
    rgba(24, 26, 39, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.custom-character-mark {
  display: grid;
  width: clamp(82px, 9vw, 124px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(242, 176, 94, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 176, 94, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.05);
  color: #ffe2b7;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 0.82;
  box-shadow: inset 0 0 48px rgba(242, 176, 94, 0.08);
}

.custom-character-cta .eyebrow {
  margin-bottom: 10px;
}

.custom-character-cta h3 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.custom-character-cta p:last-of-type {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(240, 237, 245, 0.68);
  line-height: 1.6;
}

.play-tabs {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.tab-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tab-button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(8, 10, 18, 0.42);
  color: rgba(240, 237, 245, 0.72);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 0 18px;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tab-button span,
.tab-button small {
  display: block;
}

.tab-button span {
  color: rgba(240, 237, 245, 0.9);
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tab-button small {
  margin-top: 6px;
  color: rgba(240, 237, 245, 0.54);
  font-size: 0.82rem;
  font-weight: 700;
}

.tab-button:hover,
.tab-button.active {
  border-color: rgba(138, 108, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(138, 108, 255, 0.28), rgba(242, 176, 94, 0.08)),
    rgba(8, 10, 18, 0.58);
  color: white;
}

.tab-button.active small {
  color: rgba(255, 226, 183, 0.82);
}

.tab-stage {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(80, 194, 177, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(242, 176, 94, 0.14), transparent 38%),
    rgba(17, 19, 29, 0.74);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.tab-panel {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 28px;
  min-height: 520px;
  padding: clamp(22px, 5vw, 46px);
}

.tab-panel.active {
  display: grid;
  animation: fadeRise 260ms ease both;
}

.play-demo {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 360px;
  align-content: center;
}

.play-demo::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 20% 24%, rgba(80, 194, 177, 0.14), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(138, 108, 255, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.demo-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-status span,
.play-loop-notes span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.48);
  color: rgba(255, 226, 183, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.chat-scene {
  display: grid;
  gap: 14px;
}

.bubble {
  max-width: 540px;
  margin: 0;
  border-radius: 8px;
  padding: 16px 18px;
  line-height: 1.6;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.bubble-character {
  justify-self: start;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 237, 245, 0.86);
}

.bubble-player {
  justify-self: end;
  background: rgba(138, 108, 255, 0.88);
  color: white;
}

.bubble-system {
  justify-self: center;
  max-width: 440px;
  border: 1px solid rgba(242, 176, 94, 0.28);
  background: rgba(242, 176, 94, 0.1);
  color: rgba(255, 226, 183, 0.9);
  font-size: 0.88rem;
}

.composer-preview {
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.46);
  color: rgba(240, 237, 245, 0.62);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 0 18px;
}

.tab-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.tab-copy p {
  color: rgba(240, 237, 245, 0.7);
  line-height: 1.65;
}

.mode-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mode-feature-list span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(240, 237, 245, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 10px;
}

.choice-stack,
.creator-steps {
  display: grid;
  gap: 12px;
}

.play-demo-story {
  align-content: start;
}

.vn-frame {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background: rgba(8, 10, 18, 0.42);
}

.vn-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 36%, rgba(8, 10, 18, 0.9)),
    linear-gradient(90deg, rgba(8, 10, 18, 0.22), transparent 58%);
}

.character-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid rgba(242, 176, 94, 0.28);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.58);
  color: rgba(255, 226, 183, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 9px 12px;
  text-align: center;
  backdrop-filter: blur(14px);
}

.vn-frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 50% 12%;
  filter: saturate(0.9) contrast(0.95);
}

.vn-caption {
  position: absolute;
  inset: auto 16px 14px;
  z-index: 1;
}

.vn-caption span {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffe2b7;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vn-caption p {
  max-width: 560px;
  margin: 0;
  color: rgba(240, 237, 245, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
}

.choice-stack button,
.creator-steps span {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 237, 245, 0.9);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  padding: 0 18px;
}

.choice-stack button {
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.choice-stack button:hover {
  transform: translateX(4px);
  background: rgba(242, 176, 94, 0.16);
}

.creator-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.creator-steps span {
  display: grid;
  place-items: center;
  text-align: center;
}

.creator-preview-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  background: rgba(8, 10, 18, 0.46);
}

.creator-preview-card img {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.creator-preview-card span {
  display: block;
  margin-bottom: 8px;
  color: #ffe2b7;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-preview-card strong {
  display: block;
  color: rgba(240, 237, 245, 0.9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.42rem;
  line-height: 1.05;
}

.play-loop-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.creator-section {
  position: relative;
  min-height: 740px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 96px 18px;
  isolation: isolate;
}

.creator-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 29, 0.94), rgba(17, 19, 29, 0.38), rgba(17, 19, 29, 0.94)),
    linear-gradient(180deg, var(--bg), transparent 25%, var(--bg) 100%);
}

.creator-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  opacity: 0.66;
}

.creator-art img {
  width: 100%;
  height: 100%;
  min-height: 740px;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.8) contrast(0.9);
  animation: livingPainting 18s ease-in-out infinite alternate;
}

.creator-art img:nth-child(2) {
  animation-delay: -6s;
}

.creator-art img:nth-child(3) {
  animation-delay: -12s;
}

.creator-copy {
  width: min(100%, 760px);
  text-align: center;
}

.creator-copy .button {
  margin-top: 14px;
}

.system-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.system-rail article {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 72% 12%, var(--step-glow, rgba(80, 194, 177, 0.16)), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(43, 45, 66, 0.62);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.system-rail article::after {
  content: "";
  position: absolute;
  inset: auto -16px -26px auto;
  width: 122px;
  aspect-ratio: 1;
  border: 1px solid var(--step-line, rgba(80, 194, 177, 0.2));
  border-radius: 50%;
  opacity: 0.42;
  background:
    linear-gradient(90deg, transparent 48%, var(--step-line, rgba(80, 194, 177, 0.18)) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--step-line, rgba(80, 194, 177, 0.18)) 49% 51%, transparent 52%);
}

.system-rail article:hover {
  transform: translateY(-3px);
  border-color: var(--step-border, rgba(80, 194, 177, 0.34));
  background:
    radial-gradient(circle at 72% 12%, var(--step-glow, rgba(80, 194, 177, 0.2)), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(43, 45, 66, 0.72);
}

.system-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--step-border, rgba(80, 194, 177, 0.28));
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle, var(--step-glow, rgba(80, 194, 177, 0.22)), transparent 68%),
    rgba(8, 10, 18, 0.38);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.045),
    0 0 28px var(--step-shadow, rgba(80, 194, 177, 0.16));
}

.system-glyph svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--step-accent, var(--teal));
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--step-shadow, rgba(80, 194, 177, 0.22)));
}

.system-step-meet {
  --step-accent: #ffe2b7;
  --step-border: rgba(242, 176, 94, 0.34);
  --step-glow: rgba(242, 176, 94, 0.2);
  --step-line: rgba(242, 176, 94, 0.16);
  --step-shadow: rgba(242, 176, 94, 0.22);
}

.system-step-choice {
  --step-accent: var(--teal);
  --step-border: rgba(80, 194, 177, 0.34);
  --step-glow: rgba(80, 194, 177, 0.18);
  --step-line: rgba(80, 194, 177, 0.16);
  --step-shadow: rgba(80, 194, 177, 0.22);
}

.system-step-bond {
  --step-accent: var(--rose);
  --step-border: rgba(217, 108, 134, 0.34);
  --step-glow: rgba(217, 108, 134, 0.18);
  --step-line: rgba(217, 108, 134, 0.16);
  --step-shadow: rgba(217, 108, 134, 0.22);
}

.system-step-road {
  --step-accent: #c59bff;
  --step-border: rgba(138, 108, 255, 0.36);
  --step-glow: rgba(138, 108, 255, 0.2);
  --step-line: rgba(138, 108, 255, 0.16);
  --step-shadow: rgba(138, 108, 255, 0.24);
}

.system-step-company {
  --step-accent: #ffe2b7;
  --step-border: rgba(255, 226, 183, 0.3);
  --step-glow: rgba(242, 176, 94, 0.16);
  --step-line: rgba(255, 226, 183, 0.14);
  --step-shadow: rgba(242, 176, 94, 0.2);
}

.system-rail span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 22px;
  color: var(--step-accent, var(--teal));
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-rail h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.04;
}

.system-rail p {
  position: relative;
  z-index: 1;
  color: rgba(240, 237, 245, 0.64);
  font-size: 0.88rem;
  line-height: 1.55;
}

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) 1fr;
  gap: clamp(20px, 6vw, 74px);
  align-items: center;
  width: min(calc(100% - 36px), var(--max));
  margin: 22px auto 76px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 70px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(138, 108, 255, 0.2), transparent 32%),
    linear-gradient(315deg, rgba(242, 176, 94, 0.18), transparent 28%),
    rgba(43, 45, 66, 0.72);
}

.final-character-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.final-character-stack article {
  position: relative;
  min-height: clamp(320px, 36vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  background: rgba(8, 10, 18, 0.52);
}

.final-character-stack article::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.18), transparent 38%, rgba(8, 10, 18, 0.86)),
    radial-gradient(circle at 50% 12%, rgba(242, 176, 94, 0.16), transparent 32%);
}

.final-character-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(0.96);
  transition: transform 260ms ease, filter 260ms ease;
}

.final-character-stack article:hover img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1);
}

.final-character-stack span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  min-height: 72px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(242, 176, 94, 0.24);
  border-radius: var(--radius-card);
  background: rgba(8, 10, 18, 0.58);
  color: rgba(255, 244, 226, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.32;
  padding: 10px;
  text-align: center;
  backdrop-filter: blur(14px);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px max(18px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-deep);
  color: rgba(240, 237, 245, 0.64);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
}

.site-footer a:hover {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@keyframes slowDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }
  to {
    transform: translate3d(12px, -18px, 0) rotate(2deg) scale(1.04);
  }
}

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

@keyframes livingPainting {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1.5%, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 14px));
  }
}

@keyframes marqueeReverse {
  from {
    transform: translateX(calc(-100% - 14px));
  }
  to {
    transform: translateX(0);
  }
}

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

@media (max-width: 1120px) {
  .site-nav {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
    align-content: end;
    padding-top: 106px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 12, 20, 0.24), rgba(10, 12, 20, 0.96)),
      linear-gradient(90deg, rgba(9, 11, 19, 0.96), rgba(9, 11, 19, 0.66));
  }

  .hero-copy {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding-bottom: 0;
    overflow: hidden;
  }

  .hero-copy > * {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy > .eyebrow,
  .hero-copy > h1,
  .hero-copy > .hero-lead,
  .hero-copy > .hero-body {
    width: min(330px, calc(100vw - 32px));
    max-width: min(330px, calc(100vw - 32px));
  }

  .hero-character-one {
    right: 2vw;
    opacity: 0.52;
  }

  .hero-character-two,
  .hero-character-three {
    opacity: 0.34;
  }

  .hero-character-four {
    left: 22vw;
    opacity: 0.42;
  }

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

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

  .story-panel,
  .story-panel-right {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  .story-panel-compact,
  .story-panel-right.story-panel-compact {
    grid-template-columns: 1fr;
  }

  .story-panel-compact .panel-media {
    order: 1;
    width: 100%;
    min-height: clamp(360px, 72vw, 430px);
    max-height: 430px;
  }

  .story-panel-compact .panel-copy {
    order: 2;
  }

  .story-panel-compact .panel-copy h2 {
    font-size: clamp(2.35rem, 8vw, 3.9rem);
  }

  .panel-media {
    min-height: 340px;
  }

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

  .world-hero {
    min-height: 620px;
  }

  .world-mechanics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -70px;
  }

  .city-backdrop-row {
    grid-template-columns: 1fr;
  }

  .custom-character-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .custom-character-cta .button {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .tab-button {
    min-height: 72px;
    padding: 0 12px;
    text-align: center;
  }

  .tab-button small {
    font-size: 0.74rem;
  }

  .tab-panel,
  .tab-panel.active {
    grid-template-columns: 1fr;
  }

  .play-demo {
    min-height: auto;
  }

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

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

  .final-character-stack article {
    min-height: 420px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    top: 8px;
    width: calc(100% - 16px);
    padding: 8px;
  }

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

  .brand img {
    width: 28px;
    height: 28px;
  }

  .nav-cta {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 93vh;
    padding: 96px 16px 34px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.45rem, 17vw, 4.2rem);
    line-height: 0.86;
  }

  .hero-lead {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
    line-height: 1.08;
  }

  .hero-body {
    max-width: calc(100vw - 32px);
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .hero-proof {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 16px;
  }

  .hero-proof.reveal,
  .hero-proof.reveal.is-visible {
    transform: none;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    width: min(calc(100% - 28px), var(--max));
    margin-top: 12px;
    padding: 10px;
  }

  .section,
  .gallery-section,
  .play-section,
  .system-section {
    width: min(calc(100% - 28px), var(--max));
    padding-block: 72px;
  }

  .gallery-section {
    padding-top: 34px;
  }

  .intro-band {
    padding-top: 78px;
  }

  .section-heading h2,
  .panel-copy h2,
  .world-copy h2,
  .creator-copy h2,
  .final-cta h2 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .differentiator-grid,
  .system-rail {
    grid-template-columns: 1fr;
  }

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

  .story-panel,
  .story-panel-right {
    width: min(calc(100% - 20px), 1280px);
    padding: 22px 14px 34px;
  }

  .story-panel-compact {
    gap: 18px;
  }

  .story-panel-compact .panel-media {
    min-height: 360px;
    max-height: 390px;
  }

  .panel-media {
    min-height: 300px;
  }

  .game-hud-top {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .game-hud span,
  .memory-watermark,
  .choice-watermark {
    font-size: 0.64rem;
  }

  .affinity-watermark {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }

  .memory-watermark {
    top: 54px;
    right: 10px;
  }

  .choice-watermark {
    right: 10px;
    bottom: 80px;
    min-width: 132px;
  }

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

  .marquee {
    margin-left: -14px;
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  }

  .character-card {
    width: 214px;
  }

  .character-card p {
    min-height: 120px;
    font-size: 0.82rem;
  }

  .custom-character-cta {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .custom-character-cta .button {
    grid-column: auto;
    justify-self: stretch;
  }

  .world-section {
    padding-block: 72px 38px;
  }

  .world-hero {
    min-height: 640px;
  }

  .world-hero::before {
    background:
      linear-gradient(180deg, rgba(17, 19, 29, 0.44), rgba(17, 19, 29, 0.96)),
      linear-gradient(90deg, rgba(17, 19, 29, 0.92), rgba(17, 19, 29, 0.55));
  }

  .world-copy {
    width: min(calc(100% - 28px), var(--max));
  }

  .world-copy > * {
    max-width: min(360px, 100%);
  }

  .world-mechanics {
    grid-template-columns: 1fr;
    width: min(calc(100% - 28px), var(--max));
    margin-top: 14px;
  }

  .city-backdrop-row {
    width: min(calc(100% - 28px), var(--max));
  }

  .city-backdrop {
    min-height: 300px;
  }

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

  .tab-button {
    min-height: 66px;
    text-align: left;
  }

  .tab-stage,
  .tab-panel,
  .tab-panel.active {
    min-height: auto;
  }

  .tab-panel {
    padding: 18px;
  }

  .play-section::before,
  .play-section::after {
    inset: 24px -14px 28px;
  }

  .play-demo::before {
    inset: -10px;
  }

  .demo-status span,
  .play-loop-notes span,
  .mode-feature-list span {
    font-size: 0.66rem;
  }

  .composer-preview {
    min-height: auto;
    border-radius: var(--radius-card);
    padding: 12px;
  }

  .vn-frame,
  .vn-frame img {
    min-height: 280px;
    height: 280px;
  }

  .vn-caption {
    inset: auto 12px 12px;
  }

  .creator-preview-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .creator-preview-card img {
    width: 76px;
  }

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

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

  .creator-section {
    min-height: 640px;
  }

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

  .creator-art img {
    min-height: 640px;
  }

  .creator-art img:nth-child(n + 2) {
    display: none;
  }

  .final-cta {
    width: min(calc(100% - 20px), var(--max));
    margin-bottom: 72px;
    padding: 18px;
  }

  .character-banner {
    border-radius: var(--radius-card);
    font-size: 0.68rem;
    text-align: left;
  }

  .final-character-stack {
    grid-template-columns: 1fr;
  }

  .final-character-stack article {
    min-height: 360px;
  }

  .final-character-stack article:nth-child(n + 2) {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Funil v1: cards do marquee viraram links pro prefácio do personagem ───── */
a.character-card {
  /* <a> e inline por padrao — sem display:block o marquee estoura a altura
     e cria scroll fantasma mostrando o background (bug 2026-06-11). */
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.character-card:hover {
  transform: translateY(-4px);
}
