.world-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #07101b;
  color: #e5eff8;
  overflow: hidden;
  box-sizing: border-box;
}
.world-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.world-dialog::backdrop {
  background: #04080e;
}
.world-dialog * {
  box-sizing: border-box;
}
.world-header {
  position: relative;
  inset: auto;
  z-index: 2;
  min-height: 78px;
  padding: 13px 22px;
  border-bottom: 1px solid #41607577;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(110deg, #11272e, #15192c);
  box-shadow: 0 4px 24px #0004;
}
.world-brand {
  min-width: 0;
}
.world-header h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.world-kicker {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #99e9dd;
}
.world-header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.world-dialog button {
  border: 1px solid #47627a80;
  border-radius: 8px;
  background: #102130;
  color: #d5e7f1;
  cursor: pointer;
  font:
    13px Manrope,
    Arial,
    sans-serif;
  min-height: 38px;
  padding: 8px 12px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.world-dialog button:hover {
  background: #173744;
  border-color: #86dac6;
}
.world-dialog button:focus-visible {
  outline: 2px solid #a3e9d9;
  outline-offset: 2px;
}
.world-dialog button[aria-pressed='true'],
.world-dialog .world-primary {
  color: #c4ffed;
  background: #174238;
  border-color: #4b9b83;
}
.world-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  overflow: hidden;
}
.world-immersive .world-main {
  grid-template-columns: minmax(0, 1fr);
}
.world-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  background: #08131e;
}
.world-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}
.world-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.world-viewport canvas:active {
  cursor: grabbing;
}
.world-viewport canvas:focus-visible {
  outline: 2px solid #92e8d2;
  outline-offset: -3px;
}
.world-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #36506155;
  border-bottom: 1px solid #38536377;
  z-index: 1;
}
.world-metrics > div {
  padding: 12px 19px;
  background: #0c1a26;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.world-metrics small {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #94b3c4;
}
.world-metrics strong {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: #bbffeb;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.world-view-readout {
  position: absolute;
  left: 18px;
  bottom: 17px;
  padding: 7px 11px;
  background: #07121ab8;
  border: 1px solid #8bb8c440;
  border-radius: 7px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #def4f6;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.world-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  flex-wrap: wrap;
  background: #0b1924;
  border-top: 1px solid #3b546466;
}
.world-toolbar button {
  font-size: 12px;
  min-height: 35px;
  padding: 7px 11px;
}
.world-gesture {
  margin-left: auto;
  color: #88a5b6;
  font-size: 10px;
  line-height: 1.5;
}
.world-message {
  position: relative;
  margin: 0;
  padding: 9px 16px;
  border-left: 2px solid #ac8cda;
  background: #0b1420;
  color: #a9bed0;
  font-size: 11px;
  line-height: 1.55;
  max-height: 70px;
  overflow: auto;
}
.world-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #08121fef;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 15px;
  padding: 25px;
  text-align: center;
}
.world-loading[hidden] {
  display: none;
}
.world-controls {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 19px;
  border-left: 1px solid #355268;
  background: linear-gradient(150deg, #102231, #101628);
  font-size: 14px;
  scrollbar-width: thin;
  scrollbar-color: #426477 #101a29;
}
.world-controls input,
.world-controls select {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  background: #081624;
  color: #e2edf5;
  border: 1px solid #3e5b70;
  border-radius: 7px;
  font:
    13px Manrope,
    Arial,
    sans-serif;
}
.world-controls input[type='range'] {
  padding: 0;
  accent-color: #80e5c8;
  height: 22px;
  border: 0;
  background: transparent;
}
.world-controls > button {
  margin: 8px 0;
  width: 100%;
}
.world-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #b9d0df;
}
.world-range-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.world-range-label output {
  color: #b0f5d8;
  font-variant-numeric: tabular-nums;
}
.world-examples,
.world-search {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0;
}
.world-examples button,
.world-search button {
  font-size: 11px;
  padding: 6px 9px;
  min-height: 31px;
}
.world-search {
  max-height: 160px;
  overflow: auto;
}
.world-search:empty {
  display: none;
}
.world-note,
.world-small {
  font-size: 11px;
  line-height: 1.7;
  color: #8eacbf;
  margin: 15px 0;
}
.world-source {
  color: #9ce2dc;
  font-size: 12px;
}
.world-assumptions {
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid #3d566b77;
}
.world-assumptions summary {
  font-size: 12px;
  cursor: pointer;
  color: #c9b3f1;
}
.world-section-title {
  margin-top: 23px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #92dfce;
}
.world-moments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0;
}
.world-moments button {
  min-width: 0;
  padding: 7px 2px;
  font-size: 11px;
}
.world-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.world-toggles button {
  font-size: 11px;
  padding: 8px;
}
.world-launch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.world-launch button {
  padding: 22px;
  text-align: left;
  background: linear-gradient(120deg, #103e3d, #1b2141);
  border: 1px solid #5b8193;
  border-radius: 13px;
  font-size: 18px;
  line-height: 1.6;
  color: #d9fff8;
}
.world-launch small {
  display: block;
  color: #a8c6d7;
  font-size: 14px;
  margin-top: 8px;
}
.detail #familiarButton,
.detail #alienSkyButton {
  width: 100%;
  margin: 5px 0;
}
@media (max-width: 1000px) {
  .world-main {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .world-controls {
    padding: 14px;
  }
  .world-metrics > div {
    padding: 10px 12px;
  }
  .world-metrics strong {
    font-size: 18px;
  }
  .world-gesture {
    display: none;
  }
  .world-toolbar {
    padding: 8px;
  }
  .world-toolbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
}
@media (max-width: 700px) {
  .world-header {
    min-height: 66px;
    padding: 10px 12px;
    gap: 8px;
  }
  .world-header h2 {
    font-size: 17px;
  }
  .world-kicker {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .world-header-actions {
    gap: 5px;
  }
  .world-header-actions button {
    font-size: 10px;
    padding: 7px;
    max-width: 90px;
  }
  .world-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 1fr) minmax(0, 34%);
  }
  .world-immersive .world-main {
    grid-template-rows: minmax(0, 1fr);
  }
  .world-controls {
    border-left: 0;
    border-top: 1px solid #355268;
    padding: 14px 17px;
  }
  .world-metrics small {
    font-size: 9px;
  }
  .world-metrics strong {
    font-size: 16px;
  }
  .world-metrics > div {
    padding: 8px;
  }
  .world-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .world-toolbar button {
    flex-shrink: 0;
  }
  .world-message {
    font-size: 10px;
    max-height: 48px;
    padding: 7px 10px;
  }
  .world-launch {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 560px) and (min-width: 701px) {
  .world-header {
    min-height: 54px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .world-header h2 {
    font-size: 18px;
  }
  .world-metrics > div {
    padding: 5px 12px;
  }
  .world-message {
    max-height: 40px;
  }
  .world-toolbar {
    padding: 5px;
  }
}

@media (max-width: 700px) and (max-height: 560px) and (orientation: landscape) {
  .world-main {
    grid-template-columns: minmax(0, 1fr) 230px;
    grid-template-rows: minmax(0, 1fr);
  }
  .world-message {
    display: none;
  }
  .world-header {
    min-height: 52px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .world-metrics > div {
    padding: 4px 8px;
  }
  .world-immersive .world-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
