/* A floating tag; no full-width row is reserved while navigation is collapsed. */
.mobile-menu-toggle { display:none; }
html[data-layout="mobile"][data-mobile-menu-open] body {
  --mobile-menu-row-space:0px;
  --mobile-nav-space:calc(var(--mobile-menu-row-space) + env(safe-area-inset-bottom));
}
html[data-layout="mobile"][data-mobile-menu-reserved="true"] body { --mobile-menu-row-space:64px; }
html[data-layout="mobile"][data-mobile-menu-open] .mobile-footer {
  height:calc(64px + env(safe-area-inset-bottom));
  transform:translate(-50%,100%);
  visibility:hidden;pointer-events:none;
  transition:transform 200ms cubic-bezier(.16,1,.3,1),visibility 0s 200ms;
}
html[data-layout="mobile"][data-mobile-menu-open="true"] .mobile-footer {
  transform:translate(-50%,0);visibility:visible;pointer-events:auto;
  transition-delay:0s;
}
html[data-layout="mobile"][data-mobile-menu-open] .mobile-menu-toggle {
  position:fixed;left:50%;bottom:calc(6px + env(safe-area-inset-bottom));z-index:10030;isolation:isolate;
  display:flex;align-items:center;justify-content:center;gap:5px;
  width:80px;height:32px;padding:6px 8px;
  border:0;border-radius:8px;background:transparent;color:#ffe6a5;
  font:800 9px/1.1 Montserrat,Arial,sans-serif;letter-spacing:.04em;
  transform:translate(-50%,0);transition:transform 200ms cubic-bezier(.16,1,.3,1),background-color 120ms;
  cursor:pointer;touch-action:manipulation;
}
html[data-layout="mobile"] .mobile-menu-toggle::before {
  content:'';position:absolute;inset:6px 8px;z-index:-1;
  border:1px solid #b79756;border-radius:6px;background:#172737f5;
}
html[data-layout="mobile"][data-mobile-menu-open="true"] .mobile-menu-toggle { transform:translate(-50%,-64px); }
html[data-layout="mobile"] .mobile-menu-toggle svg { width:10px;height:8px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
html[data-layout="mobile"] .mobile-menu-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
html[data-layout="mobile"] .mobile-menu-toggle:active::before { background:#35465a; }
html[data-layout="mobile"] .mobile-menu-toggle:focus-visible { outline:2px solid #ffe6a5;outline-offset:-4px; }
/* Protect panel controls locally; the home page can still use the whole bottom. */
html[data-layout="mobile"][data-mobile-menu-open] #content-overlay .content-sheet { padding-bottom:24px; }
html[data-layout="mobile"][data-mobile-menu-open] #content-overlay[data-active-panel="betting-menu"] {
  --betting-menu-available-height:calc(100dvh - var(--content-sheet-top,25vh) - var(--mobile-nav-space) - var(--session-notice-height,0px) - 26px);
}
html[data-layout="mobile"][data-mobile-menu-open] #recent-results { padding-bottom:36px!important;scroll-padding-bottom:36px; }
@media(prefers-reduced-motion:reduce) {
  html[data-layout="mobile"][data-mobile-menu-open] :is(.mobile-footer,.mobile-menu-toggle) { transition:none; }
}
@media(orientation:landscape) { html[data-layout="mobile"] .mobile-menu-toggle { display:none; } }
