.v2-command-room {
  position: relative;
  isolation: isolate;
  min-height: clamp(700px, calc(100svh - 68px), 980px);
  overflow: hidden;
  color: #f7ead1;
  background:
    linear-gradient(180deg, rgba(1, 3, 5, .16), rgba(1, 2, 3, .06) 55%, rgba(0, 0, 0, .18)),
    #030405 url('/v2-review/command-room-scene.webp') center / cover no-repeat;
}

.v2-command-room[hidden] { display: none; }

.universe-hub > .universe-heading { display: none; }
.universe-hub .v2-command-room { animation: v2-universe-arrival .72s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes v2-universe-arrival {
  from { opacity: .72; filter: blur(3px); transform: scale(1.012); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

.v2-command-room::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 3, 5, .12) 0%, transparent 22%, transparent 70%, rgba(0, 0, 0, .25) 100%),
    radial-gradient(ellipse 72% 62% at 50% 43%, transparent 45%, rgba(0, 0, 0, .22) 100%);
}

.v2-command-room-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, .42);
}

.v2-command-room-heading {
  position: absolute;
  z-index: 4;
  top: clamp(24px, 4.5vh, 48px);
  left: 50%;
  width: min(720px, calc(100% - 40px));
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 2px 24px #000, 0 0 42px #000;
}

.v2-command-room-heading .eyebrow {
  margin: 0 0 7px;
  color: #e4c487;
  font-size: 9px;
  letter-spacing: .3em;
}

.v2-command-room-heading h2 {
  margin: 0;
  color: #fff1d4;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 300;
  letter-spacing: .055em;
}

.v2-command-room-heading > p:last-child {
  max-width: 620px;
  margin: 7px auto 0;
  color: rgba(239, 228, 207, .72);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 300;
  letter-spacing: .025em;
  line-height: 1.5;
}

.v2-command-worlds {
  position: absolute;
  z-index: 3;
  top: clamp(128px, 15vh, 170px);
  left: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2px, 1.2vw, 22px);
  width: min(1440px, 96vw);
  transform: translateX(-50%);
}

.v2-command-worlds[data-world-count="1"] { justify-content: center; }
.v2-command-worlds[data-world-count="2"] { gap: clamp(48px, 9vw, 150px); }
.v2-command-worlds[data-world-count="3"] {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(250px, 1.08fr) minmax(210px, .9fr);
  align-items: center;
  gap: clamp(0px, .8vw, 12px);
  width: min(1180px, 94vw);
}

.v2-command-world {
  --world: #dcb96e;
  position: relative;
  display: block;
  flex: 0 1 31%;
  width: min(31%, 430px);
  max-width: 430px;
  min-width: 240px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff0cf;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .58));
  transition: transform .5s cubic-bezier(.2, .75, .2, 1), filter .4s ease;
}

