/* t-p15-967xqx: the HUD card decks (views/_hudDeck.js). The face turns in 3D; the arrow sits in the same corner on every card.
   Its own file because hud.css is past the 30 KB limit. Loaded after hud.css and plateFlip.css (index.html). */
[data-deck]{perspective:900px}
[data-deck]>.hud-deck-face{flex:1;min-width:0;max-height:300px;overflow:auto;padding-bottom:22px}
[data-deck] .hud-deck-face[data-card="character"],[data-deck] .hud-deck-face[data-card="quest"]{display:flex;gap:12px;align-items:center}
[data-deck] .hud-deck-face .hud-flip{display:none} /* the old flip buttons inside a card: the deck's arrow turns cards now */
.hud-deck-face[data-turn="0"]{animation:hud-deck-a .32s ease-out}
.hud-deck-face[data-turn="1"]{animation:hud-deck-b .32s ease-out} /* two names, so each turn restarts the flip */
@keyframes hud-deck-a{from{transform:rotateY(-90deg);opacity:.2}to{transform:none;opacity:1}}
@keyframes hud-deck-b{from{transform:rotateY(-90deg);opacity:.2}to{transform:none;opacity:1}}
.hud-deck-nav{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;gap:6px;z-index:2}
.hud-deck-n{font:11px 'JetBrains Mono',ui-monospace,monospace;color:var(--muted,#999)}
.hud-deck-arrow,.hud-deck-pick-btn{width:26px;height:26px;padding:0;border:1px solid var(--border,#444);border-radius:50%;background:var(--hud-panel,#111);color:var(--text);cursor:pointer;font-size:16px;line-height:1}
.hud-deck-pick-btn{font-size:12px}
.hud-deck-arrow:hover:not(:disabled),.hud-deck-pick-btn:hover{border-color:var(--accent)}
.hud-deck-arrow:disabled{opacity:.35;cursor:default}
.hud-deck-arrow:focus-visible,.hud-deck-pick-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hud-deck-picker{position:absolute;right:6px;bottom:38px;z-index:3;margin:0;padding:8px 10px;display:flex;flex-direction:column;gap:4px;background:var(--hud-panel,#111);border:1px solid var(--hud-line,#444);font-size:12px}
.hud-deck-picker[hidden]{display:none}
.hud-deck-picker legend{padding:0 4px;font-weight:600}
.hud-deck-opt{display:flex;gap:6px;align-items:center;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.hud-deck-face[data-turn]{animation:none}}
