/* The phone (html[data-mobile] only): the home. Owner 2026-11-17: "these uis are clearly not tested ... refine every single one of them". Loaded after phone.css (NOTES 680). */

/* ===================================================== 0. THE ICONS THAT VANISHED =====================================================
   Owner 2026-11-17 on his phone: "the icons load for some and then they just disappear". ua-fx.css:270 hides the Stats bars and the Leaderboard
   crown (opacity 0 !important) whenever the lobby is down (#screen-lobby.is-down: the socket is lost, as iOS does on every lock or trip to
   another app, until it reconnects) or needs a name; the computer gets them back (ua-brawl.css:317), the phone never did. The tile still dims
   as a whole (ui.css: opacity .68) while the lobby is down; the icon dims with it and never goes. */
html[data-mobile] #screen-lobby:is(.needs-name,.is-down) #lobby-home .tiles :is(.fx-skip,.fx-crown,.fx-bars){opacity:1!important}

/* ===================================================== 1. THE GUEST GATE'S WASH ===================================================== */
/* ua-brawl.css's wash is --cp-scrim (72% white): on a phone it nearly erased a guest's Friends, Locker and Shop plates (where sign-in exists:
   the live site, not a local copy). A lighter wash (50%) keeps each icon and its name readable, still "kind of whited out" (NOTES 673): the face,
   the slant, the ink outline and the drop are untouched. It fades in, as it lands a beat after the plate (after the sign-in check). */
html[data-mobile] #screen-lobby #lobby-home .is-gated .g-wash{background:rgba(242,251,255,.5);animation:ph-wash-in 220ms ease-out}
@keyframes ph-wash-in{from{opacity:0}}
@media (prefers-reduced-motion:reduce){
  html[data-mobile] #screen-lobby #lobby-home .is-gated .g-wash{animation:none}
}
/* The Friends tile's wash must be the tile's own face (ui.css .tile::before: inset 0 with the --cp-ol ink border, the one slant, --ua-r corners),
   never ua-brawl's upright inset:0 rectangle, which cut across the slanted ink outline (its left edge looked washed out). Inset by the border's
   width and leaned the same way, the wash sits inside the face and the outline and the drop stay fully ink. */
html[data-mobile] #screen-lobby #lobby-home #btn-friends.is-gated .g-wash{inset:var(--cp-ol);border-radius:calc(var(--ua-r) - .19rem);transform:skewX(var(--ua-skew))}

/* ===================================================== 2. THE FOOTER'S BADGE, ON ITS SIDE ===================================================== */
/* At 844x390 the Product Hunt badge hung above the footer's right end (ui.css: .menu-glass .menu-foot .ph-badge, bottom:calc(100% + var(--s-3)))
   and lay across the Shop tile's bottom-right corner (the badge y 323-347, the tile ends at ~345). On its side the badge rides in the footer's one
   legal line instead: static, small, after the sentence, so it covers nothing and the bar stays one line ~3.6rem tall. A portrait phone keeps
   ui.css's two-row footer (the badge under the legal line, centred), and a narrower landscape keeps its grid there too. */
@media (orientation:landscape) and (min-width:701px){
  html[data-mobile] #screen-lobby .menu-foot{height:3.6rem;min-height:0;padding-block:0;column-gap:.8rem}
  html[data-mobile] #screen-lobby .menu-foot .ph-badge{position:static;inset:auto;flex:none;margin:0;align-self:center;vertical-align:middle}
  html[data-mobile] #screen-lobby .menu-foot .ph-badge img{height:1.8rem;border-radius:.4rem}
}

/* ===================================================== 3. ONE 16 PX SIDE GUTTER ===================================================== */
/* The card and the grid were inset differently (the card's .6rem sat on the body's 1.5rem; ui.css insets the grid by 1.5rem left and 2rem right,
   the drop's overhang): their slanted faces began ~8 px and ~26 px in. One rule instead: every face begins ~16 px from the window. The -6deg
   slant adds ~13 px to the card's box at its height and ~4.5 px to a tile's, so the card's box takes 1.5rem of side margin and the grid's box
   sits .6rem inside the body's 1.5rem inset (the window less 4.2rem, centred), with a .7rem gap between its two columns. The card's drop and
   the tiles' drop then reach into the gutters, never past the window. */
html[data-mobile] #screen-lobby #lobby-home .m-pad{margin-inline:1.5rem}
@media (orientation:portrait){
  html[data-mobile] #screen-lobby #lobby-home .tiles{width:calc(100% - 1.2rem);padding-inline:0;column-gap:.7rem}
}
/* On its side ui.css lays the home out as two columns (ui.css's min-aspect-ratio:1/1): the card left, the grid right. The body's own 3rem padding
   already leaves the card's box at ~30 px (its face at ~16), so the card takes no left margin (a little on its right, clear of the grid's faces),
   and the grid runs to the window's right face edge: its box ends .95rem past the body's padding (the tiles' own slant adds the rest), so the
   right-hand faces sit ~16 px in like the card's. The card's .75rem top is the grid's row gap: both start at the same y. */
@media (orientation:landscape){
  html[data-mobile] #screen-lobby #lobby-home .m-pad{margin:.75rem .5rem 1rem 0}
  html[data-mobile] #screen-lobby #lobby-home .tiles{width:auto;justify-self:stretch;padding-inline:0;margin-inline:0 -.95rem}
}

/* ===================================================== 4. THE WATCH TILE'S COUNT ===================================================== */
/* "24-11" (#profile-n) and "#212" (#lb-n) are white plates: the ink outline and small drop, Days One digits in ink. The Watch tile's count was
   the cyan tile's own label treatment instead (ua-phone.css gives every b in #btn-courts the --cp-deep text stroke, so on its white chip the digit
   read as a hollow outline) in a taller, tighter card. Draw it from the sibling chips' own numbers: the same face, outline and drop (the shared
   .tile-sub::before), the same .7rem top and .9rem right, the is-fig chips' own digit (17.5 px, line-height 1, measured) in the siblings' label ink, and
   no text stroke. The word " open" after the figure stays hidden: the chip's own font-size is 0 (as ui.css draws it), so its .12em/.36em/.08em/
   .3em padding is written out at that 1.8rem. The tile's cyan face, glow and label are not touched. */
html[data-mobile] #screen-lobby #lobby-home #btn-courts #courts-n{--by:.7rem;--bx:.9rem;font-size:0;line-height:1.75rem;padding:.216rem .648rem .144rem .54rem}
html[data-mobile] #screen-lobby #lobby-home #btn-courts #courts-n b{font-size:1.75rem;line-height:1;margin:0;color:var(--cp-text);paint-order:normal}

/* ===================================================== 5. "2 online", READABLE ===================================================== */
/* #friends-line-text came from .tile-line at --t-sm (9.4 px on a phone's 10 px rem), and the .nx unit after the figure at .85em of that: under
   13 px, the smallest words on the home. It is a body line, never under 13 px (and the unit after the figure with it). */
html[data-mobile] #screen-lobby #lobby-home #btn-friends #friends-line-text{font-size:max(1.3rem,13px);line-height:1.2}
html[data-mobile] #screen-lobby #lobby-home #btn-friends #friends-line-text small{font-size:inherit}

/* ===================================================== 6. A GUEST'S FRIENDS TILE ===================================================== */
/* "Sign in to add friends" repeats the gate's own tooltip (NOTES 673) and ran past the tile's edge at 360 wide: the gated tile shows its name only, at the label's usual place */
html[data-mobile] #screen-lobby #lobby-home #btn-friends.is-gated #friends-line{display:none}
