.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.audience-page {
  color-scheme: dark;
  color: #fff1de;
  background-color: #391217;
  background-image:
    repeating-linear-gradient(0deg, rgba(25, 7, 12, .12) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(247, 188, 159, .045) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse 110% 72% at 48% 33%, #81222c 0%, #5d1a23 52%, #391217 100%);
}
.audience-page #app { display: grid; }
.audience {
  width: min(100%, 570px);
  min-height: 100svh;
  margin-inline: auto;
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: grid;
  align-content: center;
  justify-items: center;
}
.audience-brand { display: block; width: min(77%, 324px); height: auto; filter: drop-shadow(0 10px 12px #1e03077d); }
.audience-panel { width: 100%; min-width: 0; }
.audience[data-phase=waiting] .audience-brand, .audience[data-phase=loading] .audience-brand { width: min(92%, 360px); }
.audience[data-phase=waiting] .audience-panel,
.audience[data-phase=closed] .audience-panel,
.audience[data-phase=accepted] .audience-panel { text-align: center; }
.audience[data-phase=voting], .audience[data-phase=revealed] { align-content: start; padding-top: max(clamp(22px, 6svh, 72px), env(safe-area-inset-top)); }
.audience[data-phase=voting] .audience-brand, .audience[data-phase=revealed] .audience-brand {
  width: min(70%, 245px); margin-bottom: clamp(17px, 4svh, 32px);
}
.audience-heading {
  font: 850 clamp(30px, 7.8vw, 55px)/1.02 var(--display);
  letter-spacing: -.046em; text-wrap: pretty; overflow-wrap: anywhere;
}
.audience-caption { margin-top: 18px; font-size: clamp(16px, 4.8vw, 25px); font-weight: 750; overflow-wrap: anywhere; text-wrap: balance; }
.audience .timer {
  --stitch: #e3ed9c; --rail: #fcebd23b;
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 13px; margin: 14px 0 16px; min-height: 24px;
}
.audience .timer-top { order: 2; margin: 0; }
.audience .timer-number { font-size: 19px; color: #fff1de; min-width: 2ch; text-align: right; }
.audience .stitch-track { height: 8px; }
.audience .stitch-track::before, .audience .stitch-fill {
  background: repeating-linear-gradient(115deg, transparent 0 2px, var(--thread) 2px 5px, transparent 5px 8px);
  --thread: var(--rail);
}
.audience .stitch-fill { --thread: var(--stitch); filter: drop-shadow(0 0 3px #e3ed9c70); }
.audience .choices { gap: 8px; }
.audience .choice, .audience .choice-static {
  min-height: 53px; display: grid; grid-template-columns: 1fr auto; gap: 13px; position: relative; isolation: isolate;
  padding: 11px 16px; border: none; border-radius: 2px; background: transparent;
  color: #281e16; box-shadow: none; transition: transform 140ms ease, filter 140ms ease;
}
.audience .choice::before, .audience .choice-static::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--tag);
  background-image:
    repeating-linear-gradient(96deg, rgba(57, 37, 22, .045) 0 1px, transparent 1px 3px),
    linear-gradient(178deg, #fff8df47, #3925160f);
  clip-path: polygon(0 3%, 99.3% 0, 100% 94%, .8% 100%);
}
.audience .choice:nth-child(even)::before, .audience .choice-static:nth-child(even)::before {
  clip-path: polygon(.8% 0, 100% 4%, 99.4% 100%, 0 95%);
}
.audience .choice:hover:not(:disabled), .audience .choice:active:not(:disabled) { background: transparent; filter: brightness(1.06); }
.audience .choice:active:not(:disabled), .audience .choice.is-sending { transform: translateY(2px) scale(.985); }
.audience .choice:focus-visible { outline: 2px solid #fff7e8; outline-offset: 3px; }
.audience .choice:disabled { opacity: .65; }
.audience .choice.is-sending { opacity: 1; }
.audience .choice-text { font: 750 clamp(16px, 4.15vw, 23px)/1.08 var(--display); letter-spacing: -.023em; }
.audience .choice-tail { color: #33221b; }
.audience .choice-needle { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.25; fill: none; opacity: .63; }
.audience .result-list { margin-top: 15px; }
.audience .result-list .choice-static:not(.winner-row)::before { opacity: .73; }
.audience .result-list .winner-row { box-shadow: 0 0 0 1px #f5e9c8aa, 0 0 16px #e8b7a63d; }
.audience .result-list .winner-row .choice-tail { font-weight: 900; }
.audience .notice { color: #ffdfb7; }
.audience .notice[hidden] { display: none; }
.audience-confirm { display: inline-grid; place-items: center; margin: 16px 0 0; width: 39px; height: 39px; border: 1px dashed #e3ed9c; color: #e3ed9c; border-radius: 50%; }
.audience-confirm + .audience-caption { margin-top: 7px; }
.audience-confirm svg { width: 20px; height: 20px; }
.audience-enter { animation: tag-arrival 220ms cubic-bezier(.2,.75,.25,1) both; }
@keyframes tag-arrival { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (max-height: 650px) and (max-width: 650px) {
  .audience[data-phase=voting], .audience[data-phase=revealed] { padding-top: max(13px, env(safe-area-inset-top)); }
  .audience[data-phase=voting] .audience-brand, .audience[data-phase=revealed] .audience-brand { width: min(57%, 195px); margin-bottom: 12px; }
}
@media (min-width: 651px) {
  .audience .choice, .audience .choice-static { min-height: 63px; }
}
@media (prefers-reduced-motion: reduce) {
  .audience-enter { animation: none; }
  .audience .choice:active:not(:disabled), .audience .choice.is-sending { transform: none; }
}
