@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/orbitron-600.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/orbitron-800.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #e9ecff;
  --muted: #9aa0c9;
  --panel: rgba(16, 18, 38, 0.82);
  --line: rgba(140, 150, 220, 0.18);
  --display-font: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: #04040c;
  color: var(--ink);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* dragging the orbit ring shouldn't select text or trigger a native image drag */
img,
video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* overlay body copy is meant to be read/copied normally */
#overlay .osum,
#overlay .otxt,
#overlay .odash {
  user-select: text;
  -webkit-user-select: text;
}

button,
a {
  font: inherit;
}

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

#universe-root {
  position: fixed;
  inset: 0;
}

canvas#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 3D orbit stage */
#stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  perspective: 1200px;
  perspective-origin: 50% 46%;
}
#ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}
@media (orientation: landscape) {
  /* fullscreen/desktop: raise the whole orbit so front-world labels clear
     the bottom-anchored guide dialogue box */
  #stage {
    perspective-origin: 50% 38%;
  }
  #ring {
    top: 42%;
  }
}

/* center chibi — lives inside the ring at depth 0 (see chibi.js) */
#chibi {
  position: absolute;
  left: -12px;
  top: 0;
  transform: translate(-50%, -50%) translateZ(0);
  text-align: center;
  pointer-events: none;
}
.chibi-bob {
  position: relative;
  width: clamp(250px, 36vmin, 400px);
  aspect-ratio: 900 / 1152;
  animation: bob 5s ease-in-out infinite alternate;
}
@keyframes bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-16px);
  }
}
.chibi-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 45vmin, 500px);
  height: clamp(300px, 45vmin, 500px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 91, 255, 0.5), rgba(192, 44, 138, 0.16) 46%, transparent 70%);
  filter: blur(8px);
}
.chibi-vid {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.6));
}
.chibi-bob .alpha-video-canvas {
  width: 100%;
  height: 100%;
}

/* worlds */
.planet {
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
  will-change: transform;
}
.orb {
  position: relative;
  width: var(--sz);
  height: var(--sz);
  transform: translateZ(0);
  transition: filter 0.3s;
}
.orb video,
.orb img,
.orb .alpha-video-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  transform: translateZ(0);
}

.orb:not(.is-gradient) {
  overflow: visible;
  background: transparent;
  filter: drop-shadow(var(--glow));
}
.orb:not(.is-gradient) video,
.orb:not(.is-gradient) img,
.orb:not(.is-gradient) .alpha-video-canvas {
  -webkit-mask-image: var(--planet-mask);
  mask-image: var(--planet-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: var(--planet-mask-size, contain);
  mask-size: var(--planet-mask-size, contain);
}

/* gradient-placeholder worlds only: the flat "ball" look */
.orb.is-gradient {
  overflow: hidden;
  background: var(--grad);
  box-shadow:
    var(--glow),
    inset -12px -16px 34px rgba(0, 0, 0, 0.55),
    inset 10px 12px 26px rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.3s;
}
.orb.is-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.4), transparent 42%);
  pointer-events: none;
}

.ohero-planet video,
.ohero-planet img,
.ohero-planet .alpha-video-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ohero-planet:not(.is-gradient) {
  aspect-ratio: 1;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(var(--glow));
}
.ohero-planet:not(.is-gradient) .ohero-planet-bob {
  width: 100%;
  height: 100%;
}
.has-keyed-video {
  position: relative;
}
.has-keyed-video:not(.is-keyed-ready) {
  background-image: var(--planet-poster, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.alpha-video-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
html.uses-chroma-key-video video[data-alpha-video] {
  opacity: 0;
}
.ohero-planet:not(.is-gradient) video,
.ohero-planet:not(.is-gradient) img,
.ohero-planet:not(.is-gradient) .alpha-video-canvas {
  -webkit-mask-image: var(--planet-mask);
  mask-image: var(--planet-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: var(--planet-mask-size, contain);
  mask-size: var(--planet-mask-size, contain);
}
.ohero-planet.is-gradient {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    inset -10px -14px 30px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(0, 0, 0, 0.5);
}
.ohero-planet.is-gradient video,
.ohero-planet.is-gradient img {
  height: 100%;
  object-fit: cover;
  filter: none;
}
.plabel {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--display-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
  /* no CSS transition here — --lo is reset every animation frame by orbit.js,
     and retriggering a transition each frame toward the same target would
     never let it settle (it'd hang at a permanent partial-opacity lag). */
  opacity: var(--lo, 1);
}
.planet.focused .orb.is-gradient {
  box-shadow:
    var(--glow),
    0 0 0 3px rgba(255, 255, 255, 0.55),
    inset -12px -16px 34px rgba(0, 0, 0, 0.5);
}
.planet.focused .orb:not(.is-gradient) {
  filter: drop-shadow(var(--glow)) drop-shadow(0 0 26px rgba(255, 255, 255, 0.48));
}
.planet.focused .orb video,
.planet.focused .orb img {
  filter: none;
}

/* full-screen world overlay */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  overflow: auto;
}
#overlay.open {
  opacity: 1;
  pointer-events: auto;
}
#overlay .obg {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 24, 0.94);
  backdrop-filter: blur(30px);
}
#overlay .oglow {
  position: fixed;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  width: min(680px, 120vw);
  height: min(680px, 120vw);
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
}
#overlay .oclose {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}
/* hero: chibi holding the world's planet, cropped bottom fading to dark,
   tag/title caption sits inside that faded area, directly over the image */
#overlay .ohero {
  position: relative;
  width: min(480px, 90vw);
  margin: 0 auto;
}
#overlay .ohero-figure {
  display: block;
  width: 100%;
  height: auto;
  /* the image itself dissolves to transparent at the bottom (revealing the
     panel/glow behind it) instead of being covered by an opaque fade block —
     starts below the hands so they stay fully solid, only the forearms/crop
     edge dissolve */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 97%);
}
#overlay .ohero-planet {
  position: absolute;
  left: calc(50% - 8px);
  top: 66%;
  transform: translate(-50%, -50%);
  width: 48.75%; /* 30% larger than the previous held-world size */
  z-index: 2;
}
/* the bob animation lives on an inner wrapper, not .ohero-planet itself —
   a CSS animation replaces the whole `transform` property, so putting it on
   the same element as the translate(-50%,-50%) centering would blow that
   centering away every frame and shift the planet off-center */
