html { color-scheme: dark; background: #000; }
body { margin: 0; background: #000; color: #eee; font-family: system-ui, sans-serif; }
main { max-width: 480px; margin: 24px auto; padding: 0 20px; text-align: center; }
img { display: block; width: 100%; height: auto; max-height: 310px; object-fit: contain; }
.bridgekeeper-video { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; height: auto; border: 0; }
h1 { font-size: 1.4rem; margin: 16px 0 4px; }
.progress { color: #aaa; font-size: .8rem; }
.progress:empty { display: none; }
form { max-width: 360px; margin: auto; text-align: left; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
form { padding-top: 16px; }
.answer-actions { text-align: center; }
input, button { box-sizing: border-box; font: inherit; border-radius: 4px; }
input:not([type=hidden]) { width: 100%; padding: 9px 12px; border: 1px solid #666; background: #151515; color: #fff; }
button, .continue { display: inline-block; padding: 8px 16px; background: #0d6efd; color: #fff; border: 1px solid #0d6efd; cursor: pointer; text-decoration: none; border-radius: 4px; }
button:hover { background: #0b5ed7; }
input:focus-visible, button:focus-visible { outline: 3px solid #8ccfff; outline-offset: 2px; }
#answerError { color: #ff9494; font-size: .9rem; }
.failure-message { text-align: center; }
#answerError:empty { margin: 12px 0; }
.video-controls { display: flex; justify-content: center; gap: 8px; padding-top: 4px; opacity: 0; visibility: hidden; }
.video-controls button { padding: 3px 8px; font-size: .8rem; color: #ccc; background: #151515; border-color: #444; }
.bridgekeeper-player:hover .video-controls, .bridgekeeper-player:focus-within .video-controls, .bridgekeeper-player.needs-play .video-controls { opacity: 1; visibility: visible; }
@media (hover: none) { .video-controls { opacity: 1; visibility: visible; } }
@media (max-width: 480px) { main { margin-top: 16px; } img { max-height: 240px; } }
