@font-face {
  font-family: "Press Start 2P";
  src: url("./PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  --ink: #071b29;
  --navy: #102a3c;
  --panel: #173a4e;
  --panel-solid: #153447;
  --cream: #fff3d7;
  --muted: #b3cec7;
  --green: #79b78f;
  --cyan: #69b9d8;
  --gold: #f2c95d;
  --purple: #c18be2;
  --coral: #ef806d;
  --line: #548b78;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: var(--ink);
  color: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); overflow-x: clip; }
body { position: relative; margin: 0; min-width: 320px; max-width: 100%; overflow-x: clip; background: linear-gradient(180deg, #071b29, #0d293a 42%, #071b29); }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}
a { color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.pixel-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pixel-sky i { position: absolute; width: 5px; height: 5px; background: var(--cyan); opacity: .22; box-shadow: 14px 10px 0 rgba(121,183,143,.55), -18px 26px 0 rgba(242,201,93,.45); animation: pixel-drift 12s steps(6, end) infinite alternate; }
.pixel-sky i:nth-child(1) { top: 12%; left: 8%; animation-delay: -2s; }
.pixel-sky i:nth-child(2) { top: 32%; left: 91%; animation-delay: -8s; }
.pixel-sky i:nth-child(3) { top: 57%; left: 4%; animation-delay: -5s; }
.pixel-sky i:nth-child(4) { top: 74%; left: 86%; animation-delay: -11s; }
.pixel-sky i:nth-child(5) { top: 90%; left: 21%; animation-delay: -3s; }

.scrolly-world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scrolly-world canvas { display: block; width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.world-loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 24px; padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: #102a3c; opacity: 1; visibility: visible;
  transition: opacity .36s ease, visibility 0s linear .36s;
}
.world-loader.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.world-loader-card {
  display: grid; justify-items: center; gap: 18px; color: var(--cream); text-align: center;
  font-family: "Press Start 2P", ui-monospace, monospace; text-shadow: 3px 3px 0 var(--ink);
}
.world-loader-card img {
  width: clamp(76px, 19vw, 112px); height: auto; border: 3px solid var(--green); border-radius: 8px;
  image-rendering: pixelated; box-shadow: 8px 8px 0 rgba(7,27,41,.78), 0 0 26px rgba(121,183,143,.22);
}
.world-loader-card strong { font-size: clamp(1.15rem, 4.5vw, 1.85rem); line-height: 1.35; letter-spacing: .04em; }
.world-loader-card > span { color: var(--green); font-size: clamp(.54rem, 2.2vw, .72rem); line-height: 1.6; letter-spacing: .08em; }
.world-loader-card i { display: flex; gap: 10px; height: 16px; margin-top: 2px; }
.world-loader-card i b {
  width: 9px; height: 9px; background: var(--gold); box-shadow: 2px 2px 0 var(--ink);
  animation: loader-pulse 1.05s steps(1, end) infinite;
}
.world-loader-card i b:nth-child(2) { animation-delay: .15s; }
.world-loader-card i b:nth-child(3) { animation-delay: .3s; }
.journey > .scene { z-index: 1; }
.page-home .pixel-sky { display: none; }
html:not(.no-live-world) .page-home .scene-gameplay { display: none; }
.journey-rail {
  position: fixed; z-index: 18; top: 50%; right: 18px; display: grid; gap: 15px;
  padding: 13px 9px; transform: translateY(-50%); border: 2px solid rgba(255,243,215,.34);
  background: rgba(7,27,41,.74); box-shadow: 5px 5px 0 rgba(0,0,0,.18); pointer-events: none;
}
.journey-rail::before, .journey-rail::after { content: ""; position: absolute; top: 19px; bottom: 19px; left: 50%; width: 2px; transform-origin: top; }
.journey-rail::before { background: rgba(121,183,143,.27); transform: translateX(-50%); }
.journey-rail::after { background: var(--gold); transform: translateX(-50%) scaleY(var(--journey-progress, 0)); }
.journey-rail i { position: relative; z-index: 1; width: 7px; height: 7px; background: var(--navy); border: 2px solid var(--green); }

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 12px clamp(16px, 4vw, 62px);
  background: transparent; border: 0; box-shadow: none; pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand img { width: 44px; height: 44px; border-radius: 7px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--green), 5px 5px 0 rgba(0,0,0,.28); }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 3vw, 42px); pointer-events: auto; }