#overlay .ohero-planet-bob {
  animation: bob 3.4s ease-in-out infinite alternate;
}
#overlay .ohero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 22px 20px;
}
#overlay .ocontent {
  position: relative;
  z-index: 3;
  margin-top: 20px;
}
#overlay .ptag {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(4, 4, 14, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
#overlay h2 {
  font-family: var(--display-font);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  margin-bottom: 14px;
}
#overlay .osum {
  font-size: 17px;
  font-weight: 600;
  color: #dfe3ff;
  margin-bottom: 12px;
}
#overlay .osocials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
#overlay .osocial-link {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 6, 17, 0.48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
#overlay .osocial-link.is-disabled {
  opacity: 0.62;
  cursor: default;
}
#overlay .osocial-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18f3ff, #111327 48%, #ff4c8b);
}
#overlay .osocial-link.is-instagram .osocial-mark {
  background: linear-gradient(135deg, #ffb347, #ff347d 46%, #7b3bff);
}
#overlay .osocial-link.is-youtube .osocial-mark {
  background: linear-gradient(135deg, #ff345d, #a817ff);
}
#overlay .osocial-mark svg {
  width: 17px;
  height: 17px;
}
#overlay .otxt {
  font-size: 14px;
  line-height: 1.7;
  color: #b7bce6;
  max-width: 480px;
  margin: 0 auto 30px;
}
#overlay .oact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
/* body/actions live in .oinfo (left-aligned column) now, not .oinner, so
   the centered defaults above (aimed at the rail's summary) get overridden
   here to read left-aligned instead */
#overlay .oinfo .otxt {
  margin: 0 0 24px;
  max-width: 60ch;
}
#overlay .oinfo .oact {
  justify-content: flex-start;
}
.oact-item {
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.oact-item .oact-hint {
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}
.oact-item.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.oclose:focus-visible,
.oact-item:focus-visible,
.odash-action:focus-visible,
.osocial-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* split layout — every world uses it: right-hand 1/4 rail (.oinner, hero +
   tag/title/summary) and left 3/4 info column (.oinfo, body + actions +
   any bespoke extra from src/universe/worldInfo). */
#overlay .osplit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(420px, 1fr);
  align-items: stretch;
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3vh 26px 12vh;
}
#overlay .osplit .oinner {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* height-driven instead of width-driven so the rail actually fills the
   column's full height (top to bottom) — aspect-ratio keeps the container
   matching the source image exactly so the planet/caption's absolute %
   positioning still lines up with the visible art, not a letterboxed box.
   Both width and height stay auto with max-width/max-height caps (not a
   fixed height) so the browser picks whichever bound is tighter — a fixed
   height here would NOT get reconciled with a clamped max-width, leaving
   the box taller than the image actually rendered and throwing off the
   planet/caption's percentage-based positions. */
