/* fx-play: the in-page player for play/ (a torn paper sheet taped onto velvet, pressed open by the wax seal) */
.pl-ov{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:clamp(12px,2.4vw,28px);
  background:radial-gradient(80% 70% at 50% 40%,rgba(111,29,17,.55),rgba(18,6,5,0) 70%),rgba(18,6,5,.94);color:var(--ink);overflow:hidden;overscroll-behavior:contain}
.pl-ov[hidden]{display:none}
.pl-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.pl-sheet{position:relative;display:flex;flex-direction:column;width:min(1240px,100%);height:100%;max-height:960px;
  padding:clamp(16px,1.8vw,24px) clamp(16px,2vw,28px) clamp(18px,2vw,28px);filter:drop-shadow(0 26px 40px rgba(10,2,1,.55))}
.pl-paper{position:absolute;inset:0;background:var(--ivory) var(--paper);background-size:900px auto;
  box-shadow:inset 0 0 0 10px var(--ivory),inset 0 0 0 11px rgba(160,108,27,.5)}
.pl-sheet .tape{z-index:3}
.pl-sheet .tape.a{left:-58px;top:-4px}.pl-sheet .tape.b{right:-58px;top:-4px}

.pl-bar{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding:4px 34px 12px 34px;border-bottom:1px solid rgba(160,108,27,.45)}
.pl-t{font-family:var(--display);font-size:clamp(26px,2.4vw,34px);line-height:1.05;color:var(--sienna)}
.pl-t .hi{font-family:var(--hindi);font-size:.8em;color:var(--gold-2);margin-right:4px}
.pl-note{flex:1 1 16em;min-width:0;font-size:14px;line-height:1.4;color:var(--ink-2)}
.pl-new{margin-left:auto;font-size:14.5px;font-weight:600;color:var(--sienna);text-decoration:underline;text-decoration-color:rgba(111,29,17,.4);text-underline-offset:3px;padding:12px 2px}
.pl-new:hover{text-decoration-color:currentColor}
.pl-x{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border-radius:3px;border:1px solid var(--sienna);background:var(--sienna);
  box-shadow:inset 0 0 0 3px var(--sienna),inset 0 0 0 4px rgba(231,200,119,.55);cursor:pointer;touch-action:manipulation;transition:transform .25s var(--spring),background .2s}
.pl-x:hover{background:var(--sienna-2)}.pl-x:active{transform:scale(.94)}
.pl-x svg{width:18px;height:18px;fill:none;stroke:var(--ivory);stroke-width:2;stroke-linecap:round}

.pl-frame{position:relative;z-index:1;flex:1;min-height:0;margin-top:14px;background:#fff;outline:1px solid rgba(160,108,27,.55);outline-offset:3px}
.pl-game{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#fff}
.pl-load{position:absolute;inset:0;z-index:1;display:none;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--ivory);
  font-family:var(--mono);font-size:14px;color:var(--ink-2)}
.pl-load img{width:96px;height:96px;opacity:.9}
.pl-ov.loading .pl-load{display:flex}
.pl-ov.loading .pl-load img{animation:plBreathe 1.6s ease-in-out infinite}
@keyframes plBreathe{50%{transform:scale(.94) rotate(-4deg);opacity:.7}}

/* the entrance: the seal presses the velvet, then the slip unrolls from it, sideways first, then down */
.pl-seal{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;z-index:4;pointer-events:none;opacity:0}
.pl-ov.in{animation:plGround .22s ease-out both}
.pl-ov.in .pl-seal{animation:plStamp .9s cubic-bezier(.22,1,.36,1) both}
.pl-ov.in .pl-sheet{animation:plUnroll .78s cubic-bezier(.22,1,.36,1) .26s both}
.pl-ov.in .pl-bar,.pl-ov.in .pl-frame{animation:plInk .4s ease-out .7s both}
@keyframes plGround{from{opacity:0}}
@keyframes plStamp{
  0%{opacity:0;transform:scale(1.9) rotate(-14deg)}
  34%{opacity:1;transform:scale(.9) rotate(2deg)}
  46%{opacity:1;transform:scale(1.02) rotate(0)}
  62%{opacity:1;transform:scale(1)}
  100%{opacity:0;transform:scale(.7) translateY(-12px)}}
@keyframes plUnroll{
  0%{clip-path:inset(48% 46% 48% 46%);transform:scale(.98)}
  42%{clip-path:inset(47% -60px 47% -60px);transform:scale(.99)}
  100%{clip-path:inset(-60px -60px -60px -60px);transform:none}}
@keyframes plInk{from{opacity:0}}
.pl-ov.out{animation:plOut .2s cubic-bezier(.7,0,.84,0) both}
@keyframes plOut{to{opacity:0}}

@media (max-width:899px){.pl-note{display:none}}
@media (prefers-reduced-motion: reduce){
  .pl-ov.in,.pl-ov.in .pl-seal,.pl-ov.in .pl-sheet,.pl-ov.in .pl-bar,.pl-ov.in .pl-frame,.pl-ov.out,.pl-ov.loading .pl-load img{animation:none}
}
