* { box-sizing: border-box; }
html, body { margin: 0; background: #08130b; color: #fff3d6; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(100vw, 56.25vh);
  width: min(100vw, 56.25dvh);
  aspect-ratio: 9 / 16;
}
.art, video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
video { object-fit: contain; }
.art img { position: absolute; max-width: none; }
#open, #sound {
  position: absolute;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
#open {
  left: 31%;
  top: 39%;
  width: 38%;
  height: 22%;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
}
#open:focus-visible, #sound:focus-visible { outline: solid 2px #ffd78a; outline-offset: 5px; }
#open:disabled { pointer-events: none; }
#status {
  bottom: max(.75rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: #fff3d6;
  font: 500 .85rem system-ui, sans-serif;
  background: #08130bec;
  border: 1px solid #c5a26b;
  border-radius: 1rem;
  padding: .55rem .85rem;
  white-space: nowrap;
}
#sound {
  top: max(.45rem, env(safe-area-inset-top));
  right: max(.45rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f5d58d;
  background: #08130bab;
}
#sound svg { width: 18px; height: 18px; }
#sound[data-muted="false"] .sound-off, #sound[data-muted="true"] .sound-on { display: none; }
#status { position: absolute; margin: 0; white-space: normal; text-align: center; width: max-content; max-width: 90%; }
[hidden] { display: none !important; }