.v2-command-world-v2 { --world: #d7b761; }
.v2-command-world-founder { --world: #d96957; }

.v2-command-worlds[data-world-count="3"] .v2-command-world {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(1),
.v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(3) {
  z-index: 2;
  opacity: .8;
  transform: scale(.88);
  filter: brightness(.82) drop-shadow(0 22px 26px rgba(0, 0, 0, .54));
}

.v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(2) {
  z-index: 4;
  transform: translateY(-7px) scale(1.06);
  filter: brightness(1.04) drop-shadow(0 32px 38px rgba(0, 0, 0, .66));
}

.v2-command-orb {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  perspective: 900px;
  transition: transform .5s cubic-bezier(.2, .75, .2, 1), filter .4s ease;
}

.v2-command-orb-image {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  background: var(--world-image) center / contain no-repeat;
  animation: v2-command-orb-turn var(--world-spin, 42s) linear infinite;
}

.v2-command-orb-pedestal {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  background: var(--world-image) center / contain no-repeat;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0 75%, #000 81%);
  mask-image: linear-gradient(to bottom, transparent 0 75%, #000 81%);
  transition: opacity .35s ease;
}

.v2-command-orb-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
}

.v2-command-orb.has-3d .v2-command-orb-image { opacity: 0; }
.v2-command-orb.has-3d .v2-command-orb-pedestal { opacity: 1; }

.v2-command-orb-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.v2-command-orb::after {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid color-mix(in srgb, var(--world) 55%, transparent);
  border-radius: 50%;
  opacity: .18;
  pointer-events: none;
  animation: v2-command-orb-breathe 7s ease-in-out infinite;
}

.v2-command-world:nth-child(2) .v2-command-orb::after { animation-delay: -2.2s; }
.v2-command-world:nth-child(3) .v2-command-orb::after { animation-delay: -4.4s; }

@keyframes v2-command-orb-breathe {
  0%, 100% { opacity: .15; transform: scale(.985); box-shadow: 0 0 18px transparent; }
  50% { opacity: .48; transform: scale(1.015); box-shadow: 0 0 28px color-mix(in srgb, var(--world) 32%, transparent); }
}

.v2-command-world-demo { --world-image: url('/v2-review/command-demo-orb.webp'); --world-spin: 38s; }
.v2-command-world-v2 { --world-image: url('/v2-review/command-v2-orb.webp'); --world-spin: 44s; }
.v2-command-world-founder { --world-image: url('/v2-review/command-founder-orb.webp'); --world-spin: 50s; }
.v2-command-world-demo .v2-command-orb-image { animation-delay: -7s; }
.v2-command-world-v2 .v2-command-orb-image { animation-delay: -19s; }
.v2-command-world-founder .v2-command-orb-image { animation-delay: -31s; }
.v2-command-world-mark { display: none; }

@keyframes v2-command-orb-turn { to { transform: rotate(360deg); } }

.v2-command-world-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.v2-command-world-copy strong {
  margin-top: -2%;
  max-width: 72%;
  padding: 7px 12px;
  color: rgba(255, 239, 203, .9);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(14px, 1.4vw, 22px);
  font-weight: 300;
  letter-spacing: .15em;
  line-height: 1.25;
  text-shadow:
    0 1px 0 rgba(255, 244, 215, .25),
    0 2px 9px rgba(0, 0, 0, .94),
    0 0 13px color-mix(in srgb, var(--world) 28%, transparent);
  -webkit-text-stroke: .2px rgba(255, 232, 184, .3);
  mix-blend-mode: screen;
}

.v2-command-worlds[data-world-count="3"] .v2-command-world-copy strong {
  max-width: 78%;
  font-size: clamp(11px, 1.05vw, 16px);
  letter-spacing: .13em;
}

.v2-command-world-copy small,
.v2-command-world-copy > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.v2-command-world-copy em {
  position: absolute;
  left: 50%;
  bottom: 14%;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--world) 58%, transparent);
  border-radius: 999px;
  background: rgba(3, 4, 4, .64);
  color: #f8e8c5;
  font-size: 8px;
  font-style: normal;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .76;
  transform: translateX(-50%);
  transition: opacity .25s ease, border-color .25s ease, background .25s ease;
}

.v2-command-world:is(:hover, :focus-visible) {
  outline: none;
  z-index: 5;
  transform: translateY(-8px);
  filter: brightness(1.08) drop-shadow(0 32px 38px rgba(0, 0, 0, .65));
}

.v2-command-world:focus-visible::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 2px solid #ffe0a4;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(240, 190, 95, .55);
}

.v2-command-world:is(:hover, :focus-visible) .v2-command-orb {
  transform: scale(1.025);
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--world) 44%, transparent));
}

.v2-command-world:is(:hover, :focus-visible) .v2-command-world-copy em {
  opacity: 1;
  border-color: var(--world);
  background: rgba(3, 4, 4, .82);
}

