/* The Nexus prototype's page (nexus.html): the scene fills the window, a glass panel to switch the worlds' states. */
html, body.nexus { height: 100%; overflow: hidden; }
body.nexus { margin: 0; background: var(--deep); color: var(--text); font: 500 14px/1.45 var(--font-text); }
#nexus { position: fixed; inset: 0; touch-action: none; cursor: grab; }
#nexus:active { cursor: grabbing; }
.nexus .label { margin: 0 0 10px; font-family: var(--font-label); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
#panel { position: fixed; left: 16px; top: 16px; width: 272px; max-height: calc(100dvh - 32px); overflow: auto; padding: 16px; border-radius: var(--radius-card); background: var(--glass-screen); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)); box-shadow: inset 0 0 0 1px var(--edge-soft); box-sizing: border-box; }
.nexus .pill { height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-control); background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--edge-soft); color: var(--text); font: 600 13px var(--font-text); cursor: pointer; transition: transform var(--ms-instant) var(--ease-out), box-shadow var(--ms-quick) var(--ease-out); }
.nexus .pill:active { transform: scale(0.94); }
.nexus .pill[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ice); color: var(--ice); }
#worlds { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#worlds li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 8px; }
#worlds .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
#worlds .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#worlds .pill { height: 28px; padding: 0 10px; font-size: 12px; }
#worlds .state { min-width: 64px; }
#worlds .state[data-state="open"] { color: var(--live); }
#worlds .state[data-state="off"] { color: var(--muted); }
#who { margin: 0 0 10px; color: var(--text-soft); }
#perf { margin: 12px 0 0; font: 12px var(--font-mono); color: var(--muted); }
#hint { position: fixed; left: 300px; right: 16px; bottom: 14px; margin: 0; text-align: center; color: var(--muted); font-size: 12px; pointer-events: none; }
@media (max-width: 720px) {
  #panel { top: auto; bottom: 16px; right: 16px; width: auto; max-height: 40dvh; }
  #hint { display: none; }
}
