:root {
  --ink: #08090b;
  --cream: #fff2b8;
  --paper: #f0e6ad;
  --acid: #bcff17;
  --blood: #941c11;
  --blood-hi: #db3e20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Courier New", Courier, monospace;
}

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

.scanlines, .film-grain {
  position: fixed;
  z-index: 40;
  inset: 0;
  pointer-events: none;
}

.scanlines {
  opacity: .13;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

.film-grain {
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.top-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(197,54,29,.66);
  background: rgba(2,4,10,.84);
  backdrop-filter: blur(9px);
}

.brand, .nav-links a, .mini-ca, .eyebrow, .figure-label, .hero-bottom, .terminal-bar, .tiny-note {
  letter-spacing: .08em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--cream);
  font-size: clamp(.78rem, 1vw, .98rem);
  font-weight: 900;
}

.brand-star {
  color: var(--acid);
  font-size: 1.4rem;
  animation: shine 2.2s infinite steps(2, end);
}

.nav-links {
  display: flex;
  gap: clamp(.8rem, 2vw, 2.5rem);
  font-size: .7rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -.42rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover { color: var(--acid); }
.nav-links a:hover::after { transform: scaleX(1); }

.mini-ca {
  cursor: pointer;
  padding: .6rem .7rem;
  border: 1px solid var(--acid);
  background: rgba(10,20,2,.88);
  color: var(--acid);
  font-size: .64rem;
  font-weight: 900;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mini-ca:hover { background: var(--acid); color: var(--ink); transform: translateY(-2px); }

.scene {
  position: relative;
  display: grid;
  min-height: max(680px, 100svh);
  padding: 7.4rem 7vw 4.25rem;
  isolation: isolate;
  scroll-snap-align: start;
}

.scene::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
}

.scene::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0,0,0,.58), transparent 55%, rgba(0,0,0,.32));
}

.scene-hero {
  grid-template-columns: minmax(300px, .9fr) minmax(410px, .75fr);
  align-items: center;
  gap: 4rem;
  padding-top: 6.5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6,22,136,.12) 0%, rgba(3,30,2,.18) 100%),
    url("../img/dreamland-valley.png") center / cover,
    linear-gradient(180deg, #0b49d9 0 58%, #426b1c 58% 100%);
}

.scene-hero::before {
  background:
    linear-gradient(0deg, rgba(1,7,0,.6) 0%, transparent 29%),
    radial-gradient(ellipse at 88% 28%, transparent 0 13rem, rgba(1,6,25,.24) 34rem);
}