#overlay .osplit .oinner .ohero {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  aspect-ratio: 720 / 1079;
  margin: 0 auto;
}
#overlay .oinfo {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  padding-top: 3vh;
}
@media (min-width: 861px) {
  #overlay .osplit .oinner {
    position: sticky;
    top: 4vh;
    min-height: 88vh;
    align-self: start;
  }
  #overlay .oinfo {
    max-width: 860px;
  }
}
#overlay .oinfo-eyebrow {
  font-family: var(--display-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 14px;
}
#overlay .oinfo-appgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
#overlay .oinfo-appcard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}
#overlay .oinfo-appname {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
#overlay .oinfo-appstatus {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* world dashboards — shared canvas, custom module shapes per planet */
#overlay .odash {
  --dash-accent: #7ee8ff;
  --dash-accent-2: #1f8dff;
  --dash-soft: rgba(126, 232, 255, 0.12);
  --dash-line: rgba(126, 232, 255, 0.25);
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: left;
}
#overlay .odash-empty-state {
  display: grid;
  gap: 12px;
  min-height: 220px;
  align-content: center;
  padding: 24px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--dash-soft), rgba(255, 255, 255, 0.025)),
    rgba(6, 7, 18, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 48px rgba(0, 0, 0, 0.18);
}
#overlay .odash-empty-state h3 {
  max-width: 680px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#overlay .odash-empty-state p {
  max-width: 64ch;
  color: #cdd2f3;
  font-size: 13.5px;
  line-height: 1.6;
}
#overlay .odash-empty-state span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-top: 2px;
  padding: 6px 10px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  color: var(--dash-accent);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#overlay .odash.is-maikolabs {
  --dash-accent: #ffdc7a;
  --dash-accent-2: #7b3bff;
  --dash-soft: rgba(123, 59, 255, 0.17);
  --dash-line: rgba(255, 204, 77, 0.28);
  --dash-gold: #ffcc4d;
  --dash-gold-soft: #ffe8a8;
  --dash-cyan: #73f6ff;
}
#overlay .odash.is-app-store {
  --dash-accent: #7ee8ff;
  --dash-accent-2: #1f8dff;
  --dash-soft: rgba(126, 232, 255, 0.12);
  --dash-line: rgba(126, 232, 255, 0.25);
}
#overlay .astore-shelf + .astore-shelf {
  margin-top: 28px;
}
#overlay .astore-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
#overlay .astore-app {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--dash-soft), rgba(255, 255, 255, 0.025)),
    rgba(6, 7, 18, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
#overlay .astore-app summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
#overlay .astore-app summary::-webkit-details-marker {
  display: none;
}
#overlay .astore-app summary:focus-visible {
  outline: 2px solid var(--dash-accent);
  outline-offset: -2px;
}
#overlay .astore-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.54), transparent 24%),
    linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.28);
}
#overlay .astore-copy {
  display: block;
  min-width: 0;
}
#overlay .astore-copy strong,
#overlay .astore-copy span,
#overlay .astore-copy em {
  display: block;
}
#overlay .astore-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
}
#overlay .astore-copy span {
  margin-top: 4px;
  color: var(--dash-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
#overlay .astore-copy em {
  margin-top: 5px;
  color: #bcc3e9;
  font-size: 12.5px;
  line-height: 1.38;
  font-style: normal;
}
#overlay .astore-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 32px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--dash-accent);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
#overlay .astore-status.is-coming-soon {
  color: #dfe3ff;
  border-color: rgba(223, 227, 255, 0.22);
}
#overlay .astore-detail {
  padding: 0 14px 16px 86px;
}
#overlay .astore-detail p {
  max-width: 72ch;
  color: #cdd2f3;
  font-size: 13.5px;
  line-height: 1.58;
}
#overlay .astore-preview-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 0.42fr);
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
#overlay .astore-preview {
  min-width: 0;
}
#overlay .astore-preview-art {
  aspect-ratio: 9 / 16;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 24%, rgba(126, 232, 255, 0.32), transparent 24%),
    linear-gradient(145deg, rgba(31, 141, 255, 0.72), rgba(8, 9, 28, 0.95));
  background-size: 18px 18px, 18px 18px, auto, auto;
}
#overlay .astore-preview span {
  display: block;
  margin-top: 8px;
  color: #dfe3ff;
  font-size: 11px;
  font-weight: 700;
}
#overlay .astore-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
#overlay .mlab {
  border-top-color: rgba(255, 204, 77, 0.2);
}
#overlay .mlab-head {
  max-width: 760px;
  margin-bottom: 24px;
}
#overlay .mlab-head h3 {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#overlay .mlab-head p,
#overlay .mlab-flow-card p,
#overlay .mlab-youtube-row p,
#overlay .mlab-subscribe p,
#overlay .mlab-community-card p {
  color: #c9c9ec;
  font-size: 13.5px;
  line-height: 1.58;
}
#overlay .mlab-head p {
  max-width: 65ch;
  margin-top: 12px;
}
#overlay .mlab-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
#overlay .mlab-flow-card,
#overlay .mlab-media-card,
#overlay .mlab-youtube-row,
#overlay .mlab-subscribe,
#overlay .mlab-community-card {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 59, 255, 0.18), rgba(255, 204, 77, 0.05)),
    rgba(8, 6, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#overlay .mlab-flow-card {
  min-height: 150px;
  padding: 16px;
}
#overlay .mlab-flow-card strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #170b2d;
  background: linear-gradient(135deg, var(--dash-gold), var(--dash-gold-soft));
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 800;
}
#overlay .mlab-flow-card h4 {
  margin-top: 14px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 15px;
  text-transform: uppercase;
}
#overlay .mlab-feature-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(360px, 1.2fr);
  gap: 12px;
  margin-top: 16px;
}
#overlay .mlab-short-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#overlay .mlab-media-card {
  position: relative;
  overflow: hidden;
}
#overlay .mlab-media-card.is-short {
  aspect-ratio: 9 / 16;
  min-height: 245px;
}
#overlay .mlab-media-card.is-youtube-feature {
  aspect-ratio: 16 / 9;
  min-height: 245px;
}
#overlay .mlab-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 22%, rgba(255, 204, 77, 0.34), transparent 22%),
    radial-gradient(circle at 26% 76%, rgba(115, 246, 255, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(123, 59, 255, 0.86), rgba(255, 204, 77, 0.16) 54%, rgba(6, 5, 21, 0.95));
}
#overlay .mlab-media-card.is-built .mlab-poster {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 204, 77, 0.34), transparent 24%),
    radial-gradient(circle at 22% 70%, rgba(115, 246, 255, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(54, 35, 124, 0.96), rgba(123, 59, 255, 0.38) 52%, rgba(6, 5, 21, 0.95));
}
#overlay .mlab-media-card.is-youtube-feature .mlab-poster,
#overlay .mlab-youtube-thumb,
#overlay .mlab-subscribe {
  background:
    linear-gradient(90deg, rgba(255, 204, 77, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 204, 77, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 22%, rgba(255, 204, 77, 0.42), transparent 24%),
    radial-gradient(circle at 30% 72%, rgba(115, 246, 255, 0.18), transparent 24%),
    linear-gradient(120deg, rgba(9, 6, 28, 0.98), rgba(123, 59, 255, 0.52), rgba(5, 5, 16, 0.96));
  background-size: 22px 22px, 22px 22px, auto, auto, auto;
}
#overlay .mlab-poster::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 232, 168, 0.16);
  border-radius: 6px;
}
#overlay .mlab-poster::after,
#overlay .mlab-youtube-thumb::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 232, 168, 0.92);
  clip-path: polygon(34% 22%, 78% 50%, 34% 78%);
}
#overlay .mlab-media-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 10px;
  border: 1px solid rgba(255, 204, 77, 0.24);
  border-radius: 7px;
  background: rgba(7, 5, 20, 0.78);
  backdrop-filter: blur(12px);
}
#overlay .mlab-media-label h4 {
  color: #fff;
  font-family: var(--display-font);
  font-size: 13px;
  line-height: 1.18;
  text-transform: uppercase;
}
#overlay .mlab-media-label span {
  display: block;
  margin-top: 6px;
  color: var(--dash-gold-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#overlay .mlab-media-card.is-youtube-feature .mlab-media-label h4 {
  font-size: 19px;
}
#overlay .mlab-youtube-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
#overlay .mlab-youtube-row {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 12px;
}
#overlay .mlab-youtube-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
}
#overlay .mlab-youtube-thumb::after {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}
#overlay .mlab-youtube-row h4,
#overlay .mlab-subscribe h4,
#overlay .mlab-community-card h4 {
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}
#overlay .mlab-subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  border-color: rgba(255, 204, 77, 0.36);
}
#overlay .mlab-subscribe h4 {
  font-family: var(--display-font);
  font-size: 17px;
  text-transform: uppercase;
}
#overlay .mlab-subscribe .odash-action {
  justify-content: center;
  min-width: 118px;
  border-color: transparent;
  border-radius: 999px;
  background: var(--dash-gold);
  color: #170b2d;
}
#overlay .mlab-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
#overlay .mlab-community-card {
  overflow: hidden;
}
#overlay .mlab-community-media {
  position: relative;
  aspect-ratio: 16 / 8;
  border-bottom: 1px solid var(--dash-line);
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 204, 77, 0.32), transparent 24%),
    linear-gradient(135deg, rgba(123, 59, 255, 0.68), rgba(10, 7, 27, 0.96));
}
#overlay .mlab-community-card.is-plus .mlab-community-media {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 204, 77, 0.34), transparent 24%),
    linear-gradient(135deg, rgba(115, 246, 255, 0.24), rgba(62, 35, 138, 0.72), rgba(10, 7, 27, 0.96));
}
#overlay .mlab-community-media span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}
#overlay .mlab-community-body {
  padding: 14px;
}
#overlay .mlab .odash-card-meta {
  color: var(--dash-gold-soft);
}
#overlay .mlab .odash-action {
  border-color: rgba(255, 204, 77, 0.42);
  color: var(--dash-gold-soft);
}
#overlay .mlab .odash-action.is-disabled {
  opacity: 0.58;
}
#overlay .mlab-cinema {
  --mlab-pink: #ff5db1;
  --mlab-purple: #9c62ff;
  --mlab-cyan: #60e7ff;
  --mlab-green: #68ffa5;
  --mlab-yellow: #ffd75e;
  --mlab-orange: #ff8267;
}
#overlay .mlab-cinema .mlab-head {
  max-width: 820px;
  margin-bottom: 20px;
}
#overlay .mlab-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.78fr);
  gap: 12px;
}
#overlay .mlab-featured {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 54%, rgba(156, 98, 255, 0.92) 0 7%, transparent 8%),
    radial-gradient(circle at 75% 54%, rgba(156, 98, 255, 0.32), transparent 27%),
    linear-gradient(112deg, rgba(12, 8, 28, 0.98), rgba(63, 29, 100, 0.92) 64%, rgba(8, 7, 18, 0.98));
  background-position: center;
  background-size: cover;
  text-decoration: none;
}
#overlay .mlab-featured::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -38%;
  width: 44%;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 62px rgba(156, 98, 255, 0.28);
}
#overlay .mlab-featured.has-image::before {
  display: none;
}
#overlay .mlab-featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 5, 17, 0.9), rgba(6, 5, 17, 0.28) 67%, rgba(6, 5, 17, 0.1));
}
#overlay .mlab-featured-copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 96px;
  bottom: 24px;
  max-width: 590px;
}
#overlay .mlab-featured-copy > span {
  display: block;
  color: var(--dash-gold-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#overlay .mlab-featured-copy strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display-font);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.04;
  text-transform: uppercase;
}
#overlay .mlab-featured-copy small {
  display: block;
  max-width: 58ch;
  margin-top: 9px;
  color: #cbc5d9;
  font-size: 11.5px;
  line-height: 1.45;
}
#overlay .mlab-play {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #130822;
  background: #fff;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.34);
  font-size: 18px;
  transform: scale(1);
  transition: transform 160ms ease;
}
#overlay .mlab-featured:hover .mlab-play,
#overlay .mlab-featured:focus-visible .mlab-play {
  transform: scale(1.08);
}
#overlay .mlab-up-next {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 15px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(123, 59, 255, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(8, 6, 24, 0.74);
}
#overlay .mlab-queue {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
#overlay .mlab-queue-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
#overlay .mlab-queue-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 30%, rgba(115, 246, 255, 0.44), transparent 28%),
    linear-gradient(140deg, #272043, #0a0812);
  background-position: center;
  background-size: cover;
}
#overlay .mlab-queue-copy {
  min-width: 0;
}
#overlay .mlab-queue-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#overlay .mlab-queue-copy small {
  display: block;
  margin-top: 5px;
  color: #8f8aa3;
  font-size: 8.5px;
}
#overlay .mlab-youtube-empty {
  display: grid;
  place-items: center;
  flex: 1;
  align-content: center;
  margin-top: 12px;
  padding: 22px 16px;
  border: 1px dashed rgba(255, 232, 168, 0.22);
  border-radius: 8px;
  text-align: center;
}
#overlay .mlab-youtube-empty strong {
  color: #fff;
  font-size: 12px;
}
#overlay .mlab-youtube-empty span {
  display: block;
  max-width: 26ch;
  margin-top: 7px;
  color: #9e98ad;
  font-size: 9.5px;
  line-height: 1.45;
}
#overlay .mlab-channel-link {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--dash-line);
  color: var(--dash-gold-soft);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
