/* Shared front: normalized positions match the approved 1192 x 1328 frame. */
.biosphere-face{display:block;position:relative;width:100%;aspect-ratio:1192/1328;container-type:inline-size;color:#eafaff;text-align:center;font-family:'Courier New',monospace;font-weight:bold;line-height:1.2}
.biosphere-face .biosphere-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.biosphere-face .biosphere-art{position:absolute;left:18.5%;top:13%;width:63%;height:36%;object-fit:contain;background:#08131e;clip-path:polygon(3% 0,97% 0,100% 5%,100% 95%,97% 100%,3% 100%,0 95%,0 5%);pointer-events:none}
.biosphere-face span{position:absolute;display:flex;align-items:center;justify-content:center;padding:0}
.biosphere-heading{left:35%;top:7%;width:30%;height:3%;font-size:2.7cqw;letter-spacing:.6cqw;color:#e66bff}
.biosphere-name{left:21%;top:54%;width:58%;height:5%;font-size:3.25cqw;white-space:nowrap}
.biosphere-effect{left:23%;top:68%;width:54%;height:10%;font-size:3.25cqw;line-height:1.35;font-weight:normal;text-wrap:balance}
.biosphere-duration-label{left:25%;top:86.7%;width:18%;height:2%;font-size:1.7cqw;letter-spacing:.2cqw;color:#aac3dc}
.biosphere-duration{left:25%;top:89%;width:18%;height:3%;font-size:2.5cqw;color:#8df0ff}
.biosphere-type-label{left:65%;top:86.7%;width:19%;height:2%;font-size:1.7cqw;letter-spacing:.2cqw;color:#aac3dc}
.biosphere-type{left:64%;top:89%;width:20%;height:3%;font-size:2.2cqw;color:#8df0ff}
.player-row{left:16%;right:4%;bottom:16px;grid-template-columns:minmax(0,1fr) 70px;gap:6px 12px}
.hand-card{width:180px;max-width:33.333%;min-width:0;position:relative;flex:0 1 180px;text-align:center}
.player-row .card{display:block;width:100%;height:auto;aspect-ratio:1192/1328;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
.player-row .card:disabled{opacity:.7}
.player-row .card:hover:not(:disabled){transform:translateY(-5px);box-shadow:none;filter:drop-shadow(0 0 6px #54dfff55)}
.card-inspect{display:block;margin:0 auto;padding:4px 8px;border:1px solid #44637b;border-radius:4px;background:#081724;color:#b3e9fa;font-size:10px;min-height:26px}
#card-inspector{width:min(540px,96vw);max-height:96dvh;padding:4px 12px 12px;border:1px solid #538699;border-radius:10px;background:#060e19;color:#eafaff;overflow:auto}
#card-inspector::backdrop{background:#020610dc;backdrop-filter:blur(4px)}
#card-inspector .biosphere-face{max-width:calc((100dvh - 90px)*.8976);margin:auto}
.inspector-close{display:block;margin:4px auto 0;border:1px solid #608b9d;background:#122b3d;color:#eafaff;border-radius:5px;padding:10px 24px}
@media(min-width:651px){.battle{height:830px}}
@media(max-width:650px){.player-row{left:16%;right:3%;grid-template-columns:minmax(0,1fr) 42px;gap:5px}.hand{gap:2px}.hand-card{flex:1}.player-row .card{width:100%}.card-inspect{font-size:9px;padding:4px;min-height:28px}.battle{height:720px}}
/* Approved back shared by the opponent hand and both draw piles. */
.card-back{border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
.card-back img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.opponent-row .card-back,.deck .card-back{height:auto;aspect-ratio:1192/1328}
.deck .card-back{filter:drop-shadow(2px 3px 0 #02050b) drop-shadow(2px 2px 0 #34415a)}
@media(max-width:650px){.deck .card-back{border:0}}
