:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #101418; color: #e8ecf0;
  font: 18px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.box { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px; width: 100%; max-width: 420px; text-align: center; }
h1 { font-size: 22px; font-weight: 600; margin: 0; }
#talk {
  width: min(60vw, 240px); height: min(60vw, 240px); border-radius: 50%; border: 0;
  background: #2f6fed; color: #fff; font: inherit; font-size: 24px; font-weight: 600; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#talk[aria-pressed="true"] { background: #c0392b; }
#talk:disabled { opacity: .6; }
#talk:focus-visible, #ok:focus-visible, #pin:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#status, #note { min-height: 1.4em; margin: 0; }
form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
#pin {
  font: inherit; font-size: 32px; letter-spacing: .3em; text-align: center; padding: 12px;
  border-radius: 12px; border: 1px solid #3a4450; background: #1a2026; color: inherit; width: 100%;
}
#ok { font: inherit; font-weight: 600; padding: 14px; min-height: 48px; border-radius: 12px; border: 0; background: #2f6fed; color: #fff; cursor: pointer; }
