html, body { margin: 0; height: 100%; background: #1c1c24; color: #e6e6eb; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; font: 16px/1.5 -apple-system, system-ui, sans-serif; }
canvas { position: fixed; inset: 0; width: 100vw !important; height: 100dvh !important; touch-action: none; outline: none; -webkit-touch-callout: none; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; color: #999ba8; }
#safe { position: fixed; visibility: hidden; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#ask { position: fixed; z-index: 3; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 12px); max-width: 520px; margin: 0 auto; padding: 14px; border-radius: 14px; background: #26262f; box-shadow: 0 8px 40px #000a; display: grid; gap: 10px; }
#ask[hidden], #sheet[hidden] { display: none; }
#ask input { font-size: 18px; padding: 10px 12px; border-radius: 9px; border: 1px solid #454754; background: #17171c; color: inherit; -webkit-user-select: text; user-select: text; }
#sheet { position: fixed; z-index: 4; inset: 0; display: grid; place-items: center; background: #0009; }
.card { width: min(88vw, 420px); padding: 18px; border-radius: 16px; background: #26262f; }
.card p { margin: 0 0 14px; white-space: pre-line; }
.card progress { width: 100%; margin-bottom: 12px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.keys button { font: inherit; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #3d4058; color: inherit; }
.keys button.main, .keys button[type=submit] { background: #3f67c4; }
