/* ========================================================================== MOBILE.CSS ========================================================================== */
/* ========================================================================== MOBILE FOUNDATIONS & TYPOGRAPHY ========================================================================== */
body.z-mobile-on {
  --m-safe-top: calc(env(safe-area-inset-top) + 8px);
  --m-safe-bottom: calc(env(safe-area-inset-bottom) + 8px);
  --m-shell-size: 42px;
  --m-shell-offset: 12px;
  --m-page-pad: 14px;
  --m-page-gap: 14px;
  --m-footer-pad-y: 10px;
  --m-footer-pad-x: 12px;
  --m-footer-rights-h: 42px;
  --m-footer-full-h: 82px;
  --m-footer-actual-h: var(--m-footer-full-h);
  --m-title-lg: 17px;
  --m-text: 13px;
  --m-text-sm: 11px;
  --m-auth-card-h: 516px;
  --m-auth-brand-h: 228px;
  --m-head-pane-w: 30%;
  --m-content-pane-w: 70%;
  --m-mode-card-portrait-w: 80%;
  --m-lobby-card-portrait-w: 90%;
  --m-panel-landscape-h: 80%;
  --m-game-side-w: max(246px, calc((100vw - 16px) * 0.3));
  --m-game-drawer-h: 38px;
  --m-game-drawer-gap: 10px;
  --m-vh: 100dvh;
  min-height: var(--m-vh);
  height: var(--m-vh);
  max-height: var(--m-vh);
  overflow: hidden;
  padding: 0 !important;
  --fs-title: var(--m-title-lg);
  --fs-body: var(--m-text);
  --fs-footer: var(--m-text-sm);
  box-sizing: border-box;
  font-size: var(--m-text) !important;
  line-height: 1.4;
}
body.z-mobile-on[data-mobile-orientation="landscape"] {
  --m-title-lg: 16px;
  --m-text: 12px;
  --m-text-sm: 10px;
  --m-footer-rights-h: 34px;
  --m-footer-full-h: 34px;
  --m-footer-pad-y: 6px;
  --m-panel-landscape-h: 80%;
}
body.z-mobile-on .z-page,
body.z-mobile-on .z-page-inner,
body.z-mobile-on .z-page.with-info-sidebar,
body.z-mobile-on .z-contact-form-embed,
body.z-mobile-on .z-contact-form-embed iframe,
body.z-mobile-on .z-auth-wrap,
body.z-mobile-on .z-lobby-inner,
body.z-mobile-on .z-lobby-panel,
body.z-mobile-on .z-dashboard-inner,
body.z-mobile-on .z-card {
  box-sizing: border-box;
  font-size: var(--fs-body);
}
body.z-mobile-on .z-page-head .btn,
body.z-mobile-on .z-page-head a,
body.z-mobile-on .z-topbar,
body.z-mobile-on .z-footer-wrap,
body.z-mobile-on .z-info-sidebar,
body.z-mobile-on .z-info-card,
body.z-mobile-on .z-mobile-shell-menu[hidden],
body.z-mobile-on .z-auth-seo-card,
body.z-mobile-on .z-auth-foot,
body.z-mobile-on .z-auth-lang,
body.z-mobile-on .z-auth-titlebar h2,
body.z-mobile-on .z-auth-links,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-shell-btn.is-back,
body.z-mobile-on .z-mode-back-row,
body.z-mobile-on .z-lobby-head,
body.z-mobile-on .z-lobby-bottom,
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-scroll
  > .z-clear,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell-menu[hidden],
