button.wren-perch {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 44px; height: 44px; margin: -10px 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.wren-perch > img, .wren-perch::after { grid-area: 1 / 1; margin: 0; }
.wren-perch::after {
  content: ""; width: 21px; height: 21px; opacity: 0;
  background: url('/assets/wren-front.png') center / contain no-repeat;
}
.wren-perch:focus-visible { outline: 2px solid #adc5cd; }
.wren-perch.awake img { opacity: 0; }
.wren-perch.awake::after { opacity: 1; }
body:has(.wren-reveal[open]) { overflow: clip; }
dialog.wren-reveal {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: #e3eaec; overflow: hidden;
}
.wren-reveal[open] { display: grid; place-items: center; }
.wren-reveal::backdrop { background: transparent; }
.wren-scene, .wren-scene iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wren-scene { background: #070809; pointer-events: none; }
.wren-announcement { position: relative; text-align: center; padding: 20px; }
.wren-announcement img { display: block; width: min(68vw, 520px); margin: auto; }
.wren-announcement p { margin: 18px auto 0; font: 400 clamp(17px, 2vw, 26px)/1.4 "Noto Sans",sans-serif; }
.wren-reveal button {
  position: absolute; top: max(16px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right));
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: #101214; color: #e3eaec; border: 1px solid #adc5cd; border-radius: 50%; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .wren-perch.awake img { animation: wren-stir .32s ease-in both; }
  .wren-perch.awake::after { animation: wren-turn .28s .25s ease-out both; }
  .wren-reveal[open] .wren-scene { animation: wren-fade .8s .68s both; }
  .wren-reveal[open] .wren-announcement img { animation: wren-fade .75s 1.4s both; }
  .wren-reveal[open] .wren-announcement p { animation: wren-fade .65s 1.85s both; }
  @keyframes wren-stir { 0% { opacity:.72; } 55% { opacity:1; transform:translateY(-3px) rotate(-9deg); } 100% { opacity:0; transform:scaleX(.45); } }
  @keyframes wren-turn { from { opacity:0; transform:scaleX(.45); } to { opacity:1; transform:none; } }
  @keyframes wren-fade { from { opacity:0; } to { opacity:1; } }
}