#overlay .mlab-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
#overlay .mlab-section-head h4 {
  margin-top: 6px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}
#overlay .mlab-section-head > span {
  color: #9992a8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#overlay .mlab-series-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(138px, 18%, 156px);
  grid-template-columns: none;
  gap: 9px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
#overlay .mlab-series-card {
  min-width: 0;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: rgba(8, 6, 18, 0.72);
  overflow: hidden;
  scroll-snap-align: start;
}
#overlay .mlab-series-card summary {
  cursor: pointer;
  list-style: none;
}
#overlay .mlab-series-card summary::-webkit-details-marker {
  display: none;
}
#overlay .mlab-series-poster {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 13px;
  background:
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--mlab-tone, var(--mlab-purple)) 72%, #fff) 0 6%, transparent 7%),
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--mlab-tone, var(--mlab-purple)) 35%, transparent), transparent 25%),
    linear-gradient(145deg, color-mix(in srgb, var(--mlab-tone, var(--mlab-purple)) 28%, #21172c), #0c0912 70%);
  background-position: center;
  background-size: cover;
}
#overlay .mlab-series-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(6, 5, 14, 0.9));
}
#overlay .mlab-series-card.is-tone-1 { --mlab-tone: var(--mlab-pink); }
#overlay .mlab-series-card.is-tone-2 { --mlab-tone: var(--mlab-cyan); }
#overlay .mlab-series-card.is-tone-3 { --mlab-tone: var(--mlab-yellow); }
#overlay .mlab-series-card.is-tone-4 { --mlab-tone: var(--mlab-purple); }
#overlay .mlab-series-card.is-tone-5 { --mlab-tone: var(--mlab-green); }
#overlay .mlab-series-card.is-tone-6 { --mlab-tone: var(--mlab-orange); }
#overlay .mlab-series-poster > div {
  position: relative;
  z-index: 1;
}
#overlay .mlab-series-poster h4 {
  color: #fff;
  font-family: var(--display-font);
  font-size: 13px;
  line-height: 1.02;
  text-transform: uppercase;
}
#overlay .mlab-series-poster div > span {
  display: block;
  margin-top: 6px;
  color: #c4bdce;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#overlay .mlab-series-count {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--display-font);
  font-size: 9px;
}
#overlay .mlab-series-toggle {
  display: flex;
  justify-content: space-between;
  padding: 10px 11px;
  color: #c8c2d2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#overlay .mlab-series-toggle::after {
  content: "+";
  color: var(--dash-gold-soft);
}
#overlay .mlab-series-card[open] .mlab-series-toggle::after {
  content: "−";
}
#overlay .mlab-episode-gallery {
  display: grid;
  gap: 7px;
  padding: 0 10px 11px;
}
#overlay .mlab-episode-gallery > a,
#overlay .mlab-episode-empty {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}
#overlay .mlab-episode-gallery strong {
  font-size: 9px;
  line-height: 1.25;
}
#overlay .mlab-episode-gallery span {
  color: #8f8aa0;
  font-size: 7.5px;
  line-height: 1.35;
}
#overlay .mlab-episode-gallery p {
  margin: 2px 1px 0;
  color: #9690a2;
  font-size: 8px;
  line-height: 1.4;
}
#overlay .mlab-tier-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
#overlay .mlab-tier-head strong {
  color: var(--dash-gold-soft);
  font-family: var(--display-font);
  font-size: 11px;
  letter-spacing: 0.08em;
}
#overlay .mlab-tier-head span {
  color: #8f899d;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#overlay .mlab-tier-head.is-plus strong {
  color: #ff82c3;
}
#overlay .mlab-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 9px;
}
#overlay .mlab-module-grid.is-plus {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#overlay .mlab-module {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1fr);
  min-height: 118px;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  color: #fff;
  background: rgba(9, 7, 19, 0.72);
  text-decoration: none;
}
#overlay .mlab-module.is-plus {
  border-color: rgba(255, 93, 177, 0.28);
  background: linear-gradient(135deg, rgba(255, 93, 177, 0.09), rgba(123, 59, 255, 0.06));
}
#overlay .mlab-module-media {
  display: block;
  min-height: 118px;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 204, 77, 0.34), transparent 24%),
    linear-gradient(140deg, rgba(123, 59, 255, 0.72), rgba(10, 7, 27, 0.96));
  background-position: center;
  background-size: cover;
}
#overlay .mlab-module.is-plus .mlab-module-media {
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 93, 177, 0.4), transparent 24%),
    linear-gradient(140deg, rgba(123, 59, 255, 0.72), rgba(10, 7, 27, 0.96));
}
#overlay .mlab-module-body {
  display: grid;
  align-content: center;
  padding: 13px;
}
#overlay .mlab-module-body small {
  color: var(--dash-gold-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
#overlay .mlab-module.is-plus .mlab-module-body small {
  color: #ff8dc9;
}
#overlay .mlab-module-body strong {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.25;
}
#overlay .mlab-module-lock {
  width: fit-content;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 93, 177, 0.3);
  border-radius: 999px;
  color: #ff8dc9;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#overlay .mlab-join-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
