/* What plays on the player's screen. Sized with container units so it scales with the skin. */
.scene {
  position: absolute;
  inset: 0;
  padding: 10% 6% 9% 7.5%;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3%;
  align-items: center;
}
.scene__text { position: relative; z-index: 2; display: grid; gap: 2.4cqh; align-content: center; min-width: 0; }
.scene__kicker {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font: 1.7cqw / 1.2 var(--pixel);
  color: var(--glow);
  text-shadow: 0 0 8px var(--glow);
  letter-spacing: 0.04em;
}
.scene__kicker i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.scene__title {
  margin: 0;
  font: 800 6.1cqw / 0.98 var(--display);
  letter-spacing: -0.045em;
  white-space: pre-line;
  color: #fff;
  text-shadow: 0 0 22px color-mix(in srgb, var(--glow) 60%, #0000);
}
.scene__title em {
  font-style: normal;
  background: linear-gradient(180deg, #fff 10%, var(--glow) 60%, var(--hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scene__role { font: 1.75cqw var(--pixel); color: var(--ink); opacity: 0.7; }
.scene__blurb { margin: 0; font: 400 2.05cqw / 1.5 var(--ui); color: var(--ink); opacity: 0.86; max-width: 46ch; }
.scene__stats { display: flex; gap: 5%; }
.scene__stats div { display: grid; }
.scene__stats b { font: 900 4.3cqw / 1 var(--display); color: #fff; letter-spacing: -0.04em; }
.scene__stats small { font: 1.45cqw var(--pixel); color: var(--glow); opacity: 0.9; }
.scene__ctas { display: flex; gap: 2.4%; flex-wrap: wrap; }
.gbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.3em;
  border: 0;
  border-radius: 999px;
  font: 700 1.75cqw var(--ui);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 1px #0008;
  background:
    radial-gradient(80% 50% at 50% 10%, #ffffffb0, #fff0 70%),
    linear-gradient(180deg, var(--base), var(--deep));
  box-shadow: inset 0 -2px 4px #0006, 0 0 0 1px #ffffff40, 0 0 14px color-mix(in srgb, var(--glow) 50%, #0000);
  transition: transform 0.2s var(--ease-spring), filter 0.2s;
}
.gbtn:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.15); }
.gbtn--ghost { background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff40; }

.scene__art { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.scene__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* in: staggered */
.scene .in { opacity: 0; transform: translateY(14px); animation: sceneIn 0.6s var(--ease-spring) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes sceneIn { to { opacity: 1; transform: none; } }

/* ---------- TAMAM: worlds in orbit ---------- */
.orbit { position: relative; width: min(100%, 84cqh); aspect-ratio: 1; }
.orbit__ring { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--glow) 50%, #0000); animation: spin 30s linear infinite; }
.orbit__ring--2 { inset: 24%; animation-direction: reverse; animation-duration: 20s; }
.orbit__core {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 900 3.2cqw var(--display);
  letter-spacing: -0.05em;
  color: #fff;
  background:
    radial-gradient(60% 40% at 50% 15%, #ffffffd0, #fff0 70%),
    radial-gradient(circle, var(--base), var(--deep) 80%);
  box-shadow: 0 0 40px var(--glow), inset 0 -8px 16px #0007;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 70px var(--glow), inset 0 -8px 16px #0007; } }
.orbit__arm { position: absolute; inset: 0; animation: spin 18s linear infinite; animation-delay: calc(var(--k) * -4.5s); }
.orbit__planet {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font: 1.45cqw / 1.1 var(--pixel);
  color: #fff;
  background:
    radial-gradient(60% 40% at 50% 15%, #ffffffd0, #fff0 70%),
    radial-gradient(circle, var(--pc), color-mix(in srgb, var(--pc) 40%, #000) 85%);
  box-shadow: 0 0 18px var(--pc), inset 0 -4px 8px #0006;
  animation: spin 18s linear infinite reverse;
  animation-delay: calc(var(--k) * -4.5s);
}
.orbit__planet b { display: block; font: 900 2.5cqw var(--display); }
.ticker {
  position: absolute;
  right: 0;
  top: 6%;
  bottom: 6%;
  width: 34%;
  overflow: hidden;
  mask-image: linear-gradient(#0000, #000 20%, #000 80%, #0000);
  font: 1.6cqw / 1.9 var(--lcdfont);
  color: var(--lcd);
  text-align: right;
  opacity: 0.55;
  pointer-events: none;
}
.ticker div { animation: tick 22s linear infinite; }
@keyframes tick { to { transform: translateY(-50%); } }

/* ---------- TABZ: the split ---------- */
.bill {
  width: min(92%, 64cqh);
  padding: 7% 8%;
  border-radius: 6px 6px 0 0;
  background: #fff9ee;
  color: #1e140a;
  font: 1.9cqw / 1.5 var(--lcdfont);
  box-shadow: 0 10px 30px #000a, 0 0 0 1px #0002;
  rotate: -3deg;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  padding-bottom: 12%;
}
.bill h4 { margin: 0 0 6%; font: 900 3cqw var(--display); letter-spacing: -0.04em; text-align: center; }
.bill p { margin: 0; display: flex; justify-content: space-between; }
.bill hr { border: 0; border-top: 2px dashed #0004; margin: 5% 0; }
.bill .tot { font-size: 2.5cqw; font-weight: 700; }
.bill .split { display: flex; gap: 4%; margin-top: 6%; }
.bill .split span {
  flex: 1;
  padding: 6% 0;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--base), var(--deep));
  font-size: 2.2cqw;
  transform: scale(0);
  animation: popIn 0.5s var(--ease-spring) forwards;
  animation-delay: calc(1.1s + var(--i) * 0.18s);
}
@keyframes popIn { to { transform: none; } }
.bill .fee { margin-top: 5%; text-align: center; font-size: 1.7cqw; color: #a3170b; }

/* ---------- SEO: the climb ---------- */
.serp { width: 96%; display: grid; gap: 4%; font: 1.7cqw / 1.3 var(--ui); }
.serp div { padding: 4% 5%; border-radius: 8px; background: #ffffff10; box-shadow: inset 0 0 0 1px #ffffff20; color: var(--ink); opacity: 0.55; }
.serp div b { display: block; color: #8ab4ff; font-weight: 400; font-size: 2cqw; }
.serp .me { opacity: 1; background: #ffffff1c; box-shadow: inset 0 0 0 1px var(--glow), 0 0 18px color-mix(in srgb, var(--glow) 50%, #0000); }
.serp .me b { color: var(--glow); }

/* ---------- HACK: full-screen terminal ---------- */
.scene--term { grid-template-columns: 1fr; padding: 6% 7% 9%; align-items: stretch; }
.term { display: grid; grid-template-rows: 1fr auto; min-height: 0; font: 2.2cqw / 1.35 var(--lcdfont); color: #9dff9d; text-shadow: 0 0 6px #4dff4d80; }
.term__out { overflow: auto; min-height: 0; white-space: pre-wrap; scrollbar-width: none; }
.term__out .err { color: var(--glow); }
.term__out .dim { opacity: 0.6; }
.term__out a { color: #fff; }
.term__row { display: flex; gap: 0.5em; }
.term__row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: inherit; font: inherit; caret-color: #9dff9d; }

/* ---------- CONTACT ---------- */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; width: 100%; }
.links a {
  padding: 6% 7%;
  border-radius: 10px;
  text-decoration: none;
  font: 700 1.8cqw var(--ui);
  color: #10131a;
  background: linear-gradient(180deg, #fff, #c9d2e0);
  box-shadow: inset 0 -2px 3px #0003, 0 2px 4px #0006;
  transition: transform 0.2s var(--ease-spring);
}
.links a:hover { transform: translateY(-2px) rotate(-1deg); }
.links a small { display: block; font: 1.3cqw var(--pixel); opacity: 0.6; }

/* ---------- small screens (phone skin) ---------- */
@container (max-width: 460px) {
  .scene {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-items: start;
    padding: 12% 8% 16%;
    gap: 6cqw;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    touch-action: pan-y;
  }
  .scene::-webkit-scrollbar { display: none; }
  .scene__text { gap: 3.4cqw; }
  .scene__art { height: 78cqw; }
  .scene__kicker { font-size: 3.2cqw; }
  .scene__title { font-size: 8.6cqw; }
  .scene__role { font-size: 3cqw; }
  .scene__blurb { font-size: 3.7cqw; }
  .scene__stats b { font-size: 7.4cqw; }
  .scene__stats small { font-size: 2.7cqw; }
  .gbtn { font-size: 3.5cqw; }
  .orbit { width: 78cqw; }
  .orbit__core { font-size: 5.2cqw; }
  .orbit__planet { font-size: 2.5cqw; }
  .orbit__planet b { font-size: 4.4cqw; }
  .ticker { display: none; }
  .bill { font-size: 3.6cqw; width: 74%; }
  .bill h4 { font-size: 5.4cqw; }
  .bill .tot { font-size: 4.4cqw; }
  .bill .split span { font-size: 4cqw; }
  .bill .fee { font-size: 3.2cqw; }
  .serp { font-size: 3.3cqw; }
  .serp div b { font-size: 3.7cqw; }
  .scene--term { overflow: hidden; padding: 12% 7% 14%; }
  .term { font-size: 4.2cqw; }
  .links a { font-size: 3.4cqw; }
  .links a small { font-size: 2.6cqw; }
  .scene--contact .scene__art { height: auto; }
}
