#menuArt{width:320px;height:130px;max-width:100%}
#game{background:#CFE9F5}
#stage{touch-action:none}
.hud .hp{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
.hud .hp b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:6.5em}
.hud .hp i{flex:1;height:10px;border:2px solid var(--ink);border-radius:99px;background:#fff;overflow:hidden;display:block;min-width:40px}
.hud .hp u{display:block;height:100%;width:100%;background:var(--lime);text-decoration:none;transition:width .4s}
.hud .hp.turn{outline:3px solid var(--orange)}
#hp1 u{background:var(--orange)}
.ctrl{display:flex;gap:8px;align-items:center;justify-content:center;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));flex-wrap:nowrap}
.ctrl button{min-width:48px;min-height:48px;padding:6px 10px;font-size:18px}
.ctrl #cW{font-size:15px;min-width:92px}
.ctrl #cF{min-width:84px}
.ctrl .pill{font-size:14px;white-space:nowrap}
.ctrl.off button{opacity:.45;pointer-events:none}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.tu-c{width:44px!important;height:44px!important;line-height:44px!important}
@media (max-width:760px){body:has(#game.on) .tu-c{bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}}
/* 1.0.3: the update chip shows only on the menu (in play it sat near the controls); "עדכון" stays in the pause window */
body:has(#game.on) .tu-c{display:none!important}
/* 1.0.3: phone landscape, the battlefield uses the full height and the controls sit in a column beside it (the field used to shrink to a strip in the middle) */
@media (orientation:landscape) and (max-height:540px){
  #game.on{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr)}
  #game .hud{grid-column:1/-1;grid-row:1}
  #game .stage{grid-column:1;grid-row:2}
  #ctrl{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:min-content;gap:7px;align-content:center;width:184px;padding:6px max(10px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom,0px)) 8px}
  #ctrl #cL,#ctrl #cR{min-height:48px}
  #ctrl #cW,#ctrl #cInfo,#ctrl #cF{grid-column:1/-1;min-width:0}
  #ctrl #cInfo{text-align:center}
  #ctrl #cF{min-height:52px}
}