body.z-mobile-on[data-mobile-page="game"] .z-topbar,
body.z-mobile-on[data-mobile-page="game"] .z-nav,
body.z-mobile-on[data-mobile-page="game"] .z-topbar-nav,
body.z-mobile-on[data-mobile-page="game"] .z-topbar-right,
body.z-mobile-on[data-mobile-page="game"] .z-topbar-title,
body.z-mobile-on[data-mobile-page="game"] .z-nav-toggle,
body.z-mobile-on[data-mobile-page="game"] .status-row,
body.z-mobile-on[data-mobile-page="game"] .stats,
body.z-mobile-on[data-mobile-page="game"] .stats-desktop,
body.z-mobile-on[data-mobile-page="game"] #controlsWrap,
body.z-mobile-on[data-mobile-page="game"] #specBar,
body.z-mobile-on[data-mobile-page="game"] #controlsPool,
body.z-mobile-on[data-mobile-page="game"] #onlinePresence,
body.z-mobile-on[data-mobile-page="game"] #btnEndLocalMatch,
body.z-mobile-on[data-mobile-page="game"] #btnEndOnline,
body.z-mobile-on[data-mobile-page="game"] #btnLeaveRoom,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn
  .btn-text,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill
  .btn-text,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  .muted {
  display: none !important;
}
body.z-mobile-on h1,
body.z-mobile-on .z-page-title,
body.z-mobile-on .z-mobile-text-title,
body.z-mobile-on .z-mobile-text-aside-title,
body.z-mobile-on .z-dash-title {
  font-size: var(--m-title-lg) !important;
  line-height: 1.2;
}
body.z-mobile-on h2,
body.z-mobile-on .z-card h2,
body.z-mobile-on .z-mode-text h2,
body.z-mobile-on .z-lobby-h2,
body.z-mobile-on .z-dash-summary th,
body.z-mobile-on .z-dash-details th {
  font-size: var(--fs-body) !important;
  line-height: 1.25;
  font-weight: 800;
}
body.z-mobile-on p,
body.z-mobile-on li,
body.z-mobile-on .btn,
body.z-mobile-on input,
body.z-mobile-on select,
body.z-mobile-on textarea,
body.z-mobile-on td,
body.z-mobile-on th,
body.z-mobile-on .z-row-sub,
body.z-mobile-on .z-mode-sub,
body.z-mobile-on .z-lobby-subtitle {
  font-size: var(--m-text) !important;
  line-height: 1.4;
}
body.z-mobile-on small {
  font-size: var(--m-text-sm) !important;
  line-height: 1.35;
}
body.z-mobile-on button,
body.z-mobile-on .btn.small,
body.z-mobile-on .z-card p,
body.z-mobile-on .z-card li,
body.z-mobile-on .z-empty,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-profile-name,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-name,
body.z-mobile-on .z-mobile-game-name,
body.z-mobile-on .z-mobile-game-vs,
body.z-mobile-on .z-mobile-game-controls-grid .btn,
body.z-mobile-on .z-mobile-game-controls-grid #btnEndKill {
  font-size: var(--fs-body);
}
body.z-mobile-on h3,
body.z-mobile-on .z-card h3 {
  font-size: var(--fs-body);
  font-weight: 800;
}
body.z-mobile-on .z-row-title {
  font-size: var(--m-text) !important;
  line-height: 1.4;
  font-weight: 800;
}
/* ========================================================================== MOBILE MODALS & OVERLAYS ========================================================================== */
body.z-mobile-on .modal {
  max-height: min(78dvh, 520px) !important;
  position: relative;
  z-index: var(--z-modal) !important;
}
body.z-mobile-on .modal-header {
  min-height: 0 !important;
  padding: 8px 12px !important;
}
body.z-mobile-on .modal-body {
  padding: 10px 12px !important;
}
body.z-mobile-on .modal-footer {
  padding: 8px 12px !important;
}
body.z-mobile-on .modal .btn,
body.z-mobile-on .modal button {
  min-height: 0 !important;
  padding-block: 7px !important;
}
body.z-mobile-on .modal-backdrop {
  z-index: var(--z-modal-backdrop) !important;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(6px);
}
/* ========================================================================== MOBILE SHARED SURFACES & CONTROLS ========================================================================== */
body.z-mobile-on .z-mobile-footer,
body.z-mobile-on .z-mobile-head-box,
body.z-mobile-on .z-mobile-shell-menu,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell-menu,
body.z-mobile-on .z-mobile-auth-login,
body.z-mobile-on .z-mobile-auth-fields,
body.z-mobile-on .z-mobile-auth-social,
body.z-mobile-on .z-mobile-auth-register,
body.z-mobile-on .z-mobile-auth-register-col,
body.z-mobile-on .z-mobile-text-frame,
body.z-mobile-on .z-mobile-text-main,
body.z-mobile-on .z-mobile-text-aside,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-head,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-host,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-handle,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-body,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .opponent-box,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .stats-mobile,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .log {
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
body.z-mobile-on .z-mobile-shell-menu button,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell-menu button {
  min-width: 120px;
  padding: 8px 12px;
  color: var(--text);
  text-align: start;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
}
body.z-mobile-on .z-mobile-shell-menu button.is-active,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-shell-menu
  button.is-active {
  background: rgba(0, 0, 0, 0.06);
}
html.dark body.z-mobile-on .z-mobile-shell-menu button.is-active,
html.dark
  body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-shell-menu
  button.is-active {
  background: rgba(255, 255, 255, 0.08);
}
body.z-mobile-on .z-mobile-auth-login,
body.z-mobile-on .z-mobile-auth-fields,
body.z-mobile-on .z-mobile-auth-social,
body.z-mobile-on .z-mobile-auth-register,
body.z-mobile-on .z-mobile-auth-register-col,
body.z-mobile-on .z-mobile-text-frame,
body.z-mobile-on .z-mobile-text-main,
body.z-mobile-on .z-mobile-text-aside {
  box-sizing: border-box;
  border-color: var(--border);
  border-radius: 24px;
}
/* ========================================================================== MOBILE SHELL, NAVIGATION & FOOTER ========================================================================== */
.z-mobile-shell,
.z-mobile-orient,
.z-mobile-footer,
.z-mobile-head-box,
.z-mobile-shell-menu,
.z-mobile-auth-login,
.z-mobile-auth-fields,
.z-mobile-auth-social,
.z-mobile-auth-register,
.z-mobile-auth-register-col,
.z-mobile-auth-register-back,
.z-mobile-text-frame,
.z-mobile-text-aside,
.z-mobile-text-main,
.z-mobile-text-start,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-footer-nav,
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-aside,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-title-wrap,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-start--main,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-play-btn
  .btn-ico,
.z-mobile-game-shell,
.z-mobile-game-head,
.z-mobile-game-controls-host,
.z-mobile-game-drawer,
.z-mobile-game-drawer-backdrop {
  display: none;
}
.z-mobile-game-side-lane {
  display: none;
}

body.z-mobile-on .z-mobile-shell {
  display: flex;
  position: fixed;
  inset-inline: 0;
  top: var(--m-safe-top);
  z-index: 10040;
  pointer-events: none;
}
body.z-mobile-on .z-mobile-orient {
  width: var(--m-shell-size);
  height: var(--m-shell-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  color: var(--text);
  position: fixed;
  right: var(--m-shell-offset);
  left: auto;
  bottom: calc(var(--m-safe-bottom) + 14px);
  z-index: 10061;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
}
body.z-mobile-on .z-mobile-orient .z-mobile-orient-ico {
  width: 20px;
  height: 20px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url('../assets/icons/orientation-toggle.svg') center / contain no-repeat;
  mask: url('../assets/icons/orientation-toggle.svg') center / contain no-repeat;
}
html.dark body.z-mobile-on .z-mobile-orient,
html.dark body.z-mobile-on .z-mobile-shell-btn {
  background: rgba(19, 29, 50, 0.88);
}
body.z-mobile-on .z-mobile-footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  justify-content: center;
  padding: var(--m-footer-pad-y) var(--m-footer-pad-x)
    calc(env(safe-area-inset-bottom) + var(--m-footer-pad-y));
  border-top: 1px solid var(--border);
  font-size: var(--fs-body);
}
body.z-mobile-on .z-mobile-head-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  text-align: center;
}
body.z-mobile-on .z-mobile-footer-rights {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--m-text-sm) !important;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
  unicode-bidi: plaintext;
}
body.z-mobile-on .z-mobile-shell-spacer,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--m-shell-offset);
  pointer-events: none;
}
body.z-mobile-on .z-mobile-shell-btn {
  width: var(--m-shell-size);
  height: var(--m-shell-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-sm);
}

body.z-mobile-on .z-mobile-shell-btn img {
  width: 18px;
  height: 18px;
  display: block;
}
body.z-mobile-on .z-mobile-shell-btn.is-back[data-shell-action="back"] img {
  transform: rotate(180deg);
}
html[dir="ltr"] body.z-mobile-on .z-mobile-shell-btn.is-back[data-shell-action="back"] img {
  transform: none;
}
body.z-mobile-on .z-mobile-shell-menu {
  position: fixed;
  top: calc(100% + 6px);
  left: var(--m-shell-offset);
  right: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  z-index: 10041;
  border: 1px solid var(--border);
  border-radius: 24px;
  pointer-events: auto;
}

