.audio-notice:not([open]) { display: none; }
.audio-notice {
  width: min(30rem, calc(100% - 2.5rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.4rem, 4vw, 2rem);
  overflow: hidden;
  border: 0;
  background: var(--info-panel-bg, rgba(12, 11, 10, .94));
  color: var(--text-color);
  font: 400 0.95rem/1.55 "LektonLocal", monospace;
}
.audio-notice[open] { display: flex; flex-direction: column; }
.audio-notice h2, .audio-notice__actions { flex: 0 0 auto; }
.audio-notice::backdrop { background: rgba(8,7,6,.72); }
.audio-notice h2 { margin: 0 0 1rem; font: 700 1rem/1.4 "LektonLocal", monospace; }
.audio-notice p { margin: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.audio-notice__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; margin-top: 1.5rem; }
.audio-notice__actions button { appearance: none; font: inherit; color: inherit; padding: .45rem .7rem; border: 1px solid transparent; background: transparent; cursor: pointer; }
#audio-notice-cancel { color: rgba(233,221,200,.72); padding-left: 0; }
#audio-notice-start { border-color: rgba(233,221,200,.45); }
.audio-notice__actions button:hover { color: #fff; }
.audio-notice__actions button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

@media (max-width:760px), (hover:none) and (pointer:coarse) {
  .audio-notice {
    position: fixed;
    inset: 0;
    width: min(30rem, calc(100% - 2rem));
    height: max-content;
    padding: clamp(1rem, 4vw, 1.5rem);
    font-size: 1rem;
    line-height: 1.4;
  }
  .audio-notice h2 { font-size: 1.125rem; margin-bottom: .75rem; }
  .audio-notice__actions { margin-top: .9rem; gap: .35rem; }
  .audio-notice__actions button { min-height: 44px; padding: .35rem .5rem; }
}
@media (max-height: 360px) {
  .audio-notice { padding: .75rem; }
  .audio-notice h2 { margin-bottom: .4rem; }
  .audio-notice__actions { margin-top: .4rem; }
}