.hero-sky { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.star { position: absolute; color: var(--cream); text-shadow: 0 0 13px rgba(255,255,210,.92); animation: shine 2.8s infinite steps(2, end); }
.star-one { top: 19%; left: 54%; font-size: 1.8rem; }
.star-two { top: 31%; right: 9%; font-size: 1.2rem; animation-delay: 1.2s; }
.star-three { top: 12%; right: 28%; font-size: .9rem; animation-delay: .4s; }

.moon-orb {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 9rem;
  aspect-ratio: 1;
  border: 8px solid rgba(254,241,151,.62);
  border-radius: 50%;
  background: rgba(214,251,118,.22);
  box-shadow: 0 0 1.5rem rgba(194,255,43,.26);
  animation: drift 7s ease-in-out infinite;
}

.floating-isle {
  position: absolute;
  display: block;
  width: 7rem;
  height: 3.2rem;
  border: 2px solid rgba(225,215,133,.36);
  border-radius: 58% 42% 75% 25% / 69% 66% 34% 31%;
  background: linear-gradient(165deg, rgba(70,122,45,.82), rgba(16,27,15,.5));
  box-shadow: inset 0 -1.2rem 1rem rgba(4,12,4,.68);
}

.isle-one { top: 24%; right: 35%; transform: rotate(-12deg) scale(.66); animation: drift 8s ease-in-out infinite reverse; }
.isle-two { top: 42%; left: 45%; transform: rotate(6deg) scale(.48); animation: drift 10s ease-in-out infinite; }

.hero-copy { position: relative; z-index: 2; max-width: 39rem; padding-top: 1.8rem; }
.eyebrow { margin: 0 0 1rem; color: var(--acid); font-size: clamp(.6rem,.75vw,.75rem); font-weight: 900; line-height: 1.5; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { text-transform: uppercase; }

h1 {
  max-width: 7ch;
  margin-bottom: 1.2rem;
  color: var(--cream);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(5rem,10.6vw,12.4rem);
  font-weight: 900;
  line-height: .73;
  letter-spacing: -.075em;
  text-shadow: .07em .07em 0 var(--ink), .1em .1em 0 #50100a, 0 0 1.1rem rgba(255,239,161,.28);
  transform: rotate(-2deg);
}

h1 span { display: block; color: #e8eb9c; filter: saturate(1.1); }
.hero-line { margin-bottom: 2rem; color: var(--cream); font-size: clamp(1rem,1.55vw,1.6rem); font-weight: 700; line-height: 1.36; text-shadow: 2px 2px 0 var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-width: 10.7rem;
  padding: 1rem 1.15rem;
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px rgba(237,232,164,.85), .27rem .27rem 0 var(--ink);
  font-size: clamp(.72rem,.9vw,.88rem);
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover { box-shadow: 0 0 0 2px rgba(237,232,164,.85), .12rem .12rem 0 var(--ink); filter: brightness(1.15); transform: translate(.15rem,.15rem); }
.button-lime { background: var(--acid); color: var(--ink); }
.button-red { background: var(--blood); color: var(--cream); }
.hero-note { margin: 2rem 0 0; color: rgba(255,239,184,.72); font-size: .62rem; letter-spacing: .11em; }

.hero-figure {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(41vw,620px);
  min-width: 350px;
  margin-top: 2.8rem;
  animation: heroFloat 6s ease-in-out infinite;
}

.papa-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border: 3px solid rgba(255,243,175,.36);
  border-radius: 49% 51% 42% 58% / 42% 42% 58% 58%;
  background: #164ad4;
  box-shadow: 0 0 0 8px rgba(8,10,14,.62),0 0 3rem rgba(196,255,31,.24),inset 0 0 2rem rgba(10,27,3,.46);
  transform: rotate(3deg);
}

.papa-frame::after { position:absolute; inset:0; content:""; background:linear-gradient(120deg,rgba(255,255,255,.1),transparent 30%,rgba(0,0,0,.21)); mix-blend-mode:screen; pointer-events:none; }
.papa-frame img { display:block; width:112%; max-width:none; margin:-1% 0 -1% -6%; filter:saturate(1.07) contrast(1.06); transform:scale(1.04); }

.frost-ring { position:absolute; z-index:3; border:2px solid rgba(207,255,91,.62); border-radius:50%; pointer-events:none; }
.frost-ring-one { top:5%; left:2%; width:103%; height:43%; transform:rotate(-15deg); animation:orbit 6.5s linear infinite; }
.frost-ring-two { top:52%; left:-5%; width:110%; height:24%; border-color:rgba(255,221,122,.5); transform:rotate(11deg); animation:orbit 9.5s linear infinite reverse; }
.figure-label { position:absolute; z-index:4; right:-1.6rem; bottom:9%; padding:.58rem .75rem; border:1px solid var(--cream); background:var(--ink); color:var(--acid); font-size:.57rem; font-weight:900; transform:rotate(-4deg); }
.figure-label span { color:var(--blood-hi); }

.hero-bottom { position:absolute; right:7vw; bottom:1.4rem; left:7vw; display:grid; grid-template-columns:repeat(3,1fr); border:1px solid rgba(198,223,91,.4); background:rgba(1,11,5,.76); }
.hero-bottom a { padding:1rem 1.1rem; border-right:1px solid rgba(198,223,91,.3); color:var(--cream); font-size:.64rem; font-weight:900; text-align:center; transition:color 160ms ease,background 160ms ease; }
.hero-bottom a:last-child { border-right:0; }
.hero-bottom a:hover { background:var(--acid); color:var(--ink); }

.scene-lore {
  grid-template-columns: minmax(290px,.74fr) minmax(420px,.95fr);
  align-items: center;
  gap: clamp(2rem,7vw,8rem);
  background: linear-gradient(125deg,rgba(2,10,3,.77),rgba(7,59,138,.26)),url("../img/dreamland-valley.png") center / cover,#173718;
}

.scene-lore::before { background:linear-gradient(90deg,rgba(0,0,0,.55),transparent); }
.section-copy { max-width:36rem; }
h2 { margin-bottom:1.3rem; color:var(--cream); font-family:Impact,"Arial Black",sans-serif; font-size:clamp(3rem,5.6vw,7rem); line-height:.87; letter-spacing:-.055em; text-shadow:.06em .06em 0 var(--ink); }
h2 em { color:var(--acid); font-family:Impact,"Arial Black",sans-serif; font-style:normal; }
.section-copy > p,.section-heading > p,.chart-copy > p,.road-card p,.companion-note p { color:rgba(255,244,191,.9); font-size:clamp(.84rem,1vw,1.02rem); line-height:1.75; }
.section-copy > p { max-width:34rem; }
.text-link { display:inline-flex; gap:.75rem; margin-top:1.1rem; border-bottom:2px solid var(--acid); color:var(--acid); font-size:.74rem; font-weight:900; letter-spacing:.07em; transition:color 160ms ease,gap 160ms ease; }
.text-link:hover { gap:1.1rem; color:var(--cream); }

.lore-window { width:min(100%,760px); justify-self:end; border:2px solid var(--cream); background:var(--ink); box-shadow:.72rem .72rem 0 rgba(7,10,4,.78); transform:rotate(1.1deg); }
.window-bar,.terminal-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.68rem .85rem; background:rgba(14,18,10,.95); color:var(--acid); font-size:.57rem; font-weight:900; }
.window-scene { position:relative; min-height:410px; overflow:hidden; background:#0c3fbb; }
.window-scene > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(1.28) contrast(1.15) brightness(.75); transform:scale(1.05); }
.lore-papa { position:absolute; bottom:-9%; left:39%; width:44%; overflow:hidden; border-radius:46% 54% 22% 37%; filter:drop-shadow(.2rem .6rem .4rem rgba(0,0,0,.6)); animation:loreBob 5.5s ease-in-out infinite; }
.lore-papa img { display:block; width:153%; max-width:none; margin-left:-26%; }
.archive-stamp { position:absolute; top:9%; left:7%; max-width:11ch; margin:0; color:var(--cream); font-size:clamp(1.3rem,2.4vw,2.25rem); font-weight:900; line-height:.92; text-shadow:3px 3px 0 var(--blood); transform:rotate(-3deg); }

.scene-friends { grid-template-rows:auto minmax(230px,1fr) auto; align-items:center; background:radial-gradient(circle at 48% 50%,rgba(44,120,214,.45),transparent 34rem),linear-gradient(180deg,#03081a,#102e1b 74%,#060805); }
.scene-friends::before { background:linear-gradient(135deg,rgba(128,196,15,.12) 1px,transparent 1px),linear-gradient(45deg,rgba(128,196,15,.09) 1px,transparent 1px); background-size:32px 32px; opacity:.42; }
.section-heading { z-index:1; max-width:60rem; }
.section-heading h2 { max-width:14ch; margin-bottom:.55rem; }
.section-heading > p:last-child { max-width:42rem; margin-bottom:0; }
.companions-stage { position:relative; z-index:1; width:min(100%,1040px); min-height:240px; max-height:44vh; justify-self:center; overflow:hidden; }
.friends-glow { position:absolute; top:20%; right:22%; left:22%; height:48%; border-radius:50%; background:rgba(153,244,23,.42); filter:blur(50px); animation:pulseGlow 4s ease-in-out infinite; }
.companions-image { position:relative; display:block; width:100%; height:100%; max-height:44vh; object-fit:contain; object-position:center bottom; filter:drop-shadow(0 1.2rem .85rem rgba(0,0,0,.62)); animation:friendsSway 7s ease-in-out infinite; }

.companion-notes { z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; width:min(100%,1120px); justify-self:center; border:1px solid rgba(226,243,157,.36); background:rgba(226,243,157,.36); }
.companion-note { min-height:9.8rem; padding:1.15rem; background:rgba(2,13,9,.85); transition:background 180ms ease; }
.companion-note:hover { background:rgba(26,75,15,.9); }
.companion-note > span { display:block; margin-bottom:.55rem; color:var(--acid); font-size:.64rem; font-weight:900; }
.companion-note h3 { margin-bottom:.5rem; color:var(--cream); font-size:clamp(.88rem,1.1vw,1.08rem); letter-spacing:.045em; }
.companion-note p { margin-bottom:0; font-size:.72rem; line-height:1.55; }

.scene-roadmap { grid-template-rows:auto 1fr; align-items:center; overflow:hidden; background:linear-gradient(180deg,rgba(10,0,3,.17),rgba(49,3,1,.78)),url("../img/dreamland-valley.png") center / cover,#290504; }
.roadmap-backdrop { position:absolute; z-index:-1; right:-5%; bottom:-8%; left:-5%; height:56%; background:linear-gradient(90deg,transparent 0 4%,rgba(190,0,0,.55) 4% 5%,transparent 5% 20%,rgba(190,0,0,.55) 20% 21%,transparent 21% 42%,rgba(190,0,0,.55) 42% 43%,transparent 43%),linear-gradient(0deg,rgba(0,0,0,.7),transparent); clip-path:polygon(0 100%,3% 58%,11% 60%,15% 35%,23% 64%,30% 39%,35% 68%,45% 26%,54% 65%,61% 52%,67% 73%,77% 32%,85% 68%,94% 43%,100% 77%,100% 100%); opacity:.7; }
.roadmap-heading { align-self:end; }
.roadmap-grid { z-index:1; display:grid; grid-template-columns:repeat(4,1fr); align-self:center; gap:1rem; margin-top:2.4rem; }
.road-card { position:relative; min-height:17.5rem; padding:1.25rem; overflow:hidden; border:1px solid rgba(255,216,152,.7); background:linear-gradient(145deg,rgba(68,4,5,.92),rgba(11,4,5,.89)); box-shadow:.35rem .35rem 0 rgba(0,0,0,.65); transition:transform 200ms ease,background 200ms ease; }
.road-card:hover { background:linear-gradient(145deg,rgba(125,12,7,.96),rgba(26,3,4,.95)); transform:translateY(-.45rem) rotate(-.6deg); }
.road-card::after { position:absolute; right:-2rem; bottom:-3rem; color:rgba(230,220,160,.1); content:"✦"; font-size:10rem; line-height:1; }
.road-number { display:block; color:var(--acid); font-size:.68rem; font-weight:900; letter-spacing:.11em; }
.road-symbol { margin:2rem 0 1.6rem; color:#f6e5a0; font-size:2.1rem; text-shadow:0 0 1.1rem rgba(235,27,8,.68); }
.road-card h3 { position:relative; z-index:1; margin-bottom:.7rem; color:var(--cream); font-size:clamp(.92rem,1.2vw,1.2rem); line-height:1.12; }
.road-card p { position:relative; z-index:1; margin-bottom:0; font-size:.74rem; line-height:1.65; }

.scene-chart { grid-template-columns:minmax(280px,.7fr) minmax(490px,1.15fr); align-items:center; gap:clamp(2rem,6vw,7rem); background:radial-gradient(circle at 71% 34%,rgba(65,156,237,.32),transparent 29rem),linear-gradient(180deg,#040617,#061623); }
.scene-chart::before { background:linear-gradient(rgba(191,255,44,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(191,255,44,.1) 1px,transparent 1px); background-size:28px 28px; mask-image:linear-gradient(90deg,transparent,black 34%,black 100%); }
.chart-copy { position:relative; z-index:1; max-width:34rem; }
.chart-copy code { padding:.12rem .25rem; border:1px solid rgba(189,255,23,.35); background:rgba(189,255,23,.1); color:var(--acid); font-family:inherit; font-size:.8em; }
.ca-large { cursor:pointer; margin-top:.35rem; }
.tiny-note { margin:1.25rem 0 0; color:rgba(255,242,183,.6); font-size:.61rem; }
.chart-terminal { position:relative; z-index:1; width:100%; overflow:hidden; border:2px solid rgba(231,242,172,.82); background:#07120e; box-shadow:0 0 0 .38rem rgba(3,5,12,.85),0 0 2.3rem rgba(42,154,243,.3); }
.terminal-bar { color:var(--acid); }
.terminal-bar p { margin:0 auto 0 .2rem; }
.terminal-bar a { color:var(--cream); transition:color 160ms ease; }
.terminal-bar a:hover { color:var(--acid); }
.terminal-dot { width:.48rem; height:.48rem; border-radius:50%; background:var(--blood-hi); }
.terminal-dot:nth-child(2) { background:#f4df8c; }
.terminal-dot:nth-child(3) { background:var(--acid); }
.chart-frame { position:relative; min-height:min(57vh,530px); background:radial-gradient(circle at 50% 50%,rgba(75,154,34,.25),transparent 20rem),#06100a; }
.chart-frame iframe { position:relative; z-index:2; display:block; width:100%; min-height:min(57vh,530px); border:0; background:transparent; }
.chart-fallback { position:absolute; z-index:1; inset:0; display:grid; place-content:center; gap:1rem; color:var(--acid); text-align:center; }
.chart-fallback span { font-size:3rem; animation:shine 2.4s infinite steps(2,end); }
.chart-fallback p { max-width:23ch; margin:auto; font-size:.72rem; font-weight:900; line-height:1.5; }

.footer { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; min-height:5.4rem; padding:1.1rem 7vw; border-top:1px solid rgba(232,232,148,.42); background:#050605; color:rgba(255,239,184,.85); font-size:.62rem; font-weight:900; letter-spacing:.055em; }
.footer p { margin:0; }
.footer p span { color:var(--acid); }
.social-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:1.2rem; }
.social-links a { transition:color 160ms ease; }
.social-links a:hover { color:var(--acid); }

@keyframes shine { 0%,100% { opacity:.48; transform:scale(.8); } 50% { opacity:1; transform:scale(1.1); } }
@keyframes drift { 0%,100% { translate:0 0; } 50% { translate:0 -1rem; } }
@keyframes heroFloat { 0%,100% { transform:translateY(0) rotate(0); } 50% { transform:translateY(-1.1rem) rotate(-.8deg); } }
@keyframes orbit { to { rotate:360deg; } }
@keyframes loreBob { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-.75rem) rotate(1.5deg); } }
@keyframes pulseGlow { 0%,100% { opacity:.42; transform:scale(.9); } 50% { opacity:.74; transform:scale(1.08); } }
@keyframes friendsSway { 0%,100% { transform:translateX(0) rotate(.2deg); } 50% { transform:translateX(.8rem) rotate(-.6deg); } }

@media (min-width:800px) { html { scroll-snap-type:y proximity; } }

@media (max-width:980px) {
  .scene { min-height:auto; padding:7.8rem 7vw 5rem; }
  .scene-hero,.scene-lore,.scene-chart { grid-template-columns:1fr; }
  .scene-hero { gap:1.7rem; padding-bottom:7rem; }
  .hero-figure { grid-row:1; width:min(76vw,530px); min-width:0; margin:0 auto; }
  .hero-copy { justify-self:center; text-align:center; }
  h1 { max-width:none; }
  .hero-actions { justify-content:center; }
  .hero-bottom { right:7vw; left:7vw; }
  .lore-window { justify-self:center; }
  .scene-friends { min-height:850px; }
  .roadmap-grid { grid-template-columns:repeat(2,1fr); }
  .road-card { min-height:14rem; }
}

@media (max-width:650px) {
  .top-nav { min-height:60px; padding:0 1rem; }
  .brand { font-size:.66rem; }
  .nav-links { display:none; }
  .mini-ca { font-size:.56rem; }
  .scene { padding:6.6rem 1.2rem 3.4rem; }
  .scene-hero { padding-bottom:6.1rem; }
  .hero-figure { width:min(82vw,440px); }
  .hero-bottom { right:1.2rem; left:1.2rem; }
  .hero-bottom a { padding:.72rem .25rem; font-size:.48rem; }
  .button { flex:1; min-width:0; padding:.9rem .55rem; font-size:.63rem; }
  .figure-label { right:-.65rem; font-size:.48rem; }
  .window-scene { min-height:290px; }
  .scene-friends { min-height:760px; }
  .companions-stage { min-height:200px; }
  .companion-notes { grid-template-columns:1fr; }
  .companion-note { min-height:0; }
  .roadmap-grid { grid-template-columns:1fr; }
  .scene-chart { gap:2.2rem; }
  .chart-frame,.chart-frame iframe { min-height:390px; }
  .footer { align-items:flex-start; flex-direction:column; padding:1.4rem 1.2rem; }
  .social-links { justify-content:flex-start; gap:.8rem; }
}

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

/* Reference-matched Dreamland game menu */
.top-nav {
  min-height: 54px;
  padding: 0 3vw;
  border-bottom: 2px solid rgba(107, 8, 6, .95);
  background: rgba(1, 2, 5, .91);
  box-shadow: 0 2px 0 rgba(21, 61, 187, .55);
}

.pixel-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 3.5rem);
  font-size: clamp(.65rem, .95vw, .92rem);
}

.pixel-nav a {
  color: var(--cream);
  text-shadow: 1px 1px 0 #050505;
}

.pixel-nav a::after { display: none; }
.pixel-nav a:hover { color: var(--acid); }

.nav-ca {
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 1px 1px 0 #050505;
}

.nav-ca:hover { color: var(--acid); }

.nav-star {
  color: var(--acid);
  font-size: 1.55rem;
  line-height: 1;
  text-shadow: 0 0 .9rem rgba(197,255,38,.62);
  animation: shine 2.2s infinite steps(2, end);
}

.reference-hero {
  display: block;
  min-height: 100svh;
  padding: 7.6rem 7.5vw 12.6rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,5,18,.12) 0%, rgba(0,6,10,.03) 43%, rgba(0,0,0,.18) 100%),
    url("../img/dreamland-valley.png") center / cover,
    linear-gradient(180deg, #1249c8, #34491c);
}

.reference-hero::before {
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(7,11,2,.78) 0%, transparent 29%),
    linear-gradient(90deg, rgba(0,0,0,.21), transparent 54%);
}

.reference-hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 70%, rgba(3,11,1,.48)),
    radial-gradient(circle at 56% 44%, transparent 0 18%, rgba(1,8,30,.14) 45%, rgba(1,5,16,.33) 100%);
}

.reference-hero .hero-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 62% 38%, rgba(145,227,74,.18), transparent 19rem);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.reference-hero .hero-copy {
  position: relative;
  z-index: 4;
  width: min(47vw, 670px);
  max-width: 670px;
  padding: 0;
}

.game-title {
  max-width: none;
  margin: 0 0 1.5rem;
  color: #fff0af;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(6.2rem, 13.2vw, 15.1rem);
  font-weight: 900;
  line-height: .7;
  letter-spacing: -.095em;
  text-shadow:
    .018em .018em 0 #0d0e09,
    -.018em .018em 0 #0d0e09,
    .018em -.018em 0 #0d0e09,
    -.018em -.018em 0 #0d0e09,
    .055em .07em 0 #080a05,
    .07em .09em 0 #593d07;
  transform: none;
}

.game-title span {
  display: block;
  color: #fff0af;
  filter: none;
}

.reference-hero .hero-line {
  margin: 0 0 1.7rem;
  color: #fff0b4;
  font-size: clamp(1.06rem, 1.6vw, 1.67rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.04em;
  text-shadow: 3px 3px 0 rgba(0,0,0,.72);
}

.reference-hero .hero-actions { gap: 1.1rem; }

.reference-hero .button {
  min-width: clamp(10rem, 15.7vw, 16.7rem);
  padding: 1rem 1.1rem;
  border: 3px solid #060606;
  border-radius: 2px;
  box-shadow:
    0 0 0 2px rgba(174,177,63,.77),
    inset 0 0 0 2px rgba(255,255,173,.16),
    .31rem .31rem 0 rgba(1,3,0,.88);
  font-size: clamp(.68rem, 1vw, 1.05rem);
}

.reference-hero .button-lime {
  background:
    linear-gradient(180deg, rgba(247,255,128,.36), transparent 36%),
    #b3ff16;
  color: #102000;
}

.reference-hero .button-red {
  background:
    linear-gradient(180deg, rgba(255,166,98,.18), transparent 36%),
    #891b10;
  color: #fff0ad;
}

.reference-hero .hero-figure {
  position: absolute;
  z-index: 3;
  right: clamp(8vw, 14vw, 18vw);
  bottom: 8.3rem;
  width: min(43.2vw, 755px);
  min-width: 0;
  margin: 0;
  animation: papaFloat 6.8s ease-in-out infinite;
}

.papa-cutout {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.08) contrast(1.1) drop-shadow(1.1rem 1.1rem .45rem rgba(0,0,0,.57));
  clip-path: polygon(49% 0%, 61% 13%, 65% 19%, 69% 32%, 66% 42%, 59% 49%, 56% 63%, 51% 96%, 50% 100%, 49% 96%, 44% 63%, 41% 49%, 34% 42%, 31% 32%, 35% 19%, 39% 13%);
}

.hero-cards {
  position: absolute;
  z-index: 6;
  right: 1.7vw;
  bottom: 1.6rem;
  left: 1.7vw;
  display: grid;
  grid-template-columns: 1fr .92fr 1.12fr;
  gap: 4px;
  padding: 4px;
  border: 2px solid rgba(160,159,49,.91);
  background: rgba(1,7,0,.83);
  box-shadow: 0 0 0 3px rgba(8,10,3,.72);
}

.hero-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 132px;
  overflow: hidden;
  padding: 1rem 1.05rem;
  border: 2px solid rgba(187,196,83,.76);
  background:
    linear-gradient(90deg, rgba(0,4,0,.46), rgba(0,0,0,.12)),
    url("../img/dreamland-valley.png") center / cover;
  color: var(--acid);
  transition: filter 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 22%, rgba(0,6,0,.31) 100%);
}

.hero-card:hover {
  z-index: 1;
  border-color: #eff281;
  filter: brightness(1.18) saturate(1.15);
  transform: translateY(-.24rem);
}

.hero-card-roadmap {
  background:
    linear-gradient(90deg, rgba(0,0,0,.63), rgba(67,0,0,.21)),
    url("../img/dreamland-valley.png") 51% 48% / cover;
}

.hero-card-chart {
  background:
    linear-gradient(90deg, rgba(63,0,0,.68), rgba(0,0,0,.31)),
    url("../img/dreamland-valley.png") right bottom / cover;
}

.hero-card-title,
.hero-card-arrow {
  position: relative;
  z-index: 1;
  font-size: clamp(.76rem, 1.1vw, 1.06rem);
  font-weight: 900;
  letter-spacing: .055em;
  text-shadow: 2px 2px 0 #061000;
}

.hero-card-arrow {
  position: absolute;
  right: 1rem;
  bottom: .78rem;
  color: var(--acid);
}

.scene-lore,
.scene-friends,
.scene-roadmap,
.scene-chart {
  border-top: 3px solid rgba(114,143,28,.75);
}

.lore-window,
.chart-terminal,
.road-card,
.companion-notes {
  box-shadow: .42rem .42rem 0 rgba(0,0,0,.73);
}

@keyframes papaFloat {
  0%, 100% { transform: translateY(0) rotate(.4deg); }
  50% { transform: translateY(-.82rem) rotate(-.45deg); }
}

@media (max-width: 980px) {
  .reference-hero { padding: 6.6rem 7vw 13rem; }
  .reference-hero .hero-copy { width: 49vw; }
  .reference-hero .hero-figure {
    right: 3vw;
    bottom: 8.7rem;
    width: min(54vw, 610px);
  }
  .game-title { font-size: clamp(5.2rem, 13vw, 10rem); }
}

@media (max-width: 650px) {
  .top-nav { min-height: 48px; }
  .pixel-nav { gap: 1rem; font-size: .57rem; }
  .nav-star { font-size: 1.15rem; }
  .reference-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 820px;
    padding: 6.1rem 1.25rem 1.25rem;
  }
  .reference-hero .hero-copy { width: 100%; }
  .game-title { font-size: clamp(4.5rem, 22vw, 7.5rem); }
  .reference-hero .hero-line { font-size: 1rem; }
  .reference-hero .hero-figure {
    right: -2.2rem;
    bottom: 11rem;
    width: min(73vw, 410px);
    opacity: .94;
  }
  .reference-hero .button { min-width: 0; }
  .hero-cards {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 2.6rem;
  }
  .hero-card { min-height: 82px; }
}

