.pl-invite { padding-bottom: 16px; }
.pl-invite .ac-link { color: #f5d15a; font-size: 11px; }
.pl-scroll { position: relative; border-top: 1px solid #ffffff26; background: #000; scroll-margin-top: 20px; }
.pl-scroll.is-ready { height: calc(100svh + 760px); }
.pl-sticky { padding-top: 32px; padding-bottom: 18px; }
.is-ready .pl-sticky { position: sticky; top: 16px; }
.pl-heading, .pl-tools, .pl-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pl-heading h2 { font-size: 32px; }
.pl-tools { gap: 4px; }
.pl-tools .ac-icon { border: 1px solid #334039; border-radius: 50%; }
.pl-tools .ac-icon:disabled { opacity: .4; }
.pl-scene { position: relative; height: min(540px, 64svh); min-height: 390px; margin-top: 18px; overflow: hidden; isolation: isolate; }
.pl-chapter { position: absolute; top: 18px; left: 0; color: #e6ece8; z-index: 1; pointer-events: none; }
.pl-chapter > span { font: 10px "Roboto Mono", monospace; color: #7cebd1; }
.pl-chapter p { font-size: 22px; font-weight: 600; margin: 6px 0; }
.pl-paper { position: absolute; left: 0; top: 0; width: 116px; height: 116px; transform: translate(290px, 20px) rotate(-12deg); pointer-events: none; z-index: 1; filter: drop-shadow(0 6px 0 #ffffff14); }
.pl-paper-body, .pl-paper-fold { position: absolute; inset: 0; }
.pl-paper-body { background: #7cebd1; clip-path: polygon(18% 5%,70% 5%,88% 23%,88% 95%,18% 95%,18% 60%,18% 40%,18% 5%); }
.pl-paper-fold { background: #173e32; clip-path: polygon(70% 5%,70% 24%,88% 24%); opacity: .65; }
.pl-floor { position: absolute; left: 0; right: 0; bottom: 23px; height: 1px; background: #ffffff30; }
.pl-floor::before, .pl-floor::after { content: ''; position: absolute; bottom: -4px; width: 9px; height: 9px; border: 1px solid #f5d15a; background: #000; transform: rotate(45deg); }
.pl-floor::before { left: 4px; }.pl-floor::after { right: 4px; border-color: #ffac8c; }
.pl-arena { position: absolute; inset: 120px 8px 24px; }
.pl-puppet { --tilt: 0deg; position: absolute; left: 0; top: 0; width: 124px; padding: 30px 7px 0; border: 0; background: transparent; color: #fff; cursor: grab !important; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transform: translate3d(var(--x,0px),var(--y,0px),0) rotate(var(--tilt)); transform-origin: 50% 75%; z-index: 2; border-radius: 6px; }
.pl-doer { width: 154px; }
.pl-puppet:disabled { opacity: 1 !important; cursor: default !important; }
.pl-puppet.is-dragging { cursor: grabbing !important; z-index: 10; }
.pl-puppet:focus-visible { outline: 2px dashed #7cebd1; outline-offset: 3px; z-index: 11; }
.pl-figure { display: block; transform-origin: 50% 90%; }
.pl-puppet .om-character { display: block; pointer-events: none; }
.pl-speech { position: absolute; top: 0; left: 50%; transform: translateX(-50%) rotate(-4deg); width: max-content; max-width: 100%; border-radius: 6px 6px 6px 0; padding: 6px 9px; background: #f5d15a; color: #111; font-size: 10px; font-weight: 800; line-height: 1.5; pointer-events: none; }
.pl-doer .pl-speech { background: #7cebd1; transform: translateX(-50%) rotate(4deg); }
.pl-speech { z-index: 3; }
.pl-friend .pl-speech { background: #ffac8c; }
.pl-grip { position: absolute; bottom: 13px; right: 0; width: 26px; height: 26px; display: grid; place-items: center; background: #141a16; border: 1px solid #4b5b51; border-radius: 50%; color: #a9c2b2; pointer-events: none; }
.pl-grip svg { width: 14px; height: 14px; }
.pl-puppet:hover .pl-grip, .pl-puppet:focus-visible .pl-grip, .pl-puppet.is-dragging .pl-grip { background: #7cebd1; color: #10271c; }
.pl-scroll.is-paused .om-character, .pl-scroll.is-offscreen .om-character, .pl-puppet.is-dragging .om-character { animation-play-state: paused; }
.pl-progress { display: block; width: 72px; height: 3px; background: #334039; flex-shrink: 0; }
.pl-progress > span { display: block; width: 100%; height: 100%; background: #7cebd1; transform: scaleX(0); transform-origin: left; }
.pl-motto { color: #9eaaa3; font-size: 11px; margin-right: auto; }
.pl-bottom .ac-link { color: #7cebd1; }
.pl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pl-puppet.pl-planner { --x: 100px; --y: 20px; }.pl-puppet.pl-doer { --x: 380px; --y: 0px; }.pl-puppet.pl-friend { --x: 750px; --y: 20px; }
@media (max-width: 900px) {
    .pl-scroll.is-ready { height: calc(100svh + 620px); }
    .pl-scene { height: min(500px, 62svh); }
    .pl-puppet { width: 106px; }.pl-doer { width: 132px; }
    .pl-puppet.pl-planner { --x: 20px; }.pl-puppet.pl-doer { --x: 210px; }.pl-puppet.pl-friend { --x: 430px; }
}
@media (max-width: 600px) {
    .pl-invite { padding-bottom: 12px; }.pl-invite .ac-link { min-height: 34px; }
    .pl-scroll.is-ready { height: calc(100svh + 520px); }.is-ready .pl-sticky { top: 0; }
    .pl-sticky { padding-top: 22px; padding-bottom: 12px; }
    .pl-heading { gap: 8px; }.pl-heading h2 { font-size: 27px; }.pl-heading .ac-eyebrow { font-size: 8px; }
    .pl-tools .ac-icon { width: 40px; height: 40px; min-height: 40px; }
    .pl-scene { height: min(520px, 62svh); min-height: 360px; margin-top: 14px; }
    .pl-chapter p { font-size: 19px; }.pl-chapter { top: 8px; }
    .pl-paper { width: 84px; height: 84px; transform: translate(180px, 28px) rotate(-12deg); }
    .pl-arena { inset: 110px 0 20px; }
    .pl-puppet { width: 84px; padding-inline: 5px; }.pl-doer { width: 102px; }
    .pl-speech { font-size: 8px; padding: 5px 7px; }
    .pl-grip { width: 24px; height: 24px; right: 0; bottom: 12px; }
    .pl-bottom { gap: 12px; }.pl-progress { width: 40px; }.pl-motto { font-size: 9px; max-width: 140px; }.pl-bottom .ac-link { font-size: 11px; }
    .pl-puppet.pl-planner { --x: 0px; }.pl-puppet.pl-doer { --x: 95px; }.pl-puppet.pl-friend { --x: 200px; }
}
@media (max-height: 640px) and (min-width: 601px) {
    .pl-sticky { padding-top: 12px; }.is-ready .pl-sticky { top: 0; }.pl-heading h2 { font-size: 24px; }
    .pl-scene { height: 315px; min-height: 315px; margin-top: 8px; }.pl-arena { top: 85px; }
    .pl-puppet { width: 88px; }.pl-doer { width: 106px; }.pl-paper { width: 84px; height: 84px; }
}
@media (max-height: 550px) { .is-ready .pl-sticky { position: relative; }.pl-scroll.is-ready { height: auto; } }
@media (prefers-reduced-motion: reduce) { .pl-scroll.is-ready { height: auto; }.is-ready .pl-sticky { position: relative; } }