.v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(1):is(:hover, :focus-visible),
.v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(3):is(:hover, :focus-visible) {
  opacity: .94;
  transform: translateY(-5px) scale(.91);
}

.v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(2):is(:hover, :focus-visible) {
  transform: translateY(-11px) scale(1.085);
}

.v2-command-console { display: none; }

.v2-command-boundary {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 18px;
  margin: 0;
  color: rgba(227, 216, 195, .68);
  font-size: 8px;
  letter-spacing: .15em;
  text-align: right;
  text-shadow: 0 1px 8px #000;
  text-transform: uppercase;
}

html[dir="rtl"] .v2-command-world-copy { direction: rtl; }

@media(max-width:900px) {
  .v2-command-room { min-height: calc(100svh - 58px); }
  .v2-command-room-heading { top: 24px; }
  .v2-command-room-heading > p:last-child { display: none; }
  .v2-command-worlds {
    top: 105px;
    left: 0;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 8px calc(50% - 150px) 28px;
    scroll-snap-type:x mandatory;
    scrollbar-width: none;
    transform: none;
  }
  .v2-command-worlds::-webkit-scrollbar { display: none; }
  .v2-command-world { flex: 0 0 300px; width: 300px; min-width: 300px; scroll-snap-align: center; }
  .v2-command-worlds[data-world-count="1"] { justify-content: center; padding-inline: 0; }
  .v2-command-worlds[data-world-count="3"] {
    top: 112px;
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.15fr) minmax(0, .8fr);
    gap: 2px;
    width: min(760px, 100%);
    overflow: visible;
    padding: 0 8px 24px;
    scroll-snap-type: none;
    transform: translateX(-50%);
  }
  .v2-command-worlds[data-world-count="3"] .v2-command-world { width: 100%; min-width: 0; }
  .v2-command-boundary { right: 14px; bottom: 12px; left: 14px; text-align: center; }
}

@media(max-width:520px) {
  .v2-command-room { min-height: calc(100svh - 52px); }
  .v2-command-room-heading { top: 18px; }
  .v2-command-room-heading h2 { font-size: 21px; }
  .v2-command-worlds { top: 90px; padding-inline: calc(50% - 132px); }
  .v2-command-world { flex-basis: 264px; width: 264px; min-width: 264px; }
  .v2-command-world-copy strong { font-size: 16px; letter-spacing: .13em; }
  .v2-command-world-copy em { bottom: 12%; }
  .v2-command-worlds[data-world-count="3"] {
    top: 108px;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.32fr) minmax(0, .72fr);
    gap: 0;
    padding-inline: 4px;
  }
  .v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(1),
  .v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(3) { transform: scale(.94); }
  .v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(2) { transform: translateY(-3px) scale(1.04); }
  .v2-command-worlds[data-world-count="3"] .v2-command-world-copy strong { max-width: 88%; font-size: clamp(7px, 2.15vw, 10px); letter-spacing: .09em; }
  .v2-command-worlds[data-world-count="3"] .v2-command-world:nth-child(2) .v2-command-world-copy strong { font-size: clamp(9px, 2.8vw, 12px); }
  .v2-command-worlds[data-world-count="3"] .v2-command-world-copy em { bottom: 9%; padding: 4px 6px; font-size: 6px; letter-spacing: .1em; }
  .v2-command-boundary { font-size: 7px; }
}

@media(hover:none) { .v2-command-world-copy em { opacity: .92; } }

@media(prefers-reduced-motion:reduce) {
  .universe-hub .v2-command-room { animation: none; }
  .v2-command-world,
  .v2-command-orb,
  .v2-command-orb-image,
  .v2-command-world-copy em { transition: none; }
  .v2-command-world:is(:hover, :focus-visible) { transform: none; }
  .v2-command-world:is(:hover, :focus-visible) .v2-command-orb { transform: none; }
  .v2-command-orb-image { animation: none; }
  .v2-command-orb::after { animation: none; }
}
