#cardTable{margin:14px 0 8px}.deck-area{display:flex;align-items:center;gap:18px}.deck-area h2{margin:0 0 5px;font-size:15px}.deck-area p{font-size:11px!important;line-height:1.5;margin:4px 0!important}.physical-deck{width:85px;height:123px;padding:0;border:0;background:none;flex-shrink:0;position:relative;isolation:isolate;transform:rotate(-5deg);margin:5px 4px 10px}.physical-deck:before,.physical-deck:after{content:'';position:absolute;inset:0;border:1px solid #71977c;background:#253a39;border-radius:9px;transform:translate(5px,5px);z-index:-1}.physical-deck:before{transform:translate(9px,9px);background:#132c30}.card-back{background:repeating-linear-gradient(45deg,#193336 0 6px,#15292f 6px 12px);border:2px solid #d8eac7;border-radius:9px;color:#c9ff8c;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 5px #14222b,0 6px 12px #0005}.physical-deck .card-back{height:100%;width:100%}.card-back strong{font-size:16px;line-height:1.1;letter-spacing:1px}.card-back small{font-size:7px;letter-spacing:1px;margin-top:10px}.card-seal{font-size:31px;line-height:1.3}.hand-label{font-size:10px;color:#a9b8c9;letter-spacing:1px;margin:16px 0 8px}#sealedHand{display:flex;gap:8px;min-height:90px;margin-bottom:8px}.mini-card{width:59px;height:84px;padding:5px;flex-shrink:0}.mini-card span{font-size:24px}.mini-card small{font-size:7px;margin-top:6px}.mini-card.chosen{outline:2px solid #b6ff75;outline-offset:2px}.drawn-card{height:220px;width:150px;margin:18px auto;animation:drawCard .35s ease-out}.drawn-card strong{font-size:26px}.drawn-card .card-seal{font-size:48px}.card-face{width:220px;min-height:260px;background:#e6efdd;border:7px double #486550;border-radius:14px;color:#18302a;margin:15px auto;padding:18px;text-align:center;animation:flipCard .45s ease-out;box-shadow:0 10px 30px #0006}.card-face>span{font-size:42px}.card-face h2{font-size:24px}.card-face p{font-size:15px;color:#314e44}.card-face.damage{background:#ffe1d5;border-color:#a83a35}.swap-selected{outline:3px solid #c9ff8c!important}#cardTarget{font-size:12px;line-height:1.5;color:#ffd08a;margin:8px 0}.right #sound{float:none}.right #playHeld{font-size:12px;padding:8px}@keyframes drawCard{from{transform:translateY(70px) rotate(-15deg);opacity:0}to{transform:none;opacity:1}}@keyframes flipCard{from{transform:rotateY(85deg)}to{transform:none}}@media(max-width:700px){.deck-area{justify-content:center}#sealedHand{justify-content:center}}
@media(min-width:701px){.right{max-height:calc(100dvh - 145px);overflow:auto}.right .log{max-height:80px;overflow:auto}.deck-area p:last-child{display:none}}
.card-face.illustrated{width:280px;padding:0;overflow:hidden;border:5px double #bc9460;border-radius:15px;background:#d3bc91;text-align:left;box-shadow:0 16px 50px #000a}.illustrated .card-art{position:relative;height:265px;overflow:hidden;background:#1a1021}.illustrated .card-art img{width:100%;height:100%;object-fit:cover;display:block}.illustrated .card-art:after{content:'';position:absolute;inset:70% 0 0;background:linear-gradient(transparent,#1c1225bb);pointer-events:none}.illustrated .card-crest{position:absolute;bottom:8px;right:10px;background:#21151cdb;border:1px solid #dcba75;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:24px;z-index:1}.illustrated .card-face-text{padding:15px 18px 19px;background:radial-gradient(ellipse at top,#ead2a5,#bca27f)}.illustrated .card-face-text small{font-size:8px;letter-spacing:1.8px;color:#6b4830}.illustrated .card-face-text h2{font-size:25px;color:#32201a;margin:6px 0 9px;line-height:1.05}.illustrated .card-face-text p{font-size:14px;line-height:1.5;color:#422e23;margin:0}.last-played{display:flex;gap:10px;align-items:center;margin-top:8px;color:#d4bd94;line-height:1.5}.last-played img{width:38px;height:49px;border-radius:4px;object-fit:cover;border:1px solid #9b7a4e}.last-played span{font-size:10px}#modal:has(.illustrated){max-height:calc(100dvh - 40px);overflow:auto;width:min(400px,92vw);padding:20px 24px}#modal:has(.illustrated)>h2{font-size:20px;margin-bottom:8px}@media(max-height:700px){.illustrated .card-art{height:200px}.card-face.illustrated{width:250px}.illustrated .card-face-text{padding:12px 16px}.illustrated .card-face-text h2{font-size:22px}}
.card-outcome{padding:10px 13px;margin:12px 0!important;border:1px solid #b5915f77;border-radius:8px;color:#f5cf94!important;font-size:13px!important;background:#9b6f2b12;line-height:1.5!important}

/* Each player keeps a visible, sealed hand beside the board. */
#sealedHand[hidden],#sealedCount[hidden]{display:none!important}
.player-hand{--hand-accent:#ffb66d;min-width:0;padding:16px 13px;border:1px solid #79505b77;border-radius:16px;background:linear-gradient(155deg,#30202ad9,#171321ed);transition:border-color .2s,box-shadow .2s}
#playerHand1{--hand-accent:#a2f4de;background:linear-gradient(205deg,#223139d9,#171321ed)}
.player-hand.active-hand{border-color:var(--hand-accent);box-shadow:inset 0 0 24px color-mix(in srgb,var(--hand-accent) 5%,transparent),0 8px 26px #0003}
.hand-heading{text-align:center;min-width:0}
.hand-faction{display:block;color:var(--hand-accent);font-size:9px;letter-spacing:2px;font-weight:700}
.hand-heading h2{color:#f9ead7;font:700 22px/1.2 Georgia,serif;overflow-wrap:anywhere;margin:7px 0 16px}
.hand-totals{display:flex;justify-content:center;gap:25px;padding-bottom:13px;margin-bottom:16px;border-bottom:1px solid #bd8d6d33}
.hand-totals>div{text-align:center;min-width:44px}
.hand-totals>div>span{display:block;color:#c2acbd;font-size:8px;letter-spacing:1.4px;margin-bottom:5px}
.hand-totals strong{display:block;color:var(--hand-accent);font-size:24px;line-height:1}
.hand-totals strong small{font-size:11px;color:#a593a7;font-weight:400}
.sealed-player-hand{display:flex;justify-content:center;align-items:center;gap:6px;min-height:104px;padding:9px 0 3px}
.player-hand .mini-card{width:51px;height:78px;padding:5px 3px;flex:0 1 51px;min-width:0;border-width:1px;box-shadow:inset 0 0 0 3px #1c1522,0 5px 10px #0005;transition:transform .16s,outline-color .16s}
.player-hand .mini-card .card-seal{font-size:20px;line-height:1}
.player-hand .mini-card strong{font-size:8px;line-height:1.3;letter-spacing:.5px;margin-top:5px}
.player-hand .mini-card small{font-size:5px;letter-spacing:.4px;margin-top:6px;white-space:nowrap}
.player-hand .mini-card:disabled{opacity:.72;cursor:default}
.player-hand .mini-card.chosen{outline:2px solid var(--hand-accent);outline-offset:3px;transform:translateY(-5px)}
.player-hand .mini-card.chosen:disabled{outline-color:color-mix(in srgb,var(--hand-accent) 45%,transparent)}
.player-hand .mini-card:not(:disabled):hover{transform:translateY(-8px);border-color:var(--hand-accent)}
.player-hand .hand-empty{font-size:11px;line-height:1.5;text-align:center;color:#b3a1b6;min-height:33px;margin:6px 0 0}
.player-hand .hand-empty[hidden]{display:none}
.hand-controls{font-size:9px!important;line-height:1.5!important;text-align:center;color:#b3a1b6;margin:11px 0 0!important}
.card-art-fallback{display:grid;place-items:center;height:100%;font-size:90px;color:#eeb66b;background:radial-gradient(ellipse,#684456,#211827 75%)}
.physical-deck.awaiting-art{animation:unsealCard .7s ease-in-out infinite alternate}
@keyframes unsealCard{to{filter:brightness(1.3);transform:rotate(2deg)}}
@media(max-width:700px){.player-hand{padding:11px 8px}.hand-heading h2{font-size:17px;margin-bottom:11px}.hand-totals{gap:15px;padding-bottom:9px;margin-bottom:9px}.hand-totals strong{font-size:20px}.sealed-player-hand{min-height:88px;gap:5px}.player-hand .mini-card{width:45px;height:69px;flex-basis:45px}.hand-controls{font-size:8px!important}.hand-faction{font-size:8px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.physical-deck.awaiting-art{animation:none}.player-hand,.player-hand .mini-card{transition:none}}
.player-hand .sealed-slot{display:grid;place-items:center;width:51px;height:78px;flex:0 1 51px;min-width:0;border:1px dashed color-mix(in srgb,var(--hand-accent) 45%,transparent);border-radius:8px;background:#0e0b121f;opacity:.4;pointer-events:none}
.player-hand .sealed-slot span{font-size:19px;color:var(--hand-accent);opacity:.55}
@media(max-width:700px){.player-hand .sealed-slot{width:45px;height:69px;flex-basis:45px}}
