:root{color-scheme:dark;--ink:#eff2ff;--muted:#a7afd1;--pink:#f52a9b;--cyan:#39dcff;--bg:#050713}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 50% 15%,#11183b 0,#050713 58%);font-family:Inter,"SF Pro Display","PingFang SC",sans-serif;color:var(--ink)}body{display:flex;justify-content:center;padding:24px}.stage-shell{width:min(1240px,100%)}.stage{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:16/9;border-radius:22px;background:#0a0c18;box-shadow:0 30px 90px #0008,0 0 0 1px #ffffff18;touch-action:none;cursor:grab}.stage.dragging{cursor:grabbing}.scene-stack,.scene-card{position:absolute;inset:0}.scene-card{overflow:hidden;opacity:0;transform:scale(1.08);filter:saturate(1.04) contrast(1.02);will-change:transform,opacity,filter}.scene-card.active{opacity:1;transform:scale(1);z-index:2}.scene-card img{width:100%;height:100%;display:block;object-fit:cover}.scene-card::before,.scene-card::after{content:"";position:absolute;inset:-5%;background:inherit;pointer-events:none}.scene-card::before{opacity:.22;mix-blend-mode:screen;transform:scale(1.06);filter:blur(7px) saturate(1.5)}.scene-card::after{opacity:.15;mix-blend-mode:screen;transform:scale(1.13);filter:blur(18px) saturate(1.7)}.scene-card.leaving{z-index:3;animation:leave 1.2s cubic-bezier(.18,.72,.2,1) forwards}.scene-card.entering{z-index:4;animation:enter 1.2s cubic-bezier(.15,.76,.25,1) forwards}@keyframes enter{0%{opacity:0;transform:scale(.56);filter:blur(10px) saturate(1.7)}58%{opacity:1;transform:scale(1.08);filter:blur(0) saturate(1.2)}100%{opacity:1;transform:scale(1);filter:none}}@keyframes leave{0%{opacity:1;transform:scale(1);filter:none}42%{opacity:1;transform:scale(1.2);filter:blur(1px) saturate(1.35)}100%{opacity:0;transform:scale(1.72);filter:blur(10px) saturate(1.7)}}.warp-lines{position:absolute;inset:0;z-index:8;pointer-events:none;opacity:0;mix-blend-mode:screen}.warp-lines i{position:absolute;left:50%;top:50%;width:2px;height:55%;transform-origin:50% 100%;background:linear-gradient(transparent,var(--cyan),transparent);filter:blur(.3px);opacity:.7}.warp-lines i:nth-child(1){transform:rotate(8deg)}.warp-lines i:nth-child(2){transform:rotate(29deg)}.warp-lines i:nth-child(3){transform:rotate(54deg)}.warp-lines i:nth-child(4){transform:rotate(78deg)}.warp-lines i:nth-child(5){transform:rotate(110deg)}.warp-lines i:nth-child(6){transform:rotate(142deg)}.warp-lines i:nth-child(7){transform:rotate(168deg)}.warp-lines i:nth-child(8){transform:rotate(198deg)}.stage.warp .warp-lines{animation:warp 1.2s ease-out forwards}@keyframes warp{0%{opacity:0;transform:scale(.2)}18%{opacity:.9}100%{opacity:0;transform:scale(2.5)}}.grain{position:absolute;inset:0;z-index:9;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");mix-blend-mode:soft-light}.hud{position:absolute;z-index:12;inset:0 0 auto;display:flex;justify-content:flex-end;align-items:flex-start;padding:28px 32px;text-shadow:0 2px 12px #0009}.eyebrow{margin:0 0 8px;color:var(--cyan);font-size:10px;letter-spacing:.22em;font-weight:700}.hud h1{margin:0;font-size:clamp(26px,4vw,54px);line-height:1;letter-spacing:-.05em}.scene-caption{margin:10px 0 0;color:#fffbd6;font-size:clamp(12px,1.3vw,16px);opacity:.9}.counter{font-variant-numeric:tabular-nums;font-size:clamp(22px,3vw,38px);font-weight:700;letter-spacing:.08em}.counter b{color:var(--pink);font-weight:400;margin:0 5px}.center-reticle{position:absolute;z-index:11;left:50%;top:50%;width:18px;height:18px;transform:translate(-50%,-50%);border:1px solid #fff8;border-radius:50%;box-shadow:0 0 24px #39dcff99}.center-reticle span{position:absolute;left:50%;top:50%;width:4px;height:4px;background:var(--pink);border-radius:50%;transform:translate(-50%,-50%)}.hud-bottom{position:absolute;z-index:12;left:32px;right:32px;bottom:26px;display:flex;align-items:center;gap:18px}.gesture-readout{display:flex;align-items:center;gap:9px;font-size:12px;color:#fff}.dot{width:8px;height:8px;border-radius:50%;background:var(--cyan);box-shadow:0 0 14px var(--cyan)}.progress{height:2px;background:#ffffff33;flex:1;overflow:hidden}.progress span{display:block;height:100%;width:16.66%;background:linear-gradient(90deg,var(--pink),var(--cyan));transition:width .5s ease}.toast{position:absolute;z-index:13;left:50%;bottom:76px;transform:translate(-50%,20px);padding:9px 15px;border:1px solid #fff3;border-radius:99px;background:#060914bb;backdrop-filter:blur(12px);font-size:12px;color:#fff;opacity:0;pointer-events:none}.toast.show{animation:toast 1.5s ease both}@keyframes toast{0%{opacity:0;transform:translate(-50%,20px)}18%,74%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-8px)}}.controls{display:flex;justify-content:space-between;align-items:center;padding:17px 4px}.control-copy{display:flex;flex-direction:column;gap:5px}.control-copy strong{font-size:14px}.control-copy span{font-size:12px;color:var(--muted)}.buttons{display:flex;gap:8px}button{border:1px solid #ffffff25;border-radius:99px;padding:10px 15px;background:#ffffff0d;color:var(--ink);font:inherit;font-size:12px;cursor:pointer;transition:.2s ease}button:hover{background:#ffffff1b;transform:translateY(-1px)}button.primary{border-color:#ef3cab88;background:linear-gradient(135deg,#ed2d9f,#4c65ff);box-shadow:0 8px 22px #ef2c9a33}@media(max-width:700px){body{padding:10px}.stage{border-radius:14px}.hud{padding:16px}.hud-bottom{left:16px;right:16px;bottom:16px}.controls{display:block}.control-copy{margin-bottom:12px}.buttons{justify-content:space-between}.buttons button{flex:1;padding:9px 8px}.scene-caption{max-width:210px}}
.scene-card .ink-layer,.scene-card .wash-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0}.scene-card .ink-layer{mix-blend-mode:screen;filter:contrast(1.7) brightness(1.3)}.scene-card .wash-layer{mix-blend-mode:screen;filter:saturate(1.8);opacity:0}.scene-card.leaving-forward .ink-layer,.scene-card.leaving-back .ink-layer{animation:inkDissolve 1.5s ease-in-out forwards}.scene-card.leaving-forward .wash-layer,.scene-card.leaving-back .wash-layer{animation:washScatter 1.5s ease-out forwards}.scene-card.entering-forward .ink-layer,.scene-card.entering-back .ink-layer{animation:inkArrive 1.5s ease-out forwards}.scene-card.entering-forward .wash-layer,.scene-card.entering-back .wash-layer{animation:washArrive 1.5s ease-out forwards}@keyframes inkDissolve{0%{opacity:0;transform:scale(1)}28%{opacity:.05}62%{opacity:.86;transform:scale(1.06)}100%{opacity:.22;transform:scale(1.28)}}@keyframes washScatter{0%{opacity:0;transform:scale(1)}48%{opacity:.16;transform:scale(1.08)}100%{opacity:0;transform:scale(1.42) rotate(1deg);filter:blur(8px) saturate(2.4)}}@keyframes inkArrive{0%{opacity:.76;transform:scale(.42);filter:blur(12px) contrast(1.8)}48%{opacity:.4;transform:scale(.9);filter:blur(3px) contrast(1.6)}100%{opacity:0;transform:scale(1);filter:none}}@keyframes washArrive{0%{opacity:0;transform:scale(.32)}52%{opacity:.18;transform:scale(.8)}100%{opacity:0;transform:scale(1)}}.scene-card.leaving-back{animation:leaveBack 1.5s cubic-bezier(.18,.72,.2,1) forwards}.scene-card.entering-back{animation:enterBack 1.5s cubic-bezier(.15,.76,.25,1) forwards}@keyframes leaveBack{0%{opacity:1;transform:scale(1);filter:none}42%{opacity:1;transform:scale(.83);filter:blur(1px)}100%{opacity:0;transform:scale(.32);filter:blur(11px)}}@keyframes enterBack{0%{opacity:0;transform:scale(1.7);filter:blur(12px)}50%{opacity:1;transform:scale(.92);filter:blur(2px)}100%{opacity:1;transform:scale(1);filter:none}}.stage.reverse .warp-lines{transform:rotate(180deg)}
/* v4: original reference images become layered planes; no flat horizontal slide */
.scene-card{perspective:1100px;transform-style:preserve-3d;overflow:hidden;background:#070918}
.scene-card>img:not(.ink-layer):not(.wash-layer),.scene-card>img{position:absolute;inset:0}
.scene-layer{position:absolute;inset:-4%;overflow:hidden;transform-origin:50% 50%;transform-style:preserve-3d;will-change:transform,opacity,filter;pointer-events:none}
.scene-layer img{width:100%;height:100%;display:block;object-fit:cover;user-select:none}
.layer-bg{z-index:1;clip-path:inset(0);filter:saturate(.95) brightness(.86);transform:translateZ(-130px) scale(1.05)}
.layer-mid{z-index:2;clip-path:polygon(0 10%,100% 4%,100% 84%,0 90%);filter:saturate(1.05) contrast(1.05);transform:translateZ(-30px) scale(1.035)}
.layer-subject{z-index:3;clip-path:ellipse(35% 48% at 50% 53%);filter:saturate(1.16) contrast(1.08);transform:translateZ(45px) scale(1.01)}
.layer-foreground{z-index:4;clip-path:polygon(0 62%,100% 57%,100% 100%,0 100%);filter:saturate(1.25) contrast(1.15);transform:translateZ(120px) scale(.99)}
.scene-card>.ink-layer,.scene-card>.wash-layer{position:absolute;inset:-4%;width:108%;height:108%;object-fit:cover;pointer-events:none;opacity:0;z-index:6;will-change:transform,opacity,filter}.scene-card>.ink-layer{mix-blend-mode:screen;filter:contrast(2) brightness(1.45) saturate(.25)}.scene-card>.wash-layer{mix-blend-mode:screen;filter:saturate(1.8) blur(2px)}
.scatter-lines{position:absolute;inset:0;z-index:8;pointer-events:none;opacity:0;transform-origin:50% 50%;mix-blend-mode:screen}.scatter-lines i{position:absolute;left:50%;top:50%;width:2px;height:70%;transform-origin:50% 0;background:linear-gradient(transparent,#44e4ff,#f52a9b,transparent);box-shadow:0 0 9px #44e4ff;opacity:.74}.scatter-lines i:nth-child(1){transform:rotate(0deg)}.scatter-lines i:nth-child(2){transform:rotate(28deg)}.scatter-lines i:nth-child(3){transform:rotate(58deg)}.scatter-lines i:nth-child(4){transform:rotate(86deg)}.scatter-lines i:nth-child(5){transform:rotate(118deg)}.scatter-lines i:nth-child(6){transform:rotate(148deg)}.scatter-lines i:nth-child(7){transform:rotate(178deg)}.scatter-lines i:nth-child(8){transform:rotate(212deg)}
.scene-card.leaving-forward,.scene-card.leaving-back,.scene-card.entering-forward,.scene-card.entering-back{z-index:5;opacity:1}.scene-card.leaving-forward{animation:sceneForwardOut 2.2s cubic-bezier(.2,.65,.15,1) forwards}.scene-card.entering-forward{animation:sceneForwardIn 2.2s cubic-bezier(.16,.72,.22,1) forwards}.scene-card.leaving-back{animation:sceneBackOut 2.2s cubic-bezier(.2,.65,.15,1) forwards}.scene-card.entering-back{animation:sceneBackIn 2.2s cubic-bezier(.16,.72,.22,1) forwards}
.scene-card.leaving-forward .layer-bg{animation:planeForwardOut 2.2s ease-in forwards}.scene-card.leaving-forward .layer-mid{animation:planeForwardOut 2.05s .08s ease-in forwards}.scene-card.leaving-forward .layer-subject{animation:planeForwardOut 1.9s .16s ease-in forwards}.scene-card.leaving-forward .layer-foreground{animation:planeForwardOut 1.75s .24s ease-in forwards}.scene-card.entering-forward .layer-bg{animation:planeForwardIn 2.2s .2s ease-out both}.scene-card.entering-forward .layer-mid{animation:planeForwardIn 2.05s .12s ease-out both}.scene-card.entering-forward .layer-subject{animation:planeForwardIn 1.9s .04s ease-out both}.scene-card.entering-forward .layer-foreground{animation:planeForwardIn 1.75s ease-out both}
.scene-card.leaving-back .layer-bg{animation:planeBackOut 2.2s ease-in forwards}.scene-card.leaving-back .layer-mid{animation:planeBackOut 2.05s .08s ease-in forwards}.scene-card.leaving-back .layer-subject{animation:planeBackOut 1.9s .16s ease-in forwards}.scene-card.leaving-back .layer-foreground{animation:planeBackOut 1.75s .24s ease-in forwards}.scene-card.entering-back .layer-bg{animation:planeBackIn 2.2s .2s ease-out both}.scene-card.entering-back .layer-mid{animation:planeBackIn 2.05s .12s ease-out both}.scene-card.entering-back .layer-subject{animation:planeBackIn 1.9s .04s ease-out both}.scene-card.entering-back .layer-foreground{animation:planeBackIn 1.75s ease-out both}
.scene-card.leaving-forward>.ink-layer,.scene-card.leaving-back>.ink-layer{animation:inkSlowDissolve 2.2s ease-in-out forwards}.scene-card.leaving-forward>.wash-layer,.scene-card.leaving-back>.wash-layer{animation:washSlowScatter 2.2s ease-out forwards}.scene-card.leaving-forward>.scatter-lines,.scene-card.leaving-back>.scatter-lines{animation:scatterSlow 2.2s ease-out forwards}.scene-card.entering-forward>.ink-layer,.scene-card.entering-back>.ink-layer{animation:inkSlowArrive 2.2s ease-out forwards}.scene-card.entering-forward>.wash-layer,.scene-card.entering-back>.wash-layer{animation:washSlowArrive 2.2s ease-out forwards}
@keyframes sceneForwardOut{0%{opacity:1}78%{opacity:1}100%{opacity:0}}@keyframes sceneForwardIn{0%{opacity:0}22%{opacity:1}100%{opacity:1}}@keyframes sceneBackOut{0%{opacity:1}78%{opacity:1}100%{opacity:0}}@keyframes sceneBackIn{0%{opacity:0}22%{opacity:1}100%{opacity:1}}
@keyframes planeForwardOut{0%{transform:translateZ(0) scale(1);opacity:1;filter:inherit}48%{opacity:.9}100%{transform:translateZ(460px) scale(1.85);opacity:0;filter:blur(8px) saturate(1.7)}}@keyframes planeForwardIn{0%{transform:translateZ(-680px) scale(.12);opacity:0;filter:blur(13px) saturate(1.9)}55%{opacity:.9}100%{transform:translateZ(0) scale(1);opacity:1;filter:inherit}}@keyframes planeBackOut{0%{transform:translateZ(0) scale(1);opacity:1}100%{transform:translateZ(-650px) scale(.12);opacity:0;filter:blur(10px)}}@keyframes planeBackIn{0%{transform:translateZ(480px) scale(1.8);opacity:0;filter:blur(10px)}52%{opacity:.95}100%{transform:translateZ(0) scale(1);opacity:1;filter:inherit}}
@keyframes inkSlowDissolve{0%,18%{opacity:0;transform:scale(1)}54%{opacity:.12;transform:scale(1.06)}72%{opacity:.92;transform:scale(1.2)}100%{opacity:.22;transform:scale(1.46);filter:contrast(2.4) brightness(1.8) blur(2px)}}@keyframes washSlowScatter{0%,30%{opacity:0;transform:scale(1)}63%{opacity:.2;transform:scale(1.12)}100%{opacity:0;transform:scale(1.7);filter:blur(13px) saturate(2.4)}}@keyframes scatterSlow{0%,40%{opacity:0;transform:scale(.2)}63%{opacity:.72;transform:scale(1.05)}100%{opacity:0;transform:scale(2.8)}}@keyframes inkSlowArrive{0%{opacity:.84;transform:scale(.18);filter:contrast(2.2) brightness(1.6) blur(12px)}48%{opacity:.34;transform:scale(.72);filter:contrast(2) blur(4px)}100%{opacity:0;transform:scale(1)}}@keyframes washSlowArrive{0%{opacity:0;transform:scale(.18)}44%{opacity:.25;transform:scale(.68)}100%{opacity:0;transform:scale(1)}}
.stage.reverse .scatter-lines{transform:rotate(180deg)}
/* v5: finer depth stack for the original reference images */
.scene-card{--vp-x:50%;--vp-y:54%;}
.scene-card:nth-child(1){--vp-x:49%;--vp-y:54%}.scene-card:nth-child(2){--vp-x:53%;--vp-y:55%}.scene-card:nth-child(3){--vp-x:50%;--vp-y:57%}.scene-card:nth-child(4){--vp-x:49%;--vp-y:54%}.scene-card:nth-child(5){--vp-x:51%;--vp-y:57%}.scene-card:nth-child(6){--vp-x:53%;--vp-y:55%}
.scene-layer{transform-origin:var(--vp-x) var(--vp-y)}
.layer-atmosphere{z-index:1;clip-path:inset(0);opacity:.58;filter:blur(8px) saturate(.75) brightness(.78);transform:translateZ(-220px) scale(1.08)}
.layer-far{z-index:2;clip-path:polygon(0 0,100% 0,100% 58%,0 62%);opacity:.78;filter:saturate(.82) brightness(.84);transform:translateZ(-150px) scale(1.065)}
.layer-skyline{z-index:3;clip-path:polygon(0 5%,100% 0,100% 72%,0 77%);opacity:.88;filter:saturate(.94) contrast(1.02);transform:translateZ(-88px) scale(1.05)}
.layer-architecture{z-index:4;clip-path:polygon(0 15%,100% 10%,100% 88%,0 92%);filter:saturate(1.04) contrast(1.06);transform:translateZ(-35px) scale(1.035)}
.layer-ground{z-index:5;clip-path:polygon(0 54%,100% 49%,100% 100%,0 100%);filter:saturate(1.10) contrast(1.08);transform:translateZ(12px) scale(1.02)}
.layer-subject{z-index:6;clip-path:ellipse(31% 42% at var(--vp-x) var(--vp-y));filter:saturate(1.16) contrast(1.10);transform:translateZ(65px) scale(1.01)}
.layer-foreground{z-index:7;clip-path:polygon(0 66%,100% 58%,100% 100%,0 100%);filter:saturate(1.24) contrast(1.14);transform:translateZ(135px) scale(1)}
.layer-frame{z-index:8;clip-path:polygon(0 0,13% 0,29% 100%,0 100%,87% 0,100% 0,100% 100%,71% 100%);filter:saturate(1.32) contrast(1.18);transform:translateZ(220px) scale(.99)}
/* depth-specific forward motion: farther planes lag, near planes sweep past first */
.scene-card.leaving-forward .layer-atmosphere{animation:depthForwardOut 2.2s ease-in forwards}.scene-card.leaving-forward .layer-far{animation:depthForwardOut 2.05s .05s ease-in forwards}.scene-card.leaving-forward .layer-skyline{animation:depthForwardOut 1.95s .1s ease-in forwards}.scene-card.leaving-forward .layer-architecture{animation:depthForwardOut 1.85s .15s ease-in forwards}.scene-card.leaving-forward .layer-ground{animation:depthForwardOut 1.75s .2s ease-in forwards}.scene-card.leaving-forward .layer-subject{animation:depthForwardOut 1.65s .25s ease-in forwards}.scene-card.leaving-forward .layer-foreground{animation:depthForwardOut 1.55s .3s ease-in forwards}.scene-card.leaving-forward .layer-frame{animation:depthForwardOut 1.45s .35s ease-in forwards}
.scene-card.entering-forward .layer-atmosphere{animation:depthForwardIn 2.2s .22s ease-out both}.scene-card.entering-forward .layer-far{animation:depthForwardIn 2.05s .17s ease-out both}.scene-card.entering-forward .layer-skyline{animation:depthForwardIn 1.95s .12s ease-out both}.scene-card.entering-forward .layer-architecture{animation:depthForwardIn 1.85s .07s ease-out both}.scene-card.entering-forward .layer-ground{animation:depthForwardIn 1.75s .03s ease-out both}.scene-card.entering-forward .layer-subject{animation:depthForwardIn 1.65s ease-out both}.scene-card.entering-forward .layer-foreground{animation:depthForwardIn 1.55s ease-out both}.scene-card.entering-forward .layer-frame{animation:depthForwardIn 1.45s ease-out both}
.scene-card.leaving-back .layer-atmosphere{animation:depthBackOut 2.2s ease-in forwards}.scene-card.leaving-back .layer-far{animation:depthBackOut 2.05s .05s ease-in forwards}.scene-card.leaving-back .layer-skyline{animation:depthBackOut 1.95s .1s ease-in forwards}.scene-card.leaving-back .layer-architecture{animation:depthBackOut 1.85s .15s ease-in forwards}.scene-card.leaving-back .layer-ground{animation:depthBackOut 1.75s .2s ease-in forwards}.scene-card.leaving-back .layer-subject{animation:depthBackOut 1.65s .25s ease-in forwards}.scene-card.leaving-back .layer-foreground{animation:depthBackOut 1.55s .3s ease-in forwards}.scene-card.leaving-back .layer-frame{animation:depthBackOut 1.45s .35s ease-in forwards}
.scene-card.entering-back .layer-atmosphere{animation:depthBackIn 2.2s .22s ease-out both}.scene-card.entering-back .layer-far{animation:depthBackIn 2.05s .17s ease-out both}.scene-card.entering-back .layer-skyline{animation:depthBackIn 1.95s .12s ease-out both}.scene-card.entering-back .layer-architecture{animation:depthBackIn 1.85s .07s ease-out both}.scene-card.entering-back .layer-ground{animation:depthBackIn 1.75s .03s ease-out both}.scene-card.entering-back .layer-subject{animation:depthBackIn 1.65s ease-out both}.scene-card.entering-back .layer-foreground{animation:depthBackIn 1.55s ease-out both}.scene-card.entering-back .layer-frame{animation:depthBackIn 1.45s ease-out both}
@keyframes depthForwardOut{0%{transform:translateZ(0) scale(1);opacity:1}35%{opacity:.96}100%{transform:translateZ(520px) scale(1.95);opacity:0;filter:blur(10px) saturate(1.6)}}
@keyframes depthForwardIn{0%{transform:translateZ(-760px) scale(.12);opacity:0;filter:blur(15px) saturate(1.8)}50%{opacity:.92}100%{transform:translateZ(0) scale(1);opacity:1;filter:inherit}}
@keyframes depthBackOut{0%{transform:translateZ(0) scale(1);opacity:1}100%{transform:translateZ(-720px) scale(.1);opacity:0;filter:blur(12px)}}
@keyframes depthBackIn{0%{transform:translateZ(560px) scale(1.95);opacity:0;filter:blur(12px)}52%{opacity:.95}100%{transform:translateZ(0) scale(1);opacity:1;filter:inherit}}
/* Screen-space web: a fixed centre-cell clip keeps impact and glow bounded. */
.web-shot {
  position: absolute;
  left: 33.333333%;
  top: 33.333333%;
  width: 33.333333%;
  height: 33.333333%;
  z-index: 40;
  overflow: hidden;
  clip-path: inset(0);
  pointer-events: none;
  mix-blend-mode: screen;
}
.web-impact {
  position: absolute;
  inset: 6%;
  opacity: 0;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 2px #f7eaff) drop-shadow(0 0 5px #b437ff);
  will-change: transform, opacity;
}
.web-impact img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}
.web-shot::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff9, #d6b7ff44 30%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.stage.web-active .web-impact {
  animation: webScreenImpact 2000ms linear both;
}
.stage.web-active .web-shot::after {
  animation: webContactFlash 220ms ease-out both;
}
/* Hit in 20 ms; squash and settle by 240 ms; hold until 1.1 s, then dissolve. */
@keyframes webScreenImpact {
  0% { opacity: 0; transform: scale(.94, 1.03) rotate(-2deg); }
  1% { opacity: 1; transform: scale(1.075, .96) rotate(.8deg); animation-timing-function: ease-out; }
  4.5% { opacity: 1; transform: scale(.965, 1.035) rotate(-.5deg); animation-timing-function: ease-in-out; }
  8% { opacity: 1; transform: scale(1.015, .99) rotate(.2deg); animation-timing-function: ease-out; }
  12%, 55% { opacity: 1; transform: scale(1) rotate(0deg); }
  73% { opacity: .68; transform: scale(1) rotate(0deg); }
  88% { opacity: .22; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(1) rotate(0deg); }
}
@keyframes webContactFlash {
  0% { opacity: 0; transform: scale(.9); }
  9% { opacity: .85; transform: scale(1); }
  40% { opacity: .22; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.18); }
}
@media(max-width:700px) {
  .buttons { flex-wrap: wrap; }
  .buttons button { min-width: calc(50% - 4px); }
}
/* Optional camera gesture panel. It stays outside the stage so the camera never
   covers the artwork; the recognised gesture is the only camera action that
   calls webNext(). */
.camera-dock{display:flex;align-items:center;gap:14px;margin:0 4px 18px;padding:10px 12px;border:1px solid #ffffff20;border-radius:16px;background:#080b1caa;backdrop-filter:blur(14px)}
.camera-dock[hidden]{display:none}
.camera-preview{position:relative;width:150px;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:#02030a;box-shadow:inset 0 0 0 1px #ffffff18}
.camera-preview video,.camera-preview canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.camera-preview canvas{pointer-events:none}
.camera-copy{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.camera-copy strong{color:var(--ink);font-size:13px}
.camera-copy small{color:#7d86ae}
@media(max-width:700px){.camera-dock{margin-top:4px}.camera-preview{width:112px}.camera-copy{font-size:11px}.camera-copy small{display:none}}
