/* The demo's own marks over the table's page (tools/pages_demo/serverless.js): the banner, the loading veil, the end card. */
#demo-banner {
  position: fixed; left: 50%; bottom: calc(var(--talk, 0px) + 6px); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: min(720px, calc(100vw - 16px)); box-sizing: border-box;
  padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(20, 16, 12, .86); color: #f3e7cf;
  font: 600 13px/1.3 "Sofia Sans Condensed", system-ui, sans-serif; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); pointer-events: auto;
}
#demo-banner span { flex: 1; }
#demo-banner a { flex: none; padding: 5px 12px; border-radius: 999px; background: #c9893a; color: #1b130b; text-decoration: none; font-weight: 800; }
body.pages-demo #mic, body.pages-demo #mic-device, body.pages-demo label:has(#mic-device), body.pages-demo label:has(#mic-gain), body.pages-demo #mic-meter, body.pages-demo #settings .mic-row { display: none; }                  /* speaking to the GM needs the real table (Whisper on the computer) */
#demo-loading { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(10, 8, 6, .82); color: #f3e7cf; text-align: center; padding: 16px; }
#demo-loading b { font: 600 22px/1.2 Spectral, Georgia, serif; }
#demo-loading b::after { content: "…"; }
#demo-loading.failed b::after { content: ""; }
#demo-loading p { margin: 10px auto 0; max-width: 420px; font: 15px/1.4 "Sofia Sans Condensed", system-ui, sans-serif; opacity: .8; }
#demo-end { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 8, 6, .7); padding: 16px; }
.demo-end-card { max-width: 460px; padding: 22px 22px 18px; border-radius: 14px; background: #f6eedd; color: #2a1f14; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.demo-end-card h2 { margin: 0 0 8px; font: 600 26px/1.2 Spectral, Georgia, serif; }
.demo-end-card p { margin: 0 0 16px; font: 16px/1.45 "Sofia Sans Condensed", system-ui, sans-serif; }
.demo-end-row { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-end-row a, .demo-end-row button { padding: 9px 16px; border-radius: 999px; font: 700 15px/1 "Sofia Sans Condensed", system-ui, sans-serif; cursor: pointer; }
.demo-end-row a { background: #9a4a22; color: #fff; text-decoration: none; }
.demo-end-row button { background: transparent; border: 1px solid #9a4a22; color: #9a4a22; }
@media (max-width: 600px) { #demo-banner { font-size: 12px; bottom: calc(var(--talk, 0px) + 4px); } }
#talk #demo-banner { position: static; transform: none; margin: 6px auto 0; box-shadow: none; padding: 4px 6px 4px 12px; font-size: 12px; }

.demo-mic-note { font-size: 14px; line-height: 1.45; }
#demo-intro { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(10, 8, 6, .78); padding: 16px; }
#demo-intro ul { margin: 0 0 12px; padding-left: 20px; font: 16px/1.45 "Sofia Sans Condensed", system-ui, sans-serif; }
#demo-intro li { margin-bottom: 6px; }
#demo-intro .demo-end-row a { align-self: center; color: #7a3d14; }

#demo-intro .demo-lang { display: block; margin-top: 14px; text-align: center; font-size: .92rem; color: var(--fog); }
