/* Lost in the Riff Realm — landing. Synthwave x heavy metal. */
:root {
  --bg: #0c0416;
  --bg2: #160727;
  --bg3: #22093a;
  --ink: #f7ecff;
  --muted: #b8a3d3;
  --dim: #7d6a99;
  --mag: #ff2bd6;
  --mag-2: #ff7ae6;
  --cyan: #3df2ff;
  --sun: #ffb347;
  --line: rgba(255, 43, 214, .28);
  --line-c: rgba(61, 242, 255, .25);
  --f-display: "Metal Mania", "Pirata One", Georgia, serif;
  --f-head: "Audiowide", "Chakra Petch", system-ui, sans-serif;
  --f-body: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(18px, 4.5vw, 40px);
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lb-on { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* CRT scanlines over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px);
  mix-blend-mode: multiply;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
strong, b { color: #fff; font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  --g1: var(--mag); --g2: #b51cff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border: 0; border-radius: var(--r);
  font: 400 1rem/1.1 var(--f-head); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--g1), var(--g2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 18px rgba(255,43,214,.55), 0 6px 0 #5c0a6e;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 0 30px rgba(255,43,214,.85), 0 8px 0 #5c0a6e; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 0 14px rgba(255,43,214,.6), 0 2px 0 #5c0a6e; }
.btn-xl { font-size: clamp(1.05rem, 2.6vw, 1.3rem); min-height: 60px; padding: .9em 1.8em; }
.btn-sm { white-space: nowrap; min-height: 40px; padding: .55em 1em; font-size: .82rem; box-shadow: 0 0 14px rgba(255,43,214,.5), 0 3px 0 #5c0a6e; }
.btn-ghost { background: transparent; color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; font-size: .85rem; min-height: 44px; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--cyan) inset, 0 0 18px rgba(61,242,255,.45); }
.fine { display: block; color: var(--muted); font-size: .9rem; margin-top: .7em; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 10px var(--pad);
  background: rgba(12, 4, 22, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 1rem/1 var(--f-head); letter-spacing: .03em; white-space: nowrap; }
.brand i { color: var(--mag); font-style: normal; }
.brand-sun { width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, var(--mag), var(--sun));
  -webkit-mask: linear-gradient(#000 0 55%, transparent 55% 62%, #000 62% 72%, transparent 72% 78%, #000 78%);
          mask: linear-gradient(#000 0 55%, transparent 55% 62%, #000 62% 72%, transparent 72% 78%, #000 78%);
  box-shadow: 0 0 12px rgba(255,43,214,.7); }
.bar-nav { display: none; gap: 26px; }
.bar-nav a { color: var(--muted); text-decoration: none; font: 400 .8rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.bar-nav a:hover { color: #fff; }
@media (min-width: 880px) { .bar-nav { display: flex; } }
@media (max-width: 380px) { .brand { font-size: .86rem; } .bar .btn-sm { font-size: .72rem; padding: .5em .7em; } }

/* ---------- sky / sun / grid floor ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background: linear-gradient(180deg, #0b0315 0%, #1d0733 38%, #4a0c5c 58%, #7c1466 64%, #12041f 64.2%, #0c0416 100%); }
.sun { position: absolute; left: 50%; bottom: 35.6%; width: min(62vw, 520px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: linear-gradient(180deg, #ffe066 0%, var(--sun) 30%, var(--mag) 70%, #9b1cff 100%);
  -webkit-mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92%);
          mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92%);
  filter: drop-shadow(0 0 40px rgba(255,43,214,.6)); opacity: .9; }
.floor { position: absolute; left: -50%; right: -50%; top: 64%; bottom: 0; perspective: 320px; perspective-origin: 50% 0; }
.floor-grid { position: absolute; inset: 0 0 -40% 0; transform-origin: 50% 0; transform: rotateX(62deg);
  background-image:
    linear-gradient(to right, rgba(255,43,214,.75) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(255,43,214,.75) 2px, transparent 2px);
  background-size: 64px 64px; animation: floor 2.6s linear infinite;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 18%); mask: linear-gradient(to bottom, transparent, #000 18%); }
@keyframes floor { to { background-position: 0 64px; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 30% 40%, rgba(12,4,22,.55), transparent 65%); }
.hero-in { position: relative; z-index: 1; width: 100%; display: grid; gap: 34px; padding-top: 44px; padding-bottom: 60px; }
.kicker, .eyebrow { font: 400 .78rem/1.3 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(61,242,255,.6); margin: 0 0 14px; }
.title { font-family: var(--f-display); margin: 0 0 18px; line-height: .9; }
.title span { display: block; }
.t-small { font-size: clamp(2rem, 7vw, 3.2rem); color: var(--cyan); text-shadow: 0 0 8px rgba(61,242,255,.9), 0 0 26px rgba(61,242,255,.5); letter-spacing: .02em; }
.t-big { font-size: clamp(3.6rem, 15vw, 7.6rem);
  background: linear-gradient(180deg, #ffffff 0%, #d7f7ff 30%, #8fd8ff 47%, #3a1260 50%, #a23bd0 54%, #ff9ef0 72%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 3px 0 #7a0f8f) drop-shadow(0 0 22px rgba(255,43,214,.7)); }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.18rem); color: #e8dcf7; max-width: 34em; }
.hero-cta { margin: 26px 0 24px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.facts li { font-size: .9rem; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12,4,22,.55); }
.facts b { color: var(--mag-2); font-family: var(--f-head); font-weight: 400; margin-right: 4px; }
.hero-map { margin: 0; justify-self: center; width: min(100%, 470px); perspective: 1400px; }
.hero-map img { width: 100%; border-radius: 4px; border: 2px solid rgba(61,242,255,.7);
  transform: rotateX(16deg) rotateZ(-5deg); box-shadow: 0 0 0 6px rgba(12,4,22,.8), 0 0 40px rgba(61,242,255,.45), 0 30px 60px rgba(0,0,0,.6);
  animation: hover 7s ease-in-out infinite; }
@keyframes hover { 50% { transform: rotateX(16deg) rotateZ(-5deg) translateY(-10px); } }
.hero-map figcaption { margin-top: 18px; text-align: center; font: 400 .72rem var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* mobile/tablet: the sky sun sat behind the fact pills; hang it behind the hero map instead */
@media (max-width: 959px) {
  .hero > .sky .sun { display: none; }
  .hero-in { gap: 96px; }
  .hero-map { position: relative; z-index: 0; }
  .hero-map::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -74px; width: 76%; aspect-ratio: 1; transform: translateX(-50%);
    border-radius: 50%; background: linear-gradient(180deg, #ffe066 0%, var(--sun) 30%, var(--mag) 70%, #9b1cff 100%);
    -webkit-mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92%);
            mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92%);
    filter: drop-shadow(0 0 40px rgba(255,43,214,.6)); opacity: .9; }
}
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero-map { justify-self: end; }
  .sun { left: 74%; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #10041c; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { font: 400 .82rem/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 22px; white-space: nowrap; }
.ticker span::after { content: "✦"; color: var(--mag); margin-left: 44px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
section { position: relative; }
h2 { font-family: var(--f-head); font-size: clamp(1.7rem, 5vw, 2.8rem); letter-spacing: .01em; color: #fff; }
.sec-head { margin-bottom: 34px; max-width: 760px; }
.sec-sub { color: var(--muted); margin-top: 14px; }

/* ---------- story ---------- */
.story { display: grid; gap: 30px; padding-top: clamp(70px, 10vw, 120px); padding-bottom: clamp(60px, 8vw, 100px); }
.story h2 { font-family: var(--f-display); font-size: clamp(2.2rem, 6.5vw, 3.8rem); line-height: 1; color: #fff; text-shadow: 0 0 22px rgba(255,43,214,.55); }
.story-body { color: #e3d6f3; font-size: 1.05rem; }
.weapons-intro { margin-top: 1.6em; color: var(--muted); }
.weapons { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.weapons li { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.weapons b { font-family: var(--f-head); font-weight: 400; color: var(--cyan); font-size: .95rem; }
.weapons span { color: var(--muted); }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; } .story-head { position: sticky; top: 100px; } }
@media (max-width: 420px) { .weapons li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- maps ---------- */
.maps { padding: clamp(70px, 9vw, 110px) 0; background:
  linear-gradient(180deg, var(--bg) 0%, var(--bg2) 12%, var(--bg2) 88%, var(--bg) 100%); }
.maps::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line-c) 1px, transparent 1px), linear-gradient(90deg, var(--line-c) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); }
.maps .wrap { position: relative; }
.feature { display: grid; gap: 26px; margin-bottom: 44px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 50px; } }
.map-no { font: 400 .78rem var(--f-head); letter-spacing: .16em; color: var(--mag-2); text-transform: uppercase; margin-bottom: 8px; }
.feature h3 { font-family: var(--f-display); font-size: clamp(2.2rem, 6vw, 3.4rem); color: #fff; margin-bottom: 16px; text-shadow: 0 0 18px rgba(255,43,214,.5); }
.feature-copy p { color: #e3d6f3; }
.versions { display: flex; flex-wrap: wrap; gap: 8px; }
.versions span { font: 400 .74rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-c); color: var(--cyan); border-radius: 3px; }

/* compare slider */
.compare { --pos: 50%; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #000;
  border: 1px solid rgba(61,242,255,.5); box-shadow: 0 0 34px rgba(61,242,255,.2), 0 20px 50px rgba(0,0,0,.6);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 10px var(--cyan), 0 0 22px var(--mag); pointer-events: none; }
.cmp-handle::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(12,4,22,.85); border: 2px solid #fff; color: #fff; font-size: 14px; letter-spacing: -1px;
  box-shadow: 0 0 16px var(--mag); }
.cmp-tag { position: absolute; top: 12px; font: 400 .7rem var(--f-head); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; background: rgba(12,4,22,.8); border-radius: 3px; pointer-events: none; }
.cmp-tag-l { left: 12px; color: var(--cyan); } .cmp-tag-r { right: 12px; color: var(--mag-2); }
.cmp-range { position: absolute; width: 1px; height: 1px; opacity: 0; left: 50%; bottom: 0; }
.compare:has(.cmp-range:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 1px solid rgba(255,43,214,.35); border-radius: 4px; overflow: hidden; background: #000; cursor: zoom-in; color: #fff; text-align: left; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.92); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font: 500 .85rem/1.2 var(--f-body);
  background: linear-gradient(transparent, rgba(8,2,16,.92)); }
.tile-no { display: block; font: 400 .7rem var(--f-head); color: var(--cyan); letter-spacing: .12em; margin-bottom: 2px; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: saturate(1.15); }
.tile:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(61,242,255,.35); }

/* ---------- inside ---------- */
.inside { padding-top: clamp(70px, 9vw, 110px); padding-bottom: clamp(50px, 7vw, 80px); }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 400 1.08rem/1.3 var(--f-head); color: #fff; }
.specs dd { margin: 0; color: var(--muted); }
@media (min-width: 760px) {
  .specs { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .specs > div { grid-template-columns: 1fr; }
}
.srd-note { margin-top: 26px; color: var(--dim); font-size: .95rem; }

/* ---------- tracklist ---------- */
.tracks { padding: clamp(70px, 9vw, 110px) 0; background: linear-gradient(180deg, var(--bg), #13051f 20%, #13051f 80%, var(--bg)); }
.tracklist { list-style: none; margin: 0; padding: 0; counter-reset: t; border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "art main" "play play" "player player"; gap: 12px 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; transition: background .2s ease; }
.track-art { grid-area: art; width: 64px; height: 64px; object-fit: cover; border-radius: 3px; border: 1px solid rgba(61,242,255,.4); align-self: start; }
.track-no { display: none; }
.track-main { grid-area: main; min-width: 0; }
.track h3 { font: 400 1.12rem/1.25 var(--f-head); color: #fff; margin-bottom: 6px; }
.track-hook { color: #d9cbe9; font-size: .97rem; margin-bottom: 8px; }
.track-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .82rem; color: var(--dim); }
.track-meta .track-name { color: var(--mag-2); }
.play { grid-area: play; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 6px;
  border-radius: 999px; border: 1px solid var(--cyan); background: transparent; color: var(--cyan); cursor: pointer;
  font: 400 .78rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; transition: background .15s, color .15s, box-shadow .15s; }
.play-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); position: relative; flex: none; }
.play-ico::before { content: ""; position: absolute; left: 12px; top: 9px; border-left: 11px solid #0c0416; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.play:hover { box-shadow: 0 0 18px rgba(61,242,255,.45); }
.track.playing .play { background: var(--cyan); color: #0c0416; }
.track.playing .play-ico { background: #0c0416; }
.track.playing .play-ico::before { left: 10px; top: 10px; width: 12px; height: 12px; border: 0; background: var(--cyan); }
.track.playing { background: linear-gradient(90deg, rgba(255,43,214,.08), transparent); }
.player { grid-area: player; }
.player iframe { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 1px solid var(--line-c); border-radius: 4px; background: #000; }
@media (min-width: 760px) {
  .track { grid-template-columns: 54px 96px minmax(0, 1fr) auto; grid-template-areas: "no art main play" ". . player player"; gap: 14px 24px; padding: 22px 0; }
  .track-no { display: block; grid-area: no; font: 400 1.9rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 1px var(--mag-2); text-shadow: 0 0 14px rgba(255,43,214,.4); }
  .track-art { width: 96px; height: 96px; align-self: center; }
  .play { justify-self: end; }
  .track:hover .track-no { color: var(--mag); }
}

/* ---------- guide preview ---------- */
.guide { display: grid; gap: 40px; padding-top: clamp(70px, 9vw, 110px); padding-bottom: clamp(70px, 9vw, 110px); align-items: center; }
.guide-copy p { color: #e3d6f3; margin-bottom: 1.6em; }
.guide-copy h2 { margin-bottom: 18px; }
.pages { position: relative; height: clamp(300px, 92vw, 520px); max-width: 620px; width: 100%; justify-self: center; }
.page { position: absolute; top: 0; width: 56%; padding: 0; border: 0; background: none; cursor: zoom-in; transition: transform .35s ease; }
.page img { width: 100%; border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.12); }
.p1 { left: 0; transform: rotate(-7deg) translateY(16px); z-index: 1; }
.p2 { left: 22%; transform: rotate(0deg); z-index: 2; }
.p3 { left: 44%; transform: rotate(7deg) translateY(16px); z-index: 3; }
.page:hover, .page:focus-visible { z-index: 5; transform: translateY(-10px) scale(1.03); }
.page:hover img { box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 26px rgba(255,43,214,.45); }
@media (min-width: 900px) { .guide { grid-template-columns: .9fr 1.1fr; gap: 60px; } }

/* ---------- faq ---------- */
.faq { padding-bottom: clamp(70px, 9vw, 110px); }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 400 1.02rem/1.35 var(--f-head); color: #fff; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--mag); font-size: 1.5rem; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); margin: 0 0 20px; max-width: 64ch; }

/* ---------- final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(90px, 14vw, 150px) 0 clamp(120px, 18vw, 200px); }
.sky-final { background: linear-gradient(180deg, #0c0416 0%, #2a0a45 45%, #6d1262 62%, #12041f 62.2%, #0c0416 100%); }
.sky-final .sun { bottom: 37.6%; width: min(70vw, 460px); opacity: .55; }
.sky-final .floor { top: 62%; }
.final-in { position: relative; z-index: 1; }
.final h2 { font-family: var(--f-display); font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: .95; margin-bottom: 20px; text-shadow: 0 0 24px rgba(255,43,214,.7); }
.final h2 span { color: var(--cyan); text-shadow: 0 0 10px rgba(61,242,255,.9), 0 0 30px rgba(61,242,255,.5); }
.final p { color: #eadcf8; max-width: 34em; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 100px; color: var(--dim); font-size: .88rem; }
.foot-in { display: grid; gap: 6px; }
.foot p { margin: 0; }
@media (min-width: 900px) { .foot { padding-bottom: 30px; } }

/* ---------- mobile buy bar ---------- */
.buybar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 8px; background: rgba(18,5,31,.94); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px rgba(255,43,214,.25);
  transform: translateY(140%); transition: transform .3s ease; font-size: .85rem; color: var(--muted); }
.buybar b { color: #fff; font-family: var(--f-head); font-weight: 400; margin-right: 6px; }
.buybar.on { transform: none; }
@media (min-width: 900px) { .buybar { display: none; } }

/* ---------- lightbox ---------- */
.lightbox { width: min(96vw, 980px); max-width: none; max-height: 96vh; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #0c0416; color: var(--ink); overflow: auto; }
.lightbox::backdrop { background: rgba(4,0,10,.86); backdrop-filter: blur(4px); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.lb-title { margin: 0; font: 400 1rem var(--f-head); color: #fff; }
.lb-title span { color: var(--cyan); margin-right: 6px; }
.lb-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close:hover { border-color: var(--mag); color: var(--mag); }
.lb-stage { padding: 12px; display: grid; place-items: center; }
.compare-lb { width: min(100%, calc(96vh - 150px)); }
.lb-page { max-height: calc(96vh - 90px); width: auto; border-radius: 3px; }
.lb-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 12px; }
.lb-nav[hidden] { display: none; }
.lb-nav button { min-height: 44px; min-width: 88px; border: 1px solid var(--cyan); border-radius: var(--r); background: transparent; color: var(--cyan); font: 400 .8rem var(--f-head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.lb-nav button:hover { background: rgba(61,242,255,.12); }
.lb-hint { color: var(--dim); font-size: .8rem; text-align: center; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
