/* World Studio shares GPUHI's light surfaces and blue interaction palette. */
#view-world {
  --world-ink: #1e293b;
  --world-muted: #526175;
  --world-line: #dce4ef;
  --world-surface: #ffffff;
  --world-soft: #f5f8fc;
  --world-accent: #245bc5;
  --world-selected: #edf3ff;
  color: var(--world-ink);
}

#view-world :is(.dimension-panel, .map-combo, .genre-builder, .proc-builder,
  .gpuhi-floor, .social-live-panel, .gpuhi-playtest, .perf-panel,
  .control-panel, .editor-main) {
  background: var(--world-surface);
  color: var(--world-ink);
  border: 1px solid var(--world-line);
  border-radius: 14px;
  box-shadow: 0 4px 18px #233d6206;
}

#view-world :is(h1, h2, h3, .panel-title, .gpuhi-camera-head strong,
  .social-library-title, .social-game-rules-header h3) {
  color: var(--world-ink) !important;
}

#view-world :is(.dimension-panel-head p, .dimension-config label,
  .dimension-state p, .gpuhi-camera-head p, .gpuhi-camera-options label,
  .gpuhi-camera-status, .playtest-camera-field, .playtest-camera-status,
  .map-combo p, .map-combo label, .map-combo-preview small,
  .social-template-copy p, .social-template-caption, .panel-title small) {
  color: var(--world-muted);
}

#view-world :is(.dimension-panel .eyebrow, .dimension-icon,
  .map-combo-counter, .genre-builder-count) {
  color: var(--world-accent);
}

#view-world :is(.dimension-label, .gpuhi-camera-head > span,
  .proc-flag, .heading-flag) {
  background: var(--world-selected);
  color: var(--world-accent);
  border-color: #cbdaf5;
}

#view-world :is(.gpuhi-camera, .map-combo-preview, .design-image-gallery,
  .proc-controls, .sketch-panel, .collider-panel, .genre-current,
  .social-game-rules-panel, .social-bridge-panel, .social-live-aside) {
  background: var(--world-soft);
  color: var(--world-ink);
  border-color: var(--world-line);
  border-radius: 12px;
}

#view-world :is(.dimension-mode, .gpuhi-camera-item) {
  background: var(--world-soft);
  color: var(--world-ink);
  border-color: var(--world-line);
  box-shadow: none;
}

#view-world :is(.dimension-mode small, .dimension-phase,
  .gpuhi-camera-item small, .gpuhi-camera-item em) {
  color: var(--world-muted);
}

#view-world :is(.dimension-mode.is-selected, .gpuhi-camera-item[aria-pressed="true"],
  .genre-card.is-selected, .genre-card[aria-pressed="true"]) {
  background: var(--world-selected);
  border-color: var(--world-accent);
  box-shadow: inset 0 0 0 1px var(--world-accent);
}

#view-world .dimension-mode.is-selected { outline-color: var(--world-accent); }
#view-world .dimension-state #dimensionRewindStatus { color: var(--world-muted); }
#view-world .dimension-actions > label { color: var(--world-muted); }

#view-world :is(.dimension-ready .dimension-phase,
  .gpuhi-camera-item[aria-pressed="true"] strong) {
  color: var(--world-accent);
}

#view-world :is(.dimension-locked, .gpuhi-camera-item:disabled) {
  opacity: 1;
  background: #f1f4f8;
  border-style: dashed;
  color: #637186;
}

#view-world :is(input:not([type="checkbox"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea) {
  background: var(--world-surface) !important;
  color: var(--world-ink) !important;
  border-color: #cbd5e1 !important;
}

#view-world :is(.ghost-btn, .outline-btn, .design-image-tabs button) {
  background: var(--world-surface) !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

#view-world :is(.primary-btn, .design-image-tabs button[aria-pressed="true"]) {
  background: var(--world-accent) !important;
  color: #ffffff !important;
  border-color: var(--world-accent) !important;
}

#view-world :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid #6595e8;
  outline-offset: 3px;
}

#view-world .dimension-state { border-color: var(--world-line); }
#view-world .dimension-state #dimensionStatus[data-status="ok"] { color: #176b50; }
#view-world :is(.dimension-state #dimensionStatus[data-status="warn"],
  .gpuhi-camera-status[data-error="true"]) { color: #a13d24; }
#view-world .map-combo-status { background: #eef7f2; color: #176b50; border-color: #c9e3d4; }
#view-world .map-combo-status[data-status="warn"] { background: #fff8e8; color: #815510; border-color: #ead7a7; }

/* A shared neutral frame connects varied concept art to the surrounding tools. */
#view-world .design-image-gallery { padding: 14px; border: 1px solid var(--world-line); }
#view-world .design-image-gallery figure { background: var(--world-surface); border: 1px solid var(--world-line); border-radius: 10px; overflow: hidden; }
#view-world .design-image-gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #eef2f7; border-radius: 0; }
#view-world .design-image-gallery figcaption { padding: 10px 12px; color: var(--world-ink); }
#view-world .genre-cover { background: #eef2f7; border-bottom: 1px solid var(--world-line); }
#view-world .genre-cover img { aspect-ratio: 16 / 10; object-fit: cover; }
#view-world .social-template-card { background: var(--world-surface); border-color: var(--world-line); border-radius: 12px; }
#view-world .social-template-copy { background: var(--world-surface); color: var(--world-ink); }
#view-world .social-template-copy :is(h3, strong) { color: var(--world-ink); }
#view-world .social-template-card button { background: var(--world-selected); color: var(--world-accent); border-color: #cbdaf5; }

@media (max-width: 620px) {
  #view-world .design-image-gallery { padding: 10px; }
  #view-world .dimension-panel-head h2 { font-size: 21px; }
}
