:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, sans-serif; }
html, body { margin: 0; height: 100%; background: #05060a; color: #f4f1ea; overflow: hidden; }
#stage { position: fixed; inset: 0; }
/* Worlds never get pointer or keyboard input: nothing typed can reach world code. */
#stage iframe.world { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity 1s ease; pointer-events: none; }
#pick { position: fixed; top: 16px; left: 16px; z-index: 2; }
#caption { position: fixed; left: 32px; bottom: 32px; max-width: min(520px, calc(100vw - 64px)); text-shadow: 0 1px 12px rgba(0,0,0,.7); pointer-events: none; opacity: 0; }
#caption.fade { animation: caption 9s ease forwards; }
@keyframes caption { 0% { opacity: 0 } 12% { opacity: 1 } 75% { opacity: 1 } 100% { opacity: 0 } }
#caption h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }
#caption .by { margin: 6px 0 0; font-size: 14px; opacity: .85; }
#caption .line { margin: 10px 0 0; font-size: 16px; font-style: italic; }
#start { position: fixed; inset: 0; margin: auto; width: min(440px, calc(100vw - 32px)); height: fit-content; display: grid; gap: 12px; }
#start[hidden] { display: none; }
#start h1 { margin: 0; font-size: 28px; }
#start p { margin: 0; opacity: .8; line-height: 1.4; }
#start input, #start button { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid #3a3d4a; background: #10121a; color: inherit; }
#start button { background: #f4f1ea; color: #05060a; border: 0; font-weight: 600; cursor: pointer; }
#status { position: fixed; left: 0; right: 0; top: 24px; text-align: center; opacity: .8; }
