.av-stage{position:relative;aspect-ratio:1/1;overflow:hidden;background:linear-gradient(180deg,#2e2e2e 0%,#7c7c7c 62%,#b4b4b4 100%);user-select:none;-webkit-user-select:none}
.av-stage>img{display:block;width:100%;height:100%;object-fit:cover}
.av-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:pan-y;opacity:0;transition:opacity .7s ease;outline:0}
.av-canvas:active{cursor:grabbing}
.av-ready .av-canvas{opacity:1}
.av-canvas:focus-visible{box-shadow:inset 0 0 0 2px var(--gold,#c9a044)}
.av .av-status,.av .av-note,.av .av-hint{position:absolute;margin:0;font-size:.8rem}
.av .av-status{left:50%;top:50%;transform:translate(-50%,-50%);color:#f2f0eb;background:rgba(0,0,0,.6);padding:.45rem .8rem;border-radius:2px}
.av-status:empty{display:none}
.av .av-hint{left:.7rem;top:.7rem;max-width:calc(100% - 1.4rem);font-size:.72rem;letter-spacing:.06em;color:#f2f0eb;background:rgba(0,0,0,.45);padding:.32rem .55rem;border-radius:2px;pointer-events:none;opacity:0;transition:opacity .6s ease}
.av-ready .av-hint{opacity:1}
.av .av-note{left:50%;top:44%;transform:translate(-50%,-50%);white-space:nowrap;color:#f2f0eb;background:rgba(0,0,0,.8);padding:.5rem .9rem;border-radius:2px;opacity:0;pointer-events:none;transition:opacity .25s ease}
.av-note.on{opacity:1}
.av-controls{position:absolute;left:50%;bottom:.8rem;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:4px;background:rgba(12,12,12,.88);border:1px solid rgba(255,255,255,.18);border-radius:999px;opacity:0;transition:opacity .5s ease}
.av-ready .av-controls{opacity:1}
.av-controls button{appearance:none;display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;border:0;border-radius:999px;background:transparent;color:#f2f0eb;cursor:pointer;touch-action:manipulation;transition:background-color .15s ease,color .15s ease}
.av-controls button:hover{background:rgba(255,255,255,.12);color:var(--gold,#c9a044)}
.av-controls button:active{background:var(--gold,#c9a044);color:#111}
.av-controls button:focus-visible{outline:2px solid var(--gold,#c9a044);outline-offset:1px}
.av-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.av-controls .av-sep{width:1px;height:20px;margin:0 3px;background:rgba(255,255,255,.22)}
.av-off .av-canvas,.av-off .av-controls,.av-off .av-hint,.av-off .av-status,.av-off .av-note{display:none}
.av-failed .av-canvas,.av-failed .av-controls,.av-failed .av-hint,.av-failed .av-status,.av-failed .av-note,.av-failed .views .v3d{display:none}
.av-stage:fullscreen{aspect-ratio:auto;width:100vw;height:100vh}
.views .v3d{display:grid;place-items:center;aspect-ratio:1/1;background:linear-gradient(180deg,#2e2e2e,#9a9a9a);color:#f2f0eb;font-size:.85rem;letter-spacing:.08em}
@media (hover:none){.av-controls button{width:44px;height:44px}}
@media (prefers-reduced-motion:reduce){.av-canvas,.av-controls,.av-hint{transition:none}}
.av-ready:not(.av-off) .av-stage>img{opacity:0;transition:opacity .7s ease}
