:root { color-scheme: dark; --bg: #0b0b0e; --fg: #f4f4f6; --accent: #ffd21f; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.4 system-ui, -apple-system, sans-serif; overflow: hidden; }
.panel { position: fixed; z-index: 10; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; text-align: center; }
.panel[hidden] { display: none; }
h1 { margin: 0; font-size: 26px; }
p { margin: 0; max-width: 28em; }
.note { font-size: 13px; opacity: .65; }
.brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; opacity: .8; }
button { font: 600 18px system-ui; border: 0; border-radius: 40px; padding: 15px 34px; color: #111; background: #fff; }
button.primary { background: var(--accent); }
button[hidden] { display: none; }
.bar { position: fixed; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 50; display: flex; gap: 10px; justify-content: center; padding: 0 16px; flex-wrap: wrap; }
.bar[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px system-ui; text-decoration: none; border: 0; border-radius: 28px; padding: 13px 24px; min-height: 48px; box-shadow: 0 2px 10px #0006; }
.btn.primary { color: #111; background: var(--accent); }
.btn.ghost { color: #fff; background: #1c1c22d9; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #ffffff40; }
.close { position: fixed; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 60; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #fff; background: #1c1c22d9; border: 1px solid #ffffff40; border-radius: 50%; }
.close[hidden] { display: none; }
video.pinned { display: block; position: fixed; left: 50%; top: calc(50% - 40px); transform: translate(-50%, -50%); max-width: 92vw; max-height: 62vh; border-radius: 16px; box-shadow: 0 10px 40px #000a; background: #000; z-index: 40; }
video:not(.pinned):not(.plain) { display: none; }
#stage { position: fixed; inset: 0; z-index: 0; }
video.plain { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.nudge { position: fixed; left: 8px; bottom: 110px; z-index: 60; display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; }
.nudge[hidden] { display: none; }
.nudge button { height: 48px; padding: 0; font-size: 20px; border-radius: 10px; background: #fffd; }
.nval { grid-column: 1 / -1; font: 13px ui-monospace, monospace; color: #ff0; background: #000b; padding: 6px; border-radius: 6px; white-space: nowrap; }
