:root { color-scheme: dark; background: #171613; color: #eee7dc; font: 16px/1.4 system-ui, sans-serif; }
body { margin: 0; }
main { width: min(100%, 850px); margin: 0 auto; display: grid; gap: 9px; padding: 12px 0; }
.page { display: block; width: 100%; height: auto; aspect-ratio: 595.276 / 841.89; background: #24211c; object-fit: contain; }
.page canvas { display: block; width: 100%; height: auto; }
.options { position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
.options summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #24211de8; color: #eee7dc; border: 1px solid #887964; cursor: pointer; font-size: 22px; line-height: 1; list-style: none; }
.options summary::-webkit-details-marker { display: none; }
.options button { position: absolute; bottom: calc(100% + 8px); right: 0; padding: .55rem .8rem; background: #24211d; color: inherit; text-decoration: none; white-space: nowrap; border: 1px solid #887964; border-radius: 4px; }
.options button:hover, .options summary:hover { background: #42392c; }
:focus-visible { outline: 2px solid #d9bb86; outline-offset: 2px; }
#status, noscript p { margin: 0; padding: .8rem; text-align: center; }
noscript a { color: inherit; }
@media (max-width: 850px) { main { padding-top: 0; gap: 5px; } }

.options button{font:inherit;cursor:pointer}.options output:not(:empty){position:absolute;right:0;bottom:calc(100% + 58px);background:#24211d;padding:.5rem;white-space:nowrap;border-radius:4px}