/* v12.8: the whole hand is visible at rest; tighter board; no logo bar; timer ring clear of its label; keyword tooltip beside the zoom */
/* ---- 1. vertical rebalance (stage is 800 tall at every window size) ---- */
#row1{top:188px}#row0{top:318px}
.hz{transform:scale(.86);transform-origin:50% 0}
#hz1{top:36px}#hz0{top:446px}
#deck1{top:54px}#deck0{top:454px}
#endzone{top:223px}
/* ---- hand: compact-art cards, resting fully on screen (visual ~140x200) ---- */
#hand .card{height:222px;left:-78px;bottom:30px;transform-origin:50% 100%;transform:translate(var(--x,0px),var(--y,0px)) rotate(var(--r,0deg)) scale(.88)}
#hand .card .c-art{height:72px}
#hand .card:has(.c-text.dn1) .c-art{height:60px}
#hand .card:has(.c-text.dn2) .c-art{height:44px}
#hand .card:hover{transform:translate(var(--x,0px),-30px) rotate(0deg) scale(1.08) perspective(700px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}
#hand .card.selected{transform:translate(var(--x,0px),-40px) rotate(0deg) scale(1.1)!important}
/* ---- 2. no title bar on the battle screen ---- */
#hud .brand{display:none}
#hud{justify-content:flex-end}
/* ---- 3. turn timer: ring and label never touch ---- */
#cd{gap:20px;top:-34px}
#cd .ring{margin-bottom:2px;flex:none}
#cd em{position:relative;z-index:2;line-height:1.2;padding:2px 6px 0}
@keyframes tmbeat{0%{transform:scale(1.07)}100%{transform:scale(1)}}
/* ---- 4. zoom preview: keyword tooltip and flavour sit BESIDE the zoomed card ---- */
#preview .pside{position:absolute;left:calc(var(--cw) * 1.5 + 16px);top:0;width:238px;display:flex;flex-direction:column;gap:10px}
#preview .pside .pf,#preview .pside .pg{margin:0;max-width:none;width:100%;box-sizing:border-box}

/* v12.8: Michael the Archangel's descent: a longer, fiercer entrance than the other Angels */
#angelfx .blaze,#angelfx .sub{opacity:0;position:absolute;left:var(--ax,50%);pointer-events:none}
#angelfx .blaze{top:var(--ay,60%);width:760px;height:760px;margin:-420px 0 0 -380px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,170,.75),rgba(255,150,40,.42) 34%,rgba(255,90,20,0) 68%);transform:scale(.2)}
#angelfx .sub{top:calc(var(--ay,60%) - 188px);transform:translateX(-50%);font-family:var(--f-title);font-weight:700;font-size:20px;letter-spacing:.34em;text-transform:uppercase;white-space:nowrap;color:#ffe9b0;text-shadow:0 2px 4px #000,0 0 16px rgba(255,170,60,.95)}
#angelfx.arch.on{animation:angdim 4.8s ease-in-out forwards}
#angelfx.arch.on .col{animation:angcol 4.8s ease-out forwards}
#angelfx.arch .col{width:420px;margin-left:-210px}
#angelfx.arch.on .wings{animation:angwings 4.8s cubic-bezier(.2,.9,.3,1) .38s forwards}
#angelfx.arch .wings{width:980px;height:523px;margin:-300px 0 0 -490px}
#angelfx.arch.on .nm{animation:angnm 4.8s ease-out .35s forwards;font-size:46px}
#angelfx.arch.on .blaze{animation:archblaze 4.8s ease-out .5s forwards}
#angelfx.arch.on .sub{animation:archsub 4.8s ease-out .5s forwards}
@keyframes archblaze{0%{opacity:0;transform:scale(.2)}18%{opacity:1;transform:scale(.9)}34%{opacity:.7;transform:scale(.8)}46%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(1.5)}}
@keyframes archsub{0%,22%{opacity:0;letter-spacing:.8em}40%,68%{opacity:1;letter-spacing:.34em}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){#angelfx.arch.on{animation-duration:.01s}}
#angelfx.arch .nm{top:calc(var(--ay,60%) - 300px)}
#angelfx.arch .sub{top:calc(var(--ay,60%) - 238px)}
.p-sc{right:34px}
#angelfx.arch .nm{top:calc(var(--ay,60%) - 340px);z-index:5;font-size:42px;text-shadow:0 2px 18px rgba(0,0,0,.9),0 0 22px rgba(255,210,120,.7)}
#angelfx.arch .sub{top:calc(var(--ay,60%) - 282px);z-index:5}