#overlay .mlab-join-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 155px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 204, 77, 0.35);
  border-radius: 999px;
  color: var(--dash-gold-soft);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}
#overlay .mlab-join-row a.is-plus {
  border-color: rgba(255, 93, 177, 0.3);
  color: #ff8dc9;
}
#overlay .odash.is-movie-theater {
  --dash-accent: #ffcf87;
  --dash-accent-2: #ff7a3c;
  --dash-soft: rgba(255, 207, 135, 0.13);
  --dash-line: rgba(255, 207, 135, 0.28);
}
#overlay .odash.is-dance-studio {
  --dash-accent: #ff9edf;
  --dash-accent-2: #e23bb0;
  --dash-soft: rgba(255, 158, 223, 0.12);
  --dash-line: rgba(255, 158, 223, 0.28);
}
#overlay .odash.is-shluv-family {
  --dash-accent: #ffe0a8;
  --dash-accent-2: #ff9e6b;
  --dash-soft: rgba(255, 224, 168, 0.12);
  --dash-line: rgba(255, 224, 168, 0.28);
}
#overlay .odash.is-candy-line,
#overlay .odash.is-saigon-bonbon {
  --dash-accent: #ff9ecf;
  --dash-accent-2: #ff4f9a;
  --dash-soft: rgba(255, 158, 207, 0.12);
  --dash-line: rgba(255, 158, 207, 0.28);
}
#overlay .odash.is-numyth-studios {
  --dash-accent: #7d8cff;
  --dash-accent-2: #5c6cff;
  --dash-soft: rgba(125, 140, 255, 0.12);
  --dash-line: rgba(125, 140, 255, 0.28);
}
#overlay .odash.is-museum {
  --dash-accent: #dfe3ff;
  --dash-accent-2: #9aa0c9;
  --dash-soft: rgba(223, 227, 255, 0.11);
  --dash-line: rgba(223, 227, 255, 0.24);
}
#overlay .odash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
#overlay .odash-kicker,
#overlay .odash-eyebrow {
  font-family: var(--display-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dash-accent);
}
#overlay .odash-head h3,
#overlay .odash-section h3 {
  font-family: var(--display-font);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
#overlay .odash-head h3 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  margin-top: 8px;
}
#overlay .odash-head p,
#overlay .odash-section-copy,
#overlay .odash-card p,
#overlay .odash-poster p,
#overlay .odash-shop-card p,
#overlay .odash-step p,
#overlay .odash-feed-item p,
#overlay .odash-timeline-item p {
  color: #b9bee7;
  font-size: 13.5px;
  line-height: 1.6;
}
#overlay .odash-head p {
  max-width: 62ch;
  margin-top: 12px;
}
#overlay .odash-stats {
  display: flex;
  gap: 10px;
  flex: none;
}
#overlay .odash-stat {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background: var(--dash-soft);
}
#overlay .odash-stat strong,
#overlay .odash-stat span {
  display: block;
}
#overlay .odash-stat strong {
  color: #fff;
  font-family: var(--display-font);
  font-size: 16px;
  line-height: 1;
}
#overlay .odash-stat span {
  color: var(--muted);
  font-size: 10.5px;
  margin-top: 5px;
}
#overlay .odash-section {
  margin-top: 34px;
}
#overlay .odash-section:first-of-type {
  margin-top: 0;
}
#overlay .odash-section h3 {
  font-size: 17px;
  margin-top: 8px;
}
#overlay .odash-section-copy {
  max-width: 64ch;
  margin-top: 8px;
}
#overlay .odash-card-grid,
#overlay .odash-poster-grid,
#overlay .odash-shop-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#overlay .odash-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#overlay .odash-poster-grid,
#overlay .odash-shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .odash-card,
#overlay .odash-poster,
#overlay .odash-shop-card,
#overlay .odash-step,
#overlay .odash-feed-item,
#overlay .odash-timeline-item {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--dash-soft), rgba(255, 255, 255, 0.025)),
    rgba(6, 7, 18, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#overlay .odash-card,
#overlay .odash-poster,
#overlay .odash-shop-card {
  padding: 15px;
  min-height: 168px;
}
#overlay .odash-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--dash-line);
  border-radius: 7px;
  object-fit: cover;
  margin-bottom: 13px;
}
#overlay .odash-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
#overlay .odash-card h4,
#overlay .odash-poster h4,
#overlay .odash-shop-card h4,
#overlay .odash-step h4,
#overlay .odash-feed-item h4,
#overlay .odash-timeline-item h4 {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}
#overlay .odash-card-meta {
  color: var(--dash-accent);
  font-size: 11px;
  font-weight: 700;
  margin: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#overlay .odash-status {
  flex: none;
  color: var(--dash-accent);
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
#overlay .odash-card-actions {
  margin-top: 14px;
}
#overlay .odash-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
#overlay .odash-action span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
#overlay .odash-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  color: #fff;
}
#overlay .odash-action.is-primary span {
  color: rgba(255, 255, 255, 0.7);
}
#overlay .odash-action.is-disabled {
  opacity: 0.48;
  cursor: default;
}
#overlay .odash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
#overlay .odash-tags span {
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dfe3ff;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}
#overlay .odash-poster-art,
#overlay .theater-poster,
#overlay .mlab-card-media,
#overlay .bonbon-product-media,
#overlay .bonbon-story-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--dash-accent) 36%, transparent), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--dash-accent-2) 74%, #000), rgba(8, 9, 28, 0.96));
  background-position: center;
  background-size: cover;
}
#overlay .odash-poster-art::after,
#overlay .theater-poster::after,
#overlay .mlab-card-media::after,
#overlay .bonbon-product-media::after,
#overlay .bonbon-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}
#overlay .odash-poster-art.has-image::after,
#overlay .theater-poster.has-image::after,
#overlay .mlab-card-media.has-image::after,
#overlay .bonbon-product-media.has-image::after,
#overlay .bonbon-story-media.has-image::after {
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.34));
}
#overlay .odash-poster-art span,
#overlay .theater-poster span,
#overlay .mlab-card-media span,
#overlay .bonbon-product-media span,
#overlay .bonbon-story-media span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
#overlay .theater-nav {
  position: sticky;
  top: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -8px 0 24px;
  padding: 8px 0 10px;
  background: linear-gradient(90deg, rgba(6, 7, 18, 0.9), transparent);
  scrollbar-width: none;
}
#overlay .theater-nav::-webkit-scrollbar {
  display: none;
}
#overlay .theater-nav a {
  flex: none;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #f5dfc4;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
