:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #000; color: #ddd; font: 17px/1.4 system-ui, sans-serif; }
main { display: flex; flex-direction: column; height: 100%; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); box-sizing: border-box; }
.stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.stage video, .stage canvas { max-width: 100%; max-height: 100%; object-fit: contain; }
.stage [hidden] { display: none; }
.hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 20px; text-shadow: 0 0 6px #000; pointer-events: none; }
.hint:empty { display: none; }
.buttons { display: flex; gap: 10px; padding: 10px 16px; justify-content: center; flex-wrap: wrap; }
button { font: inherit; font-size: 20px; padding: 12px 18px; border-radius: 14px; border: 2px solid #444; background: #1c1c1c; color: #eee; }
button:disabled { opacity: .4; }
button.big { background: #c62; border-color: #e84; color: #fff; min-width: 9em; }
button.big.on { background: #333; border-color: #666; }
.settings { padding: 0 16px 12px; color: #aaa; }
.settings summary { cursor: pointer; padding: 6px 0; }
.settings label { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.settings input[type=range] { flex: 1; }
.settings input[type=checkbox] { width: 22px; height: 22px; }
.small { font-size: 13px; color: #777; }
.small a { color: #999; }
