/* Existing card-draw interaction, isolated from the home layout. */
#aetheria-draw { display: flex; flex-direction: column; align-items: center; color: var(--design-text); }
.dc-greeting { color: var(--design-muted); font-size: 14px; margin-bottom: 22px; text-align: center; }
.dc-stage { width: min(230px,70vw); aspect-ratio: 5/8; perspective: 1600px; position: relative; margin-bottom: 20px; }
.dc-card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1s; cursor: pointer; }
.dc-card.flipped { transform: rotateY(180deg); cursor: default; }
.dc-card.shuffling { animation: home-shuffle .45s ease-in-out infinite alternate; }
@keyframes home-shuffle { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.dc-shuffle-stack { display: none; }
.dc-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; overflow: hidden; background: var(--design-soft); border: 1px solid var(--design-line); }
.dc-back img { width: 100%; height: 100%; object-fit: cover; }
.dc-back svg { width: 100%; height: 100%; }
.dc-front { transform: rotateY(180deg); display: flex; flex-direction: column; }
.dc-front-imgwrap { flex: 1; min-height: 0; position: relative; }
.dc-front-imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.dc-front-imgwrap img.dc-reversed { transform: rotate(180deg); }
.dc-img-fallback { display: none; position: absolute; inset: 0; text-align: center; align-items: center; justify-content: center; flex-direction: column; padding: 20px; font-size: 14px; }
.dc-img-fallback.show { display: flex; }
.dc-orient-badge { position: absolute; top: 8px; right: 8px; border-radius: 20px; background: var(--design-accent); color: white; padding: 3px 10px; font-size: 12px; }
.dc-front-caption { font-family: 'Noto Serif TC',serif; font-size: 15px; text-align: center; padding: 10px; }
.dc-hint { font-size: 14px; color: var(--design-muted); }
.dc-reading { display: none; max-width: 640px; width: 100%; margin-top: 24px; }
.dc-reading.show { display: block; }
.dc-tags, .dc-expand-wrap { text-align: center; margin: 16px 0; }
.dc-tag { color: var(--design-accent); margin: 0 8px; font-size: 14px; }
.dc-block { margin: 20px 0; }
.dc-block-label { font-size: 14px; color: var(--design-accent); margin-bottom: 8px; }
.dc-block-text { line-height: 2; font-size: 16px; }
.dc-detail-wrap { display: none; }
.dc-detail-wrap.show { display: block; }
.dc-actions { text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; max-width: 640px; margin-top: 16px; }
.dc-nudge, .dc-share-toast { width: 100%; font-size: 14px; color: var(--design-muted); }
.dc-actions-top { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dc-bridge { width: 100%; max-width: 620px; margin: 16px 0; font-size: 15px; overflow-wrap: anywhere; }
.dc-scroll-cue, .dc-cta-note { display: none; }
@media(prefers-reduced-motion: reduce) { .dc-card { transition: none; animation: none; } }

/* Draw result: one message first, optional detail and quieter actions. */
.dc-reading { max-width: 560px; margin-top: 10px; text-align: center; }
.dc-tags { margin: 8px 0 10px; }
.dc-tag { margin: 0; font-size: 13px; letter-spacing: .08em; }
.dc-reading .dc-block { margin: 12px 0; }
.dc-reading .dc-block-label { font-size: 13px; margin-bottom: 8px; }
.dc-reading .dc-block-text { font-size: 16px; line-height: 1.85; }
.dc-expand-wrap { margin: 12px 0 0; }
.dc-expand-btn { border: 0; background: none; color: var(--design-accent); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; }
.dc-detail-wrap { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--design-line); }
.dc-actions { margin-top: 18px; gap: 10px; }
#aetheria-draw > .dc-product-link { display: block; margin-top: 20px; }
