:root {
  color-scheme: dark;
  --edge: clamp(22px, 4vw, 68px);
  --paper: #eeeae3;
  --red: #e6251f;
  --serif: Didot, "Bodoni 72", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; background: #050505; }
body { overflow: hidden; color: var(--paper); -webkit-font-smoothing: antialiased; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 7px; }
main { position: relative; width: 100%; height: 100svh; overflow: hidden; isolation: isolate; background: #050505; }
#living-object { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; touch-action: none; }
.veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 58% 49%, transparent 0 29%, rgba(5,5,5,.025) 54%, rgba(5,5,5,.56) 100%); }
.veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.34), transparent 28%, transparent 80%, rgba(5,5,5,.16)); mix-blend-mode: multiply; }
.identity { position: absolute; z-index: 2; top: var(--edge); left: var(--edge); display: flex; align-items: center; gap: 13px; pointer-events: none; }
.identity img { width: clamp(44px, 4.2vw, 62px); height: auto; }
.sound { position: absolute; z-index: 3; right: var(--edge); bottom: var(--edge); display: flex; align-items: center; gap: 11px; padding: 10px 0; border: 0; background: transparent; cursor: pointer; }
.sound span { position: relative; display: block; width: 29px; height: 29px; border: 1px solid rgba(238,234,227,.32); border-radius: 50%; transition: border-color .4s, transform .4s; }
.sound span::before { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%); transition: background .4s, box-shadow .4s; }
.sound b { font: 400 .5rem/1 var(--sans); letter-spacing: .23em; text-transform: uppercase; }
.sound:hover span { border-color: rgba(238,234,227,.8); transform: scale(1.08); }
.sound[aria-pressed="true"] span { border-color: rgba(230,37,31,.76); }
.sound[aria-pressed="true"] span::before { background: var(--red); box-shadow: 0 0 12px 3px rgba(230,37,31,.46); }
.noscript { position: fixed; z-index: 10; right: 20px; bottom: 20px; left: 20px; margin: 0; color: var(--paper); font: .75rem/1.5 var(--sans); }

@media (max-width: 680px) {
  :root { --edge: 22px; }
  .identity { top: 22px; }
  .sound { right: 22px; bottom: 22px; }
  .sound b { display: none; }
  .identity img { width: 46px; }
  .veil { background: radial-gradient(ellipse at 54% 43%, transparent 0 24%, rgba(5,5,5,.04) 56%, rgba(5,5,5,.62) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
