/* Oct 29: iPhone safe areas. Every page uses viewport-fit=cover, so the page runs edge to edge and
   iOS reports the Dynamic Island, rounded corners and home indicator as env(safe-area-inset-*).
   Keep content and fixed bars inside those insets in both landscape directions. Loaded last. */
:root{--sa-t:env(safe-area-inset-top,0px);--sa-r:env(safe-area-inset-right,0px);--sa-b:env(safe-area-inset-bottom,0px);--sa-l:env(safe-area-inset-left,0px)}
/* In-flow content (banners, tabs, More pages menu, panels, sticky rows): pad the root, the page background still runs full bleed. */
html{padding-top:var(--sa-t);padding-left:var(--sa-l);padding-right:var(--sa-r)}
/* Sticky headers stop below the status bar / island (home-screen app in portrait). */
html .home-tabs,html .open-access,html .sbx .sbx-stage{top:var(--sa-t)}
body{max-width:100%}
/* Full-width fixed bars: keep their background edge to edge, move their contents in. */
html .honor-dock{padding-left:max(10px,var(--sa-l));padding-right:max(10px,var(--sa-r))}
/* With the corner arrows, the dock already leaves 48px a side; add the inset so it clears both. */
html.pp-has-nav:root .honor-dock{left:calc(48px + var(--sa-l))!important;right:calc(48px + var(--sa-r))!important}
html .lb-dock{padding-left:max(8px,var(--sa-l));padding-right:max(8px,var(--sa-r))}
html .sbx-dock{padding-left:max(12px,var(--sa-l));padding-right:max(12px,var(--sa-r))}
html .ms-panel{padding-left:max(14px,var(--sa-l));padding-right:max(14px,var(--sa-r))}
html .master-board{padding:max(16px,var(--sa-t)) max(16px,var(--sa-r)) max(32px,var(--sa-b)) max(16px,var(--sa-l))}
html #pdAge{padding:max(20px,var(--sa-t)) max(20px,var(--sa-r)) max(20px,var(--sa-b)) max(20px,var(--sa-l))}
html .honor{padding:var(--sa-t) var(--sa-r) var(--sa-b) var(--sa-l);box-sizing:border-box}
/* Full-screen table: shrink the fixed box so seats, rails and bars all sit inside the safe area. */
html #table{left:var(--sa-l);right:var(--sa-r)}
html #table.focus-on .focus-mode.is-big.is-land{left:calc(72px + var(--sa-l));right:var(--sa-r)}
/* Corner-anchored fixed items. */
html .acct-menu,html .acct-menu .acct-pop{right:max(8px,var(--sa-r))}
html .crew-panel{left:max(8px,var(--sa-l))}
html #botDrawer.bot-drawer{left:max(12px,var(--sa-l));max-width:calc(100vw - 24px - var(--sa-l) - var(--sa-r))}
/* Short landscape phones: the yellow "Name a poker game" footer stays, but slimmer. */
@media (orientation:landscape) and (max-height:500px){
  html .honor-dock{gap:8px;padding-top:4px;padding-bottom:calc(4px + var(--sa-b))}
  html .honor-dock p,html.pp-has-nav:root .honor-dock p{font-size:13px!important;line-height:1.2!important}
  html .honor-dock .mini{width:28px;height:28px}
  html .honor-dock .honor-learn,html.pp-has-nav:root .honor-dock .honor-learn{min-height:36px;padding:6px 12px!important;font-size:14px!important}
  html .honor-dock .honor-min{width:36px;height:36px;min-width:36px;min-height:36px;font-size:22px}
  html.has-honor-pad body{padding-bottom:calc(52px + var(--sa-b))}
}