body.z-mobile-on .z-mobile-footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  background: transparent;
}
body.z-mobile-on .z-mobile-footer-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark body.z-mobile-on .z-mobile-footer-nav a {
  color: #1e3a8a;
  background: rgba(19, 29, 50, 0.72);
}
body.z-mobile-on[data-mobile-orientation="landscape"] .z-mobile-footer {
  min-height: var(--m-footer-rights-h);
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
body.z-mobile-on .z-mobile-head-box .z-page-title,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-mobile-text-scroll {
  margin: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"]
  .z-mobile-footer[data-variant="full"]
  .z-mobile-footer-rights {
  font-size: var(--m-text-sm);
}
html.dark body.z-mobile-on .z-mobile-footer {
  background: rgba(15, 23, 42, 0.78);
}
body.z-mobile-on[data-mobile-orientation="portrait"] {
  --m-footer-pad-y: 6px;
  --m-footer-rights-h: 24px;
  --m-footer-full-h: 72px;
}
body.z-mobile-on[data-mobile-orientation="portrait"] .z-mobile-footer {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 4px;
}
body.z-mobile-on[data-mobile-orientation="portrait"] .z-mobile-footer-nav {
  border: none;
  border-radius: 16px;
  padding: 6px 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  gap: 0 6px;
  background: rgba(255, 255, 255, 0.9);
}
html.dark body.z-mobile-on[data-mobile-orientation="portrait"] .z-mobile-footer-nav {
  background: rgba(15, 23, 42, 0.9);
}
body.z-mobile-on[data-mobile-orientation="portrait"] .z-mobile-footer-nav a {
  min-height: 0;
  padding: 2px 6px;
  margin: 0;
}
body.z-mobile-on[data-mobile-orientation="portrait"] .z-mobile-footer-rights {
  margin: 0;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
}
html.dark body.z-mobile-on[data-mobile-orientation="portrait"] .z-mobile-footer-rights {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"] .z-mobile-footer,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"] .z-mobile-footer {
  border-top: none;
  min-height: 76px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-footer {
  gap: 10px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-footer-nav {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  gap: 0 8px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-footer-nav a {
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}
/* ========================================================================== MOBILE PAGE SHELL SHARED RULES ========================================================================== */
body.z-mobile-on[data-mobile-page="auth"],
body.z-mobile-on[data-mobile-page="mode"],
body.z-mobile-on[data-mobile-page="lobby"],
body.z-mobile-on[data-mobile-page="dashboard"],
body.z-mobile-on[data-mobile-page="text"] {
  display: flex;
  flex-direction: column;
}
body.z-mobile-on[data-mobile-page="mode"] .z-page,
body.z-mobile-on[data-mobile-page="lobby"] .z-page,
body.z-mobile-on[data-mobile-page="dashboard"] .z-page {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
body.z-mobile-on .z-mobile-head-box .z-mode-sub,
body.z-mobile-on .z-mobile-head-box .z-lobby-subtitle {
  margin: 0;
  font-size: var(--fs-body) !important;
  line-height: 1.35;
}
body.z-mobile-on[data-mobile-page="mode"] .z-page,
body.z-mobile-on[data-mobile-page="lobby"] .z-page {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: calc(var(--m-safe-top) + var(--m-shell-size) + 12px)
    var(--m-page-pad) calc(env(safe-area-inset-bottom) + 12px) !important;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mobile-head-box,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-mobile-head-box {
  grid-area: head;
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mobile-head-box
  .z-page-title,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mobile-head-box
  .z-mode-sub,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-mobile-head-box
  .z-page-title,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-mobile-head-box
  .z-lobby-subtitle {
  background: transparent !important;
}
/* ========================================================================== MOBILE AUTH PAGE ========================================================================== */

body.z-mobile-on .z-mobile-auth-register-back,
body.z-mobile-on .z-mobile-text-start,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-live
  .clock {
  display: flex;
}

body.z-mobile-on[data-mobile-page="auth"] .z-auth-wrap {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: calc(var(--m-safe-top) + var(--m-shell-size) + 8px) var(--m-page-pad)
    calc(var(--m-footer-rights-h) + env(safe-area-inset-bottom) + 8px);
  gap: 8px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-wrap {
  justify-content: flex-start;
  padding: calc(var(--m-safe-top) + var(--m-shell-size) + 2px) var(--m-page-pad)
    calc(
      var(--m-footer-actual-h, var(--m-footer-rights-h)) +
        env(safe-area-inset-bottom) + 4px
    );
  gap: 6px;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: 120px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: transparent;
  padding: 0;
  text-align: center;
  overflow: hidden;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-brand h1 {
  display: none !important;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-brand img {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
  border-radius: 0;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-card {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-brand {
  min-height: 98px;
  padding: 0;
  gap: 0;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-brand
  img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-main {
  flex: 0 0 auto;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-card {
  min-height: 0;
  height: auto;
  padding: 8px 10px 10px;
  justify-content: flex-start;
 
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-card
  > section,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-grid {
  justify-content: flex-start;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-mobile-auth-login,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-mobile-auth-register,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-mobile-auth-register-col {
  gap: 8px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-mobile-auth-fields,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-mobile-auth-social {
  padding: 8px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  #btnGuest,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  #btnLoginGoogle {
  min-height: 42px;
  padding-block: 8px;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-card > section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  flex: 0 0 auto;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-grid {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  gap: 8px;
}
body.z-mobile-on[data-mobile-page="auth"] [data-auth-view="recover"] .z-auth-grid,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-back {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-login-heading,
body.z-mobile-on[data-mobile-page="auth"] .z-auth-titlebar h2,
body.z-mobile-on[data-mobile-page="auth"] section[data-auth-view="recover"] > h2 {
  width: 100%;
  margin: 0 0 8px;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-fields,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-social {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  background: transparent;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-row input,
body.z-mobile-on[data-mobile-page="auth"] .z-auth-row select {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 14px;
}
body.z-mobile-on[data-mobile-page="auth"] #btnLogin {
  width: 100%;
  min-height: 40px;
}
body.z-mobile-on[data-mobile-page="auth"] #btnRegister,
body.z-mobile-on[data-mobile-page="auth"] #btnRecover,
body.z-mobile-on[data-mobile-page="auth"] [data-auth-view="register"] .btn,
body.z-mobile-on[data-mobile-page="auth"] [data-auth-view="recover"] .btn,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-back .btn,
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-start .btn,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-start--aside
  .btn,
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dashboard-inner,
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-main-block {
  width: 100%;
}
body.z-mobile-on[data-mobile-page="auth"] #btnGuest,
body.z-mobile-on[data-mobile-page="auth"] #btnLoginGoogle {
  min-height: 42px;
  padding-block: 8px;
}
body.z-mobile-on[data-mobile-page="auth"] #btnLoginGoogle {
  background: var(--z-auth-action-bg) !important;
  color: var(--z-auth-action-text) !important;
  border-color: var(--z-auth-action-border) !important;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-links {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-inline: 0;
  min-height: 0;
  visibility: visible !important;
  opacity: 1 !important;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-title,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-line,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-submit,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-register-title h2 {
  margin: 0;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-titlebar {
  margin: 0 0 6px;
  gap: 8px;
  justify-content: center;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-titlebar .z-auth-google-top {
  min-height: 40px;
  padding: 7px 10px;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-actions {
  margin-top: 6px;
  gap: 8px;
}
body.z-mobile-on[data-mobile-page="auth"] .z-auth-row {
  gap: 4px;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-links a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-links a span {
  display: inline;
  white-space: normal;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-links a,
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-auth-links a span {
  visibility: visible !important;
  opacity: 1 !important;
}

body.z-mobile-on[data-mobile-page="auth"] .z-profile-grid {
  grid-template-columns: 1fr;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(200px, 0.72fr);
  grid-template-areas: "main brand";
  align-items: start;
  gap: 10px;
  padding-top: calc(var(--m-safe-top) + var(--m-shell-size) + 2px);
}
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-brand,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-main,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mobile-head-box,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mode-grid,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mode-card,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mode-back-row,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-mobile-head-box,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-cols,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-panel,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-bottom {
  direction: rtl;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-brand {
  min-width: 0;
  grid-area: brand;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  align-self: stretch;
  padding: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-main {
  min-width: 0;
  min-height: 0;
  grid-area: main;
  height: auto;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-brand
  img {
  width: 100%;
  height: 100%;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-card {
  min-height: 0;
  height: auto;
  padding: 8px 10px 10px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-login {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8px;
  align-items: start;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-links {
  grid-column: 1 / -1;
  margin-top: 2px;
  justify-content: center;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-auth-fields,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-auth-social {
  height: 100%;
  justify-content: space-between;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-auth-social {
  justify-content: center;
  align-self: stretch;
  gap: 12px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"] .z-mobile-auth-social .btn {
  min-height: 46px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register {
  grid-template-columns: 1fr;
  grid-template-areas: "title" "line1" "line2" "submit" "back";
  align-items: stretch;
  gap: 8px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-title {
  grid-area: title;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-line.is-line1 {
  grid-area: line1;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-line.is-line2 {
  grid-area: line2;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-submit {
  grid-area: submit;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-back {
  grid-area: back;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-submit,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-back {
  align-items: stretch;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-back
  .btn,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-mobile-auth-register-submit
  .btn {
  width: 100%;
  min-width: 0;
}
/* ========================================================================== MOBILE MODE PAGE ========================================================================== */

body.z-mobile-on[data-mobile-page="mode"] .z-page-inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--m-page-gap);
}
body.z-mobile-on[data-mobile-page="mode"] .z-mode-grid {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  justify-items: center;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="mode"]
  .z-mode-card:first-child {
  align-self: end;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="mode"]
  .z-mode-card:last-child {
  align-self: start;
}
body.z-mobile-on[data-mobile-page="mode"] .z-mode-card {
  width: var(--m-mode-card-portrait-w);
  min-height: 80%;
  height: 80%;
  max-height: 80%;
  padding: 12px;
  border-radius: 20px;
  justify-content: center;
  align-self: center;
  justify-self: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-elev-2), var(--panel));
  border: 1px solid var(--surface-stroke-strong);
  box-shadow: var(--shadow);
}
body.z-mobile-on[data-mobile-page="mode"] .z-mode-card::before {
  opacity: 0.3;
  content: none;
}
body.z-mobile-on[data-mobile-page="mode"] .z-mode-ico {
  width: 68px;
  height: 68px;
  border: 1px solid var(--surface-stroke);
  background: transparent;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mode-grid {
  grid-area: content;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  align-content: stretch;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-mode-card {
  width: 100%;
  min-height: var(--m-panel-landscape-h);
  height: var(--m-panel-landscape-h);
  max-height: var(--m-panel-landscape-h);
}

body.z-mobile-on[data-mobile-page="mode"] .z-mode-ico img {
  width: 38px;
  height: 38px;
}
/* ========================================================================== MOBILE LOBBY PAGE ========================================================================== */
body.z-mobile-on .z-lobby-inner,
body.z-mobile-on .z-lobby-panel {
  box-sizing: border-box;
}

body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-inner {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--m-page-gap);
}
body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-cols {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-panel {
  width: var(--m-lobby-card-portrait-w);
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  justify-self: center;
  align-self: stretch;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-elev-2), var(--panel));
  border: 1px solid var(--surface-stroke-strong);
  box-shadow: var(--shadow);
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-page {
  padding: calc(var(--m-safe-top) + var(--m-shell-size) + 8px) var(--m-page-pad)
    calc(env(safe-area-inset-bottom) + 8px) !important;
}
body.z-mobile-on[data-mobile-page="auth"] .z-mobile-shell-spacer {
  justify-content: flex-end;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-mobile-shell-spacer {
  justify-content: space-between;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="auth"]
  .z-auth-wrap,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="mode"]
  .z-mode-grid,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-lobby-inner,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-lobby-cols {
  gap: 8px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-mobile-head-box {
  gap: 4px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="mode"]
  .z-mobile-head-box,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-mobile-head-box {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border: none;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-lobby-cols
  > :first-child {
  order: 2;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-lobby-cols
  > :last-child {
  order: 1;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"]
  .z-lobby-panel {
  width: 90%;
  min-width: 90%;
  max-width: 90%;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 0;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-list.rooms .z-row,
body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-list.players .z-row {
  width: 100%;
  max-width: none;
  min-width: 0;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-row {
  min-width: 0;
  gap: 8px;
  white-space: nowrap;
  border: 1.5px solid var(--surface-stroke-strong);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(248, 250, 252, 1)
  );
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
body.z-mobile-on[data-mobile-page="lobby"] .z-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-row-title,
body.z-mobile-on[data-mobile-page="lobby"] .z-row-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-row-actions {
  flex-wrap: nowrap;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-row-actions .btn {
  min-height: 36px;
  padding-inline: 10px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-cols {
  grid-area: content;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 10px;
  align-content: stretch;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-panel {
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  justify-self: stretch;
  align-self: stretch;
  padding: 10px;
  gap: 8px;
}
html.dark body.z-mobile-on[data-mobile-page="lobby"] .z-row {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.98),
    rgba(15, 23, 42, 0.98)
  );
  border-color: rgba(191, 208, 232, 0.36);
}
body.z-mobile-on[data-mobile-page="lobby"] .z-mobile-lobby-headbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-mobile-lobby-headtexts {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-mobile-lobby-headtexts .z-page-title,
body.z-mobile-on[data-mobile-page="lobby"] .z-mobile-lobby-headtexts .z-lobby-subtitle {
  margin: 0;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-mobile-lobby-rank-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body.z-mobile-on[data-mobile-page="lobby"] .z-mobile-lobby-rank-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url('../assets/icons/leaderboard.svg') center / contain no-repeat;
  mask: url('../assets/icons/leaderboard.svg') center / contain no-repeat;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"] .z-mobile-lobby-headbar {
  position: relative;
  justify-content: center;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"] .z-mobile-lobby-headtexts {
  padding-inline: 44px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="lobby"] .z-mobile-lobby-rank-btn {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"] .z-mobile-lobby-headbar {
  justify-content: center;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"] .z-mobile-lobby-headtexts {
  width: 100%;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"] .z-mobile-lobby-rank-btn {
  align-self: center;
  margin-top: 4px;
}
/* ========================================================================== MOBILE TEXT & INFO PAGES ========================================================================== */

body.z-mobile-on[data-mobile-page="text"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.z-mobile-on[data-mobile-page="text"] .z-page.with-info-sidebar {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: calc(var(--m-safe-top) + var(--m-shell-size) + 12px)
    var(--m-page-pad)
    var(
      --m-footer-actual-h,
      calc(var(--m-footer-full-h) + env(safe-area-inset-bottom))
    ) !important;
}
body.z-mobile-on[data-mobile-page="text"] .z-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--m-page-gap);
  background: transparent;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-main {
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-content: stretch;
  background: transparent;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-title-wrap,
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-aside-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: transparent;
  padding: 12px 14px;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-title,
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-aside-title,
body.z-mobile-on[data-mobile-page="dashboard"] .z-page-head,
body.z-mobile-on[data-mobile-page="dashboard"] .z-page-title {
  margin: 0;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: transparent;
}
body.z-mobile-on[data-mobile-page="text"]
  .z-mobile-text-scroll
  > *:first-child {
  margin-top: 0 !important;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-scroll > *:last-child {
  margin-bottom: 0 !important;
}

body.z-mobile-on[data-mobile-page="text"] .z-page-richtext {
  gap: 10px;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext section {
  padding: 12px 13px;
  border-radius: 16px;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext h2,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext h3 {
  font-size: var(--fs-body) !important;
  line-height: 1.4;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext p,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext li,
body.z-mobile-on[data-mobile-page="text"] .z-contact-intro {
  line-height: 1.7;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext ol,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext ul {
  gap: 6px;
}
body.z-mobile-on[data-mobile-page="text"] .z-contact-intro {
  margin-bottom: 0;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-scroll {
  padding: 10px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"] .z-mobile-text-title-wrap {
  background: rgba(255, 255, 255, 0.72);
}
html.dark body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"] .z-mobile-text-title-wrap {
  background: rgba(19, 29, 50, 0.72);
}

body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-page.with-info-sidebar {
  padding-bottom: calc(
    var(
        --m-footer-actual-h,
        calc(var(--m-footer-full-h) + env(safe-area-inset-bottom))
      ) +
      2px
  ) !important;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-mobile-text-main {
  gap: 8px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-mobile-text-title-wrap {
  margin-bottom: 0;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-mobile-text-start--main {
  position: static;
  inset-inline: auto;
  bottom: auto;
  z-index: auto;
}

body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-mobile-text-start {
  align-self: stretch;
  margin: 0;
  padding: 0;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="text"]
  .z-mobile-text-start
  .btn {
  min-height: 42px;
  padding-block: 4px;
  border-radius: 16px 16px 0 0;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-aside-links {
  display: grid;
  gap: 10px 14px;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-aside-links a {
  color: #1e3a8a;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  font-weight: 800;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext {
  gap: 10px;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext p + p,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext ul + p,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext ol + p,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext p + ul,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext p + ol,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext ul + ul,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext ol + ol {
  margin-top: 6px;
}
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext li > p {
  margin-top: 4px;
}
body.z-mobile-on[data-mobile-page="text"] .z-mobile-text-aside-links a,
body.z-mobile-on[data-mobile-page="text"] .z-page-richtext a,
body.z-mobile-on[data-mobile-page="text"] .z-contact-intro a {
  color: #1e3a8a;
  font-weight: 800;
}
html.dark
  body.z-mobile-on[data-mobile-page="text"]
  .z-mobile-text-aside-links
  a,
html.dark body.z-mobile-on[data-mobile-page="text"] .z-page-richtext a,
html.dark body.z-mobile-on[data-mobile-page="text"] .z-contact-intro a {
  color: #1e3a8a;
}
body.z-mobile-on[data-mobile-page="text"] .z-contact-form-embed {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body.z-mobile-on[data-mobile-page="text"] .z-contact-form-embed iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: max(100%, 520px) !important;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"],
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-page.with-info-sidebar,
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-frame,
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-main {
  overflow: hidden;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-scroll {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"] .z-contact-intro {
  margin-bottom: 0;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"] .z-mobile-text-scroll > h2,
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"] .z-mobile-text-scroll > .z-contact-intro,
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"] .z-mobile-text-scroll > .z-contact-form-embed {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-scroll
  > .z-contact-form-embed,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-scroll {
  height: 100%;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-scroll
  > .z-contact-form-embed {
  flex: 1 1 auto;
  min-height: 0;
}
body.z-mobile-on[data-mobile-page="text"][data-mobile-text-page="contact"]
  .z-mobile-text-scroll
  iframe {
  height: 100% !important;
  min-height: 0 !important;
  vertical-align: top !important;
}

body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-page.with-info-sidebar {
  padding-bottom: var(
    --m-footer-actual-h,
    calc(var(--m-footer-rights-h) + env(safe-area-inset-bottom))
  ) !important;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-frame {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(200px, 30%) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-aside {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: transparent;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-aside-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  justify-items: center;
  align-items: center;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-aside-links
  a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  text-align: center;
  font-size: var(--fs-body);
}
html.dark body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"] .z-mobile-text-aside-links a {
  background: rgba(19, 29, 50, 0.72);
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"] .z-mobile-text-title-wrap,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"] .z-mobile-text-aside-title-wrap {
  background: rgba(255, 255, 255, 0.72);
}
html.dark body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"] .z-mobile-text-title-wrap,
html.dark body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"] .z-mobile-text-aside-title-wrap {
  background: rgba(19, 29, 50, 0.72);
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-main {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="text"]
  .z-mobile-text-start--aside {
  display: flex;
  width: 100%;
}

/* ========================================================================== MOBILE DASHBOARD PAGE ========================================================================== */

body.z-mobile-on[data-mobile-page="dashboard"] .z-page {
  padding: 10px 10px 12px !important;
  overflow-y: auto;
  overflow-x: hidden;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dashboard-inner {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-content: start;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-main-block,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-upper-row,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-side-panel,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-side-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  align-content: start;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-main-block {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-msg {
  display: none;
  margin: 0;
  padding: 7px 9px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-profile-card {
  border-radius: 16px;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  direction: ltr;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: start;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-profile-text {
  order: 1;
  flex: 0 1 auto;
  min-width: 0;
  align-self: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  gap: 4px 6px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-profile-label,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-profile-sep {
  font-size: var(--fs-body);
  font-weight: 900;
}

body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary {
  border: 2px solid var(--border);
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 6px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-details {
  border: 2px solid var(--border);
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-actions-panel {
  border: 2px solid var(--border);
  border-radius: 16px;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-side-top {
  display: grid;
  gap: 4px;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary {
  padding: 2px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-profile-icon {
  order: 2;
  width: auto;
  height: 100%;
  flex: 0 0 auto;
  min-width: 72px;
  max-width: min(40%, 118px);
  max-height: none;
  aspect-ratio: auto;
  align-self: stretch;
  margin: 0;
  border-radius: 0;
  background: transparent;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-profile-name {
  font-size: var(--fs-body);
  line-height: 1.15;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary-cards {
  display: none !important;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary-table {
  width: 100%;
  margin-block: auto;
  border-collapse: collapse;
  table-layout: fixed;
  display: table;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-details-table {
  width: 100%;
  margin-block: auto;
  border-collapse: collapse;
  table-layout: fixed;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary-table th {
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  font-size: var(--fs-body);
  line-height: 1.05;
  padding: 4px 3px;
  font-weight: 900;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary-table td,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-details-table th,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-details-table td {
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  font-size: var(--fs-body);
  line-height: 1.05;
  padding: 6px 4px;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-summary-table tbody td {
  padding: 5px 4px;
  line-height: 1.15;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-details-table thead th,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-details-table tbody th {
  font-weight: 900;
}
body.z-mobile-on[data-mobile-page="dashboard"]
  .z-dash-details-table
  col.z-dash-match-col {
  width: 40%;
}
body.z-mobile-on[data-mobile-page="dashboard"]
  .z-dash-summary-table
  .z-dash-summary-table-rank {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 2px solid rgba(37, 99, 235, 0.6);
  border-radius: 10px;
  background: var(--panel-weak);
  font: inherit;
  line-height: 1.15;
  font-weight: 900;
  color: inherit;
  cursor: pointer;
}
body.z-mobile-on[data-mobile-page="dashboard"]
  .z-dash-summary-table
  .z-dash-summary-table-rank:hover,
body.z-mobile-on[data-mobile-page="dashboard"]
  .z-dash-summary-table
  .z-dash-summary-table-rank:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  outline: none;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dashboard {
  padding-bottom: 0 !important;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-actions-edit,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-actions-exit {
  display: grid;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  background: transparent;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-actions-grid .btn,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-actions-tail .btn,
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-play-btn.btn {
  width: 100%;
  min-width: 0 !important;
  min-height: 39px;
  padding: 9px 8px;
  font-size: var(--fs-body);
  line-height: 1.2;
  white-space: normal;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-play-btn {
  width: 100%;
  justify-content: center;
  min-width: 0;
}
body.z-mobile-on[data-mobile-page="dashboard"] .z-dash-play-btn .btn-ico {
  width: 14px;
  height: 14px;
}
body.z-mobile-on[data-mobile-page="dashboard"] #btnDashLogout.btn {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}
body.z-mobile-on[data-mobile-page="dashboard"] #btnDashLogout.btn:hover,
body.z-mobile-on[data-mobile-page="dashboard"]
  #btnDashLogout.btn:focus-visible {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-page {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-page-head {
  margin-top: 24px;
  margin-bottom: 4px;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-upper-row,
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-side-panel {
  display: block;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-side-top {
  grid-template-columns: minmax(112px, 40%) minmax(0, 1fr);
  gap: 4px;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-profile-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  padding: 0;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-profile-text {
  justify-content: center;
  text-align: center;
  align-self: end;
  gap: 2px 4px;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-profile-icon {
  order: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  object-fit: contain;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-summary {
  padding: 0;
  align-items: center;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-summary-table
  th,
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-summary-table
  td {
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 1;
}

body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-actions-panel {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-actions-grid {
  width: 100%;
  order: 1;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-actions-tail {
  width: 100%;
  order: 2;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-actions-edit,
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-actions-exit {
  grid-column: 1;
  width: 100%;
}
body.z-mobile-on[data-mobile-page="dashboard"][data-mobile-orientation="portrait"]
  .z-dash-play-btn {
  grid-column: 1;
  width: 100%;
  order: 3;
  display: flex;
  justify-content: center;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-page {
  padding-top: 4px !important;
  padding-bottom: 8px !important;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dashboard-inner {
  gap: 8px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-main-block {
  display: grid;
  grid-template-columns: minmax(232px, 36%) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "side details";
  gap: 8px 10px;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-page-head {
  grid-area: head;
  margin-top: 12px;
  margin-bottom: 0;
  align-self: center;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-upper-row {
  display: contents;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-side-panel {
  display: block;
  grid-area: side;
  min-width: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-side-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-profile-card {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(78px, 104px);
  grid-template-rows: minmax(52px, 1fr) auto;
  grid-template-areas:
    "text avatar"
    "summary summary";
  gap: 4px 8px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 4px 6px 2px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-summary {
  width: 100%;
  margin-top: 0;
  padding: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-profile-card
  > .z-dash-summary {
  grid-area: summary;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  width: 100%;
  margin-top: 0;
  padding: 1px 0 0;
  align-items: flex-start;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-profile-card
  > .z-dash-profile-text {
  grid-area: text;
  order: initial;
  align-self: center;
  justify-content: flex-start;
  text-align: start;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-details {
  grid-area: details;
  width: 100%;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-profile-icon {
  grid-area: avatar;
  order: initial;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  min-width: 78px;
  max-width: 104px;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  align-self: stretch;
  justify-self: center;
  margin: 0;
  object-fit: contain;
  background: transparent;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-details-table
  col.z-dash-match-col {
  width: 34%;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-summary-table
  th,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-summary-table
  td,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-details-table
  thead
  th,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-details-table
  tbody
  th,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-details-table
  tbody
  td {
  padding-top: 2px;
  padding-bottom: 2px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-actions-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  margin-bottom: 6px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-actions-grid,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-actions-tail {
  display: contents;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnDeleteAccount {
  order: 1;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnEditNick {
  order: 2;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnEditEmail {
  order: 3;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnEditPass {
  order: 4;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnEditIcon {
  order: 5;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnDashLogout {
  order: 6;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  #btnDashPlay {
  order: 7;
  grid-column: 1 / -1;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-actions-grid
  .btn,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="dashboard"]
  .z-dash-actions-tail
  .btn {
  min-height: 0;
  padding: 5.5px 4px;
  font-size: var(--fs-body);
  width: 100%;
}

/* ========================================================================== MOBILE GAME PAGE ========================================================================== */

body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--m-safe-top);
  z-index: 10050;
  padding-inline: var(--m-shell-offset);
  pointer-events: none;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell-inner {
  position: relative;
  width: 100%;
  min-height: var(--m-shell-size);
  padding-inline: 0;
  direction: ltr !important;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-shell
  .z-mobile-shell-btn {
  position: absolute;
  top: 0;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-shell
  .z-mobile-shell-btn.is-lang {
  right: 0;
  left: auto;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-shell
  .z-mobile-shell-btn.is-back {
  left: 0;
  right: auto;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-shell
  .z-mobile-shell-btn.is-back
  img {
  transform: rotate(180deg) !important;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  gap: 6px;
  direction: ltr;
  margin: 0;
  padding: 4px 8px 2px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-host {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  padding: 3px 4px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-game-drawer);
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
  overflow: visible;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-backdrop {
  display: flex;
  position: fixed;
  inset: 0;
  border: none;
  z-index: var(--z-game-drawer-backdrop) !important;
  background: rgba(2, 6, 23, 0.34);
  backdrop-filter: blur(6px);
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-shell-menu {
  position: fixed;
  top: calc(100% + 6px);
  left: var(--m-shell-offset);
  right: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  z-index: 10041;
  border: 1px solid var(--border);
  border-radius: 16px;
  pointer-events: auto;
}

body.z-mobile-on[data-mobile-page="game"] {
  overflow: hidden;
  padding-top: 0 !important;
}

body.z-mobile-on[data-mobile-page="game"] .app {
  max-width: none;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: var(--m-vh) !important;
  min-height: var(--m-vh) !important;
  padding: calc(var(--m-safe-top) + var(--m-shell-size) + 34px)
    var(--m-page-pad) calc(var(--m-safe-bottom) + 46px) !important;
  gap: 10px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .app {
  padding: calc(var(--m-safe-top) + var(--m-shell-size)) var(--m-page-pad)
    calc(var(--m-safe-bottom) + 34px) !important;
  gap: 0;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .side {
  gap: 0;
  flex: 0 0 auto;
  margin-top: -2px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-host {
  margin: 0;
  padding: 0 4px 1px;
}
body.z-mobile-on[data-mobile-page="game"] .board-wrap {
  flex: 0 0 auto;
  align-self: center;
  width: min(100%, 430px);
  max-width: min(100%, 430px);
  height: clamp(288px, calc(var(--m-vh) * 0.57), 458px);
  min-height: 0;
  margin: 0 auto;
  border-radius: 18px;
}
body.z-mobile-on[data-mobile-page="game"] .side {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  text-align: center;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-avatar-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 4px solid transparent;
  border-radius: 999px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-avatar-wrap.is-black-piece {
  background: #ffffff;
  border-color: #111827;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-avatar-wrap.is-white-piece {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.14),
    var(--shadow-sm);
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-player.is-active
  .z-mobile-game-avatar-wrap {
  border-color: #dc2626;
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.26),
    var(--shadow-sm);
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-meta {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  direction: ltr;
}
html[dir="rtl"] body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-meta {
  direction: rtl;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-name {
  width: auto;
  order: 1;
  font-size: var(--fs-body);
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  color: var(--text-strong);
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-presence {
  width: auto;
  order: 2;
  min-height: 0;
  font-size: var(--fs-body);
  line-height: 1.2;
  opacity: 0.92;
  text-align: center;
  white-space: nowrap;
  color: var(--danger);
  font-weight: 700;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-vs {
  align-self: start;
  padding-top: 2px;
  font-size: var(--fs-title);
  font-weight: 900;
  line-height: 1;
  color: var(--text-strong);
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  justify-content: stretch;
  align-content: start;
  grid-auto-flow: row;
}
body.z-mobile-on[data-mobile-page="game"][data-mobile-game-mode="spectator"]
  .z-mobile-game-controls-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.z-mobile-on[data-mobile-page="game"][data-mobile-game-mode="spectator"]
  .timer-row,
body.z-mobile-on[data-mobile-page="game"][data-mobile-game-mode="spectator"]
  .soufla-row {
  display: none !important;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-head {
  margin: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"] .z-mobile-game-drawer .stats-mobile-table th,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"] .z-mobile-game-drawer .stats-mobile-table td {
  padding: 3px 4px;
  line-height: 1.05;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-meta {
  flex-wrap: nowrap;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"] .z-mobile-game-head {
  min-height: 92px;
  padding: 8px 8px 6px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"] .z-mobile-game-avatar-wrap {
  width: 50px;
  height: 50px;
  padding: 6px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-meta {
  gap: 4px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid {
  gap: 3px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill {
  min-height: 44px;
}
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn
  .btn-ico,
body.z-mobile-on[data-mobile-orientation="portrait"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill
  .btn-ico {
  width: 28px;
  height: 28px;
  padding: 5px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-page-inner,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-inner {
  display: grid;
  grid-template-columns: minmax(0, var(--m-content-pane-w)) minmax(
      0,
      var(--m-head-pane-w)
    );
  grid-template-areas: "content head";
  gap: 12px;
  align-items: stretch;
}
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="auth"]
  .z-auth-wrap,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="mode"]
  .z-page-inner,
html[dir="rtl"]
  body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="lobby"]
  .z-lobby-inner {
  direction: ltr;
}
html.dark body.z-mobile-on[data-mobile-page="mode"] .z-mode-card,
html.dark body.z-mobile-on[data-mobile-page="lobby"] .z-lobby-panel {
  background: linear-gradient(
    180deg,
    rgba(19, 29, 50, 0.98),
    rgba(15, 23, 42, 0.98)
  );
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid .btn,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row
  .btn {
  min-width: 0;
  width: 100%;
  margin: 0;
  min-height: 50px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 !important;
  border-radius: 18px;
  transform: none !important;
  background: linear-gradient(
    135deg,
    var(--btn-start),
    var(--btn-end)
  ) !important;
  border: 1px solid var(--btn-border) !important;
  box-shadow: var(--btn-shadow) !important;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row {
  min-width: 0;
  min-height: 50px;
  width: 100%;
  margin: 0;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--btn-border) !important;
  background: linear-gradient(
    135deg,
    var(--btn-start),
    var(--btn-end)
  ) !important;
  box-shadow: var(--btn-shadow) !important;
  border-radius: 18px;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row {
  min-width: 0;
  min-height: 50px;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid > * {
  visibility: visible !important;
  opacity: 1 !important;
  justify-self: stretch;
  align-self: stretch;
}

body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn
  .btn-ico,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill
  .btn-ico {
  width: 32px;
  height: 32px;
  display: block;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff !important;
  background-image: none !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  .clock {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: clamp(18px, 2.7vw, 24px);
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--danger);
  -webkit-text-stroke: 0.03em currentColor;
  paint-order: stroke fill;
  pointer-events: none;
  isolation: isolate;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  .clock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 4px solid #dc2626;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
  z-index: -1;
}

body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  #btnEndKill,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  #btnEndKill.btn,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  #btnEndKill.btn.ok {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-live
  #btnEndKill
  .btn-ico {
  opacity: 1;
  background: #ffffff;
  border: none;
  box-shadow: var(--shadow-sm);
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn:disabled {
  opacity: 0.42;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-disabled,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-live {
  background: linear-gradient(
    135deg,
    var(--btn-start),
    var(--btn-end)
  ) !important;
  border: 1px solid var(--btn-border) !important;
  box-shadow: var(--btn-shadow) !important;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-disabled
  #btnEndKill {
  opacity: 1;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer-backdrop[hidden],
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer-backdrop {
  display: none !important;
  pointer-events: none !important;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer.is-dragging {
  transition: none;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-handle {
  position: relative;
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-width: 1px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-handle::before,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-handle::after {
  content: none;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-chevron {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  text-align: center;
  font-size: var(--fs-title);
  font-weight: 900;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-body {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% - 2px);
  display: block;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scaleY(0.985);
  transform-origin: bottom center;
  overflow: hidden;
  border: 2px solid var(--border);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  transition:
    max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-width: 1px;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer.is-open
  .z-mobile-game-drawer-body {
  max-height: calc(
    var(--m-vh) - var(--m-safe-top) - var(--m-shell-size) - 84px
  );
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer:not(.is-open)
  .z-mobile-game-drawer-content,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer:not(.is-open)
  .z-mobile-game-drawer-content {
  pointer-events: none;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px);
  overflow: hidden;
  height: calc(var(--m-vh) - var(--m-safe-top) - var(--m-shell-size) - 84px);
  max-height: calc(
    var(--m-vh) - var(--m-safe-top) - var(--m-shell-size) - 84px
  );
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .opponent-box {
  width: 100%;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  text-align: center;
  min-height: 84px;
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-width: 1px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .stats-mobile {
  width: 100%;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 16px;
  display: block !important;
  padding: 6px;
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-width: 1px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .log {
  width: 100%;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 16px;
  height: 112px;
  min-height: 112px;
  padding: 6px;
  overflow-y: auto;
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-width: 1px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-anchor: none;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-log-panel {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-log-title {
  font-size: var(--m-text-sm);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-strong);
  text-align: start;
  padding-inline: 2px;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-drawer .log .log-item {
  padding: 4px 6px;
  line-height: 1.3;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .opponent-prefix {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .opponent-value {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  font-weight: 800;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table
  th,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table
  td {
  padding: 6px 5px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table
  th:first-child,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table
  td:first-child {
  width: 42%;
  text-align: start;
  font-weight: 800;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .app {
  position: relative;
  display: block !important;
  height: var(--m-vh) !important;
  min-height: var(--m-vh) !important;
  padding: 8px !important;
  overflow: hidden;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .board-wrap {
  width: calc(100vw - 16px - var(--m-game-side-w) - 12px);
  max-width: calc(100vw - 16px - var(--m-game-side-w) - 12px);
  height: 100%;
  max-height: calc(var(--m-vh) - 16px);
  min-height: 0;
  margin: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-side-lane {
  position: fixed;
  right: 8px;
  left: auto;
  top: var(--m-safe-top);
  bottom: var(--m-safe-bottom);
  width: var(--m-game-side-w);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10030;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .side {
  position: relative;
  right: auto;
  left: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  flex: 1 1 auto;
  margin: 0;
  padding: 6px 6px 4px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  overflow: hidden;
  z-index: auto;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  inset-inline: auto;
  width: 100%;
  padding-inline: 0;
  z-index: auto;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell-inner {
  width: 100%;
  direction: ltr !important;
  justify-content: space-between;
  padding-inline: 0;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell-menu {
  left: 8px;
  right: auto;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-orient {
  right: 10px;
  left: auto;
  bottom: 10px;
  z-index: 10061;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-head {
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
  padding: 4px 6px 3px;
  gap: 6px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-avatar-wrap {
  width: 44px;
  height: 44px;
  padding: 5px;
}

body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-host {
  width: 100%;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  padding: 5px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid {
  gap: 6px 5px;
  align-content: start;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill {
  min-height: 44px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn
  .btn-ico,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill
  .btn-ico {
  width: 28px;
  height: 28px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  z-index: auto;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none !important;
  overflow: visible;
}

body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer-handle {
  position: relative;
  min-height: 30px;
  border: 2px solid var(--border);
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 2px);
  display: block;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scaleY(0.985);
  transform-origin: bottom center;
  overflow: hidden;
  border: 2px solid var(--border);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.18);
  transition:
    max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer.is-open
  .z-mobile-game-drawer-body {
  max-height: calc(
    var(--m-vh) - var(--m-safe-top) - var(--m-shell-size) - 18px
  );
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}

body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer
  .z-mobile-game-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px calc(env(safe-area-inset-bottom) + 6px);
  height: calc(var(--m-vh) - var(--m-safe-top) - var(--m-shell-size) - 18px);
  max-height: calc(
    var(--m-vh) - var(--m-safe-top) - var(--m-shell-size) - 18px
  );
  overflow: hidden;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer
  .opponent-box {
  background: var(--panel);
  min-height: 0;
  gap: 2px;
  padding: 8px 6px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile {
  background: var(--panel);
  padding: 4px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer
  .log {
  background: var(--panel);
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 6px;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table
  th,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-drawer
  .stats-mobile-table
  td {
  padding: 4px 4px;
  line-height: 1.15;
}

body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn:hover:not(:disabled),
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row
  .btn:hover:not(:disabled),
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill:hover:not(:disabled) {
  border-color: var(--accent) !important;
}
html.dark
  body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row
  .clock {
  color: #fecaca;
}

body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn:hover:not(:disabled),
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row
  .btn:hover:not(:disabled),
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill:hover:not(:disabled) {
  border-color: transparent !important;
}
html.dark
  body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .btn
  .btn-ico,
html.dark
  body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .soufla-row
  .btn
  .btn-ico,
html.dark
  body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill
  .btn-ico {
  background: #ffffff;
  border: none;
}

body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-live
  #btnEndKill {
  opacity: 1;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  .timer-row.is-live
  #btnEndKill
  .btn-ico {
  opacity: 0.24;
}
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnSync
  .btn-ico,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnSoufla
  .btn-ico,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnEndKill
  .btn-ico {
  background: #ffffff !important;
  background-image: none !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnSync,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnSoufla,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnUndo,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnSettings,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnSave,
body.z-mobile-on[data-mobile-page="game"]
  .z-mobile-game-controls-grid
  #btnResume,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnNew,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnChat,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnMic,
body.z-mobile-on[data-mobile-page="game"] .z-mobile-game-controls-grid #btnSpk {
  background: linear-gradient(
    135deg,
    var(--btn-start),
    var(--btn-end)
  ) !important;
  border: 1px solid var(--btn-border) !important;
  box-shadow: var(--btn-shadow) !important;
}

body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell,
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell-inner {
  direction: ltr !important;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell
  .z-mobile-shell-btn.is-lang {
  left: auto !important;
  right: 0 !important;
}
body.z-mobile-on[data-mobile-orientation="landscape"][data-mobile-page="game"]
  .z-mobile-game-shell
  .z-mobile-shell-btn.is-back {
  left: 0 !important;
  right: auto !important;
}



body.z-spectator .timer-row,
body.z-spectator .soufla-row {
  display: none !important;
}


body:not(.z-mobile-on) {
  --z-desktop-footer-strip-h: 64px;
}

body.z-info-page:not(.z-mobile-on) .z-footer-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15,23,42,0.08);
  backdrop-filter: blur(16px);
  z-index: 30;
}
html.dark body.z-info-page:not(.z-mobile-on) .z-footer-wrap {
  background: rgba(15,23,42,0.92);
}
body.z-info-page:not(.z-mobile-on) .z-info-sidebar {
  z-index: 40;
}
body.z-info-page:not(.z-mobile-on) .z-footer {
  width: min(var(--z-page-max), calc(100% - 24px));
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.z-info-page:not(.z-mobile-on) .z-page.with-info-sidebar {
  padding-bottom: var(--z-desktop-footer-strip-h);
}
body:not(.z-mobile-on).z-info-page main.z-mode-page.z-vcenter > .z-page-inner,
body:not(.z-mobile-on).z-info-page main.z-lobby-page.z-vcenter > .z-page-inner {
  margin-block: 0;
}
body:not(.z-mobile-on) .z-mode-page,
body:not(.z-mobile-on) .z-lobby-page {
  padding-bottom: var(--z-desktop-footer-strip-h);
  box-sizing: border-box;
}
body:not(.z-mobile-on) .z-mode-page > .z-page-inner {
  min-height: calc(100dvh - var(--z-topbar-h) - var(--z-desktop-footer-strip-h) - 24px);
  height: auto;
  justify-content: flex-start;
  flex: 1 1 auto;
}
body:not(.z-mobile-on) .z-mode-grid {
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
}
body:not(.z-mobile-on) .z-mode-card {
  min-height: 0;
  max-height: none;
  height: 100%;
}
body:not(.z-mobile-on) .z-mode-back-row {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  flex: 0 0 auto;
}
body:not(.z-mobile-on) .z-lobby-page > .z-page-inner,
body:not(.z-mobile-on) .z-lobby-page .z-lobby-inner {
  min-height: calc(100dvh - var(--z-topbar-h) - var(--z-desktop-footer-strip-h) - 24px);
  height: auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
body:not(.z-mobile-on) .z-lobby-head {
  flex: 0 0 auto;
  display: grid;
}
body:not(.z-mobile-on) .z-lobby-cols {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  align-items: stretch;
}
body:not(.z-mobile-on) .z-lobby-bottom {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  flex: 0 0 auto;
}
