:root { color-scheme: dark; font: 14px/1.5 system-ui, sans-serif; color: #eae4dd; background: #000; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { min-height: 280px; }
main { height: 100%; display: grid; grid-template-rows: minmax(150px, 1fr) auto; }
[hidden] { display: none !important; }
.artwork { position: relative; min-height: 0; overflow: hidden; background: #000; }
.fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 5%; }
.fallback img { display: block; width: 80%; height: auto; max-height: 76%; object-fit: contain; }
.fallback .endorsement { width: 38%; max-height: 9%; margin-top: 1%; }
canvas { display: block; width: 100%; height: 100%; }
.controls { display: grid; grid-template-columns: auto auto minmax(64px, 1fr) auto; align-items: center; gap: 12px; padding: 18px 22px 14px; border-top: 1px solid #29221b; background: #100e0c; }
button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; background: #efb178; color: #21160d; font: inherit; font-weight: 650; cursor: pointer; }
button.secondary { background: transparent; color: #eae4dd; border-color: #66503b; }
button:hover:enabled { filter: brightness(1.1); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #fff1d8; outline-offset: 4px; }
.timeline { display: flex; align-items: center; min-height: 44px; }
input { width: 100%; min-width: 0; min-height: 32px; margin: 0; accent-color: #efb178; cursor: pointer; }
input:disabled { cursor: default; }
.time { white-space: nowrap; color: #c9baac; font-variant-numeric: tabular-nums; font-size: 12px; }
#status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; color: #c9baac; font-size: 12px; }
.no-script { margin: 0; padding: 12px 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .controls { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px; }
  .timeline { grid-column: 1; grid-row: 2; }
  .time { grid-column: 2; grid-row: 2; }
  button { padding-inline: 12px; }
}