#overlay .theater-nav a:first-child {
  border-color: rgba(255, 207, 135, 0.7);
  color: #211507;
  background: linear-gradient(135deg, #ffe0a8, #ffbd57);
}
#overlay .theater-feature {
  scroll-margin-top: 82px;
  margin-bottom: 28px;
}
#overlay .theater-card {
  min-width: 230px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--dash-soft), rgba(255, 255, 255, 0.025)),
    rgba(8, 6, 16, 0.62);
  overflow: hidden;
}
#overlay .theater-card.is-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  min-width: 0;
  min-height: 310px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 122, 60, 0.14), transparent 36%),
    linear-gradient(120deg, rgba(255, 207, 135, 0.12), rgba(8, 6, 16, 0.9) 55%);
}
#overlay .theater-poster {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
}
#overlay .theater-poster.is-feature {
  min-height: 0;
}
#overlay .theater-card.is-featured .theater-media-link {
  order: 2;
  margin: 18px;
  border: 1px solid rgba(255, 207, 135, 0.35);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}
#overlay .theater-media-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}
#overlay .theater-play-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 4, 12, 0.68);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  transition:
    transform 160ms ease,
    background 160ms ease;
}
#overlay .theater-media-link:hover .theater-play-glyph {
  background: rgba(255, 122, 60, 0.86);
  transform: translate(-50%, -50%) scale(1.08);
}
#overlay .theater-card-body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
}
#overlay .theater-card.is-featured .theater-card-body {
  order: 1;
  padding: clamp(24px, 4vw, 50px);
}
#overlay .theater-card h4 {
  color: #fff;
  font-size: 14px;
  line-height: 1.22;
}
#overlay .theater-card.is-featured h4 {
  font-family: var(--display-font);
  font-size: clamp(20px, 2.6vw, 31px);
  line-height: 1.03;
  text-transform: uppercase;
}
#overlay .theater-card p {
  color: #cfc7bf;
  font-size: 13px;
  line-height: 1.5;
}
#overlay .theater-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
#overlay .theater-section-head p {
  max-width: 58ch;
  margin-top: 6px;
  color: #9da3ca;
  font-size: 12px;
  line-height: 1.5;
}
#overlay .theater-shelf,
#overlay .theater-channels,
#overlay .theater-channel-room {
  scroll-margin-top: 82px;
}
#overlay .theater-shelf {
  margin-top: 30px;
}
#overlay .theater-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 31%);
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 0 4px 8px 0;
  scroll-snap-type: x proximity;
}
#overlay .theater-row .theater-card {
  scroll-snap-align: start;
}
#overlay .theater-channels {
  margin-top: 34px;
}
#overlay .theater-channel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 27%);
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 0 4px 8px 0;
  scroll-snap-type: x proximity;
}
#overlay .theater-channel-card {
  position: relative;
  display: grid;
  min-height: 190px;
  border: 1px solid var(--dash-line);
  border-radius: 9px;
  color: inherit;
  background: rgba(8, 6, 16, 0.78);
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
}
#overlay .theater-channel-art {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background-position: center;
  background-size: cover;
}
#overlay .theater-channel-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 5, 14, 0.04), rgba(6, 5, 14, 0.92));
}
#overlay .theater-channel-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: end;
  gap: 4px;
  padding: 18px;
}
#overlay .theater-channel-copy strong {
  color: #fff;
  font-family: var(--display-font);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
#overlay .theater-channel-copy > span:last-child {
  display: -webkit-box;
  color: #c6c9e5;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#overlay .theater-channel-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 207, 135, 0.48);
  border-radius: 50%;
  color: var(--dash-accent);
  background: rgba(5, 4, 12, 0.7);
}
#overlay .theater-channel-card:hover {
  border-color: rgba(255, 207, 135, 0.72);
  transform: translateY(-2px);
}
#overlay .theater-channel-room {
  display: none;
  margin-top: 34px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 122, 60, 0.1), transparent 30%),
    rgba(8, 6, 16, 0.74);
}
#overlay .theater-channel-room:target {
  display: block;
  animation: theater-room-in 220ms ease both;
}
#overlay .theater-channel-back {
  color: var(--dash-accent);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
