:root {
  --ink: #071019;
  --gold: #54e2d0;
  --copper: #8297ff;
  --night: #080d18;
  --cream: #f5f8ff;
  --muted: #a5b2c8;
  --panel: #111b2b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 75% 10%, #303a8255, transparent 35rem),
    var(--night);
}
.sky, .dust { position: fixed; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(8px);
  animation: drift 18s ease-in-out infinite;
}
.orb.a { width: 460px; height: 320px; top: -140px; left: -80px; background: radial-gradient(circle, rgba(130, 151, 255, 0.55), transparent 68%); }
.orb.b { width: 380px; height: 280px; right: -80px; bottom: -100px; background: radial-gradient(circle, rgba(84, 226, 208, 0.28), transparent 68%); animation-delay: -6s; }
.orb.c { width: 220px; height: 220px; top: 18%; right: 22%; background: radial-gradient(circle, rgba(130, 151, 255, 0.34), transparent 70%); animation-delay: -11s; }
.bulb {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 2px, #d7e0ff 3px, #8297ff 8px, #3d4ea8 16px);
  box-shadow:
    0 0 12px 4px rgba(170, 188, 255, 0.95),
    0 0 36px 12px rgba(130, 151, 255, 0.55);
  animation: glowbulb 2.8s ease-in-out infinite;
}
.bulb::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -5px;
  height: 5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(#9aabef, #5d6eb8);
}
.bulb.p1 { top: 12%; left: 8%; }
.bulb.p2 { top: 22%; left: 18%; width: 12px; height: 12px; animation-delay: -0.6s; }
.bulb.p3 { top: 9%; right: 16%; animation-delay: -1.2s; }
.bulb.p4 { top: 30%; right: 8%; width: 20px; height: 20px; animation-delay: -1.8s; }
.bulb.p5 { top: 58%; left: 6%; width: 14px; height: 14px; animation-delay: -2.2s; }
.bulb.p6 { bottom: 14%; right: 12%; animation-delay: -0.4s; }
.bulb.p7 { bottom: 22%; left: 28%; width: 11px; height: 11px; animation-delay: -1.5s; }
@keyframes glowbulb {
  0%, 100% { opacity: 0.72; filter: brightness(0.85); }
  50% { opacity: 1; filter: brightness(1.35); }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, 14px, 0); }
}
.dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: 0;
  animation: rise 16s linear infinite;
}
.dust i:nth-child(1) { left: 8%; animation-duration: 18s; }
.dust i:nth-child(2) { left: 22%; animation-duration: 13s; animation-delay: -4s; }
.dust i:nth-child(3) { left: 41%; animation-duration: 20s; animation-delay: -8s; }
.dust i:nth-child(4) { left: 63%; animation-duration: 15s; animation-delay: -2s; }
.dust i:nth-child(5) { left: 78%; animation-duration: 17s; animation-delay: -9s; }
.dust i:nth-child(6) { left: 91%; animation-duration: 14s; animation-delay: -6s; }
@keyframes rise {
  0% { transform: translateY(100vh); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translateY(-8vh); opacity: 0; }
}
.topbar {
  position: relative;
  z-index: 3;
  height: 76px;
  border-bottom: 1px solid #ffffff14;
}
.nav {
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  color: var(--cream);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.logo span { color: var(--gold); }
.navlinks { display: flex; gap: 28px; }
.navlinks a { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-cta { min-height: 42px; padding: 10px 16px; }
main {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}
.colophon {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
  border-top: 1px solid #ffffff14;
  color: var(--muted);
  font-size: 13px;
}
.hero { order: 1; }
.offers { order: 2; }
.atlas { order: 3; }
.board { order: 4; }
body[data-page="pay"] .offers { order: 2; }
body[data-page="pay"] .atlas { order: 3; }
body[data-page="pay"] .board { order: 4; }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 320px);
  gap: 28px;
  align-items: center;
}
.seal {
  position: relative;
  height: auto;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #b7c9ff2b;
  background: linear-gradient(140deg, #ffffff12, #ffffff04);
  box-shadow: 0 30px 90px #0008;
  transform: rotateY(-4deg);
}
.app {
  padding: 22px;
  border: 1px solid #ffffff12;
  border-radius: 15px;
  background: #0d1421;
}
.app-top { display: flex; justify-content: space-between; color: #91a0b8; font-size: 12px; }
.live::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
  background: #8297ff;
  box-shadow: 0 0 10px #8297ff;
}
.app h2 { margin: 22px 0 4px; font-size: 20px; color: var(--cream); }
.app p { margin: 0; color: #91a0b8; font-size: 13px; }
.device, .transfer {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px;
  border: 1px solid #8297ff77; border-radius: 12px; background: #8297ff12;
}
.device-icon, .file-icon {
  display: grid; width: 38px; height: 38px; place-items: center;
  border-radius: 10px; background: #8297ff20; color: #aab8ff; font-size: 11px; font-weight: 750;
}
.device-icon {
  background:
    linear-gradient(#8297ff55, #8297ff55) 10px 8px / 18px 12px no-repeat,
    linear-gradient(#8297ff88, #8297ff88) 16px 22px / 12px 8px no-repeat,
    #8297ff20;
}
.device-name, .file-name { flex: 1; font-weight: 650; font-size: 13px; color: var(--cream); }
.device-name small, .file-name small { display: block; color: #91a0b8; font-size: 11px; font-weight: 400; }
.tick { color: var(--gold); font-weight: 750; }
.progress { height: 6px; margin-top: 18px; border-radius: 9px; background: #26334a; }
.progress span {
  display: block; width: 68%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  box-shadow: 0 0 12px rgba(130, 151, 255, 0.8);
}
.pct { margin-top: 8px; }
.seal .halo {
  position: absolute; left: 50%; top: 42%; width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 243, 255, 0.22), transparent 68%);
}
.orbit {
  position: absolute; left: 50%; top: 42%;
  width: 168px; height: 168px; margin: -84px 0 0 -84px;
  border-radius: 50%;
  border: 1px solid rgba(201, 243, 255, 0.38);
  animation: spin 16s linear infinite;
}
.orbit.slow {
  width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-style: dashed;
  animation-duration: 26s;
  animation-direction: reverse;
}
.orbit i {
  position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px; border-radius: 4px;
  background: linear-gradient(180deg, #f3fbff, #3ec6ea);
  box-shadow: 0 0 14px rgba(62, 198, 234, 0.85);
}
.orbit i.far { top: auto; bottom: -7px; }
.diamond {
  position: absolute; left: 50%; top: 42%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 8px; transform: rotate(45deg);
  background: linear-gradient(145deg, #f7fcff 0%, #c9f3ff 36%, #3ec6ea 64%, #0a6284 100%);
  box-shadow: 0 0 28px rgba(62, 198, 234, 0.9), inset 0 0 0 2px rgba(236, 248, 255, 0.35);
  animation: pulse 2.8s ease-in-out infinite;
}
.seal p {
  position: static;
  margin: 0;
  text-align: left;
  color: #91a0b8;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mark {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase;
}
.brand {
  width: 14px; height: 14px; border-radius: 3px; transform: rotate(45deg);
  background: linear-gradient(145deg, #f3fbff 0%, #c9f3ff 38%, #3ec6ea 62%, #0a6284 100%);
  box-shadow: 0 0 18px rgba(62, 198, 234, 0.9);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(0.86); }
}
h1, h2, h3 { font-family: Bahnschrift, "Segoe UI", sans-serif; }
h1 {
  margin: 16px 0;
  font-size: clamp(46px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 650;
  color: var(--cream);
}
h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--copper), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tag {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lede {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.note { margin: 12px 0 0; color: #8492a8; font-size: 12px; }
.note a { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.download, button, .ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 18px; border-radius: 12px;
  font-weight: 750; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 750;
}
.download, button {
  color: #071019;
  background: linear-gradient(110deg, var(--gold), #94a7ff);
  box-shadow: 0 10px 24px rgba(130, 151, 255, 0.22);
}
.download { position: relative; overflow: hidden; }
.download::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { to { transform: translateX(120%); } }
.ghost {
  color: var(--cream);
  background: #ffffff08;
  border: 1px solid #ffffff22;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid #ffffff18;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(220, 242, 255, 0.12);
}
.facts b { display: block; margin-bottom: 4px; color: var(--cream); }
.facts b::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px; margin: 0 8px 1px 0;
  border-radius: 2px; transform: rotate(45deg); vertical-align: middle;
  background: linear-gradient(145deg, #f3fbff, #3ec6ea);
  box-shadow: 0 0 10px rgba(62, 198, 234, 0.75);
}
.facts span, .fine, .quiet { color: #b7c9d6; line-height: 1.45; }
.atlas {
  position: relative;
  margin-top: 28px;
  padding: 18px 18px 14px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(201, 243, 255, 0.22);
  background:
    radial-gradient(520px 180px at 50% 100%, rgba(130, 151, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(17, 27, 43, 0.96), rgba(8, 13, 24, 0.96));
  box-shadow: inset 0 1px 0 rgba(220, 242, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.34);
}
.atlas-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 10px; }
.atlas h2 { margin: 0; font-size: 28px; }
.atlas-line { margin: 0; max-width: 280px; text-align: right; color: #c9f3ff; font-weight: 750; }
#atlas { display: block; width: 100%; height: auto; border-radius: 18px; }
.board {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 28px;
}
.mine {
  position: sticky;
  top: 16px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #b7c9ff2b;
  background: linear-gradient(140deg, #ffffff12, #ffffff04);
  box-shadow: 0 30px 90px #0008;
}
.mine::before { display: none; }
.mine .app-top { justify-content: flex-end; }
.mine .device input, .mine .transfer input {
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  box-shadow: none;
}
.mine .device input::placeholder { color: #91a0b8; }
.mine label { color: #91a0b8; font-size: 12px; }
.mine h3 { margin: 12px 0 6px; color: var(--cream); font-size: 14px; }
.stage-card, .panel, .offers {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(201, 243, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(130, 151, 255, 0.08), transparent 26%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(220, 242, 255, 0.16), 0 24px 60px rgba(0, 0, 0, 0.34);
}
.stage-card::before, .panel::before, .offers::before {
  content: "";
  position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 243, 255, 0.85), transparent);
}
.offers { margin-top: 22px; }
#friendCode {
  margin: 6px 0 8px;
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: 0.04em;
  color: var(--cream);
}
.plan-word { margin: 0; color: var(--gold); font-weight: 750; }
.plan-word[hidden], .plan-line[hidden], #signPanel[hidden], #payPanel[hidden], #dash[hidden] { display: none; }
.plan-line { margin: 4px 0 0; font-size: 20px; font-weight: 750; color: var(--cream); }
.kicker { margin: 0 0 6px; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; font-weight: 750; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
#storyTitle { flex: none; white-space: nowrap; }
#beatText { max-width: 280px; }
h2 { margin: 0; font-size: 28px; font-weight: 600; }
h3 { margin: 14px 0 8px; font-size: 15px; color: var(--gold); letter-spacing: 0.04em; }
#beatText { margin: 0; color: var(--gold); font-weight: 750; text-align: right; }
.stage {
  position: relative; height: 280px; margin: 16px 0 8px;
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(420px 140px at 50% 100%, rgba(140, 230, 255, 0.12), transparent 70%),
    radial-gradient(280px 120px at 80% 0%, rgba(62, 198, 234, 0.16), transparent 70%),
    linear-gradient(180deg, #123049, #08131f 70%);
}
.floor {
  position: absolute; left: 8%; right: 8%; bottom: 28px; height: 46px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 243, 255, 0.16), transparent 70%);
}
.route {
  position: absolute; left: 18%; right: 18%; top: 124px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 243, 255, 0.7), transparent);
}
.spark {
  position: absolute; top: 116px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle, #f3fbff, rgba(62, 198, 234, 0.2) 70%);
  box-shadow: 0 0 18px rgba(62, 198, 234, 0.9);
  transition: left 0.9s cubic-bezier(.2,.7,.2,1);
}
.stage[data-beat="0"] .spark { left: 22%; }
.stage[data-beat="1"] .spark { left: 78%; }
.stage[data-beat="2"] .spark { left: 24%; }
.stage[data-beat="3"] .spark { left: 50%; }
.stage[data-beat="4"] .spark { left: 78%; }
.pc {
  position: absolute; top: 36px; width: 150px; height: 168px; padding: 12px 12px 10px;
  border-radius: 18px; border: 1px solid rgba(201, 243, 255, 0.45);
  background: linear-gradient(180deg, #f7fcff, #e4eef6);
  color: var(--ink);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}
.pc.left { left: 7%; }
.pc.right { right: 7%; }
.pc b { display: block; font-size: 14px; }
.screen {
  display: block; position: relative; height: 78px; margin-top: 8px; border-radius: 10px;
  background: linear-gradient(180deg, #243044, #0c1118);
  overflow: hidden;
}
.screen::after {
  content: "";
  position: absolute; left: 12px; right: 12px; top: 16px; height: 6px; border-radius: 4px;
  background: rgba(201, 243, 255, 0.38);
  box-shadow: 0 14px 0 rgba(201, 243, 255, 0.22), 0 28px 0 rgba(140, 230, 255, 0.35);
}
.meter, .ok {
  display: block; height: 8px; margin-top: 12px; border-radius: 99px; background: #d5e4ee; overflow: hidden;
}
.meter span {
  display: block; height: 100%; width: 12%;
  background: linear-gradient(90deg, #1490c4, #3ec6ea);
  transition: width 0.8s ease;
}
.stage[data-beat="2"] .meter span { width: 34%; }
.stage[data-beat="4"] .meter span { width: 100%; }
.ok {
  height: auto; padding: 4px 0; background: transparent; color: #3d7ea0;
  font-style: normal; font-weight: 750; font-size: 13px;
  opacity: 0.28; transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.meet {
  position: absolute; left: 50%; top: 108px; width: 26px; height: 26px; margin-left: -13px; z-index: 2;
  border-radius: 4px; transform: rotate(45deg);
  background: linear-gradient(145deg, #f3fbff, #3ec6ea 58%, #0a6284);
  box-shadow: 0 0 18px rgba(62, 198, 234, 0.85);
  transition: box-shadow 0.4s ease;
}
.stage[data-beat="3"] .meet { box-shadow: 0 0 32px rgba(62, 198, 234, 1); }
.chip, .cube, .lock {
  position: absolute; z-index: 3;
  transition: left 0.9s cubic-bezier(.2,.7,.2,1), top 0.9s cubic-bezier(.2,.7,.2,1), opacity 0.45s ease, transform 0.45s ease;
}
.chip {
  left: 12%; top: 72px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--cream); color: #0a4a66; font-weight: 750; letter-spacing: 0.08em; font-size: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.cube {
  width: 16px; height: 16px; border-radius: 4px; opacity: 0;
  background: linear-gradient(160deg, #f3fbff, #3ec6ea 55%, #0a6284);
  box-shadow: 0 8px 16px rgba(62, 198, 234, 0.35);
}
.lock {
  left: 18%; top: 128px; width: 16px; height: 12px; border: 2px solid #0a4a66; border-radius: 3px; opacity: 0; background: rgba(214, 240, 255, 0.85);
}
.lock::before {
  content: ""; position: absolute; left: 3px; top: -8px; width: 6px; height: 6px;
  border: 2px solid #0a4a66; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.stage[data-beat="0"] .chip { left: 12%; top: 72px; opacity: 1; }
.stage[data-beat="1"] .chip { left: 68%; top: 72px; opacity: 1; }
.stage[data-beat="1"] .ok { opacity: 1; transform: none; }
.stage[data-beat="2"] .chip, .stage[data-beat="3"] .chip, .stage[data-beat="4"] .chip { opacity: 0; }
.stage[data-beat="2"] .c1 { left: 11%; top: 128px; opacity: 1; }
.stage[data-beat="2"] .c2 { left: 15%; top: 112px; opacity: 1; }
.stage[data-beat="2"] .c3 { left: 19%; top: 128px; opacity: 1; }
.stage[data-beat="2"] .lock { opacity: 1; }
.stage[data-beat="3"] .c1 { left: 46%; top: 146px; opacity: 0.15; }
.stage[data-beat="3"] .c2 { left: 49%; top: 128px; opacity: 0.1; }
.stage[data-beat="3"] .c3 { left: 52%; top: 146px; opacity: 0.15; }
.stage[data-beat="4"] .c1 { left: 72%; top: 128px; opacity: 1; }
.stage[data-beat="4"] .c2 { left: 76%; top: 112px; opacity: 1; }
.stage[data-beat="4"] .c3 { left: 80%; top: 128px; opacity: 1; }
.beats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.beats li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; color: #b7c9d6; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(201, 243, 255, 0.12);
}
.beats li span {
  font-size: 11px; letter-spacing: 0.08em; opacity: 0.72;
}
.beats li.on {
  color: #071019;
  background: linear-gradient(110deg, var(--gold), #94a7ff);
  border-color: transparent;
}
.beats li.on span { opacity: 1; }
label { display: block; margin: 12px 0 6px; font-weight: 750; }
input {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 12px 14px;
  background: rgba(255, 252, 248, 0.96); color: var(--ink); font: inherit;
  box-shadow: inset 0 0 0 1px #d5e4ee;
}
.mine button, .mine .download { width: 100%; margin-top: 12px; }
.entry {
  margin: 0 0 10px; padding: 12px 14px; border-radius: 16px;
  background: rgba(236, 248, 255, 0.06);
  border: 1px solid rgba(201, 243, 255, 0.1);
}
.entry b { display: block; }
.entry span { display: block; color: #b7c9d6; font-size: 13px; line-height: 1.4; }
.entry.price { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.entry.price span { color: var(--gold); font-size: 22px; font-weight: 750; }
.error { min-height: 1.2em; margin: 8px 0 0; color: #ffb4b4; font-weight: 700; }
.empty { color: #b7c9d6; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.offer-grid article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(236, 248, 255, 0.04);
  border: 1px solid rgba(201, 243, 255, 0.14);
}
.offer-grid p { margin: 0; color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.offer-grid strong { display: block; margin: 8px 0 0; font-size: 40px; letter-spacing: -0.04em; font-family: Bahnschrift, "Segoe UI", sans-serif; }
.offer-grid em { display: block; margin-top: 2px; color: var(--cream); font-style: normal; font-size: 22px; font-weight: 750; }
.offer-grid span { display: block; margin-top: 8px; }
.offer-grid .featured {
  background:
    radial-gradient(180px 80px at 20% 0%, rgba(201, 243, 255, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(190, 236, 255, 0.16), rgba(62, 198, 234, 0.1));
  border-color: rgba(62, 198, 234, 0.7);
  box-shadow: 0 16px 40px rgba(62, 198, 234, 0.16);
}
.offer-grid .featured strong {
  background: linear-gradient(100deg, #f7fcff, #c9f3ff 55%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fine { margin: 14px 0 0; }
#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#pointer {
  position: fixed; left: 0; top: 0; z-index: 1; width: 280px; height: 280px;
  margin: -140px 0 0 -140px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(201, 243, 255, 0.16), transparent 68%);
  transition: opacity 0.4s ease;
}
#pointer.on { opacity: 1; }
main { z-index: 2; }
.hero-top { perspective: 1100px; }
.seal { transition: transform 0.18s ease; transform-style: preserve-3d; }
body.ready .hero-copy, body.ready .facts li, body.ready .mine, body.ready .stage-card {
  animation: arrive 0.8s cubic-bezier(.16,.8,.2,1) both;
}
body.ready .seal { animation: fadein 0.8s ease 0.08s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
body.ready .facts li:nth-child(2) { animation-delay: 0.14s; }
body.ready .facts li:nth-child(3) { animation-delay: 0.22s; }
body.ready .mine { animation-delay: 0.18s; }
body.ready .stage-card { animation-delay: 0.26s; }
body.ready .offers { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
body.ready .offers.in { opacity: 1; transform: none; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
#beatText.swap, .atlas-line.swap { animation: swap 0.45s ease; }
@keyframes swap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.rail {
  position: absolute; left: 18px; right: 18px; bottom: 14px; height: 3px;
  border-radius: 99px; background: rgba(201, 243, 255, 0.16); overflow: hidden;
}
.rail i {
  display: block; height: 100%; width: 8%;
  background: linear-gradient(90deg, #3ec6ea, #e7f7ff);
  transition: width 0.7s cubic-bezier(.2,.7,.2,1);
}
.stage[data-beat="0"] .rail i { width: 18%; }
.stage[data-beat="1"] .rail i { width: 38%; }
.stage[data-beat="2"] .rail i { width: 58%; }
.stage[data-beat="3"] .rail i { width: 76%; }
.stage[data-beat="4"] .rail i { width: 100%; }
.route {
  background: repeating-linear-gradient(90deg, rgba(201, 243, 255, 0.9) 0 8px, transparent 8px 16px);
  animation: march 0.9s linear infinite;
}
@keyframes march { to { background-position: 16px 0; } }
.beats li { cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.beats li:hover { transform: translateY(-1px); }
.cube { animation: bob 2.6s ease-in-out infinite; }
.c2 { animation-delay: -0.4s; }
.c3 { animation-delay: -0.8s; }
@keyframes bob {
  50% { transform: translateY(-5px); }
}
.offer-grid .featured { position: relative; }
.offer-grid .featured::after {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--turn, 0deg), transparent 0 62%, rgba(201, 243, 255, 0.95), transparent 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: rim 7s linear infinite;
}
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rim { to { --turn: 360deg; } }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .navlinks { display: none; }
  .hero-top, .facts, .board, .offer-grid, .atlas-copy { display: block; }
  .atlas-line { text-align: left; margin-top: 8px; }
  .seal { margin-top: 28px; transform: none; }
  .mine { position: static; }
  .facts li, .offer-grid article, .stage-card { margin-top: 12px; }
  .lede { font-size: 18px; }
  .stage-head { display: block; }
  #beatText { text-align: left; margin-top: 6px; }
  .pc { width: 108px; height: 150px; top: 48px; }
  .pc.left { left: 3%; }
  .pc.right { right: 3%; }
  .chip { font-size: 11px; }
  .actions .download, .actions .ghost { width: 100%; }
}
@media (min-width: 1000px) {
  html, body { height: 100%; overflow: hidden; }
  body {
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .topbar { height: 46px; flex: none; }
  .nav-cta { min-height: 34px; padding: 6px 14px; }
  main {
    flex: 1 1 auto;
    min-height: 0;
    width: min(1240px, 100%);
    max-width: none;
    padding: 8px 16px 4px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "plans plans"
      "world work";
    gap: 8px 12px;
    overflow: hidden;
  }
  .hero {
    grid-area: hero;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 340px);
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
    perspective: 1100px;
  }
  .hero-top { display: contents; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero .mine { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; }
  .facts { grid-column: 1; grid-row: 2; margin: 0; }
  .offers { grid-area: plans; margin: 0; padding: 8px 10px 6px; }
  .atlas { grid-area: world; }
  .board { grid-area: work; }
  .colophon { flex: none; padding: 4px 16px 6px; }
  .hero-top { gap: 16px; align-items: center; }
  h1 { margin: 2px 0 6px; font-size: 32px; line-height: 0.98; }
  .lede { font-size: 14px; line-height: 1.35; }
  .actions { margin-top: 8px; }
  .download, button, .ghost { min-height: 36px; padding: 7px 14px; }
  .note { margin: 4px 0 0; }
  .facts { gap: 8px; }
  .facts li { padding: 6px 10px; border-radius: 12px; font-size: 12px; }
  .facts span { display: block; font-size: 11px; line-height: 1.3; }
  .app { padding: 12px 14px; }
  .app h2 { margin: 8px 0 2px; font-size: 16px; }
  .device, .transfer { margin-top: 8px; padding: 8px 10px; }
  .progress { margin-top: 10px; }
  .offers .kicker { display: inline-block; margin: 0 10px 0 0; vertical-align: baseline; }
  .offers h2 { display: inline; font-size: 18px; }
  .offer-grid { margin-top: 6px; gap: 8px; }
  .offer-grid article { padding: 6px 10px; border-radius: 14px; }
  .offer-grid strong { margin: 0; font-size: 22px; }
  .offer-grid em { margin-top: 0; font-size: 15px; }
  .offer-grid span { margin-top: 2px; font-size: 11px; line-height: 1.25; }
  .fine { margin: 4px 0 0; font-size: 12px; }
  .atlas {
    margin: 0;
    padding: 8px 10px 8px;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .atlas-copy { margin-bottom: 4px; flex: none; }
  .atlas h2 { font-size: 16px; }
  .atlas-line { font-size: 12px; }
  #atlas { flex: 1 1 auto; min-height: 0; height: 0; width: 100%; }
  .board {
    margin: 0;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mine { position: static; padding: 6px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  .mine .app { padding: 8px 8px 6px; }
  .mine .quiet { display: none; }
  .mine .device { margin-top: 3px; padding: 5px 8px; }
  .mine label { margin: 3px 0 1px; }
  #dash { min-height: 0; overflow: auto; }
  .stage-card { padding: 8px 10px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  #friendCode { margin: 4px 0 2px; font-size: 18px; }
  .quiet { margin: 0; font-size: 11px; line-height: 1.25; }
  label { margin: 4px 0 2px; font-size: 11px; }
  input { padding: 5px 8px; border-radius: 10px; }
  .mine button, .mine .download { min-height: 32px; margin-top: 6px; padding: 4px 10px; }
  .stage-head { flex: none; }
  #storyTitle { font-size: 16px; }
  #beatText { font-size: 12px; }
  .stage { height: 118px; margin: 4px 0; flex: none; }
  .pc { top: 2px; width: 92px; height: 84px; padding: 5px 7px; border-radius: 12px; }
  .pc b { font-size: 11px; }
  .screen { height: 32px; margin-top: 3px; }
  .screen::after { top: 8px; box-shadow: 0 10px 0 rgba(201, 243, 255, 0.22), 0 18px 0 rgba(140, 230, 255, 0.35); }
  .meter, .ok { margin-top: 6px; }
  .route { top: 74px; }
  .spark { top: 66px; }
  .meet { top: 62px; }
  .floor { bottom: 8px; height: 22px; }
  .rail { bottom: 4px; }
  .chip { top: 22px; font-size: 10px; padding: 3px 7px; }
  .stage[data-beat="0"] .chip { top: 22px; }
  .stage[data-beat="1"] .chip { top: 22px; }
  .lock { top: 86px; }
  .stage[data-beat="2"] .c1, .stage[data-beat="4"] .c1 { top: 86px; }
  .stage[data-beat="2"] .c2, .stage[data-beat="4"] .c2 { top: 72px; }
  .stage[data-beat="2"] .c3, .stage[data-beat="4"] .c3 { top: 86px; }
  .stage[data-beat="3"] .c1 { top: 92px; }
  .stage[data-beat="3"] .c2 { top: 78px; }
  .stage[data-beat="3"] .c3 { top: 92px; }
  .beats { margin: 2px 0 0; gap: 4px; display: grid; grid-template-columns: 1fr 1fr; }
  .beats li { padding: 3px 7px; font-size: 10px; }
  body[data-page="pay"] #payPanel { order: -1; }
  body[data-page="pay"] .mine > .kicker,
  body[data-page="pay"] #signPanel .quiet,
  body[data-page="pay"] #payPanel .quiet { display: none; }
  body[data-page="pay"] #friendCode { font-size: 16px; margin: 0; }
  body[data-page="pay"] #payPanel h3 { margin: 0 0 4px; font-size: 12px; }
  body[data-page="pay"] .entry { margin: 0 0 3px; padding: 3px 8px; }
  body[data-page="pay"] .entry.price b { font-size: 12px; white-space: nowrap; }
  body[data-page="pay"] .entry.price span { font-size: 14px; }
  body[data-page="pay"] label { margin: 2px 0; }
  body[data-page="pay"] input { padding: 4px 8px; }
  body[data-page="pay"] .mine button { margin-top: 4px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  h1 { font-size: 28px; }
  .lede { font-size: 13px; }
  .facts li { padding: 4px 8px; }
  .offers { padding: 6px 8px 4px; }
  .offer-grid { margin-top: 4px; }
  .offer-grid strong { font-size: 20px; }
  .stage { height: 96px; }
  .pc { height: 72px; }
  .route { top: 58px; }
  .spark { top: 50px; }
  .meet { top: 46px; }
  .lock { top: 70px; }
  .stage[data-beat="2"] .c1, .stage[data-beat="4"] .c1,
  .stage[data-beat="3"] .c1 { top: 70px; }
  .stage[data-beat="2"] .c2, .stage[data-beat="4"] .c2,
  .stage[data-beat="3"] .c2 { top: 58px; }
  .stage[data-beat="2"] .c3, .stage[data-beat="4"] .c3,
  .stage[data-beat="3"] .c3 { top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand, .orb, .bulb, .dust i, h1, .download::after, .chip, .cube, .lock, .ok, .meter span, .meet, .spark, .orbit, .diamond, .route, .offer-grid .featured::after, body.ready .hero-copy, body.ready .seal, body.ready .facts li, body.ready .mine, body.ready .stage-card { animation: none; }
  .dust, #field, #pointer { display: none; }
  body.ready .offers { opacity: 1; transform: none; transition: none; }
}
