/* Bottom HUD: time clock, hand (clip / cards / drag), side panel */
/* ---------- HUD 下方 ---------- */
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 28px 58px; display: grid; grid-template-columns: 250px 1fr 240px; align-items: end; gap: 16px; }

/* 時鐘 */
.time { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; position: relative; }
.time .head { display: flex; align-items: baseline; justify-content: space-between; }
.time .head .lbl { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.time .head .lbl em { font-style: normal; font-family: var(--hud); font-size: 11px; letter-spacing: .2em; margin-left: 6px; }
.time .head .gain { font-size: 12px; color: var(--green); letter-spacing: .04em; }
.clock { position: relative; width: 236px; height: 176px; align-self: center; }
.clock svg { position: absolute; left: 0; top: 0; width: 236px; height: 236px; overflow: visible; }
.clock .num { position: absolute; left: 10px; bottom: 6px; display: flex; align-items: baseline; gap: 4px; }
.clock .num b { font-family: var(--hud); font-weight: 700; font-size: 56px; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums; }
.clock .num small { font-family: var(--hud); font-size: 18px; color: var(--muted); font-weight: 600; }
.clock .cap { position: absolute; font-family: var(--hud); font-size: 11px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.clock .cap.full { left: 118px; top: -2px; transform: translateX(-50%); }
.clock .cap.zero { right: -6px; top: 112px; }
.time .foot { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.stage.is-timestop .time { border-color: rgba(95,227,255,.5); box-shadow: 0 0 24px rgba(95,227,255,.12); }
.time.dim { opacity: .75; }
#hand-line { transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: 118px 118px; }

/* 手牌：彈匣 */
.hand { display: flex; flex-direction: column; align-items: center; justify-self: center; transition: opacity .4s; }
.hand.dim { opacity: .18; filter: grayscale(.6); }
.hand.dim .clip { pointer-events: none; }
.clip { display: flex; align-items: flex-end; gap: 6px; padding: 16px 14px 12px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; position: relative; }
.clip::before { content: "槍機 · 手中的子彈"; position: absolute; left: 12px; top: -9px; padding: 0 6px; background: var(--ink); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.clip .cap-lbl { position: absolute; right: 14px; top: -9px; padding: 0 6px; background: var(--ink); font-family: var(--hud); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
/* 卡片 */
.round { display: flex; flex-direction: column; align-items: center; width: 102px; }
.round .cas { position: relative; width: 102px; height: 214px; border-radius: 6px; background: linear-gradient(180deg, #1B2236, #12182A); border: 1px solid rgba(139,148,174,.35); box-shadow: 0 4px 14px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.round .cas .tipband { height: 7px; background: var(--tip, #F2D48A); flex: none; }
.round .cas .hd { display: flex; align-items: center; gap: 6px; padding: 7px 7px 5px; flex: none; }
.round .cas .hd .cost { width: 24px; height: 24px; border-radius: 50%; background: var(--brass); color: #2A1E08; font-family: var(--hud); font-weight: 700; font-size: 15px; display: grid; place-items: center; flex: none; }
.round .cas .hd .nm { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text); line-height: 1.15; }
.round .cas .art { height: 34px; margin: 0 7px 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.15)); position: relative; flex: none; }
.round .cas .art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 12px; transform: translate(-50%, -50%); border-radius: 6px; background: linear-gradient(90deg, #A97C2E 0 55%, var(--tip, #F2D48A) 55%); box-shadow: 0 0 8px rgba(230,176,75,.4); }
.round .cas .fx-text { padding: 0 7px 6px; font-size: 10.5px; line-height: 1.38; color: var(--text); flex: 1; display: flex; flex-direction: column; gap: 4px; }
.round .cas .fx-text p { margin: 0; }
.round .cas .fx-text p.dis { color: var(--muted); border-top: 1px dashed rgba(139,148,174,.3); padding-top: 4px; }
.round .cas .fx-text p.dis.none { color: rgba(139,148,174,.5); }
.round .cas .fx-text em { font-style: normal; font-weight: 700; color: var(--brass); }
.round .cas .fx-text p.dis em { color: var(--muted); }
.round.empty .cas { background: transparent; border: 1px dashed rgba(139,148,174,.28); box-shadow: none; }
.round.empty .cas .slot { margin: auto; font-size: 11px; letter-spacing: .1em; color: rgba(139,148,174,.45); }
/* 第一張：可拖曳 */
.round.first { position: relative; cursor: grab; touch-action: none; user-select: none; }
.round.first .cas { border-color: var(--brass); box-shadow: 0 0 0 1px rgba(230,176,75,.4), 0 0 24px rgba(230,176,75,.45); transform: translateY(-8px); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.round.first.dragging { cursor: grabbing; }
.round.first.dragging .cas { transition: none; }
.round.first .grab { position: absolute; right: 6px; top: 12px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; opacity: .5; }
.round.first .grab i { display: block; width: 14px; height: 2px; background: var(--muted); border-radius: 1px; }
.drag-hint { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .12em; white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; transition: color .2s, opacity .2s; }
.drag-hint em { font-style: normal; font-family: var(--hud); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.drag-hint.up { bottom: 100%; margin-bottom: 20px; color: var(--brass); }
.drag-hint.down { top: 100%; margin-top: 10px; color: var(--muted); }
.drag-hint.up::before { content: "▲"; font-size: 12px; animation: nudgeUp 1.4s ease-in-out infinite; }
.drag-hint.down::after { content: "▼"; font-size: 12px; animation: nudgeDown 1.4s ease-in-out infinite; }
@keyframes nudgeUp { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes nudgeDown { 0%,100% { transform: translateY(0) } 50% { transform: translateY(4px) } }
/* 拖曳落點區 */
.zone-drop { position: absolute; left: -1px; right: -1px; height: 96px; border: 1px dashed transparent; border-radius: 6px; display: grid; place-items: center; font-size: 16px; font-weight: 700; letter-spacing: .3em; padding-left: .3em; opacity: 0; transition: opacity .2s, background .2s; pointer-events: none; }
.zone-drop.up { bottom: 100%; margin-bottom: 8px; color: var(--brass); border-color: var(--brass); background: rgba(230,176,75,.08); }
.zone-drop.down { top: 100%; margin-top: 6px; height: 44px; font-size: 14px; color: var(--crimson); border-color: var(--crimson); background: rgba(229,72,77,.08); }
.clip.drag-up .zone-drop.up, .clip.drag-down .zone-drop.down { opacity: .6; }
.clip.armed-up .zone-drop.up { opacity: 1; background: rgba(230,176,75,.22); box-shadow: 0 0 24px rgba(230,176,75,.35); }
.clip.armed-down .zone-drop.down { opacity: 1; background: rgba(229,72,77,.22); box-shadow: 0 0 24px rgba(229,72,77,.35); }
.clip.armed-up .round.first .cas { box-shadow: 0 0 0 2px var(--brass), 0 0 34px rgba(230,176,75,.9); }
.clip.armed-down .round.first .cas { border-color: var(--crimson); box-shadow: 0 0 0 2px var(--crimson), 0 0 30px rgba(229,72,77,.8); }
.clip.drag-up .drag-hint.down, .clip.drag-down .drag-hint.up { opacity: .25; }
.clip.drag-down .drag-hint.down { color: var(--crimson); }

/* 右側：牌庫／丟棄／結束回合 */
.side { display: flex; flex-direction: column; gap: 8px; justify-self: end; width: 250px; transition: opacity .4s; }
.side.dim { opacity: .35; }
.side .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.side .row .l { display: flex; flex-direction: column; gap: 1px; }
.side .row .l b { font-size: 14px; letter-spacing: .1em; font-weight: 700; }
.side .row .l span { font-size: 11px; color: var(--muted); }
.side .row .l span em { font-style: normal; color: var(--brass); font-family: var(--hud); font-weight: 700; font-size: 13px; }
.side .row .v { font-family: var(--hud); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.side .row .v small { font-size: 13px; color: var(--muted); font-weight: 600; }
.side .row.discard .v { color: var(--crimson); }
.act { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); text-align: left; }
.act .l { display: flex; flex-direction: column; gap: 2px; }
.act .l b { font-size: 15px; letter-spacing: .12em; font-weight: 500; }
.act .l span { font-size: 11px; }
.act kbd { font-family: var(--hud); font-weight: 700; font-size: 15px; min-width: 34px; text-align: center; padding: 4px 8px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 4px; background: rgba(0,0,0,.4); }
