/* 评审第 1 轮修改（组 c）的样式 */

/* ---------- P1-6 卧星摇签：观星台石案上的竹签筒 ---------- */
.wxs { position: fixed; inset: 0; z-index: 5; overflow: hidden; background: #070b1d; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.wxs-scene { position: absolute; left: 50%; bottom: 0; width: max(100vw, calc(100dvh * 9 / 16)); aspect-ratio: 9 / 16; transform: translateX(-50%); background: url(../art/woxing-tube/scene.webp) center / cover no-repeat; }
.wxs-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,11,29,.55) 0%, rgba(7,11,29,0) 22%, rgba(7,11,29,0) 70%, rgba(7,11,29,.5) 100%); }
/* 签筒站在石案正中 */
.wxs-tube { position: absolute; z-index: 2; left: 50%; bottom: var(--wxs-table, 18.2%); width: var(--wxs-w, 23%); margin-left: calc(var(--wxs-w, 23%) / -2); transform-origin: 50% 96%; cursor: grab; touch-action: none; will-change: transform; }
.wxs.holding .wxs-tube { cursor: grabbing; }
.wxs-tube::before { content: ''; position: absolute; left: -12%; right: -12%; bottom: -2.5%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.wxs-can { position: relative; z-index: 2; display: block; width: 100%; pointer-events: none; -webkit-user-drag: none; filter: drop-shadow(0 0 14px rgba(150,180,255,.25)); }
.wxs-tag { display: inline-block; margin-bottom: 12px; padding: 3px 12px; border: 1px solid rgba(200,215,255,.35); border-radius: 999px; font: 13px var(--serif); letter-spacing: 3px; color: #D9E2FF; background: rgba(10,16,40,.45); }
/* 筒里的签：在签筒图后面，露出头 */
.wxs-sticks { position: absolute; z-index: 1; left: 0; right: 0; top: var(--wxs-rim, 5%); height: 52%; pointer-events: none; }
.wxs-sticks i { position: absolute; left: calc(50% + var(--x)); top: calc(-36% + var(--b)); width: var(--wxs-sw, 9%); height: 100%; margin-left: calc(var(--wxs-sw, 9%) / -2); transform: rotate(var(--r)); transform-origin: 50% 100%; background: url(../art/woxing-tube/stick.webp) center top / 100% 100% no-repeat; }
.wxs-sticks i.pick { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255,220,150,.7)); }
/* 跳出来的那一支 */
.wxs-fly { position: absolute; z-index: 4; perspective: 700px; pointer-events: none; }
.wxs-one { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.1,.3,1); }
.wxs-one.flip { transform: rotateY(180deg); }
.wxs-one .f { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: url(../art/woxing-tube/stick.webp) center top / 100% 100% no-repeat; }
.wxs-one .back { transform: rotateY(180deg); display: flex; align-items: center; justify-content: center; }
.wxs-one .back span { writing-mode: vertical-rl; text-orientation: sideways; font: 900 13px var(--serif); letter-spacing: 1px; color: #6E1A10; white-space: nowrap; margin-top: 14%; }
.wxs-fly { transition: filter .5s; }
.wxs-fly.lit { filter: drop-shadow(0 0 6px rgba(255,214,140,.95)); }
/* 文字和兜底按钮 */
.wxs-top { position: absolute; z-index: 6; left: 0; right: 0; top: calc(var(--safe-t, 0px) + 9vh); text-align: center; pointer-events: none; padding: 0 16px; }
.wxs-hint { margin: 0; font: 700 20px var(--serif); letter-spacing: 6px; color: #FFE7B0; text-shadow: 0 2px 14px #000, 0 0 20px rgba(255,200,120,.35); }
.wxs-sub { margin: 10px 0 0; font: 15px var(--serif); letter-spacing: 2px; color: rgba(230,236,255,.85); text-shadow: 0 1px 8px #000; transition: color .3s; }
.wxs-sub.hot { color: #FFE2A0; }
.wxs-sub.got { font: 900 26px var(--serif); letter-spacing: 8px; color: #FFE7B0; animation: wxsGot .6s ease both; }
@keyframes wxsGot { from { opacity: 0; transform: scale(1.3); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.wxs-low { position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(var(--safe-b, 0px) + 5vh); text-align: center; }
.wxs-tap { appearance: none; border: 0; background: none; padding: 10px 18px; font: 14px var(--serif); letter-spacing: 2px; color: rgba(225,232,255,.62); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(225,232,255,.3); cursor: pointer; }
.wxs-tap:disabled { opacity: 0; transition: opacity .4s; }
.wxs.drawn .wxs-tube { cursor: default; }
@media (prefers-reduced-motion: reduce) { .wxs-one { transition-duration: .2s; } }
