/* NEXORA 2.1 — pełnoekranowy układ gry na smartfonie */
@media(max-width:650px){
  .nexora-game:has(.nexora-game__screen--play:not([hidden])){height:100svh;margin:0;min-height:100svh;overflow:hidden}
  .nexora-game:has(.nexora-game__screen--play:not([hidden])) .nexora-game__shell{height:100svh;min-height:0;overflow:hidden;padding:7px}
  .nexora-game:has(.nexora-game__screen--play:not([hidden])) .nexora-game__brand{left:12px;top:8px;transform:scale(.86);transform-origin:left top}
  .nexora-game__screen--play{display:grid;grid-template-rows:auto 18px minmax(0,1fr) auto auto;justify-items:center;height:100%;margin:0!important;max-width:none;padding:43px 4px 5px;width:100%}
  .nexora-game__hud{grid-template-columns:repeat(3,1fr);margin:0;max-width:528px;width:min(100%,528px)}
  .nexora-game__hud>div{min-height:45px;padding:5px 7px}
  .nexora-game__hud>div:nth-child(3){border-right:0}
  .nexora-game__hud strong,.nexora-game__hud>div:first-child strong{font-size:clamp(15px,4.5vw,19px)}
  .nexora-game__hud-label{font-size:7px}
  .nexora-game__target{display:none!important}
  .nexora-game__notice{font-size:8px;height:18px;letter-spacing:.08em;line-height:1;text-align:center;width:100%}
  .nexora-game__board-wrap{align-self:center;margin:0;max-width:none;width:min(calc(100vw - 22px),calc(100svh - 300px))}
  .nexora-game__board{border-radius:12px;width:100%}
  .nexora-game__legend{align-self:center;display:flex;flex-wrap:nowrap;font-size:clamp(7px,2.15vw,9px);gap:3px 7px;justify-content:center;margin:4px 0;max-width:100%;white-space:nowrap}
  .nexora-game__legend span{gap:3px}
  .nexora-game__legend b{border-radius:50%;font-size:10px;height:17px;width:17px}
  .nexora-game__mobile-controls{--nexora-control:min(28vw,10.5svh,90px);--nexora-control-gap:clamp(5px,1.7vw,9px);align-items:center;display:grid;gap:var(--nexora-control-gap);grid-template-columns:repeat(3,var(--nexora-control));grid-template-rows:repeat(2,var(--nexora-control));margin:2px auto 0;width:calc(var(--nexora-control) + var(--nexora-control) + var(--nexora-control) + var(--nexora-control-gap) + var(--nexora-control-gap))}
  .nexora-game__mobile-controls>button{grid-column:2;grid-row:1}
  .nexora-game__mobile-controls>div{display:grid;gap:var(--nexora-control-gap);grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,var(--nexora-control))}
  .nexora-game__mobile-controls>button,.nexora-game__mobile-controls>div button{border-radius:clamp(13px,4vw,20px);font-size:clamp(29px,9vw,42px);height:var(--nexora-control);padding:0;width:var(--nexora-control)}
  .nexora-game__hint{display:none}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:520px){
  .nexora-game:has(.nexora-game__screen--play:not([hidden])),.nexora-game:has(.nexora-game__screen--play:not([hidden])) .nexora-game__shell{height:100svh;min-height:100svh;overflow:hidden}
  .nexora-game:has(.nexora-game__screen--play:not([hidden])) .nexora-game__shell{padding:5px}
  .nexora-game:has(.nexora-game__screen--play:not([hidden])) .nexora-game__brand{display:none}
  .nexora-game__screen--play{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:44px minmax(0,1fr);gap:4px 10px;height:100%;margin:0!important;max-width:none;padding:0;width:100%}
  .nexora-game__hud{grid-column:1/-1;grid-row:1;grid-template-columns:repeat(3,1fr);height:44px;margin:0;max-width:none;width:100%}
  .nexora-game__hud>div{min-height:42px;padding:4px 7px}.nexora-game__target{display:none!important}
  .nexora-game__notice,.nexora-game__legend,.nexora-game__hint{display:none}
  .nexora-game__board-wrap{align-self:center;grid-column:1;grid-row:2;height:min(calc(100svh - 55px),calc(100vw - 240px));margin:0 auto;width:min(calc(100svh - 55px),calc(100vw - 240px))}
  .nexora-game__mobile-controls{--nexora-control:min(25svh,66px);--nexora-control-gap:7px;align-self:center;grid-column:2;grid-row:2;margin:0;width:calc(var(--nexora-control) + var(--nexora-control) + var(--nexora-control) + var(--nexora-control-gap) + var(--nexora-control-gap))}
  .nexora-game__mobile-controls>button,.nexora-game__mobile-controls>div button{height:var(--nexora-control);width:var(--nexora-control)}
}
