/* 3D 真心话大冒险牌桌（js/3d-tod.js） */
.td-wrap { margin-top: 6px; }
.g3-stage.td-stage { aspect-ratio: 1 / 1.04; max-height: calc(100svh - 270px); min-height: 340px;
  background: radial-gradient(90% 70% at 50% 40%, #2a0a17, #0b0407 80%); box-shadow: inset 0 0 0 1px #d9b26f22; }
.g3-stage.td-stage canvas { opacity: 0; transition: opacity .5s ease; }
.g3-stage.td-stage.on canvas { opacity: 1; }
/* 翻开时的闪光 */
.td-flash { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 46%, #fff8e6 0%, #ffd27a88 26%, transparent 66%); }
.td-flash.hot { background: radial-gradient(circle at 50% 46%, #fff 0%, #ff3a5ebb 30%, #ff1f4f33 55%, transparent 75%); }
.td-flash.gold { background: radial-gradient(circle at 50% 46%, #fff 0%, #ffe7a0 24%, #ffb34788 48%, transparent 80%); }
.td-flash.holo { background: radial-gradient(circle at 50% 46%, #fff 0%, #ffd6f0aa 22%, #b9e2ff66 40%, transparent 68%); }
.td-flash.on { animation: tdflash .8s ease-out; }
.td-flash.gold.on { animation-duration: 1.4s; }
@keyframes tdflash { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }
/* 提示：往上推 / 横划 */
.td-cue { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--gold2, #f3dcaa); font: 500 12px/1 var(--serif); letter-spacing: .28em; white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none;
  text-shadow: 0 1px 6px #000; }
.td-cue.on { opacity: .92; }
.td-cue i { width: 12px; height: 12px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); animation: tdcue 1.2s ease-in-out infinite; }
.td-cue.side i { animation-name: tdcues; }
@keyframes tdcue { 0%, 100% { transform: translateY(6px) rotate(45deg); opacity: .3; } 50% { transform: translateY(-4px) rotate(45deg); opacity: 1; } }
@keyframes tdcues { 0%, 100% { transform: translateX(-14px) rotate(135deg); opacity: .3; } 50% { transform: translateX(14px) rotate(135deg); opacity: 1; } }
/* 底部按钮条 */
.td-bot { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 10px; transition: opacity .3s; }
.td-bot.wait { opacity: 0; pointer-events: none; }
.td-bot .hint { margin: 0; }
.td-bot .td-fate, .td-bot .td-go { width: 100%; }
.td-bot .td-now { font-size: 13px; letter-spacing: .1em; color: var(--mute); padding: 8px 18px; }
/* 翻开后：DOM 任务卡从 3D 牌的位置「落」下来 */
.card.task.td-in { animation: tdin .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tdin { from { opacity: 0; transform: perspective(900px) rotateX(16deg) translateY(-26px) scale(.92); filter: brightness(1.8); } }
@media (prefers-reduced-motion: reduce) { .card.task.td-in { animation: none; } }
/* 高尺度揭牌时的心跳红晕（比 g3-vig 柔和，不盖住牌） */
.td-vig { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; opacity: 0; transition: opacity .4s; box-shadow: inset 0 0 50px 0 #ff1f4f; }
.td-vig.on { animation: tdbeat .9s ease-in-out infinite; }
@keyframes tdbeat { 0%, 100% { opacity: .12; } 15% { opacity: .6; } 30% { opacity: .2; } 45% { opacity: .45; } }
