/* VR ProgrammierHub — UI-Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; overflow: hidden; background: #0b1020; font-family: system-ui, sans-serif; } #app { position: fixed; inset: 0; } canvas { display: block; } #hud { position: fixed; top: 12px; left: 12px; z-index: 10; color: #cdd6f4; font-size: 13px; line-height: 1.5; background: rgba(17, 23, 41, .72); padding: 10px 14px; border-radius: 10px; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; max-width: 280px; } #hud b { color: #89b4fa; } #fps { color: #a6e3a1; } #net { color: #f9e2af; } #dbg { color: #94e2d5; } #overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(circle at 50% 40%, #1b2444, #0b1020); color: #cdd6f4; text-align: center; gap: 16px; padding: 20px; } #overlay h1 { font-size: 30px; font-weight: 700; letter-spacing: .5px; } #overlay h1 span { color: #89b4fa; } #overlay p { font-size: 14px; opacity: .8; max-width: 440px; line-height: 1.5; } #overlay .key { background: #313455; padding: 2px 8px; border-radius: 5px; font-family: monospace; } .row { display: flex; gap: 10px; align-items: center; } #name { padding: 11px 14px; font-size: 15px; border-radius: 10px; border: 1px solid #45496b; background: #11172a; color: #cdd6f4; width: 220px; } #role { padding: 11px; font-size: 15px; border-radius: 10px; border: 1px solid #45496b; background: #11172a; color: #cdd6f4; } #startbtn { padding: 12px 26px; font-size: 16px; font-weight: 600; border: none; border-radius: 10px; background: #89b4fa; color: #0b1020; cursor: pointer; } #toolbar { position: fixed; bottom: 16px; left: 16px; z-index: 12; display: none; gap: 8px; } #toolbar button { padding: 9px 14px; border-radius: 9px; border: 1px solid #45496b; background: rgba(17, 23, 41, .85); color: #cdd6f4; cursor: pointer; font-size: 13px; } #toolbar button.on { background: #f38ba8; color: #0b1020; border-color: #f38ba8; } #err { position: fixed; inset: auto 12px 12px 12px; z-index: 100; display: none; background: #3a1420; color: #ffd7de; border: 1px solid #ff6b81; border-radius: 10px; padding: 12px 14px; font-family: monospace; font-size: 12px; white-space: pre-wrap; max-height: 40vh; overflow: auto; } /* ── IDE-Fenster (mittig, Bildschirmgröße; 3D-Umgebung bleibt drumherum sichtbar) ── */ #ide { position: fixed; z-index: 30; display: none; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(900px, 88vw); height: min(600px, 84vh); flex-direction: column; background: #0d1220; color: #cdd6f4; border: 1px solid rgba(137, 180, 250, .35); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); } #ide-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #11172a; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; } #ide-title { font-weight: 600; color: #89b4fa; } #ide-status { font-size: 12px; color: #94e2d5; font-family: monospace; } #ide-status.err { color: #f38ba8; } #ide-bar .spacer { flex: 1; } #ide-bar button { padding: 8px 14px; border-radius: 8px; border: 1px solid #45496b; background: rgba(137, 180, 250, .12); color: #cdd6f4; cursor: pointer; font-size: 13px; } #ide-run { background: #a6e3a1 !important; color: #0b1020 !important; border-color: #a6e3a1 !important; font-weight: 600; } #ide-run:disabled { opacity: .5; cursor: default; } #ide-editor { flex: 1; min-height: 0; resize: none; border: none; outline: none; padding: 16px; background: #0d1220; color: #e6e9f5; font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace; font-size: 15px; line-height: 1.5; tab-size: 4; } #ide-output { height: 34%; margin: 0; padding: 12px 16px; overflow: auto; background: #080c17; border-top: 1px solid rgba(255, 255, 255, .08); font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.45; white-space: pre-wrap; } #ide-output .err { color: #f38ba8; } /* ── "Setzen"-Hinweis in Sitznähe ── */ #sithint { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 12; display: none; background: rgba(17, 23, 41, .88); color: #cdd6f4; padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(137, 180, 250, .45); font-size: 14px; backdrop-filter: blur(6px); } #sithint .key { background: #313455; padding: 2px 8px; border-radius: 5px; font-family: monospace; }