/* The preparation page keeps shopping inside the live stall, with two collection entries. */
#tab-stall[hidden]{display:none!important}
.preparation-ready #stall-dashboard .stall-tabs.collection-launchers{grid-template-columns:repeat(2,minmax(0,1fr))}
.preparation-ready #stall-dashboard .stall-tabs.collection-launchers .collection-launch:last-child{grid-column:auto}
.configure-altar{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:0 0 16px;padding:9px 12px;border:2px solid #e8cf8a;border-radius:15px;background:linear-gradient(135deg,#466452,#2a4c40);color:#fff0c5;font:600 16px/1.45 var(--display);text-align:left;cursor:pointer;touch-action:manipulation}
.configure-altar>span{width:32px;height:32px;flex:0 0 32px}.configure-altar svg{width:100%;height:100%}.configure-altar>b{flex:1}.configure-altar>strong{font-family:Fredoka,system-ui,sans-serif;font-size:20px;color:#ffe49e}
.altar-removal-notice{margin:14px 0;padding:12px;border:1px solid #e2c88b;border-radius:13px;background:#514d3b;color:#fff0c8;font:400 14px/1.6 var(--display)}
.altar-removal-notice p{margin:0 0 8px}.altar-removal-notice button{min-height:44px;border:1px solid #e9d196;border-radius:10px;padding:7px 12px;background:#e7cc91;color:#2e4c3d;font:600 14px/1.5 var(--display);cursor:pointer}
#altar-config-dialog{height:min(760px,calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));width:min(660px,calc(100vw - 20px))}
#altar-config-help{flex:none;margin:10px 15px 8px;font:400 14px/1.55 var(--display);color:#eee6c4}
#altar-config-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;flex:none;padding:0 15px 10px}
.altar-preview-slot{display:grid;place-items:center;min-width:0;height:66px;border:1px solid #a6c0a0;border-radius:11px;background:#1d3e35;color:#acc2a1;font-size:25px}.altar-preview-slot>svg{width:100%;height:100%;padding:4px;box-sizing:border-box}
.altar-chooser-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:0 15px 10px}.altar-chooser-toolbar>strong{color:#ffe09e;font:600 15px/1.5 var(--display);white-space:nowrap}.altar-chooser-toolbar>strong[data-full=true]{color:#bce6bd}
.altar-chooser-toolbar>label{flex:1;min-width:0;max-width:280px}#altar-search{box-sizing:border-box;display:block;width:100%;min-height:42px;padding:7px 10px;border:1px solid #b2c69e;border-radius:10px;background:#163b32;color:#fff2d1;font:400 16px/1.5 var(--display);touch-action:manipulation}
#altar-config-dialog .altar-chooser-scroll{flex:1;min-height:0;padding-top:0}
#altar-config-feedback{margin:0 0 8px;min-height:0;color:#fce3ac;font:400 14px/1.5 var(--display)}#altar-config-feedback:empty{display:none}
#altar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.altar-choice{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;min-height:138px;padding:8px;border:2px solid #a5bf9d;border-radius:13px;background:#345748;color:#fff1ca;font:400 14px/1.5 var(--display);text-align:center;cursor:pointer;touch-action:manipulation}
.altar-choice[aria-pressed=true]{border-color:#ffe19b;background:#456c51;color:#fff9df;box-shadow:inset 0 0 0 2px #f5d68b66}
.altar-choice-art{width:70px;max-width:100%;height:70px}.altar-choice-art>svg{width:100%;height:100%}.altar-choice>b{font:600 14px/1.5 var(--display);overflow-wrap:anywhere}.altar-choice>small{margin-top:auto;color:#e2ebcb;font-size:12px}
.altar-choice:disabled{opacity:.5;cursor:default}
#altar-empty{font:400 15px/1.7 var(--display);text-align:center;margin:16px 0}#altar-shop{min-height:44px;border:1px solid #e5cf97;border-radius:11px;background:#f0d696;color:#365345;padding:8px 12px;font:600 15px/1.5 var(--display);cursor:pointer}
.altar-config-actions{display:flex;justify-content:space-between;gap:12px;flex:none;padding:12px 15px max(12px,env(safe-area-inset-bottom));border-top:1px solid #abc19d66;background:#2f5143}
.altar-config-actions button{min-height:44px;min-width:0;padding:9px 13px;font:600 15px/1.45 var(--display);border-radius:12px;cursor:pointer}#altar-clear{border:1px solid #b1c39c;background:#254337;color:#f4e4bd}
#altar-config-dialog:focus-visible,#altar-config-dialog :focus-visible,.configure-altar:focus-visible{outline:3px solid #ffe8a4;outline-offset:2px}
#altar-config-dialog svg *{animation:none!important}
/* Five decorations occupy their own bands; the original hit zone stays in the center. */
#phase-incense .altar-stage{position:relative;isolation:isolate;width:min(100%,460px);height:306px;max-height:100%;min-height:190px;align-self:center;pointer-events:none}
#phase-incense .altar-stage[data-empty=true]{display:contents}
#phase-incense .altar-stage[data-empty=true] .altar-props{display:none}
#phase-incense .altar-stage[data-empty=false] .incense-zone{position:absolute;left:50%;bottom:0;translate:-50% 0;width:calc(100% - 100px);max-width:270px;height:calc(100% - 58px);max-height:none;min-height:120px;box-sizing:border-box;gap:10px;pointer-events:auto}
#phase-incense .altar-stage[data-empty=false] .incense-stick{width:44px;flex:0 0 44px;max-width:calc((100% - 20px)/3)}
#phase-incense .altar-stage[data-empty=false] .incense-bowl{width:min(180px,calc(100% - 16px))}
.altar-props{position:absolute;inset:0;pointer-events:none;transform-origin:50% 0}.altar-props-back{z-index:1}.altar-props-front{z-index:3}
.altar-prop{position:absolute;display:block;width:58px;height:58px;pointer-events:none;transform-origin:50% 90%}
.altar-prop-art{position:relative;display:block;width:100%;height:100%;z-index:1;transform-origin:50% 85%}.altar-prop-art>svg{display:block;width:100%;height:100%;overflow:visible}.altar-prop-art svg *{animation:none!important}
.altar-prop-shadow{position:absolute;left:10%;right:10%;bottom:0;height:7px;border-radius:50%;background:#152f2e44}
.altar-back-left{left:4px;top:0}.altar-back-center{left:50%;top:0;translate:-50% 0}.altar-back-right{right:4px;top:0}.altar-front-left{left:0;bottom:3px}.altar-front-right{right:0;bottom:3px}
.altar-reaction-mark{position:absolute;right:-2px;top:-3px;color:#f6b7cc;font:600 15px/1.1 var(--display);font-style:normal;pointer-events:none}
.altar-gag-ball{position:absolute;bottom:5px;left:calc(50% - 26px);width:22px;height:22px;pointer-events:none}.altar-gag-ball>svg{display:block;width:100%;height:100%}.altar-gag-ball>span{color:#f3c1d4;font-size:22px}
@media(max-width:380px){#altar-config-help{font-size:13px}#altar-config-preview{gap:5px}.altar-preview-slot{height:49px}.altar-chooser-toolbar{gap:8px}.altar-chooser-toolbar>strong{font-size:13px}#altar-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.altar-choice{min-height:128px}.altar-config-actions{gap:8px}.altar-config-actions button{font-size:14px;padding-inline:10px}.altar-prop{width:46px;height:50px}}
@media(max-height:650px){#phase-incense .altar-stage{height:232px;min-height:185px}}
@media(max-height:500px) and (min-aspect-ratio:4/3){#altar-config-help{margin-block:5px;font-size:12px}#altar-config-preview{padding-bottom:5px}.altar-preview-slot{height:34px}.altar-chooser-toolbar{padding-bottom:6px}.altar-config-actions{padding-block:6px}.altar-choice{min-height:112px}.altar-choice-art{height:48px}#phase-incense .altar-stage{grid-column:1;grid-row:2/4;height:155px;min-height:145px}#phase-incense .altar-stage[data-empty=false] .incense-zone{height:calc(100% - 44px);min-height:100px;padding-bottom:30px}#phase-incense .altar-stage[data-empty=false] .incense-stick{height:76px;--incense-length:50px}#phase-incense .altar-stage[data-empty=false] .incense-buddy{bottom:32px;width:30px;height:28px}#phase-incense .altar-stage[data-empty=false] .incense-bowl{height:48px}#phase-incense .altar-stage[data-empty=false] .incense-smoke{height:20px}.altar-prop{width:44px;height:43px}}
/* Give the centered altar a real grid track instead of shrinking to the instruction text. */
#phase-incense{grid-template-columns:minmax(0,1fr);justify-content:stretch}
@media(max-height:500px) and (min-aspect-ratio:4/3){#phase-incense{grid-template-columns:minmax(150px,1fr) minmax(150px,220px)}}
/* Only the five chosen props appear during offerings; old ambient shelf art stays in other phases. */
#play-panel[data-phase=incense] .bridge-scene>[id^=stall-]{display:none!important}
#play-panel[data-phase=incense]:has(.altar-stage[data-empty=false]) .neon-sign{opacity:.14}
#phase-incense .altar-stage .incense-zone{pointer-events:auto}
@media(max-width:380px){.preparation-ready #stall-dashboard .stall-tabs.collection-launchers{grid-template-columns:minmax(0,1fr)}}
/* Reuse the stall's pointer/keyboard reorder controls, with a draft until Save. */
#altar-config-preview .altar-preview-slot{position:relative;height:82px;overflow:visible;user-select:none;-webkit-user-select:none}
.altar-slot-art{display:block;width:100%;height:64px;pointer-events:none}.altar-slot-art>svg{width:100%;height:100%;padding:3px;box-sizing:border-box}
.altar-slot-number{position:absolute;top:2px;left:3px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#f8d58b;color:#304e41;font:600 12px/1 Fredoka,system-ui}
#altar-config-preview .piece-drag-handle{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;margin:0;padding:11px;border:0;box-shadow:none!important;background:transparent;transform:none;scale:1;touch-action:none;color:#314f41}
#altar-config-preview .piece-drag-handle>svg{width:20px;height:20px;padding:2px;border:1px solid #aa935d;border-radius:6px;background:#ffe3a1}
#altar-config-preview .is-dragging{opacity:.4}#altar-config-preview .is-drop-target{border:2px dashed #ffe59c;background:#526e50;box-shadow:inset 0 0 0 2px #ffe59c55}
.stall-drag-preview .altar-slot-art{height:100%}.stall-drag-preview .altar-slot-art>svg{width:100%;height:100%}

/* Each selected prop is itself the drag target; no separate grip covers its artwork. */
#altar-config-preview{padding-top:10px}
:is(#altar-config-preview,.stall-drag-preview) .altar-slot-art.piece-drag-handle{position:absolute;inset:0;display:grid;place-items:center;box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;padding:3px;border:0;border-radius:10px;background:transparent;box-shadow:none!important;color:inherit;pointer-events:auto;touch-action:none;cursor:grab}
:is(#altar-config-preview,.stall-drag-preview) .altar-slot-art.piece-drag-handle>svg{width:100%;height:100%;padding:0;border:0;border-radius:0;background:none}
#altar-config-preview .altar-slot-number{pointer-events:none}
:is(#altar-config-preview,.stall-drag-preview) .altar-slot-art.piece-drag-handle::before,:is(#altar-config-preview,.stall-drag-preview) .altar-slot-art.piece-drag-handle::after{content:none!important;display:none}