#overlay .theater-channel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}
#overlay .theater-channel-head h3 {
  margin-top: 7px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(24px, 3vw, 36px);
  text-transform: uppercase;
}
#overlay .theater-channel-head p {
  max-width: 62ch;
  margin-top: 8px;
  color: #b9bee7;
  font-size: 13px;
  line-height: 1.55;
}
#overlay .theater-channel-head .odash-card-actions {
  flex: none;
  margin-top: 0;
}
#overlay .theater-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
#overlay .theater-channel-grid .theater-card {
  min-width: 0;
}
#overlay .theater-channel-empty {
  margin-top: 20px;
  padding: 22px;
  border: 1px dashed var(--dash-line);
  border-radius: 8px;
  color: #9da3ca;
  font-size: 12px;
}
@keyframes theater-room-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#overlay .mlab-goals,
#overlay .mlab-card-grid,
#overlay .mlab-resource-grid,
#overlay .bonbon-product-grid,
#overlay .bonbon-story-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#overlay .mlab-goals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .mlab-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .mlab-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#overlay .mlab-goal {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 59, 255, 0.18), rgba(255, 204, 77, 0.05)),
    rgba(8, 6, 24, 0.72);
  padding: 14px;
}
#overlay .mlab-goal > strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #170b2d;
  background: linear-gradient(135deg, var(--dash-gold), var(--dash-gold-soft));
  font-family: var(--display-font);
  font-size: 12px;
}
#overlay .mlab-goal h4,
#overlay .mlab-card h4,
#overlay .bonbon-product h4,
#overlay .bonbon-story h4 {
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}
#overlay .mlab-card {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(123, 59, 255, 0.18), rgba(255, 204, 77, 0.05)),
    rgba(8, 6, 24, 0.72);
  overflow: hidden;
}
#overlay .mlab-card-media {
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
}
#overlay .mlab-card.is-compact .mlab-card-media {
  aspect-ratio: 4 / 3;
}
#overlay .mlab-card-body {
  padding: 14px;
}
#overlay .bonbon-story-grid {
  grid-template-columns: 1fr;
}
#overlay .bonbon-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 79, 154, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(12, 6, 18, 0.64);
  padding: 14px;
}
#overlay .bonbon-story-media {
  aspect-ratio: 16 / 10;
}
#overlay .bonbon-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .bonbon-product {
  display: grid;
  grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 79, 154, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(12, 6, 18, 0.64);
  padding: 12px;
}
#overlay .bonbon-product-media {
  aspect-ratio: 1;
  align-self: start;
}
#overlay .bonbon-product-body {
  display: grid;
  align-content: start;
  gap: 10px;
}
#overlay .bonbon-product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
#overlay .bonbon-product-top span {
  flex: none;
  color: var(--dash-accent);
  font-size: 12px;
  font-weight: 850;
}
#overlay .bonbon-product ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #ffe7f3;
  font-size: 12.5px;
}
#overlay .dance-grid,
#overlay .family-profile-grid,
#overlay .family-story-grid,
#overlay .studio-grid,
#overlay .studio-capability-grid,
#overlay .museum-era-intros {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#overlay .dance-grid,
#overlay .studio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .family-profile-grid,
#overlay .studio-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#overlay .dance-project,
#overlay .dance-card,
#overlay .family-profile,
#overlay .family-story,
#overlay .studio-project,
#overlay .studio-capability {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--dash-soft), rgba(255, 255, 255, 0.025)),
    rgba(6, 7, 18, 0.42);
  overflow: hidden;
}
#overlay .dance-project.is-featured,
#overlay .studio-project.is-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  align-items: stretch;
}
#overlay .dance-project-media,
#overlay .dance-card-media,
#overlay .family-profile-photo,
#overlay .studio-project-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--dash-accent) 36%, transparent), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--dash-accent-2) 74%, #000), rgba(8, 9, 28, 0.96));
  background-position: center;
  background-size: cover;
}
#overlay .dance-project-media::after,
#overlay .dance-card-media::after,
#overlay .family-profile-photo::after,
#overlay .studio-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.36));
}
#overlay .dance-project-media span,
#overlay .dance-card-media span,
#overlay .family-profile-photo span,
#overlay .studio-project-media span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
#overlay .dance-project-media,
#overlay .dance-card-media,
#overlay .studio-project-media {
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  border-radius: 0;
}
#overlay .dance-project-media.is-feature,
#overlay .studio-project-media.is-feature {
  min-height: 280px;
}
#overlay .dance-project-body,
#overlay .dance-card-body,
#overlay .studio-project-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
}
#overlay .dance-project.is-featured h4,
#overlay .studio-project.is-featured h4 {
  font-family: var(--display-font);
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.04;
  text-transform: uppercase;
}
#overlay .dance-project h4,
#overlay .dance-card h4,
#overlay .family-profile h4,
#overlay .family-story h4,
#overlay .studio-project h4,
#overlay .studio-capability h4,
#overlay .museum-artifact h4 {
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}
#overlay .dance-related {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}
#overlay .dance-related span {
  color: #ffe1f4;
  font-size: 12px;
}
#overlay .family-profile {
  padding: 14px;
}
#overlay .family-profile-photo {
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
  border-radius: 50%;
}
#overlay .family-profile-photo::after {
  border-radius: 50%;
}
#overlay .family-story,
#overlay .studio-capability {
  padding: 16px;
}
#overlay .family-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .family-timeline,
#overlay .museum-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#overlay .family-timeline::before,
#overlay .museum-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--dash-line), transparent);
}
#overlay .studio-project-media.has-image,
#overlay .dance-project-media.has-image,
#overlay .dance-card-media.has-image,
#overlay .family-profile-photo.has-image {
  background-size: cover;
}
#overlay .museum-era-intros {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#overlay .museum-artifact {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}
#overlay .museum-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: var(--dash-accent);
  box-shadow: 0 0 0 5px var(--dash-soft);
}
#overlay .museum-artifact-body {
  border: 1px solid var(--dash-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--dash-soft), rgba(255, 255, 255, 0.025)),
    rgba(6, 7, 18, 0.42);
  padding: 14px 15px;
}
#overlay .museum-artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}
#overlay .museum-artifact-meta span {
  color: var(--dash-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#overlay .odash-poster-frame {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin-bottom: 14px;
  border-radius: 7px;
  border: 1px solid var(--dash-line);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.2), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
    linear-gradient(145deg, var(--dash-accent-2), rgba(255, 255, 255, 0.08));
}
#overlay .odash-poster-frame span,
#overlay .odash-shop-pack,
#overlay .odash-step-number {
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#overlay .odash-shop-pack {
  display: inline-flex;
  color: #fff;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  margin-bottom: 16px;
}
#overlay .odash-shop-card ul {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding-left: 17px;
  color: #dfe3ff;
  font-size: 12.5px;
}
#overlay .odash-path,
#overlay .odash-feed,
#overlay .odash-timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
#overlay .odash-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}
#overlay .odash-step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--dash-accent-2), var(--dash-accent));
}
#overlay .odash-feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}
#overlay .odash-feed-item h4 {
  margin: 3px 0 5px;
}
#overlay .odash-timeline {
  position: relative;
}
#overlay .odash-timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--dash-line), transparent);
}
#overlay .odash-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px 14px 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
#overlay .odash-timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: 7px auto 0;
  border-radius: 50%;
  background: var(--dash-accent);
  box-shadow: 0 0 0 5px var(--dash-soft);
}

@media (max-width: 640px) {
  #overlay h2 {
    font-size: 26px;
  }
  #overlay .astore-app summary {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  #overlay .astore-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }
  #overlay .astore-status {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    min-height: 28px;
    margin-top: -4px;
  }
  #overlay .astore-detail {
    padding-left: 14px;
  }
  #overlay .astore-preview-strip {
    grid-auto-columns: minmax(118px, 54%);
  }
}

@media (max-width: 1160px) {
  #overlay .odash-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #overlay .odash-poster-grid,
  #overlay .odash-shop-grid {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-feature-grid {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #overlay .mlab-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #overlay .family-profile-grid,
  #overlay .studio-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #overlay .bonbon-product-grid {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-media-card.is-youtube-feature {
    min-height: 220px;
  }
}

/* below this width the 1/4 rail has no room next to a 3/4 info column —
   collapse to the same order mobile already used before .osplit existed:
   rail (hero + summary/body/actions) on top, other information below it */
