/* Creature-first combat. Geometry anchors are supplied by the fixed scene camera. */
.battle-teams{position:fixed;left:5%;right:5%;top:70px;display:flex;justify-content:space-between;gap:25%;pointer-events:none;color:#f3d794;font:600 clamp(1rem,1.6vw,1.65rem) Newsreader,serif;text-shadow:0 2px 5px #000}
.battle-teams strong{max-width:36%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-teams strong:last-child{text-align:right}
.two-lane-battle .battle-heading{position:fixed;min-width:0;top:65px;left:40%;right:40%;width:20%;transform:none}.two-lane-battle .battle-heading h2{font-size:1.3rem}.two-lane-battle .battle-status{font-size:.64rem;min-height:20px}.two-lane-battle .battle-tools{position:fixed;transform:none;width:auto;top:104px;left:20px;gap:5px}.two-lane-battle .battle-tools button{font-size:.65rem;padding:5px 8px}
.two-lane-battle #lane-vitals{position:fixed;inset:0;display:block;pointer-events:none;z-index:12}.two-lane-battle .battle-lane{display:contents;background:none;border:0;padding:0}.two-lane-battle .lane-combatant{position:fixed;transform:translateX(-50%);padding:0;background:none;border:0;text-align:center;pointer-events:auto;transition:opacity .15s}
.two-lane-battle .lane-combatant[hidden]{display:none}.two-lane-battle .lane-combatant .combatant-name{height:18px;display:flex;justify-content:center}.two-lane-battle .lane-combatant .combatant-name h3{font-size:.9rem;text-shadow:0 2px 3px #000;margin:0}.two-lane-battle .lane-combatant .health-shell{height:21px;margin:0;min-height:0}.two-lane-battle .lane-combatant .health-text{font-size:.72rem;line-height:21px}.two-lane-battle .lane-combatant .status-list{justify-content:center;display:flex;gap:6px;height:19px;min-height:0;font-size:.64rem;white-space:nowrap;text-shadow:0 1px 3px #000;margin:1px 0 0;overflow:visible}
.lane-marker{position:fixed;transform:translateX(-50%);font:600 .72rem Newsreader,serif;color:#f8da9c;background:#131c3199;border:1px solid #d4bb7555;border-radius:50%;min-width:24px;height:24px;display:grid;place-items:center;text-shadow:0 1px 3px #000;pointer-events:none;padding:0 5px}
.pet-intent{position:absolute;top:var(--intent-offset,-110px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:4px 7px;min-height:30px;border:0;background:#0a132699;border-radius:15px;box-shadow:0 2px 8px #0004;color:#f7e1a5;white-space:nowrap;font-size:.9rem;z-index:4}
.pet-intent .icon{width:19px;height:19px}.intent-value,.intent-speed{display:inline-flex;align-items:center;gap:3px}.intent-speed{color:#bfd7dd;font-size:.7rem}.intent-speed .icon{width:12px;height:12px}.intent-tooltip{display:none;position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);width:210px;white-space:normal;background:#131b2ffa;border:1px solid #b59c62;color:#e7e4d5;padding:10px;box-shadow:0 4px 16px #000a;text-align:left;font-size:.8rem;line-height:1.35;pointer-events:none}.intent-tooltip strong,.intent-tooltip>span{display:block}.pet-intent:hover .intent-tooltip,.pet-intent:focus-visible .intent-tooltip{display:block}.battle-lane.finished .pet-intent{display:none}.battle-lane.finished .lane-combatant{opacity:.7}
.two-lane-battle .hand-zone{position:fixed;transform:none;left:15%;right:15%;bottom:40px;width:70%;height:240px}.two-lane-battle .hand{height:100%;justify-content:center}.two-lane-battle .hand-slot{width:clamp(130px,11vw,190px);height:240px;flex:0 0 clamp(130px,11vw,190px)}
.two-lane-battle .lock-control{position:fixed;right:2%;bottom:36px;left:auto;width:clamp(110px,11vw,170px);z-index:35}.two-lane-battle .lock-button{width:100%;min-width:0;font-size:1.1rem;padding:14px 9px}.two-lane-battle .energy-constellation{position:fixed;transform:none;left:2%;bottom:42px;width:11%;padding:0}.two-lane-battle .energy-caption{display:none}
.game-card.target-ally{--target-color:#7db7ac}.game-card.target-foe{--target-color:#bb7262}.game-card.target-ally .card-topline{background:#7db7ac26}.game-card.target-foe .card-topline{background:#bb72623b}.game-card.target-ally .card-footer{color:#28334c}.game-card.target-foe .card-footer{color:#853e31}.game-card{border-color:var(--target-color,#a99565)}
.hand-slot .game-card{transform:perspective(850px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform .1s ease-out,box-shadow .15s}.hand-slot:hover .game-card,.hand-slot.touch-browse .game-card,.hand-slot:has(:focus-visible) .game-card{transform:perspective(850px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));box-shadow:0 0 0 2px var(--target-color),0 10px 25px #0008}
.hand-slot .game-card::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at var(--shine-x,50%) var(--shine-y,30%),#ffffdb70,transparent 58%);mix-blend-mode:soft-light;opacity:0;transition:opacity .2s;z-index:7}.hand-slot:hover .game-card::after{opacity:.65}.card-drag-ghost{position:fixed!important;width:150px!important;height:220px!important;z-index:110!important;pointer-events:none!important;opacity:.92;transform:translate(-50%,-85%) rotate(-5deg)!important;box-shadow:0 14px 22px #0008!important}.hand-slot.drag-source{opacity:.35}.lane-combatant.valid-card-target{filter:drop-shadow(0 0 5px #a5e6cf)}.lane-combatant.valid-card-target .health-shell{outline:2px solid #b1e4c8;outline-offset:2px}.lane-combatant.valid-card-target.enemy .health-shell{outline-color:#e9a395}#card-target-hint{bottom:270px;max-width:360px;font-size:.8rem}#card-target-hint span{display:none}
#pet-inspector .pet-detail-head{min-height:95px;margin:0 0 12px}#pet-inspector .pet-detail-head>.art-img{width:90px;height:90px}#pet-inspector .lineage-preview{padding:9px;margin:0 0 10px}#pet-inspector .lineage-stage{min-height:120px;padding:8px}#pet-inspector .lineage-silhouette{height:78px}#pet-inspector .lineage-preview>p{display:none}
.monster-anatomy{position:relative;width:min(600px,100%);height:300px;margin:8px auto 18px}.monster-anatomy>img{position:absolute;left:26%;top:0;width:48%;height:100%;object-fit:contain;pointer-events:none}.monster-anatomy>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:#c9b67488;stroke-width:1}.anatomy-label{position:absolute;width:27%;min-height:45px;padding:5px 7px;background:#151f36e6;border:1px solid #91825988;text-align:left;transition:background .15s,border-color .15s}.anatomy-label small{display:block;text-transform:uppercase;letter-spacing:.12em;color:#afb2b8;font-size:.6rem}.anatomy-label strong{font-size:.8rem;display:block;line-height:1.2}.anatomy-head{left:0;top:7%}.anatomy-core{left:0;top:45%}.anatomy-arms{right:0;top:20%}.anatomy-legs{left:0;bottom:5%}.anatomy-tail{right:0;bottom:8%}.anatomy-label.active,.anatomy-label:hover{background:#333c50;border-color:#f3d796}.pet-deck-card{transition:opacity .16s,filter .16s,box-shadow .16s}.pet-deck-card.part-dimmed{opacity:.28;filter:grayscale(.8)}.pet-deck-card.part-highlighted{box-shadow:0 0 0 2px #efcf82,0 0 15px #bca66a33}
@media(max-width:1100px) and (min-width:761px){.two-lane-battle .hand-zone{left:14%;right:14%;width:72%}.two-lane-battle .hand-slot{width:140px;flex-basis:140px;margin-left:-12px}.two-lane-battle .hand-slot:first-child{margin-left:0}}
@media(prefers-reduced-motion:reduce){.hand-slot .game-card{transition:none}.hand-slot .game-card::after{display:none}}
/* Transparent body regions share the labeled anatomy hover behavior. */
.monster-anatomy .anatomy-region{position:absolute;z-index:1;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;min-width:0;min-height:0;opacity:1;cursor:crosshair}
.monster-anatomy .anatomy-region:hover,.monster-anatomy .anatomy-region:active{background:transparent;border:0;box-shadow:none;transform:none}
.monster-anatomy .anatomy-region:focus-visible{outline:1px dashed #f3d796;outline-offset:0}
.monster-anatomy .region-head{left:43%;top:5%;width:14%;height:24%}.monster-anatomy .region-core{left:42%;top:29%;width:16%;height:34%}.monster-anatomy .region-arms{left:28%;top:29%;width:44%;height:15%}.monster-anatomy .region-legs{left:36%;top:63%;width:25%;height:32%}.monster-anatomy .region-tail{left:61%;top:50%;width:14%;height:40%}
.monster-anatomy .anatomy-label{z-index:2}
.monster-anatomy .region-arms{clip-path:polygon(0 0,100% 0,100% 100%,68% 100%,68% 5%,32% 5%,32% 100%,0 100%)}

/* Target the creature silhouette; life bars remain informational. */
.two-lane-battle .lane-combatant.valid-card-target{filter:none;box-shadow:none;outline:none;background:none}
.two-lane-battle .lane-combatant.valid-card-target .health-shell{outline:none;box-shadow:none}
@media(hover:hover) and (pointer:fine){
 .two-lane-battle .hand-slot:hover,.two-lane-battle .hand-slot:has(:focus-visible){transform:translateY(-38px) rotate(0deg);z-index:40}
 .two-lane-battle .hand-slot:hover .game-card,.two-lane-battle .hand-slot:has(:focus-visible) .game-card{transform:perspective(850px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg))}
}
.hand-slot.card-dealt{animation:combat-card-deal .44s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--draw-index,0)*65ms)}
@keyframes combat-card-deal{from{opacity:0;translate:0 120px;scale:.82}to{opacity:1;translate:0 0;scale:1}}
@media(prefers-reduced-motion:reduce){.hand-slot.card-dealt{animation:none}}