.nav a { color: var(--cream); text-decoration: none; font-size: .79rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--ink), 0 0 12px rgba(7,27,41,.92); }
.nav a:hover, .nav a:focus-visible { color: var(--gold); text-shadow: 2px 2px 0 var(--ink), 0 0 14px rgba(242,201,93,.72); }
.language {
  position: absolute; top: 50%; right: max(clamp(14px, 3vw, 38px), env(safe-area-inset-right));
  max-width: 58px; padding: 8px 9px; transform: translateY(-50%);
  color: var(--cream); background: transparent; border: 0; border-bottom: 2px solid var(--green); border-radius: 0;
  font: inherit; font-weight: 900; text-shadow: 2px 2px 0 var(--ink); pointer-events: auto;
}
.language option { color: #071b29; background: #fff3d7; text-shadow: none; }

.scene { position: relative; isolation: isolate; overflow: clip; }
.scene-image, .scene-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.scene-image { background-repeat: no-repeat; will-change: transform; animation: scene-drift 22s ease-in-out infinite alternate; }
.scene-shade { z-index: -1; }

.hero {
  min-height: min(930px, calc(100svh - 68px)); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(30px, 6vw, 90px);
  padding: clamp(62px, 8vw, 110px) clamp(24px, 7vw, 110px); border-bottom: 4px solid var(--line);
}
.scene-gameplay { inset: -12% -2% -12% 38%; opacity: .7; background-image: var(--scene-image); background-size: cover; background-position: center 28%; filter: saturate(.92) contrast(1.02); -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.4) 13%, #000 38%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.4) 13%, #000 38%); }
.hero .scene-shade { background: linear-gradient(90deg, #071b29 0%, rgba(7,27,41,.98) 38%, rgba(7,27,41,.58) 70%, rgba(7,27,41,.32)); }
.hero-copy { position: relative; z-index: 4; max-width: 720px; }
.hero-icon { width: 86px; height: 86px; margin: 0 0 26px; border-radius: 18px; image-rendering: pixelated; box-shadow: 0 0 0 4px var(--green), 8px 8px 0 rgba(0,0,0,.3); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: clamp(.72rem, 1.3vw, .92rem); font-weight: 900; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(4rem, 9vw, 8.4rem); line-height: .82; letter-spacing: -.085em; text-transform: uppercase; text-shadow: 8px 8px 0 rgba(0,0,0,.32); }
.hero h1 { font-family: "Press Start 2P", ui-monospace, monospace; font-size: clamp(2.55rem, 5.4vw, 5.3rem); font-weight: 400; line-height: 1.08; letter-spacing: -.04em; text-shadow: 6px 6px 0 rgba(7,27,41,.72), 10px 10px 0 rgba(0,0,0,.22); }
.hero-lead { max-width: 660px; margin: 30px 0; color: #d0e1dc; font-size: clamp(1.05rem, 2vw, 1.38rem); line-height: 1.65; text-shadow: 2px 2px 0 rgba(0,0,0,.42); }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 15px 18px; border: 3px solid var(--gold); background: rgba(9,31,45,.87); color: var(--gold); font-weight: 900; letter-spacing: .08em; box-shadow: 7px 7px 0 rgba(0,0,0,.3); }
.store-badge::before { content: "◆"; }
.store-platforms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; width: min(100%, 430px); }
.store-platform {
  display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; min-width: 0; padding: 10px 12px;
  border: 2px solid rgba(179,206,199,.62); border-radius: 5px; background: rgba(7,27,41,.72); color: rgba(255,243,215,.73);
  font: inherit; text-align: left; box-shadow: 4px 5px 0 rgba(0,0,0,.22); filter: grayscale(.45); opacity: .78; cursor: not-allowed;
}
.store-platform span:last-child { display: grid; gap: 3px; min-width: 0; }
.store-platform small { overflow: hidden; color: var(--muted); font-size: clamp(.5rem,.68vw,.58rem); font-weight: 900; letter-spacing: .045em; white-space: nowrap; text-overflow: ellipsis; }
.store-platform strong { font-size: clamp(.78rem,1.05vw,.92rem); letter-spacing: -.025em; white-space: nowrap; }
.store-symbol { color: var(--cream); font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1.72rem; line-height: 1; text-align: center; }
.store-symbol-play { color: var(--muted); font-size: 1.34rem; }
.store-platforms-bottom { margin: 0 auto 22px; }

.hero-window { position: relative; justify-self: end; z-index: 3; width: clamp(280px, 26vw, 360px); overflow: hidden; border: 5px solid var(--cream); background: #061721; box-shadow: 16px 18px 0 rgba(0,0,0,.36), 0 0 0 3px rgba(84,139,120,.8); transform: rotate(2.2deg); animation: window-float 7s ease-in-out infinite; }
.hero-window img { display: block; width: 100%; height: auto; }
.hero-window-video { display: none; width: 100%; height: auto; background: #061721; }

.world-gate {
  position: relative; z-index: 4; justify-self: end; display: grid; justify-items: center;
  width: clamp(280px, 28vw, 380px); padding: 28px 22px 24px;
  border: 4px solid var(--cream); background: rgba(7,27,41,.78);
  box-shadow: 14px 16px 0 rgba(0,0,0,.3), 0 0 0 3px rgba(84,139,120,.76);
  text-align: center; backdrop-filter: blur(8px);
}
.world-gate::before, .world-gate::after { content: ""; position: absolute; width: 12px; height: 12px; border: 3px solid var(--gold); }
.world-gate::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.world-gate::after { right: 9px; bottom: 9px; border-left: 0; border-top: 0; }
.world-gate-diamond {
  display: grid; place-items: center; width: 86px; height: 86px; margin: 4px 0 25px;
  border: 4px solid var(--gold); background: rgba(23,58,78,.92); color: var(--gold);
  font-size: 2.25rem; line-height: 1; transform: rotate(45deg); box-shadow: 0 0 34px rgba(242,201,93,.22);
  animation: gate-pulse 1.8s steps(4,end) infinite;
}
.world-gate-diamond b { display: block; transform: rotate(-45deg); }
.world-gate strong { color: var(--cream); font-size: clamp(.9rem, 1.35vw, 1.05rem); letter-spacing: .08em; }
.world-gate small { margin-top: 12px; color: var(--green); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }

.section { position: relative; min-height: min(840px, 92svh); display: grid; align-items: center; padding: clamp(90px, 11vw, 160px) clamp(22px, 5vw, 72px); }
.section-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: auto; }
.scene-panel { padding: clamp(28px, 5vw, 60px); border: 3px solid rgba(84,139,120,.82); background: rgba(7,27,41,.84); box-shadow: 12px 14px 0 rgba(0,0,0,.27); backdrop-filter: blur(9px); }
.section-kicker { color: var(--cyan); font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
h2 { max-width: 940px; margin: 10px 0 20px; font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.section-lead { max-width: 760px; margin: 0 0 48px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.7; }

.scene-mining .scene-image { inset: -9%; opacity: .42; background-image: var(--scene-image); background-size: cover; background-position: center 43%; filter: saturate(.72); }
.scene-mining .scene-shade { background: linear-gradient(100deg, rgba(7,27,41,.94), rgba(7,27,41,.48)), linear-gradient(0deg, #071b29 0%, transparent 24%, transparent 76%, #071b29 100%); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; min-height: 210px; padding: 29px; border: 3px solid var(--line); background: rgba(19,52,71,.94); box-shadow: 7px 8px 0 rgba(0,0,0,.25); transition: transform .2s steps(2,end), background .2s ease; }
.card:hover { transform: translate(-3px,-3px); background: rgba(28,68,88,.97); }
.card-number { color: var(--gold); font-weight: 900; }
.card h3 { margin: 34px 0 10px; color: var(--cream); font-size: clamp(1.12rem, 2vw, 1.42rem); }
.card p { margin: 0; color: var(--muted); line-height: 1.62; }
.card:nth-child(2) { border-color: var(--cyan); }
.card:nth-child(3) { border-color: var(--green); }
.card:nth-child(4) { border-color: var(--purple); }

.collection { border-block: 4px solid var(--line); }
.scene-album .scene-image { inset: -12% -5%; opacity: .3; background-image: var(--scene-image); background-size: cover; background-position: center 30%; filter: saturate(.9); }
.scene-album .scene-shade { background: radial-gradient(circle at 24% 50%, rgba(7,27,41,.16), rgba(7,27,41,.9) 67%), linear-gradient(180deg, #071b29 0%, transparent 20%, transparent 80%, #071b29 100%); }
.collection-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.collection-copy { padding: clamp(26px, 4vw, 48px); border: 3px solid var(--gold); background: rgba(7,27,41,.89); box-shadow: 11px 12px 0 rgba(0,0,0,.28); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 10px; perspective: 900px; }
.screens img { width: 100%; border: 3px solid var(--line); border-radius: 12px; box-shadow: 8px 10px 0 rgba(0,0,0,.3); }
.screens img:first-child { transform: rotate(-5deg) translateY(28px); }
.screens img:nth-child(2) { position: relative; z-index: 2; transform: scale(1.1); border-color: var(--gold); }
.screens img:last-child { transform: rotate(5deg) translateY(28px); }
.play-window { position: relative; z-index: 2; transform: scale(1.1); border: 3px solid var(--gold); border-radius: 12px; overflow: hidden; background: #061721; box-shadow: 8px 10px 0 rgba(0,0,0,.3); }
.play-window video { display: block; width: 100%; height: auto; }
.play-window span { position: absolute; right: 7px; bottom: 7px; padding: 5px 7px; background: rgba(7,27,41,.9); color: var(--gold); font-size: .53rem; font-weight: 900; letter-spacing: .08em; pointer-events: none; }

.scene-mission .scene-image { inset: -8%; opacity: .38; background-image: var(--scene-image); background-size: cover; background-position: center 34%; filter: saturate(.75); }
.scene-mission .scene-shade { background: linear-gradient(90deg, rgba(7,27,41,.96) 0%, rgba(7,27,41,.73) 58%, rgba(7,27,41,.38)), linear-gradient(0deg, #071b29, transparent 27%, transparent 73%, #071b29); }
.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 24px; padding: 24px 28px; border: 3px solid rgba(84,139,120,.68); border-left: 8px solid var(--green); background: rgba(17,48,66,.95); box-shadow: 6px 6px 0 rgba(0,0,0,.18); }
.feature:nth-child(2) { border-left-color: var(--gold); }
.feature:nth-child(3) { border-left-color: var(--purple); }
.feature:nth-child(4) { border-left-color: var(--cyan); }
.feature strong { color: var(--cream); }
.feature span { color: var(--muted); line-height: 1.55; }

.expansion-scene { isolation: isolate; overflow: hidden; background: radial-gradient(circle at 18% 44%, rgba(193,139,226,.25), transparent 30%), radial-gradient(circle at 84% 56%, rgba(105,185,216,.21), transparent 30%), #0a2232; }
.confluence-orb { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(82vw, 900px); aspect-ratio: 1; transform: translate(-50%,-50%) rotate(45deg); border: 4px solid rgba(193,139,226,.5); background: linear-gradient(135deg, rgba(105,185,216,.18), rgba(193,139,226,.18)); box-shadow: 0 0 90px rgba(193,139,226,.18), inset 0 0 90px rgba(105,185,216,.12); animation: confluence-pulse 8s steps(8,end) infinite alternate; }
.expansion-box { padding: clamp(32px, 5vw, 66px); border: 4px solid var(--purple); background: rgba(18,45,62,.94); box-shadow: 13px 14px 0 rgba(0,0,0,.3); }
.expansion-box h2 { color: #e4baf8; }
.expansion-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.expansion-points li { padding: 18px; border: 2px solid rgba(193,139,226,.52); background: rgba(7,27,41,.73); color: var(--cream); }
.expansion-points li::before { content: "◆ "; color: var(--purple); }

.trust { min-height: 620px; text-align: center; background: linear-gradient(180deg, #071b29, #0b293a); }
.trust h2, .trust .section-lead { margin-inline: auto; }
.button { display: inline-block; padding: 15px 20px; border: 3px solid var(--green); background: var(--panel-solid); color: var(--cream); text-decoration: none; font-weight: 900; box-shadow: 6px 6px 0 rgba(0,0,0,.25); }
.button:hover, .button:focus-visible { transform: translate(2px, 2px); box-shadow: 4px 4px 0 rgba(0,0,0,.25); }

.footer { position: relative; z-index: 3; padding: 34px clamp(22px, 5vw, 72px); border-top: 3px solid var(--line); background: #071b29; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; max-width: 1180px; margin: auto; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-inner > span {
  position: relative; order: -1; display: block; flex: 0 0 86px; width: 86px; height: 86px; overflow: visible;
  color: transparent; font-size: 0; line-height: 0; white-space: nowrap; text-indent: 100%;
  background: url('/thoughtful-software-logo.svg?v=3') center / contain no-repeat;
}
.footer-inner > span[data-footer-logo-ready] { background: none; }
.footer-logo-mark { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; text-indent: 0; }
.footer-logo-orbit {
  transform-box: view-box; transform-origin: center;
  animation: footer-logo-orbit 28s linear infinite;
  will-change: transform;
}
.footer-inner > span > a {
  position: absolute; z-index: 1; inset: 0; display: block; overflow: hidden; border-radius: 50%;
  color: transparent; font-size: 0; text-indent: 100%; white-space: nowrap;
}
.footer-inner > span > a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.page-support::before, .page-privacy::before { content: ""; position: fixed; inset: 0 0 0 48%; z-index: 0; opacity: .1; background: url('/scroll-crew/assets/album.jpg') center 22% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%); mask-image: linear-gradient(90deg, transparent, #000 42%); pointer-events: none; }
.page { position: relative; z-index: 2; max-width: 940px; min-height: calc(100svh - 170px); margin: auto; padding: clamp(65px, 9vw, 120px) clamp(22px, 5vw, 72px); }
.page h1 { font-size: clamp(2.65rem, 8vw, 6rem); overflow-wrap: anywhere; word-break: break-word; }
.page-intro { margin: 30px 0 46px; color: var(--muted); font-size: 1.15rem; line-height: 1.7; }
.contact-box { display: block; margin: 36px 0 60px; padding: 28px; border: 3px solid var(--gold); background: rgba(23,58,78,.94); box-shadow: 8px 8px 0 rgba(0,0,0,.2); text-decoration: none; overflow-wrap: anywhere; }
.contact-box small { display: block; margin-bottom: 10px; color: var(--gold); font-weight: 900; letter-spacing: .12em; }
.contact-box strong { font-size: clamp(1rem, 3vw, 1.35rem); }
.faq { border-top: 2px solid var(--line); }
.faq details { border-bottom: 2px solid var(--line); background: rgba(23,58,78,.72); }
.faq summary { cursor: pointer; padding: 22px; color: var(--cream); font-weight: 900; }
.faq p { margin: 0; padding: 0 22px 24px; color: var(--muted); line-height: 1.65; }
.delete-box { margin-top: 52px; padding: 28px; border: 3px solid var(--coral); background: rgba(73,34,39,.72); }
.delete-box h2 { color: #ff9b8a; font-size: clamp(1.5rem, 4vw, 2.4rem); }
.delete-box p { color: var(--muted); line-height: 1.7; }
.policy-meta { color: var(--gold); }
.policy-section { margin-top: 48px; padding: 26px; border-left: 5px solid var(--line); background: rgba(15,43,58,.68); }
.policy-section h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); letter-spacing: -.03em; }
.policy-section p { color: var(--muted); line-height: 1.82; }

.has-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.25,1); }
.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.has-js .card[data-reveal]:nth-child(2), .has-js .feature[data-reveal]:nth-child(2) { transition-delay: .08s; }
.has-js .card[data-reveal]:nth-child(3), .has-js .feature[data-reveal]:nth-child(3) { transition-delay: .16s; }
.has-js .card[data-reveal]:nth-child(4), .has-js .feature[data-reveal]:nth-child(4) { transition-delay: .24s; }

@keyframes scene-drift { from { transform: scale(1.035) translate3d(-.5%, -.4%, 0); } to { transform: scale(1.075) translate3d(.7%, .5%, 0); } }
@keyframes window-float { 0%,100% { transform: rotate(2.2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-10px); } }
@keyframes pixel-drift { from { transform: translate(0,0); } to { transform: translate(18px,-24px); } }
@keyframes confluence-pulse { from { opacity: .45; transform: translate(-50%,-50%) rotate(45deg) scale(.86); } to { opacity: .8; transform: translate(-50%,-50%) rotate(45deg) scale(1.04); } }
@keyframes gate-pulse { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(4px,4px); } }
@keyframes loader-pulse { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-6px); } }

html:not(.no-live-world) .journey .scene-image { display: none; }
html:not(.no-live-world) .journey .hero .scene-shade { background: linear-gradient(90deg, rgba(7,27,41,.97) 0%, rgba(7,27,41,.92) 37%, rgba(7,27,41,.25) 62%, rgba(7,27,41,.08)); }
html:not(.no-live-world) .journey .scene-mining .scene-shade { background: linear-gradient(90deg, rgba(7,27,41,.88) 0%, rgba(7,27,41,.72) 48%, rgba(7,27,41,.04) 78%); }
html:not(.no-live-world) .journey .scene-mission .scene-shade { background: linear-gradient(270deg, rgba(7,27,41,.9) 0%, rgba(7,27,41,.72) 48%, rgba(7,27,41,.04) 78%); }
html:not(.no-live-world) .journey .scene-album .scene-shade { background: radial-gradient(circle at center, rgba(7,27,41,.74), rgba(7,27,41,.12) 72%); }
html:not(.no-live-world) .journey .scene-mining .section-inner { max-width: 820px; margin-left: clamp(18px, 5vw, 92px); margin-right: auto; }
html:not(.no-live-world) .journey .scene-mission .section-inner { max-width: 860px; margin-left: auto; margin-right: clamp(18px, 5vw, 92px); }
html:not(.no-live-world) .journey .scene-panel { background: rgba(7,27,41,.88); box-shadow: 12px 14px 0 rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.035); }
html:not(.no-live-world) .journey .expansion-scene { background: radial-gradient(circle at 18% 44%, rgba(193,139,226,.28), transparent 29%), radial-gradient(circle at 84% 56%, rgba(105,185,216,.24), transparent 30%), rgba(7,27,41,.24); }
html:not(.no-live-world) .journey .trust { background: linear-gradient(180deg, rgba(7,27,41,.2), rgba(7,27,41,.91) 78%); }

@media (max-width: 900px) {
  .hero { min-height: 1040px; grid-template-columns: 1fr; align-content: start; text-align: center; gap: 44px; padding-top: 64px; }
  .hero-copy { margin-inline: auto; }
  .hero-icon { width: 72px; height: 72px; margin-bottom: 22px; }
  .hero-lead { margin-inline: auto; }
  .scene-gameplay { inset: 0; opacity: .32; -webkit-mask-image: none; mask-image: none; }
  .hero .scene-shade { background: linear-gradient(180deg, rgba(7,27,41,.94) 0%, rgba(7,27,41,.75) 52%, rgba(7,27,41,.28)); }
  .hero-window { justify-self: center; width: min(300px, 76vw); transform: rotate(1.5deg); }
  .world-gate { justify-self: center; width: min(330px, 80vw); }
  .collection-layout { grid-template-columns: 1fr; }
  .collection-copy { order: -1; text-align: center; }
  .collection-copy .section-lead { margin-inline: auto; }
  .journey-rail { display: none; }
  html:not(.no-live-world) .journey .hero .scene-shade { background: linear-gradient(180deg, rgba(7,27,41,.93) 0%, rgba(7,27,41,.7) 53%, rgba(7,27,41,.08)); }
  html:not(.no-live-world) .journey .scene-mining .section-inner,
  html:not(.no-live-world) .journey .scene-mission .section-inner { margin-inline: auto; }
}

@media (max-width: 600px) {
  .site-header { padding: 9px 8px; }
  .nav { gap: clamp(8px, 3vw, 14px); }
  .nav a { font-size: clamp(.52rem, 2.6vw, .67rem); letter-spacing: .055em; }
  .language { right: max(8px, env(safe-area-inset-right)); max-width: 46px; padding: 6px 3px; font-size: .64rem; }
  .hero { min-height: 990px; padding: 50px 20px 70px; }
  .hero-icon { width: 64px; height: 64px; border-radius: 14px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 3.4rem); line-height: 1.12; }
  .store-badge { max-width: 100%; justify-content: center; padding: 13px; font-size: .78rem; }
  .hero-window { width: min(270px, 76vw); }
  .world-gate { width: min(290px, 82vw); padding-block: 22px 20px; }
  .world-gate-diamond { width: 70px; height: 70px; margin-block: 22px 20px; }
  .hero-window-image { display: none !important; }
  .hero-window-video { display: block; }
  .section { min-height: 0; padding-block: 92px; }
  .scene-panel { margin-inline: -6px; padding: 27px 20px; }
  .grid, .expansion-points { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .feature { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .screens { gap: 5px; }
  .collection-copy { padding: 26px 20px; }
  .contact-box { padding: 20px; }
  .contact-box strong { font-size: .8rem; }
  .page-support::before, .page-privacy::before { inset: 0; opacity: .055; -webkit-mask-image: none; mask-image: none; }
  .policy-section { padding: 20px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}

/* La portada mantiene el camino vivo, pero se recorre con el scroll nativo. */
.page-home { --journey-header: 71px; min-height: 100%; overflow-x: clip; overscroll-behavior-y: none; }
.page-home .site-header { position: fixed; inset: 0 0 auto; height: var(--journey-header); }
.page-home .journey { position: relative; width: 100%; overflow: clip; touch-action: auto; }
.page-home .journey-stage {
  position: relative; width: 100%; min-height: 100svh;
  overflow: clip; opacity: 1; pointer-events: auto; transform: none; filter: none;
}
.page-home .journey-stage:not(:last-child) { border-bottom: 4px solid var(--line); }
.page-home .journey-stage.is-active { z-index: 3; }
.page-home .journey-stage.hero,
.page-home .journey-stage.section {
  min-height: 100svh; height: auto;
  padding-top: calc(var(--journey-header) + clamp(18px, 3.5vh, 42px));
  padding-bottom: clamp(18px, 3.5vh, 42px);
}
.page-home .hero { grid-template-columns: minmax(0,1.05fr) minmax(280px,.72fr); gap: clamp(28px,5vw,76px); }
.page-home .hero-icon { width: 68px; height: 68px; margin-bottom: 20px; }
.page-home h1 { font-size: clamp(3.5rem,7.5vw,7.2rem); }
.page-home .hero-lead { margin-block: 20px; }
.page-home .world-gate { appearance: none; font: inherit; color: inherit; cursor: pointer; }
.page-home .world-gate:hover, .page-home .world-gate:focus-visible { border-color: var(--gold); transform: translate(-3px,-3px); box-shadow: 17px 19px 0 rgba(0,0,0,.3), 0 0 0 3px rgba(242,201,93,.72); }
.page-home .world-gate:focus-visible { outline: 3px solid var(--cream); outline-offset: 7px; }

.page-home .scene-panel { padding: clamp(18px,3vh,34px); }
.page-home .section-lead { margin-bottom: clamp(18px,3vh,32px); }
.page-home .scene-mining .section-inner { max-height: 100%; }
.page-home .scene-mining h2, .page-home .scene-mission h2 { font-size: clamp(2rem,4vw,3.65rem); }
.page-home .grid { gap: 12px; }
.page-home .card { min-height: 0; padding: clamp(15px,2.2vh,22px); }
.page-home .card h3 { margin: clamp(12px,2vh,22px) 0 7px; }
.page-home .card p { font-size: clamp(.76rem,1.25vw,.94rem); line-height: 1.48; }
.page-home .feature-list { gap: 9px; }
.page-home .feature { gap: 16px; padding: clamp(14px,1.9vh,20px) 22px; }
.page-home .feature span { font-size: clamp(.78rem,1.2vw,.94rem); }

.page-home .collection-layout { height: 100%; gap: clamp(24px,5vw,72px); }
.page-home .screens { max-height: 68vh; }
.page-home .screens img, .page-home .play-window { max-height: 62vh; }
.page-home .screens img { object-fit: contain; }
.page-home .play-window video { max-height: 62vh; object-fit: contain; }
.page-home .collection-copy { padding: clamp(20px,3vh,35px); }
.page-home .collection-copy h2 { font-size: clamp(2rem,4.3vw,4rem); }
.page-home .collection-copy .section-lead { margin-bottom: 0; }

.page-home .expansion-box { max-height: 100%; padding: clamp(22px,4vh,46px); }
.page-home .expansion-box h2 { font-size: clamp(2rem,4.6vw,4.1rem); }
.page-home .expansion-points { margin-top: clamp(18px,3vh,30px); }
.page-home .expansion-points li { padding: clamp(11px,1.7vh,17px); }
.page-home .trust { text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.page-home .trust .section-inner { padding-bottom: 70px; }

.journey-rail button {
  position: relative; z-index: 1; width: 10px; height: 10px; padding: 0; appearance: none;
  border: 2px solid var(--green); border-radius: 0; background: var(--navy); cursor: pointer; pointer-events: auto;
  transition: background .18s steps(2,end), transform .18s steps(2,end), border-color .18s ease;
}
.journey-rail button.is-passed { border-color: var(--green); background: var(--green); box-shadow: 0 0 8px rgba(121,183,143,.45); }
.journey-rail button:hover, .journey-rail button:focus-visible { border-color: var(--cream); transform: scale(1.35); outline: none; }
.journey-rail button.is-active { border-color: var(--cream); background: var(--gold); transform: rotate(45deg) scale(1.45); box-shadow: 0 0 0 3px rgba(7,27,41,.72), 0 0 18px 5px rgba(242,201,93,.78); animation: journey-node-pulse 1.25s steps(2,end) infinite; }
.journey-position { position: fixed; z-index: 18; right: 14px; bottom: 16px; display: flex; align-items: baseline; gap: 5px; overflow: hidden; padding: 7px 9px 10px; border: 2px solid rgba(84,139,120,.65); background: rgba(7,27,41,.74); color: var(--muted); font-size: .58rem; pointer-events: none; }
.journey-position::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--gold); transform: scaleX(var(--journey-progress, 0)); transform-origin: left center; will-change: transform; }
.journey-position b { color: var(--gold); font-size: .78rem; }

.page-home .footer {
  position: absolute; z-index: 25; right: 0; bottom: 0; left: 0; padding: 12px clamp(14px,3vw,34px); opacity: 1; pointer-events: auto;
  border: 0; background: transparent; color: var(--cream); box-shadow: none;
  text-shadow: 2px 2px 0 var(--ink), 0 0 12px rgba(7,27,41,.92);
  transform: none;
}
.page-home .footer-inner { max-width: none; flex-flow: column nowrap; align-items: center; justify-content: center; gap: 8px; }
.page-home .footer-links { flex-wrap: nowrap; gap: clamp(14px,2.4vw,32px); }
.page-home .footer a { color: var(--cream); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.page-home .footer .footer-studio-link { font-size: inherit; letter-spacing: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; text-transform: none; }
.page-home .footer a:hover, .page-home .footer a:focus-visible { color: var(--gold); text-shadow: 2px 2px 0 var(--ink), 0 0 14px rgba(242,201,93,.72); }
.page-home.journey-at-end .journey-position { bottom: 132px; }

@media (max-width: 900px) {
  .page-home { --journey-header: 61px; }
  .page-home .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: clamp(18px,3vh,34px); padding: calc(var(--journey-header) + 18px) 20px 28px; text-align: center; }
  .page-home .hero-copy { margin-inline: auto; }
  .page-home .store-platforms { margin-inline: auto; }
  .page-home .hero-icon { width: 56px; height: 56px; margin-bottom: 14px; }
  .page-home .world-gate { width: min(300px,78vw); padding-block: 17px; }
  .page-home .world-gate-diamond { width: 58px; height: 58px; margin-block: 2px 14px; font-size: 1.75rem; }
  .page-home .collection-layout { grid-template-rows: minmax(0,.58fr) auto; align-content: center; }
  .page-home .screens { width: min(620px,86vw); max-height: 44vh; margin-inline: auto; }
  .page-home .screens img, .page-home .play-window, .page-home .play-window video { max-height: 43vh; }
  .page-home .collection-copy { width: min(720px,88vw); margin-inline: auto; }
  .journey-position { right: 9px; bottom: 9px; }
}

@media (max-width: 600px) {
  .page-home { --journey-header: 57px; }
  .page-home .journey-stage.hero,
  .page-home .journey-stage.section { padding: calc(var(--journey-header) + 13px) 14px 20px; }
  .page-home h1 { font-size: clamp(2.75rem,14vw,4.2rem); }
  .page-home .eyebrow { margin-bottom: 9px; }
  .page-home .hero-lead { margin-block: 12px; font-size: .9rem; line-height: 1.48; }
  .page-home .store-badge { padding: 9px 11px; font-size: .64rem; }
  .page-home .store-platforms { width: min(100%, 350px); margin-inline: auto; gap: 7px; }
  .page-home .store-platform { grid-template-columns: 25px minmax(0,1fr); gap: 6px; padding: 8px 7px; }
  .page-home .store-symbol { font-size: 1.35rem; }
  .page-home .store-symbol-play { font-size: 1.05rem; }
  .page-home .store-platform small { font-size: .46rem; }
  .page-home .store-platform strong { font-size: clamp(.68rem,3.1vw,.8rem); }
  .page-home .store-platforms-bottom { margin-bottom: 16px; }
  .page-home .world-gate { width: min(264px,74vw); }
  .page-home .scene-panel { margin-inline: 0; padding: 15px 13px; }
  .page-home .section-kicker { font-size: .65rem; }
  .page-home .scene-mining h2, .page-home .scene-mission h2,
  .page-home .collection-copy h2, .page-home .expansion-box h2 { margin-block: 5px 8px; font-size: clamp(1.48rem,7vw,2.15rem); }
  .page-home .section-lead { margin-bottom: 12px; font-size: .76rem; line-height: 1.42; }
  .page-home .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .page-home .card { padding: 10px; }
  .page-home .card h3 { margin: 7px 0 4px; font-size: .82rem; }
  .page-home .card p { font-size: .69rem; line-height: 1.42; }
  .page-home .card-number { font-size: .72rem; }
  .page-home .feature { grid-template-columns: minmax(108px,.39fr) 1fr; gap: 10px; padding: 13px 12px; border-left-width: 5px; }
  .page-home .feature strong { font-size: .8rem; line-height: 1.35; }
  .page-home .feature span { font-size: .71rem; line-height: 1.45; }
  .page-home .collection-layout { gap: 13px; }
  .page-home .screens { width: min(340px,82vw); max-height: 39vh; }
  .page-home .screens img, .page-home .play-window, .page-home .play-window video { max-height: 38vh; }
  .page-home .collection-copy { width: 88vw; padding: 13px; }
  .page-home .expansion-box { padding: 16px 14px; }
  .page-home .expansion-points { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
  .page-home .expansion-points li { padding: 9px; font-size: .72rem; line-height: 1.4; }
  .page-home .trust .section-inner { padding: 0 14px 156px; }
  .page-home .trust h2 { font-size: clamp(2rem,10vw,3rem); }
  .page-home .trust .section-lead { font-size: .86rem; }
  .page-home .footer { padding: 8px 14px calc(9px + env(safe-area-inset-bottom)); font-size: .58rem; }
  .page-home .footer-inner { flex-direction: column; align-items: center; gap: 7px; }
  .page-home .footer-links { justify-content: center; gap: 10px; }
  .page-home .footer a { font-size: clamp(.46rem,2.35vw,.58rem); letter-spacing: .045em; }
  .page-home.journey-at-end .journey-position { bottom: calc(126px + env(safe-area-inset-bottom)); }
}

@media (max-width: 768px) {
  .footer-inner > span { flex-basis: 70px; width: 70px; height: 70px; }
}

@media (max-height: 720px) {
  .page-home .hero-icon, .page-home .world-gate small { display: none; }
  .page-home .hero { gap: 12px; }
  .page-home .world-gate { padding-block: 10px; }
  .page-home .world-gate-diamond { width: 48px; height: 48px; margin-block: 7px 12px; }
  .page-home .scene-panel { padding-block: 11px; }
  .page-home .section-lead { margin-bottom: 8px; }
  .page-home .card { padding-block: 7px; }
  .page-home .card h3 { margin-top: 4px; }
  .page-home .feature { padding-block: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .journey-stage,
  .page-home .footer { transition: none !important; }
}

@keyframes journey-node-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(7,27,41,.72), 0 0 14px 3px rgba(242,201,93,.62); }
  50% { box-shadow: 0 0 0 3px rgba(7,27,41,.72), 0 0 23px 7px rgba(242,201,93,.9); }
}

@keyframes footer-logo-orbit {
  to { transform: rotate(360deg); }
}
