/* Optical stage. Every effect is on the same table; this layer never catches input. */
.feedback-layer { position:fixed; inset:0; overflow:hidden; pointer-events:none!important; z-index:1100; contain:layout style; }
.feedback-layer > * { pointer-events:none!important; }
.scene-traveller,.scene-setpiece,.scene-cameo,.scene-explosion-prop,.scene-wave,.scene-particle,.scene-number,.scene-gravure,.scene-cap-dome { position:absolute; left:0; top:0; transform:translate(-50%,-50%); transform-origin:center; will-change:transform,opacity; }
.scene-traveller { display:grid; place-items:center; color:var(--scene-color); filter:drop-shadow(0 6px 5px #080c0b88); }
.scene-traveller > svg,.scene-setpiece > svg,.scene-cameo > svg,.scene-explosion-prop > svg { width:100%; height:100%; overflow:visible; }
.scene-card-flight { aspect-ratio:148/208; height:auto!important; }
.scene-card-flight .playing-card { width:100%!important; min-width:0!important; height:auto!important; min-height:0!important; aspect-ratio:148/208; margin:0!important; transform:none!important; font-size:8px!important; box-shadow:0 10px 24px #0007!important; }
.scene-card-flight .playing-card > * { pointer-events:none; }
.scene-card-flight .card-body h3 { font-size:15px!important; }
.scene-card-flight .card-art { height:62px!important; flex:0 0 62px!important; }
.scene-card-flight .card-art > svg.scene-illustration { width:100%!important; height:100%!important; }
.scene-card-flight .card-rules,.scene-card-flight .card-summary { font-size:12px!important; line-height:1.3!important; }
.scene-card-flight:not(.scene-played-card) .card-rules,.scene-card-flight:not(.scene-played-card) .card-summary { display:none; }
.scene-card-back { width:100%; aspect-ratio:148/208; background:url('/assets/card-back.svg') center/100% 100%; border-radius:5px; box-shadow:inset 0 0 0 2px var(--back-edge,#b18b48),0 5px 8px #12201b60; }
.scene-card-back[style] { border-top:3px solid var(--back-edge); }
.scene-played-card { z-index:3; }
.scene-thread { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.scene-setpiece { width:82px; height:82px; z-index:4; filter:drop-shadow(0 6px 5px #0a211e66); }
.gesture-collapse { height:170px; width:100px; transform-origin:bottom center; }
.gesture-crowd,.gesture-evacuate,.gesture-train { width:155px; }
.scene-cameo { width:80px; height:104px; opacity:0; z-index:5; filter:drop-shadow(0 4px 6px #0a211e70); }
.scene-explosion-prop { width:84px; height:84px; z-index:6; }
.scene-wave { width:75px; height:75px; border:2px solid var(--scene-color); border-radius:50%; box-shadow:0 0 14px color-mix(in srgb,var(--scene-color) 30%,transparent),inset 0 0 14px color-mix(in srgb,var(--scene-color) 15%,transparent); }
.wave-sound { border-style:double; border-width:5px; }
.wave-heat { border-width:1px; }
.scene-particle { width:5px; height:9px; background:var(--scene-color); box-shadow:0 0 4px color-mix(in srgb,var(--scene-color) 50%,transparent); }
.particle-prism,.particle-glass { clip-path:polygon(50% 0,100% 35%,65% 100%,0 65%); }
.particle-foil,.particle-metal { width:4px; height:11px; }
.particle-petal { border-radius:70% 0 70% 0; }
.particle-light { width:4px; height:4px; border-radius:50%; }
.scene-number { z-index:8; color:var(--scene-color); font:800 30px/1 Arial,Helvetica,sans-serif; letter-spacing:-1px; white-space:nowrap; text-shadow:0 2px 1px #10251e,0 0 8px #08130dd9; }
.number-hand,.number-authority { font-size:23px; }
.number-loss { color:#F0409C; }
.scene-gravure { z-index:7; width:max-content; max-width:min(390px,80vw); color:var(--scene-color); font:600 12px/1.35 var(--sans,Arial,sans-serif); letter-spacing:.035em; text-align:center; text-shadow:0 1px 3px #001b14,0 0 6px #001b14; overflow-wrap:anywhere; }
.scene-cap-dome { width:75px; height:75px; color:#d9bd7e; opacity:.85; }
.scene-open-cap { position:absolute; color:#d9bd7e; font:700 19px/1 Georgia,serif; text-shadow:0 1px 2px #17392e; }
.volley-petal { width:13px; height:22px; border-radius:85% 0 70% 30%; background:linear-gradient(127deg,#f0d4b6,#98ac62 50%,#527543 51%,#263e31); }
.volley-round { width:10px; height:10px; border-radius:50%; background:radial-gradient(circle at 30% 27%,#fff0c3,#c5a56a 42%,#765c36 68%,#313a32); }
.scene-cap-dome svg { width:100%; height:100%; filter:drop-shadow(0 0 6px #f5c54266); }
.cause-awake { outline:0!important; filter:drop-shadow(0 0 9px var(--cause-color,#F5C542)); }
.random-glint { filter:drop-shadow(0 0 3px #e9d9aa99); }
.kiosk-changing .shop-preview { animation:kiosk-close 960ms ease-in-out; }
body.motion-quiet .kiosk-changing .shop-preview { animation:none; }
.stage-playing .arena-light .battle-card { opacity:0; }
@keyframes kiosk-close { 0%,100%{transform:translateY(0);opacity:1} 45%,55%{transform:translateY(5px);opacity:.55} }
.scene-card-flight .card-district { font-size:7px!important; }
@media(max-width:640px) { .scene-setpiece{width:72px;height:72px}.scene-cameo{width:76px;height:100px}.scene-number{font-size:25px}.scene-gravure{font-size:10px;letter-spacing:.5px}.scene-played-card{width:120px!important} }
@media(prefers-reduced-motion:reduce) { .kiosk-changing .shop-preview{animation:none}.scene-wave,.scene-particle,.scene-cameo{display:none} }

.scene-number {display:flex;align-items:center;gap:4px}.number-emblem {display:inline-grid;width:24px;height:24px}.number-emblem svg{width:100%;height:100%}

.scene-card-flight:not(.scene-played-card) .card-top{display:block;height:4px;min-height:4px;flex:0 0 4px;padding:0}
.scene-card-flight:not(.scene-played-card) .card-top span,.scene-card-flight:not(.scene-played-card) .card-bottom,.scene-card-flight:not(.scene-played-card) .card-price{display:none}
.scene-card-flight:not(.scene-played-card) .card-art{height:36px!important;flex-basis:36px!important}
.scene-card-flight:not(.scene-played-card) .card-body{padding:4px!important}
.scene-card-flight:not(.scene-played-card) .card-body h3{font-size:8px!important}

/* A-52: small mechanical life. The material stays still; only a glint or a piston moves. */
.socket-art {position:relative;isolation:isolate}
.socket-art::after {content:'';position:absolute;inset:20% 34%;border-radius:50%;background:radial-gradient(ellipse,#F5F1E6aa,transparent 70%);opacity:0;pointer-events:none;animation:relic-glint 12s ease-in-out infinite}
.socket-art[data-object="pump"] > svg {animation:idle-piston 8s ease-in-out infinite}
.socket-art[data-object="chimney"]::after {inset:-5% 39% 60%;background:linear-gradient(transparent,#fff,transparent);animation:idle-steam 10s ease-in-out infinite}
.socket-art[data-object="piggy"]::after {animation-duration:12s}
.socket-art[data-object="sap"]::after {inset:45% 45% 35%;background:#A3E635;animation:idle-steam 10s ease-in-out infinite}
.socket-art[data-object="drill"] > svg {transform-origin:50% 50%;animation:idle-drill 8s ease-in-out infinite}
.socket-art[data-object="gargoyle"]::after {animation-duration:14s}
.socket-art[data-object="ticker"] > svg {animation:idle-ticker 6s ease-in-out infinite}
.is-claimable .gauge-dial {animation:ready-gold 12s ease-in-out infinite}
.cause-awake .socket-art > svg,.cause-awake .socket-art::after {animation-play-state:paused}
body.table-sleeping .socket-art > svg,body.table-sleeping .socket-art::after,body.table-sleeping .is-claimable .gauge-dial {animation-play-state:paused}
body.motion-quiet .socket-art > svg,body.motion-quiet .socket-art::after,body.motion-quiet .is-claimable .gauge-dial {animation:none}
@keyframes idle-piston {0%,82%,100%{transform:translateX(0)}88%{transform:translateX(2px)}94%{transform:translateX(-1px)}}
@keyframes idle-drill {0%,82%,100%{transform:rotate(0)}90%{transform:rotate(15deg)}95%{transform:rotate(-5deg)}}
@keyframes idle-ticker {0%,85%,100%{transform:translateY(0)}93%{transform:translateY(2px)}}
@keyframes relic-glint {0%,82%,100%{opacity:0;transform:translateX(-2px)}90%{opacity:.2;transform:translateX(0)}96%{opacity:0;transform:translateX(2px)}}
@keyframes idle-steam {0%,78%,100%{opacity:0;transform:translateY(2px) scale(.9)}88%{opacity:.2}96%{opacity:0;transform:translateY(-2px) scale(1.1)}}
@keyframes ready-gold {0%,77%,100%{opacity:.8}86%,92%{opacity:1}}
@media(prefers-reduced-motion:reduce) {.socket-art > svg,.socket-art::after,.is-claimable .gauge-dial{animation:none!important}}