/* Exact visual menu: the supplied Dreamland screen is the desktop canvas. */
.scanlines,
.film-grain {
  display: none;
}

@media (min-width: 651px) {
  .top-nav { display: none; }
}

.screenshot-hero {
  display: block;
  min-height: max(680px, 100svh);
  height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #050807;
}

.screenshot-hero::before,
.screenshot-hero::after {
  content: none;
}

.reference-shot {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reference-hotspots {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  margin: 0;
}

.reference-hotspot {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  outline: 0;
}

.reference-hotspot::after {
  position: absolute;
  inset: -3px;
  content: "";
  border: 2px solid transparent;
  box-shadow: 0 0 0 transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.reference-hotspot:hover::after,
.reference-hotspot:focus-visible::after {
  border-color: rgba(199, 255, 25, .65);
  box-shadow: 0 0 1rem rgba(197, 255, 25, .55);
}

.hot-nav-lore { top: 1.25%; left: .75%; width: 5.7%; height: 4.15%; }
.hot-nav-roadmap { top: 1.25%; left: 7.15%; width: 7.45%; height: 4.15%; }
.hot-nav-ca { top: 1.25%; left: 15.25%; width: 5.5%; height: 4.15%; }
.hot-star { top: .8%; right: .7%; width: 3.6%; height: 5.4%; }

.hot-enter { top: 58%; left: 7.6%; width: 20.7%; height: 11.8%; }
.hot-buy { top: 58%; left: 29.65%; width: 16.7%; height: 11.8%; }

.hot-card-lore { top: 80.6%; left: 2.05%; width: 30.15%; height: 18.3%; }
.hot-card-roadmap { top: 80.6%; left: 33.25%; width: 27.4%; height: 18.3%; }
.hot-card-chart { top: 80.6%; left: 61.35%; width: 35.3%; height: 18.3%; }

.papa-hover-zone {
  position: absolute;
  top: 8%;
  left: 55.2%;
  width: 26.5%;
  height: 72%;
  cursor: crosshair;
}

.papa-idle {
  position: absolute;
  z-index: -1;
  top: 13%;
  left: 57%;
  width: 21.5%;
  height: 58%;
  border-radius: 48% 48% 45% 45%;
  background: radial-gradient(ellipse at 50% 36%, rgba(253, 255, 177, .24), rgba(135, 255, 20, .08) 43%, transparent 71%);
  filter: blur(9px);
  opacity: 0;
  pointer-events: none;
}

.papa-hover-zone:hover + .papa-idle {
  opacity: .84;
  animation: papaDream 1.8s ease-in-out infinite;
}

.copy-status {
  position: absolute;
  z-index: 6;
  top: 5.55%;
  left: 14.7%;
  margin: 0;
  padding: .28rem .48rem;
  border: 1px solid #d9f741;
  background: #090d03;
  color: #d9f741;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(.48rem, .7vw, .76rem);
  font-weight: 900;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.35rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

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

@keyframes papaDream {
  0%, 100% { transform: scale(.93) translateY(.12rem); filter: blur(9px) brightness(.8); }
  50% { transform: scale(1.08) translateY(-.34rem); filter: blur(14px) brightness(1.35); }
}

@media (max-width: 650px) {
  .top-nav {
    display: flex;
    min-height: 52px;
    padding: 0 .9rem;
  }

  .top-nav .pixel-nav {
    display: flex;
    gap: .9rem;
    font-size: .54rem;
  }

  .screenshot-hero {
    min-height: 100svh;
    height: 100svh;
  }

  .reference-shot { object-fit: fill; }
  .copy-status { top: 8%; left: 36%; }
}

/* Lore: Papa Cream gets the entire stage — no archive card or image background. */
.scene-lore {
  grid-template-columns: minmax(300px, .78fr) minmax(430px, 1.08fr);
  gap: clamp(1.6rem, 5vw, 6.5rem);
}

.lore-papa-large {
  position: relative;
  width: min(48vw, 780px);
  height: min(76vh, 780px);
  justify-self: center;
  align-self: center;
}

.lore-papa-large .papa-cutout {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: min(76vh, 780px);
  max-width: none;
  transform: translate(-50%, -50%);
  clip-path: none;
  filter: saturate(1.04) contrast(1.06) drop-shadow(1.1rem 1.15rem .55rem rgba(0,0,0,.58));
  animation: lorePapaFloat 6.8s ease-in-out infinite;
}

.lore-caption {
  position: absolute;
  z-index: 2;
  bottom: 3.5%;
  left: 1%;
  margin: 0;
  color: var(--cream);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.7rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-shadow: .09em .09em 0 var(--blood), .15em .15em 0 rgba(0,0,0,.55);
  transform: rotate(-3deg);
}

@keyframes lorePapaFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(.35deg); }
  50% { transform: translate(-50%, -50%) translateY(-1rem) rotate(-.45deg); }
}

@media (max-width: 980px) {
  .scene-lore { grid-template-columns: 1fr; }
  .lore-papa-large {
    width: min(78vw, 680px);
    height: min(72vh, 680px);
    grid-row: 1;
  }
  .lore-papa-large .papa-cutout { width: auto; height: min(72vh, 680px); }
}

@media (max-width: 650px) {
  .lore-papa-large {
    width: min(92vw, 560px);
    height: min(68vh, 560px);
  }
  .lore-papa-large .papa-cutout { width: auto; height: min(68vh, 560px); }
  .lore-caption { left: 3%; font-size: clamp(1.2rem, 7vw, 2rem); }
}

/* Roadmap companion: right-side presence without covering the route cards. */
.roadmap-papa {
  position: absolute;
  z-index: 0;
  top: 8.5%;
  right: clamp(3.5vw, 5vw, 7vw);
  width: min(20vw, 420px);
  pointer-events: none;
}

.roadmap-papa img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.94) contrast(1.04) drop-shadow(1.25rem 1.2rem .55rem rgba(0,0,0,.62));
  animation: roadmapPapaFloat 7s ease-in-out infinite;
}

.scene-roadmap .roadmap-heading,
.scene-roadmap .roadmap-grid {
  position: relative;
  z-index: 2;
}

@keyframes roadmapPapaFloat {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-.8rem) rotate(-1deg); }
}

@media (max-width: 980px) {
  .roadmap-papa {
    top: 9rem;
    right: .75rem;
    width: min(34vw, 270px);
    opacity: .72;
  }
}

@media (max-width: 650px) {
  .roadmap-papa { display: none; }
}
