/* The public Octagon's page (Guest Door): the home Octagon's look, plus the join box. No inline styles or scripts
   (the CSP allows only files from this site). */
html, body { margin: 0; height: 100%; background: #071019; color: #EEC473; overflow: hidden; font: 14px/1.4 system-ui, sans-serif; }
canvas { display: block; }
#bar { position: fixed; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; max-width: calc(100vw - 24px); box-sizing: border-box;
  background: #071019cc; border: 1px solid #0B3A6A; border-radius: 6px; padding: 7px 12px; }
#talk, #ask { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#talk.on, #ask.on { background: #8A3A22; border-color: #FF9A7A; color: #FFFFFF; }
#ask[hidden], #join[hidden], #settingsbox[hidden], [hidden] { display: none !important; }
button { font: inherit; color: #EEC473; background: #0B3A6A; border: 1px solid #D19B4C; border-radius: 4px; padding: 3px 10px; cursor: pointer; }
button:disabled { opacity: 0.55; cursor: default; }
#join { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #071019cc; z-index: 10; padding: 16px; box-sizing: border-box; }
#joinform { display: flex; flex-direction: column; gap: 10px; width: min(360px, 100%); background: #071019; border: 1px solid #D19B4C; border-radius: 8px; padding: 20px; box-sizing: border-box; }
#joinform h1 { margin: 0; font-size: 22px; letter-spacing: 0.04em; }
#joinmsg { margin: 0; min-height: 1.4em; color: #FFD9A0; }
#code, #name { font: inherit; font-size: 16px; color: #EEC473; background: #071019; border: 1px solid #D19B4C; border-radius: 4px; padding: 8px 10px; }
#code { text-transform: uppercase; letter-spacing: 0.08em; }
#joinbtn { font-size: 16px; padding: 10px; }
#settingsbox { position: fixed; top: 56px; left: 12px; display: flex; flex-direction: column; gap: 6px; background: #071019ee;
  border: 1px solid #0B3A6A; border-radius: 6px; padding: 10px 12px; }
#settingsbox select { font: inherit; color: #EEC473; background: #071019; border: 1px solid #D19B4C; border-radius: 4px; margin-left: 6px; }
@media (pointer: coarse) {
  body { font-size: 15px; }
  #bar { top: 8px; left: 8px; gap: 8px; padding: 6px 8px; max-width: calc(100vw - 16px); }
  #status { font-size: 12px; flex-basis: 100%; }
  button { min-height: 44px; min-width: 44px; padding: 8px 14px; }
  #settingsbox { top: auto; bottom: 170px; left: 8px; right: 8px; max-height: 60vh; overflow-y: auto; font-size: 16px; }
  #settingsbox label { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
  #talk { position: fixed; right: 20px; bottom: 24px; width: 104px; height: 104px; border-radius: 50%; border-width: 2px; z-index: 6; background: #0B3A6Aee; }
  #ask { position: fixed; right: 20px; bottom: 140px; width: 104px; height: 104px; border-radius: 50%; border-width: 2px; z-index: 6; background: #14335Aee; font-size: 13px; }
}
