/* The equipped painting sits underneath the translucent leaf. The engraved
   instrument, its pin, and its rotating rule share one coordinate system. */
#play-screen .cl-shell:has(>.cl-main), #play-screen>.vanity:has(.vn-gallery){
  background-color:#272825;
  background-image:linear-gradient(112deg,#211e19ad 4%,#292c2863 54%,#1930337a 100%),var(--theme-arena,url("assets/antique-hall.webp"));
  background-position:center,center 45%;background-size:cover,cover;background-repeat:no-repeat;
}
#play-screen :is(.cl-shell>.cl-main,.vanity .vn-gallery,.ll-screen .ll-folio){
  position:relative;isolation:isolate;
  background-color:rgba(236,222,192,.84);
  background-image:radial-gradient(ellipse at 16% 28%,#fff7d358,transparent 55%),linear-gradient(112deg,#f9efd136 0%,#e4d5b31a 53%,#c4ba9f12 76%,#ded3b7a8 100%);
  background-size:cover;background-repeat:no-repeat;
  border-color:#b39765;
  box-shadow:inset 0 0 0 2px #f6e8ba91,inset 0 0 0 3px #a0855a80,inset 0 0 0 5px #f2e1b454,0 2px 0 -1px #efdaac,0 5px 0 -2px #886e4d,0 10px 26px #160f0c6b;
}
#play-screen .cl-shell>.cl-main :is(.cl-wallet,.cl-deck-tools) .cl-btn:not(:disabled):not(:hover):not(:focus-visible){
  color:#292019;text-shadow:0 0 2px #f6e9cbb3,0 0 5px #f6e9cb6b;
}
#play-screen .ll-screen .ll-folio{background-color:rgba(240,227,203,.89)}
#play-screen .rh-vellum-art{
  display:block;position:absolute;z-index:-1;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;
  user-select:none;contain:strict;
}
.rh-vellum-art::before,.rh-vellum-art::after{content:"";position:absolute;inset:0;pointer-events:none}
.rh-vellum-art::before{
  background:var(--wr-paper-grain) center/380px auto repeat;
  opacity:.31;mix-blend-mode:multiply;
}
.rh-vellum-art::after{
  background:url("assets/folio-corner.svg") 4px 4px/clamp(88px,12%,156px) auto no-repeat;
  box-shadow:inset 0 0 26px #8b703c18;
}
.rh-vellum-dial{
  position:absolute;display:block;aspect-ratio:1;inline-size:clamp(245px,40%,475px);
  right:-5.8%;top:-14%;opacity:.55;
  background:url("assets/folio-astrolabe.svg") center/contain no-repeat;
  -webkit-mask-image:linear-gradient(112deg,#0004,#000b 24%,#000 58%);
  mask-image:linear-gradient(112deg,#0004,#000b 24%,#000 58%);
}
.rh-vellum-dial::before,.rh-vellum-dial::after{content:"";position:absolute;inset:0}
.rh-vellum-dial::before{
  background:url("assets/folio-sighting-rule.svg") center/100% 100% no-repeat;
  transform:rotate(var(--vellum-rest-angle,-27deg));
}
.rh-vellum-dial::after{
  inset:calc(50% - 5px);border-radius:50%;
  background:radial-gradient(circle at 30% 22%,#fff4c8 0 6%,#b8b5a0 22%,#868a77 36%,#e5cc8d 41% 54%,#aa8d51 73%,#735632 91%);
  box-shadow:0 1px 1px #644a2e55;
}
.rh-vellum-sky{
  position:absolute;display:block;inset:0;
  background-image:url("assets/folio-corner.svg");background-repeat:no-repeat;
  background-size:clamp(81px,10%,132px) auto;background-position:3px 4px;
  transform:rotate(180deg);opacity:.8;
}
.rh-vellum-stars{position:absolute;inset:0;display:block}
.rh-vellum-stars i{
  position:absolute;display:block;width:5px;height:7px;
  background:linear-gradient(135deg,#946c39,#f6de9b 43%,#fff5cd 53%,#a07b48 78%);
  clip-path:polygon(50% 0,61% 35%,100% 50%,61% 63%,50% 100%,38% 62%,0 50%,40% 37%);
  opacity:.72;
}
.rh-vellum-stars i:nth-child(1){left:68%;top:12.5%;width:7px;height:9px}
.rh-vellum-stars i:nth-child(2){left:84.5%;top:64%;width:5px;height:8px}
.rh-vellum-stars i:nth-child(3){left:61%;top:90.5%;width:8px;height:11px}
.rh-vellum-stars i:nth-child(4){left:8.7%;top:73%;width:4px;height:7px}
.ll-folio .rh-vellum-dial{inline-size:clamp(193px,60%,325px);right:-15%;top:auto;bottom:-15%;opacity:.54}
.vn-gallery .rh-vellum-dial{top:-18%;right:-7%;opacity:.55}
@keyframes rh-alidade{from{transform:rotate(-27deg)}to{transform:rotate(333deg)}}
@keyframes rh-foil-flicker{0%,74%,100%{opacity:.4;transform:scale(.76)}82%{opacity:.97;transform:scale(1.28)}89%{opacity:.67;transform:scale(.92)}}
.rh-vellum-art[data-vellum-motion=on] .rh-vellum-dial::before{animation:rh-alidade 50s linear infinite;animation-delay:var(--vellum-clock,0s)}
.rh-vellum-art[data-vellum-motion=on] .rh-vellum-stars i{animation:rh-foil-flicker 8s ease-in-out infinite;animation-delay:var(--vellum-clock,0s)}
.rh-vellum-art[data-vellum-motion=on] .rh-vellum-stars i:nth-child(2){animation-delay:calc(var(--vellum-clock,0s) - 2.5s)}
.rh-vellum-art[data-vellum-motion=on] .rh-vellum-stars i:nth-child(3){animation-delay:calc(var(--vellum-clock,0s) - 5.1s)}
.rh-vellum-art[data-vellum-motion=on] .rh-vellum-stars i:nth-child(4){animation-delay:calc(var(--vellum-clock,0s) - 1.4s)}
.rh-vellum-art[data-vellum-paused] .rh-vellum-dial::before,.rh-vellum-art[data-vellum-paused] .rh-vellum-stars i,
[inert] .rh-vellum-art .rh-vellum-dial::before,[inert] .rh-vellum-art .rh-vellum-stars i{animation-play-state:paused}
html:is([data-rh-quality=low],[data-rh-motion=reduced]) .rh-vellum-art .rh-vellum-dial::before,
html:is([data-rh-quality=low],[data-rh-motion=reduced]) .rh-vellum-art .rh-vellum-stars i{animation:none}
@media(prefers-reduced-motion:reduce){
  html:not([data-rh-motion=full]) .rh-vellum-art .rh-vellum-dial::before,
  html:not([data-rh-motion=full]) .rh-vellum-art .rh-vellum-stars i{animation:none}
}
@media(max-width:740px){
  .rh-vellum-dial{inline-size:clamp(225px,53%,340px);right:-14%;top:-6%;opacity:.53}
  .rh-vellum-art::after{background-size:81px auto;background-position:2px 2px}
  .rh-vellum-sky{background-size:67px auto}
  .rh-vellum-stars i:nth-child(4){display:none}
  .ll-folio .rh-vellum-dial{inline-size:clamp(180px,55%,262px);right:-16%;bottom:-19%;opacity:.48}
}
@media(max-height:490px) and (orientation:landscape){
  .rh-vellum-dial{inline-size:clamp(205px,32%,338px);right:-7%;top:-34%}
  .ll-folio .rh-vellum-dial{inline-size:190px;right:-16%;bottom:-30%}
}
@media(prefers-reduced-transparency:reduce){
  #play-screen :is(.cl-shell>.cl-main,.vanity .vn-gallery,.ll-screen .ll-folio){background-color:#ebdbba}
}
@media(forced-colors:active){#play-screen .rh-vellum-art{display:none}}
