.pm-playground{--accent:#9e1f78;box-sizing:border-box;width:100%;margin:64px 0 40px;color:#171217;font-family:inherit;font-size:18px;line-height:1.55}
.pm-playground *{box-sizing:border-box}.pm-playground [hidden]{display:none!important}
.pm-playground p{font-size:18px;line-height:1.55}.pm-playground button,.pm-playground input,.pm-playground summary{font:inherit;font-size:16px;line-height:1.5}
.pm-playground button{cursor:pointer;touch-action:manipulation}.pm-playground button:disabled{opacity:.5;cursor:default}
.pm-playground :is(button,input,summary,.cube-stage):focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.pm-playground .play-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
.pm-playground .eyebrow{font-size:16px;color:var(--accent);margin:0 0 12px;font-weight:700}
.pm-playground .play-heading h3{font-size:clamp(34px,4vw,54px);line-height:1.08;letter-spacing:-.05em;margin:0 0 14px;font-weight:700}
.pm-playground .play-heading h3 span{color:var(--accent)}.pm-playground .play-hint{margin:0;color:#625965}
.pm-playground .container-mark{font-size:16px;line-height:1.7;text-align:right;color:#68546d;flex-shrink:0}
.pm-playground .cube-container{position:relative;border:1px solid #c7baca;border-radius:28px;padding:8px;background:linear-gradient(145deg,#fff,#e8e1ea 48%,#cfc3d3);box-shadow:0 2px 0 #fff inset,0 20px 35px -28px #29122f66}
.pm-playground .container-rail,.pm-playground .container-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding:14px 20px;font-size:16px;line-height:1.5;color:#65516b}
.pm-playground .cube-stage{position:relative;width:100%;height:660px;border:1px solid #d4c8d8;border-radius:17px;overflow:hidden;background:linear-gradient(180deg,#f7f4f8,#f1ebf3 70%,#e8deed);box-shadow:0 3px 14px #41234d14 inset;cursor:grab}
.pm-playground .cube-stage.dragging{cursor:grabbing}.pm-playground .cube-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.pm-playground .cube-container,.pm-playground .cube-container *{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.pm-playground .container-rail,.pm-playground .container-base,.pm-playground .stage-caption,.pm-playground .stage-index{pointer-events:none}
.pm-playground .stage-loader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:14px;color:#625965;padding:20px;text-align:center}
.pm-playground .stage-loader>span{width:16px;height:16px;flex-shrink:0;background:var(--accent);border-radius:3px;animation:pm-cube-loading 1.5s ease-in-out infinite}
.pm-playground .stage-caption{position:absolute;left:18px;bottom:13px;font-size:16px;color:#65516b;z-index:2}.pm-playground .stage-index{display:none}
.pm-playground #no-webgl{position:absolute;inset:35% 0 auto;font-size:18px;padding:24px;text-align:center}
.pm-playground .motion-cue{position:absolute;pointer-events:none;border:1px solid #9e1f7838;width:84px;height:84px;border-radius:50%;transform:translate(-50%,-50%);z-index:1;opacity:0}
.pm-playground .pointer-active .motion-cue{opacity:1}
.pm-playground .container-tools{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:24px;margin-top:25px}
.pm-playground .motion-tools{position:relative;display:grid;grid-template-columns:minmax(360px,1fr) minmax(260px,1fr);gap:0 30px;align-items:start;flex:1;min-width:0}
.pm-playground .motion-enable{display:flex;align-items:center;gap:14px;width:100%;min-height:112px;border-radius:16px;padding:18px;border:1px solid var(--accent);background:var(--accent);color:#fff;text-align:left;grid-row:1/3;transition:background .2s,transform .2s}
.pm-playground .motion-enable:hover{background:#b12a8b;transform:translateY(-2px)}
.pm-playground .motion-enable>svg{width:32px;height:38px;flex:0 0 32px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pm-playground .motion-enable>span:not(.motion-arrow){display:grid;gap:6px}.pm-playground .motion-enable strong{font-size:18px;font-weight:700;line-height:1.35}
.pm-playground .motion-enable small{font-size:16px;font-weight:400;line-height:1.5;color:#fff0fb}.pm-playground .motion-arrow{font-size:28px;line-height:1;margin-left:auto}
.pm-playground .motion-enable[aria-pressed=true]{background:#241328;border-color:#241328}
.pm-playground .motion-status{grid-column:1;margin:10px 0 0;color:#625965}
.pm-playground .motion-calibrate{grid-column:1;grid-row:3;margin-top:12px;min-height:44px;border:1px solid #c7baca;border-radius:24px;padding:10px 16px;background:transparent;white-space:normal}
.pm-playground .micro-actions{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;gap:8px}
.pm-playground .micro-actions button,.pm-playground .test-panel button{display:flex;gap:12px;align-items:center;justify-content:center;background:transparent;border:1px solid #c7baca;border-radius:30px;padding:10px 15px;min-height:44px;color:#302333}
.pm-playground .micro-actions button:hover,.pm-playground .test-panel button:hover{background:#e9dbe8;border-color:var(--accent)}
.pm-playground .test-controls{grid-column:2;grid-row:2/5;width:100%;margin-top:5px}
.pm-playground .test-controls summary{display:flex;align-items:start;justify-content:space-between;gap:10px;cursor:pointer;min-height:44px;list-style:none;color:#625965;white-space:normal}
.pm-playground .test-controls summary::-webkit-details-marker{display:none}.pm-playground .test-controls[open] summary{color:var(--accent)}
.pm-playground .test-panel{padding:18px;background:#ece5ef;border-radius:12px}.pm-playground .test-panel label{display:flex;justify-content:space-between;font-size:16px;margin-bottom:12px}
.pm-playground .test-panel input{width:100%;margin:0 0 18px;accent-color:var(--accent);cursor:ew-resize}.pm-playground .test-panel output{font-size:16px}.pm-playground .test-panel button{width:100%;white-space:normal}
.pm-playground .container-note{color:#625965;max-width:230px;flex-shrink:0;margin:4px 0}
@keyframes pm-cube-loading{50%{transform:rotate(90deg);border-radius:50%}}
@media(max-width:1100px){.pm-playground .container-tools{display:block}.pm-playground .motion-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.pm-playground .container-note{max-width:none;margin-top:20px}.pm-playground .cube-stage{height:620px}}
@media(max-width:700px){.pm-playground{margin-top:44px}.pm-playground .play-heading{display:block;margin-bottom:20px}.pm-playground .container-mark{text-align:left;margin-top:18px}.pm-playground .cube-container{border-radius:22px;padding:5px}.pm-playground .cube-stage{height:clamp(400px,120vw,540px);border-radius:13px}.pm-playground .container-rail{flex-direction:column;align-items:start;padding:14px 12px}.pm-playground .container-base{padding:14px 12px}.pm-playground .container-tools{margin-top:20px}.pm-playground .motion-tools{display:flex;flex-direction:column;gap:0}.pm-playground .motion-enable{padding:18px 14px;min-height:128px;gap:10px}.pm-playground .motion-status{margin-top:10px}.pm-playground .micro-actions{order:1;margin-top:14px}.pm-playground .test-controls{order:2;margin-top:8px}.pm-playground .motion-calibrate{margin-top:12px}.pm-playground .motion-cue{display:none}}
@media(prefers-reduced-motion:reduce){.pm-playground *,.pm-playground *:before,.pm-playground *:after{animation:none!important;transition:none!important}}