@media (max-width: 860px) {
  #overlay .osplit {
    display: block;
    padding: 3vh 22px 12vh;
  }
  #overlay .osplit .oinner {
    display: block;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }
  #overlay .osplit .oinner .ohero {
    width: min(480px, 90vw);
    height: auto;
    aspect-ratio: auto;
  }
  #overlay .oinfo {
    max-width: 680px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
  }
  #overlay .oinfo .otxt {
    margin: 0 auto 24px;
  }
  #overlay .oinfo .oact {
    justify-content: center;
  }
  #overlay .odash {
    margin-top: 30px;
    padding-top: 24px;
    text-align: left;
  }
  #overlay .odash-head {
    display: block;
  }
  #overlay .odash-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }
  #overlay .odash-card-grid,
  #overlay .odash-poster-grid,
  #overlay .odash-shop-grid {
    grid-template-columns: 1fr;
  }
  #overlay .odash-card,
  #overlay .odash-poster,
  #overlay .odash-shop-card {
    min-height: 0;
  }
  #overlay .odash-feed-item {
    display: block;
  }
  #overlay .odash-feed-item .odash-status {
    display: inline-flex;
    margin-top: 10px;
  }
  #overlay .mlab {
    text-align: left;
  }
  #overlay .mlab-head h3 {
    font-size: 24px;
  }
  #overlay .mlab-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #overlay .mlab-flow-card {
    min-height: 96px;
    padding: 10px;
  }
  #overlay .mlab-flow-card strong {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  #overlay .mlab-flow-card h4 {
    margin-top: 9px;
    font-size: 12px;
  }
  #overlay .mlab-flow-card p {
    font-size: 10.5px;
    line-height: 1.35;
  }
  #overlay .mlab-short-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #overlay .mlab-media-card.is-short {
    min-height: 0;
  }
  #overlay .mlab-media-card.is-youtube-feature {
    min-height: 0;
    margin-top: 10px;
  }
  #overlay .mlab-media-label {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px;
  }
  #overlay .mlab-media-label h4 {
    font-size: 11px;
  }
  #overlay .mlab-media-card.is-youtube-feature .mlab-media-label h4 {
    font-size: 15px;
  }
  #overlay .mlab-youtube-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px;
  }
  #overlay .mlab-subscribe {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px;
  }
  #overlay .mlab-subscribe h4 {
    font-size: 15px;
  }
  #overlay .mlab-subscribe .odash-action {
    width: 100%;
  }
  #overlay .mlab-community-grid {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-community-media {
    aspect-ratio: 16 / 7;
  }
  #overlay .mlab-player-layout {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-featured {
    min-height: 0;
  }
  #overlay .mlab-up-next {
    min-height: 0;
  }
  #overlay .mlab-queue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #overlay .mlab-series-strip {
    grid-auto-columns: minmax(150px, 46%);
  }
  #overlay .mlab-module-grid,
  #overlay .mlab-module-grid.is-plus {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-module {
    grid-template-columns: minmax(125px, 0.75fr) minmax(0, 1fr);
  }
  #overlay .mlab-section-head {
    display: block;
  }
  #overlay .mlab-section-head > span {
    display: block;
    margin-top: 7px;
  }
  #overlay .odash-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }
  #overlay .theater-card.is-featured,
  #overlay .bonbon-story,
  #overlay .bonbon-product,
  #overlay .dance-project.is-featured,
  #overlay .studio-project.is-featured {
    grid-template-columns: 1fr;
  }
  #overlay .theater-poster.is-feature {
    min-height: 0;
  }
  #overlay .theater-card.is-featured {
    min-height: 0;
  }
  #overlay .theater-card.is-featured .theater-media-link {
    order: 1;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }
  #overlay .theater-card.is-featured .theater-card-body {
    order: 2;
    padding: 20px;
  }
  #overlay .theater-row {
    grid-auto-columns: minmax(220px, 78%);
  }
  #overlay .theater-channel-row {
    grid-auto-columns: minmax(220px, 82%);
  }
  #overlay .theater-channel-head {
    display: block;
  }
  #overlay .theater-channel-head .odash-card-actions {
    margin-top: 16px;
  }
  #overlay .theater-channel-grid {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-goals,
  #overlay .mlab-card-grid,
  #overlay .mlab-resource-grid {
    grid-template-columns: 1fr;
  }
  #overlay .bonbon-product-media {
    max-width: 220px;
  }
  #overlay .dance-grid,
  #overlay .family-profile-grid,
  #overlay .family-story-grid,
  #overlay .studio-grid,
  #overlay .studio-capability-grid,
  #overlay .museum-era-intros {
    grid-template-columns: 1fr;
  }
  #overlay .dance-project-media.is-feature,
  #overlay .studio-project-media.is-feature {
    min-height: 0;
  }
}

/* guide — a Pokemon-style bottom dialogue box */
#guide {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* below #overlay (80) so an open world overlay always takes full focus
     instead of the guide dialogue overlapping its content */
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
  pointer-events: none;
}
.guide-box {
  pointer-events: auto;
  width: min(560px, 100%);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.85, 0.2, 1),
    opacity 0.35s ease;
}
#guide.is-open .guide-box {
  transform: translateY(0);
  opacity: 1;
}
body.world-open #guide,
body.world-open #guide-tab {
  display: none;
}
.guide-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #7b5bff, #c02c8a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.guide-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-main {
  position: relative;
  flex: 1;
  min-width: 0;
}
.guide-name {
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 5px;
}
.guide-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 2.4em;
}
.guide-next {
  position: absolute;
  right: 0;
  bottom: -2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  opacity: 0;
}
.guide-next.is-done {
  opacity: 1;
  animation: guideBounce 1s ease-in-out infinite;
}
@keyframes guideBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
.guide-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.guide-choices[hidden] {
  display: none;
}
.guide-choice {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.guide-choice:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.guide-choice:active {
  transform: translateY(0);
}
.guide-choice.is-primary {
  color: #fff;
  background: linear-gradient(135deg, #7b5bff, #c02c8a);
  border-color: transparent;
  box-shadow:
    0 4px 16px rgba(123, 91, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.guide-choice.is-primary:hover {
  border-color: transparent;
  box-shadow:
    0 6px 20px rgba(123, 91, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

#guide-tab {
  pointer-events: auto;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 71;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
  animation: guidePulse 2.6s ease-in-out infinite;
}
#guide-tab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes guidePulse {
  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 0 0 rgba(123, 91, 255, 0.5);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 0 8px rgba(123, 91, 255, 0);
  }
}

@media (max-width: 640px) {
  #overlay .mlab-featured {
    min-height: 0;
  }
  #overlay .mlab-featured-copy {
    left: 16px;
    right: 72px;
    bottom: 16px;
  }
  #overlay .mlab-featured-copy strong {
    font-size: 20px;
  }
  #overlay .mlab-featured-copy small {
    font-size: 10px;
  }
  #overlay .mlab-play {
    right: 16px;
    bottom: 17px;
    width: 44px;
    height: 44px;
  }
  #overlay .mlab-queue {
    grid-template-columns: 1fr;
  }
  #overlay .mlab-module {
    grid-template-columns: 108px minmax(0, 1fr);
  }
  #overlay .mlab-module-media {
    min-height: 105px;
  }
  #guide {
    /* sits noticeably higher on mobile — clear of thumb/home-indicator area */
    padding-bottom: 64px;
  }
  .guide-box {
    border-radius: 18px;
  }
}
