/* v58 practice battle */
body.practice .cine,body.practice #coach,body.practice .prol{display:none!important}
.pskip{position:fixed;z-index:60;top:calc(6px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 14px 4px 6px;background:#1a0e06;color:#f3e6c4;border:1px solid #e8c76a;border-radius:20px;font:14px 'IM Fell English',serif;box-shadow:0 2px 8px rgba(0,0,0,.5);cursor:pointer}
.pskip .ptag{background:#e8c76a;color:#1a0e06;border-radius:14px;padding:3px 9px;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.pskip b{font-weight:normal;font-size:15px}
.ptip{position:fixed;z-index:58;pointer-events:none;display:flex;align-items:center;gap:8px;padding:7px 12px;background:#f3e6c4;color:#1a0e06;border:2px solid #1a0e06;border-radius:10px;box-shadow:0 3px 10px rgba(0,0,0,.45);font:15px 'IM Fell English',serif;white-space:nowrap;animation:pbob 1.1s ease-in-out infinite alternate}
.ptip .pic svg{width:26px;height:26px;display:block}
.ptip b{font-weight:normal}
.ptip .parr{position:absolute;left:var(--ax,50%);bottom:-9px;width:14px;height:14px;margin-left:-7px;background:#f3e6c4;border:2px solid #1a0e06;border-top:0;border-left:0;transform:rotate(45deg)}
.ptip.below .parr{bottom:auto;top:-9px;transform:rotate(225deg)}
@keyframes pbob{from{translate:0 0}to{translate:0 -4px}}
html.rm .ptip,body.rm .ptip{animation:none}
.ptoast{position:fixed;z-index:61;left:50%;top:18%;transform:translateX(-50%);pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 22px;background:#1a0e06;color:#f3e6c4;border:1px solid #e8c76a;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.55);font:14px 'IM Fell English',serif;animation:pfade 2.6s ease forwards}
.ptoast svg{width:34px;height:34px;color:#e8c76a}
.ptoast b{font:18px 'IM Fell English SC',serif;font-weight:normal}
@keyframes pfade{0%{opacity:0}10%{opacity:1}80%{opacity:1}100%{opacity:0}}
.prbtn{display:flex;align-items:center;justify-content:center;gap:8px}
.prbtn svg{width:20px;height:20px}
/* v58 hand faces: one big number + engraved icon in the short hand row */
html body:not(.desk) #app #hand.peek>.card.hface .vig::before{display:none}
#hand .hf{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;color:var(--ink,#231a12);gap:1px}
#hand .hf .ic{width:min(24px,6vw);height:min(24px,6vw);filter:none}
html body:not(.desk) #app.bt #hand.peek>.card .vig .hf .ic{width:min(24px,6vw);height:min(24px,6vw)}
#hand .hf b{font:bold 24px/1 'IM Fell English',Georgia,serif;letter-spacing:-.02em}
#hand .hf i{font:italic 13px/1 'IM Fell English',Georgia,serif;margin-top:1px}
#hand .hf-atk b{color:#7a1d10}
#hand .hf-def b{color:#1d3c5a}
html.cb #hand .hf-atk b,body.cb #hand .hf-atk b{color:#b35a00}
html.cb #hand .hf-def b,body.cb #hand .hf-def b{color:#0a4f8a}
html body.wide #app.bt #hand.peek>.card .vig .hf .ic{width:min(30px,4vh + 10px);height:min(30px,4vh + 10px)}
html body.wide #hand .hf b{font-size:min(30px,4.6vh + 8px)}
/* v58 fewer taps: act and fight-intro cards let taps through */
body>.cine.act,body>.cine.btin{pointer-events:none}
/* v58: in a fight the one-time coach tip sits near the top (below Retreat), clear of the hand and buttons, and any tap elsewhere closes it */
body:has(#app[data-screen=combat]) #coach{top:calc(108px + env(safe-area-inset-top));bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:min(520px,calc(100vw - 20px));max-height:45vh;overflow:auto}
html body.wide:not(.desk):has(#app[data-screen=combat]) #coach{top:92px;left:180px;transform:none;width:min(400px,calc(100vw - 420px));max-height:calc(100vh - 222px)}
