/* 求籤區樣式（負責：小探） */
.qq-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0 28px; }
.qq-box h2 { border: 0; padding: 0; margin-top: .4em; }
.qq-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 12px; font-size: .85rem; }
.qq-steps li { flex: 1; text-align: center; padding: 4px 0; border-bottom: 3px solid var(--line); color: var(--muted); }
.qq-steps li.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.qq-result { min-height: 1.8em; font-weight: 700; color: var(--accent); }
.qq-count { color: var(--muted); margin: 0; }

/* 筊杯：半月形，平面朝上顯示紅色剖面，凸面朝上顯示深色 */
.jiao { display: flex; gap: 28px; justify-content: center; margin: 18px 0 8px; height: 64px; }
.bei { width: 40px; height: 64px; border-radius: 40px 0 0 40px; background: #c9532d; box-shadow: inset -6px 0 0 #a33f1f; }
.bei + .bei { border-radius: 0 40px 40px 0; box-shadow: inset 6px 0 0 #a33f1f; }
.bei.round { background: #7a2a14; }
.bei.flat { background: #d9653a; }
.bei.spin { animation: toss .7s ease-out; }
@keyframes toss { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-40px) rotate(320deg); } 100% { transform: translateY(0) rotate(720deg); } }

/* 籤筒 */
.tube { width: 84px; height: 96px; margin: 12px auto; position: relative; background: #8a5a35; border-radius: 6px 6px 14px 14px; }
.tube span { position: absolute; bottom: 70px; width: 6px; height: 50px; background: #e2c48f; border-radius: 3px; }
.tube span:nth-child(1) { left: 14px; } .tube span:nth-child(2) { left: 28px; height: 58px; }
.tube span:nth-child(3) { left: 40px; } .tube span:nth-child(4) { left: 52px; height: 54px; } .tube span:nth-child(5) { left: 64px; }
.tube.shake { animation: shake .6s ease-in-out; }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .bei.spin, .tube.shake { animation: none; } }

/* 籤頁 */
.poem { margin: 16px 0 20px; background: #fffaf2; border: 2px solid #e2c48f; border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.poem-lines { font-family: var(--serif); font-size: 1.35rem; line-height: 2.1; letter-spacing: .12em; margin: 0; }
.poem-lines span { display: block; }
.poem figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.poem-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: .95rem; }

/* 籤詩列表 */
.poem-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.poem-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.poem-list a:hover { border-color: var(--accent); }
.poem-list b { color: var(--accent); margin-right: 8px; }
.poem-list em { font-style: normal; font-size: .8rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
