:root { --bg: #0a0a0d; --ink: #f2f1ee; --ink-dim: rgba(242, 241, 238, 0.62); --ink-faint: rgba(242, 241, 238, 0.38); --accent: #7c8cff; --accent-ink: #0a0a0d; --live: #4ade80; --error: #f87171; --panel: rgba(18, 18, 24, 0.72); --panel-border: rgba(255, 255, 255, 0.08); --radius: 16px; --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --font-mono: "Geist Mono", "SF Mono", ui-monospace, monospace; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font-ui); overflow: hidden; } #app { position: relative; width: 100vw; height: 100dvh; overflow: hidden; } /* ── Stage ─────────────────────────────────────────────────────────── */ #stage { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 20%, #17171f 0%, #0a0a0d 70%); } #stage canvas { display: block; width: 100% !important; height: 100% !important; } #loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; background: var(--bg); color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; transition: opacity 0.5s ease; } #loading.done { opacity: 0; pointer-events: none; } /* ── Topbar ────────────────────────────────────────────────────────── */ #topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: max(18px, env(safe-area-inset-top)) 20px 40px; background: linear-gradient(to bottom, rgba(10, 10, 13, 0.85) 0%, rgba(10, 10, 13, 0) 100%); pointer-events: none; } #topbar > * { pointer-events: auto; } #identity h1 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; } #identity p { margin: 4px 0 0; font-size: 0.78rem; color: var(--ink-faint); max-width: 44ch; } /* ── Icon buttons ──────────────────────────────────────────────────── */ .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--ink-dim); backdrop-filter: blur(12px); cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; } .icon-btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.18); } .icon-btn.active { color: var(--error); border-color: rgba(248, 113, 113, 0.4); } /* ── Subtitles ─────────────────────────────────────────────────────── */ #subtitles { position: absolute; left: 50%; bottom: 148px; transform: translate(-50%, 8px); z-index: 8; max-width: min(560px, 86vw); text-align: center; padding: 10px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border); backdrop-filter: blur(12px); font-size: 0.92rem; line-height: 1.4; color: var(--ink); opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; } #subtitles.visible { opacity: 1; transform: translate(-50%, 0); } /* ── Controls ──────────────────────────────────────────────────────── */ #controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px max(28px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(10, 10, 13, 0.9) 0%, rgba(10, 10, 13, 0) 100%); } #caption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-faint); min-height: 1em; transition: color 0.2s ease; } #caption.live { color: var(--ink-dim); } #caption.error { color: var(--error); } #buttons { display: flex; align-items: center; gap: 10px; } #main-btn { appearance: none; border: none; border-radius: 999px; padding: 14px 32px; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--accent-ink); background: var(--ink); cursor: pointer; transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); } #main-btn:hover:not(:disabled) { transform: translateY(-1px); } #main-btn:active:not(:disabled) { transform: translateY(0); } #main-btn:disabled { cursor: default; opacity: 0.55; } #main-btn.live { background: var(--live); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15), 0 8px 24px rgba(0, 0, 0, 0.35); } /* ── Settings dialog ───────────────────────────────────────────────── */ dialog#settings { border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 0; background: #121218; color: var(--ink); width: min(420px, 92vw); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); } dialog#settings::backdrop { background: rgba(6, 6, 8, 0.6); backdrop-filter: blur(4px); } dialog#settings form { display: flex; flex-direction: column; gap: 16px; padding: 24px; } dialog#settings h2 { margin: 0; font-size: 1.05rem; font-weight: 600; } dialog#settings label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--ink-dim); } dialog#settings label.check-row { flex-direction: row; align-items: center; gap: 8px; } dialog#settings select, dialog#settings input[type="url"], dialog#settings textarea { font-family: inherit; font-size: 0.88rem; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-border); border-radius: 10px; padding: 9px 11px; outline: none; resize: vertical; } dialog#settings select:focus, dialog#settings input[type="url"]:focus, dialog#settings textarea:focus { border-color: var(--accent); } dialog#settings input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); } .dialog-actions { display: flex; justify-content: flex-end; margin-top: 4px; } .dialog-actions button.primary { appearance: none; border: none; border-radius: 999px; padding: 9px 22px; font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); background: var(--ink); cursor: pointer; } /* ── Small screens ─────────────────────────────────────────────────── */ @media (max-width: 480px) { #identity p { display: none; } #subtitles { bottom: 132px; } }