/* Virtual Altar Designer (altar.js + altar-designer.js). Builds on the Altar Planner styles in styles.css. */
.ad-stage { isolation: isolate; background: #111; }
.ad-stage::before { display: none; }
.ad-stage::after { z-index: 99999; }
.ad-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.ad-items { position: absolute; inset: 0; }
.ad-stage .a-item { transform-origin: 50% 50%; }
.ad-stage .a-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.a-mini.ad-mini { background: #111; }
.a-mini.ad-mini .ad-bg { z-index: 0; }
.a-mini.ad-mini > span { z-index: 1; }

.ad-shapes { padding-top: 0; margin-bottom: 10px; flex-wrap: wrap; }
.ad-tex { flex-wrap: wrap; padding-top: 0; margin-bottom: 10px; }
.ad-cols { margin-bottom: 6px; }
.ad-cols .a-swatch { width: 30px; height: 30px; }
.ad-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 0; }
.ad-row .secondary { margin: 0; }
.ad-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.ad-toggle input { accent-color: var(--accent); width: 18px; height: 18px; }
.ad-select { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; max-width: 100%; }
.a-tools .a-tools-row { margin-left: 0; flex-wrap: wrap; }
.ad-lightbtn[aria-pressed="true"] { border-color: var(--accent); }

.ad-note { margin: 12px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; }
.ad-note strong { color: var(--accent); font-weight: normal; }
.ad-note p { margin: 4px 0 6px; font-size: .95rem; line-height: 1.5; }
.ad-note a { color: var(--accent); font-size: .9rem; }

.ad-cat { margin: 0 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.ad-cat > summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ad-cat > summary::-webkit-details-marker { display: none; }
.ad-cat > summary::after { content: "›"; color: var(--muted); transition: transform .2s; }
.ad-cat[open] > summary::after { transform: rotate(90deg); }
.ad-cat .a-tray { padding: 0 10px 10px; }
.ad-cat .a-tile { background: var(--surface-2, var(--surface)); }

.ad-shoplist { margin: 0 0 10px; }
.ad-shoplist li label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
#ad-shop .safety ul li { margin: 3px 0; }

@media (prefers-reduced-motion: reduce) { .ad-cat > summary::after { transition: none; } }
:root[data-motion="reduce"] .a-glow, :root[data-motion="reduce"] .ak-flame, :root[data-motion="reduce"] .ak-smoke { animation: none !important; }
