#vowShrine {
  position:fixed; inset:0; margin:auto; border:0; padding:0; overflow:auto;
  width:100%; height:100%; max-width:none; max-height:none;
  background:#191c18; color:#eee2c9; font-family:var(--serif);
}
#vowShrine::backdrop { background:#141612 }
#vowShrine canvas {
  position:absolute; inset:0 0 0 auto; width:78%; height:100%; object-fit:cover;
  object-position:51% 50%; filter:saturate(.78);
}
#vowShrine::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(90deg,#111410 4%,#141611 23%,#171913ec 32%,#191a1596 43%,transparent 61%),
    linear-gradient(0deg,#141510d6,transparent 24%,transparent 88%,#11140d75);
}
#vowShrine section {
  position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center;
  width:43%; min-height:100%; padding:4vh 2vw 6vh 6vw;
}
#vowShrine h2 {
  margin:0; font:normal clamp(30px,4.4vw,76px)/1.18 "STXingkai",var(--serif);
  color:#eee4cf; letter-spacing:.08em; text-shadow:1px 3px 6px #0b0b09;
}
#vowShrine h2::after {
  content:""; display:block; margin: .33em 0 0; height:2px; width:86%;
  background:linear-gradient(90deg,#a99876aa,#93806455 57%,transparent);
}
#vowShrine p { margin:1.1em 0 2em; max-width:26em; line-height:1.65; color:#c5b89c; font-size:clamp(14px,1.3vw,22px) }
#vowShrine nav { display:grid; justify-items:start; gap:.32em }
#vowShrine button {
  isolation:isolate; position:relative; text-align:left; border:0; background:transparent;
  font:normal clamp(17px,1.65vw,28px)/1.3 var(--serif); color:#ded3bb;
  letter-spacing:.05em; padding:.34em 1.25em .34em .8em;
}
#vowShrine button::before {
  content:""; position:absolute; z-index:-1; inset:2% -4% 0 -5%; opacity:0;
  background:linear-gradient(90deg,#923f2180,#ab542ad4 22%,#a95a2d9c 74%,transparent);
  clip-path:polygon(0 32%,8% 22%,1% 14%,43% 9%,70% 12%,94% 4%,88% 23%,100% 20%,94% 50%,100% 62%,85% 67%,96% 77%,60% 86%,8% 90%,0 78%,6% 62%,1% 54%);
}
#vowShrine button:is(:focus,:hover)::before {opacity:1}
#vowShrine button:is(:focus,:hover) {outline:none;color:#fff1d8}
#vowShrine button:last-child:not(:first-child) {margin-top:.8em;font-size:clamp(15px,1.27vw,22px)}
@media(pointer:fine) and (max-aspect-ratio:1/1){
  #vowShrine canvas{width:100%;height:58%;object-position:51% 42%}
  #vowShrine::before{background:linear-gradient(0deg,#141611 40%,#141611dd 51%,transparent 72%)}
  #vowShrine section{width:100%;justify-content:flex-end;padding:4vh 8vw 6vh}
  #vowShrine p{margin:.8em 0 1em}
}
#vowShrine nav {width:min(100%, 28em)}
#vowShrine button {min-width:92%;padding-left:.85em}
#vowShrine button::before {background:linear-gradient(90deg,#835125b3,#aa6c25bf 25%,#8d5c2d99 77%,transparent)}
#vowShrine button::after {content:"";position:absolute;left:.5em;right:4%;bottom:0;height:1px;background:linear-gradient(90deg,#b0a58c65,#a99b7f35 76%,transparent)}
#vowShrine[data-rite] canvas {width:100%;height:100%}
#vowShrine[data-rite]::before {background:linear-gradient(0deg,#11130fdd,transparent 26%,transparent 90%,#14161077)}
#vowShrine[data-rite] section {position:absolute;bottom:0;left:0;min-height:0;width:100%;padding:1.8vh 5vw;display:grid;grid-template-columns:1fr auto;align-items:center}
#vowShrine[data-rite] h2 {font-size:clamp(22px,2.7vw,44px)}
#vowShrine[data-rite] h2::after {display:none}
#vowShrine[data-rite] p {font-size:clamp(12px,1.1vw,18px);margin:.3em 0;grid-column:1}
#vowShrine[data-rite] nav {grid-column:2;grid-row:1/3;width:auto}
#vowShrine[data-rite] button {font-size:clamp(14px,1.2vw,21px)}

/* Modal dialogs live in the browser's top layer, outside the stage transform. */
@media (pointer:coarse) and (orientation:portrait){
  #vowShrine{
    inset:0 auto auto 100%;margin:0;width:100vh;width:100dvh;height:100vw;
    transform:rotate(90deg);transform-origin:top left;
  }
  #vowShrine section{padding:4vw 2vh 6vw max(6vh,env(safe-area-inset-top))}
}
