:root{--bg:#14151a;--surface:#1e2028;--surface-hover:#262933;--border:#33363f;--text:#eceef2;--text-dim:#9a9dab;--accent:#7c5cff;--accent-hover:#9376ff;--danger:#ff6b6b;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif}#app{max-width:960px;margin:0 auto;padding:1rem 1.25rem 3rem}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.topbar h1{margin:1rem 0 1.5rem;font-size:1.5rem}#session-bar{color:var(--text-dim);align-items:center;gap:.75rem;font-size:.9rem;display:flex}#session-bar[hidden]{display:none}.link-btn{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:.9rem}.link-btn:hover{color:var(--accent-hover)}.auth-form{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:1rem;max-width:320px;margin:2rem auto;padding:1.5rem;display:flex}.auth-form h2{margin:0}.auth-form label{color:var(--text-dim);flex-direction:column;gap:.3rem;font-size:.9rem;display:flex}.auth-form input{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:6px;padding:.6rem .7rem;font-size:1rem}.auth-form button[type=submit]{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:.7rem;font-size:1rem}.auth-form button[type=submit]:hover{background:var(--accent-hover)}.grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:.5rem;padding:1rem;display:flex}.card-thumb{aspect-ratio:3/2;letter-spacing:.08em;color:var(--text-dim);background:linear-gradient(135deg,#2a2d3a,#1a1c24);border-radius:6px;justify-content:center;align-items:center;font-weight:700;display:flex}.card h3{margin:0;font-size:1rem}.card .meta{color:var(--text-dim);margin:0;font-size:.8rem}.card-actions{gap:.5rem;display:flex}.card-actions .play-btn{flex:1}.remove-btn{color:var(--danger);border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;padding:.6rem .75rem}.remove-btn:hover{border-color:var(--danger)}.play-btn,#back-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:.6rem 1rem;font-size:.95rem}.play-btn:hover,#back-btn:hover{background:var(--accent-hover)}.upload-card{background:var(--surface);border:1px dashed var(--border);border-radius:10px;padding:1.25rem}.upload-card h2{margin:0 0 .5rem;font-size:1.1rem}.upload-card p{color:var(--text-dim);margin:0 0 .75rem;font-size:.9rem}.upload-card input[type=file]{color:var(--text)}.error{color:var(--danger);font-size:.85rem}.disclaimer{font-size:.78rem;font-style:italic}#player-view{z-index:10;box-sizing:border-box;background:var(--bg);flex-direction:column;padding:.75rem 1.25rem;display:flex;position:fixed;inset:0;overflow:hidden}#player-view[hidden]{display:none}#back-btn{flex:none;margin-bottom:.5rem}#player-title{flex:none;margin:0 0 .5rem;font-size:1.1rem}#game{aspect-ratio:3/2;background:#000;border-radius:8px;flex:auto;width:100%;max-width:720px;min-height:0;margin:0 auto;overflow:hidden}#touch-controls{display:none}@media (orientation:portrait){#touch-controls.has-gamepad{flex:none;width:100%;max-width:720px;height:220px;margin:.5rem auto 0;display:block;position:relative}#touch-controls.has-gamepad .ejs_virtualGamepad_parent{position:absolute;top:0;bottom:0}}
