ksk-scene{display:block;position:relative;min-width:0;color:#242621;background:var(--scene-bg,#f2f3f0)}
ksk-scene[bare]{background:var(--scene-bg,transparent)}
ksk-scene [hidden],ksk-scene[bare] .ks-controls,ksk-scene[compact] .ks-build{display:none!important}
ksk-scene .ks-viewport{position:relative;width:100%;height:var(--scene-height,clamp(300px,55vh,680px));overflow:hidden}
ksk-scene .ks-viewport canvas,ksk-scene .ks-poster{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain;touch-action:pan-y;cursor:grab;user-select:none}
ksk-scene .ks-viewport canvas:active{cursor:grabbing}
ksk-scene .ks-error{position:absolute;bottom:6px;left:5%;right:5%;text-align:center;background:#fff;padding:8px;font-size:14px}
ksk-scene .ks-controls,ksk-scene .ks-adjust,ksk-scene .ks-build{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px}
ksk-scene .ks-controls{padding:12px 16px 22px;gap:16px}
ksk-scene .ks-controls :is(button,select){display:inline-flex;position:static;align-items:center;justify-content:center;width:auto;min-width:44px;height:44px;margin:0;padding:0 15px;border:1px solid #292b252e;border-radius:24px;color:#22251f;background:transparent;font:inherit;font-size:14px;cursor:pointer}
ksk-scene .ks-adjust button{width:44px;padding:0}
@media(hover:hover){ksk-scene .ks-controls button:hover{background:#fff;color:#22251f}}
ksk-scene .ks-adjust svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
ksk-scene .ks-controls [data-ks=play],ksk-scene .ks-controls button[aria-pressed=true]{background:#252823;color:#fff}
ksk-scene .ks-controls input{width:min(100%,260px);height:34px;accent-color:#57720f;cursor:pointer}
ksk-scene :focus-visible{outline:3px solid #59750d;outline-offset:-3px}
ksk-scene[bare] .ks-error{display:none}
ksk-scene .ks-viewport:has(.ks-error:not([hidden])) img{cursor:default}
ksk-scene:not([bare]) .ks-viewport:has(.ks-error:not([hidden])) img{height:calc(100% - 58px)}
ksk-scene .ks-controls .ks-build [data-ks=play],ksk-scene .ks-controls .ks-build [aria-pressed=true]{background:#252823;color:#fff}
@media(hover:hover){ksk-scene .ks-controls .ks-build [data-ks=play]:hover,ksk-scene .ks-controls .ks-build [aria-pressed=true]:hover{background:#42473e;color:white}}
@media(max-width:580px){
  ksk-scene:not([bare]) .ks-viewport{max-height:35dvh}
  ksk-scene .ks-controls{gap:12px;padding:8px 10px 12px}
  ksk-scene .ks-build{width:100%;max-width:380px}
  ksk-scene .ks-build select{order:-1;width:100%;max-width:320px}
  ksk-scene .ks-controls input{width:100%;max-width:320px}
  ksk-scene .ks-build button{padding-inline:10px}
}
