/* ==========================================================================================================
   The phone (html[data-mobile] only): stats. Owner 2026-11-17: "these uis are clearly not tested ... refine every single one of them". Loaded after phone.css (NOTES 680).
   Your stats (#lobby-profile) and Ranks (#lobby-ranks) at 360-430 wide: the head in two rows, the hero in three columns (crest | rank | streak), readable sizes
   everywhere (body text never under 1.3rem, a figure 1.8rem and up), ONE 1.6rem side gutter and ONE 1rem gap between the sections, and a tray that reaches the
   screen's foot instead of ending mid-sky. Every rule is scoped html[data-mobile] #screen-lobby #lobby-profile/... (two ids and a class) so it outranks ui.css,
   ua-views.css and phone.css; !important only where a base rule already uses it (.st and .ranks-view set their padding and gap that way). 1rem = 10px on a phone.
   ========================================================================================================== */

/* ======================================================= 1. THE PANEL: the screen's height, one gutter, one gap ======================================================= */
/* The tray is the page: it runs down to the phone's foot (the old card stopped at ~690 of 844 with empty sky under it), its sections all start and end on one
   16px gutter, and the space between them is the same 10px everywhere (ui.css had 5px between the sections and 10px at their sides). */
html[data-mobile] #screen-lobby #lobby-profile{
  align-items:stretch;                                    /* every section runs the panel's full width, the head's two rows too */
  min-height:calc(100dvh - 9.6rem);                       /* the header (6.4rem) + the body's 1rem + 1.6rem of air: the white tray reaches the foot */
  gap:1rem!important;                                     /* ONE gap, section to section (base: --s-2, 5px, !important) */
  padding:1.2rem 1.6rem 2.4rem!important;                 /* ONE 16px side gutter at 360 and at 390 (base: 15px / 10px, !important) */
}
html[data-mobile] #screen-lobby #lobby-profile .pf-msg{font-size:1.3rem}      /* the save line under the head is body text */

/* ======================================================= 2. YOUR STATS: the head, two rows ======================================================= */
/* Row 1: the name (2.6rem) and its pencil. Row 2: the account's buttons, the full width: Sign out (which takes the rest) and Share (a 44px square).
   A guest's Sign in with Google is a row of its own, full width. The lines under the name stay readable. */
html[data-mobile] #screen-lobby #lobby-profile .pf-head{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:.8rem;width:100%}
html[data-mobile] #screen-lobby #lobby-profile .pf-who{width:100%;min-width:0;gap:.3rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-name-row{display:flex;align-items:center;gap:.8rem;min-width:0;font-size:2.6rem;line-height:1.15}
html[data-mobile] #screen-lobby #lobby-profile .pf-name-row b{flex:0 1 auto;min-width:0;font-size:2.6rem;line-height:1.15}
html[data-mobile] #screen-lobby #lobby-profile .pf-edit{flex:none;width:4.4rem;height:4.4rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-edit svg{width:2rem;height:2rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-who small{font-size:1.3rem;line-height:1.4}      /* "Stats saved on this device", the until-date chip, the privacy note */
/* the account row: Sign out stretches, Share is one finger square at the far right */
html[data-mobile] #screen-lobby #lobby-profile .pf-acct{display:flex;flex-wrap:wrap;align-items:stretch;gap:.8rem;width:100%}
html[data-mobile] #screen-lobby #lobby-profile .pf-acct > .btn{height:4.4rem;min-height:4.4rem;padding:0 1.4rem;font-size:1.5rem;gap:.6rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-signout{flex:1 1 auto;min-width:0}
html[data-mobile] #screen-lobby #lobby-profile .pf-signout svg{width:1.9rem;height:1.9rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-share{flex:0 0 4.4rem;width:4.4rem;min-width:4.4rem;margin-left:auto;padding:0;align-self:center}
html[data-mobile] #screen-lobby #lobby-profile .pf-share-ic{width:2.8rem;height:2.8rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-share-ic svg{width:1.6rem;height:1.6rem}
/* the guest's Sign in with Google: its own row, full width, its two lines still two lines (the > so it out-ranks the row's 4.4rem height above) */
html[data-mobile] #screen-lobby #lobby-profile .pf-acct > .pf-signin{flex:1 1 100%;height:auto;min-height:4.4rem;padding:.6rem 1.2rem;gap:.9rem;justify-content:flex-start;text-align:left}
html[data-mobile] #screen-lobby #lobby-profile .pf-acct > .pf-signin .g-logo{width:2.4rem;height:2.4rem}
html[data-mobile] #screen-lobby #lobby-profile .pf-acct > .pf-signin b{font-size:1.5rem;line-height:1.2}
html[data-mobile] #screen-lobby #lobby-profile .pf-acct > .pf-signin small{font-size:1.3rem;line-height:1.2}

/* ======================================================= 3. YOUR STATS: the hero ======================================================= */
/* Three columns, one row: the crest on the left (6.4rem), the rank in the middle, the streak plate on the right in its own column, so nothing is drawn over
   anything (the (i) used to sit under the streak, and "Platinum II" broke in two). The road of medals keeps its own row under all three. */
html[data-mobile] #screen-lobby #lobby-profile .st-hero{
  grid-template-columns:6.4rem minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:1rem;
  row-gap:.8rem;
  width:100%;
  padding:1rem 1rem 1.2rem;
}
html[data-mobile] #screen-lobby #lobby-profile .st-crest{grid-column:1;grid-row:1;justify-self:start;align-self:center;width:6.4rem;height:6.4rem}
html[data-mobile] #screen-lobby #lobby-profile .st-crest .st-disc{width:5.6rem;height:5.6rem}
html[data-mobile] #screen-lobby #lobby-profile .st-crest .st-em{--em-h:4.7rem;--div-fs:1.2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-crest .st-em .rank-em{width:5rem;height:5rem}
html[data-mobile] #screen-lobby #lobby-profile .st-rank{grid-column:2;grid-row:1;align-self:center;min-width:0;gap:.3rem}
/* the name's line: the name keeps its one line while it fits, then the place pill and the (i) wrap under it rather than squeeze it */
html[data-mobile] #screen-lobby #lobby-profile .st-rank-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:.8rem;row-gap:.2rem;min-width:0}
html[data-mobile] #screen-lobby #lobby-profile .st-rank-name{flex:0 1 auto;min-width:0;font-size:2.4rem;line-height:1.05;white-space:nowrap}
html[data-mobile] #screen-lobby #lobby-profile .st-place{flex:none;height:3.2rem;padding:0 1rem 0 .7rem;font-size:1.4rem}
html[data-mobile] #screen-lobby #lobby-profile .st-place svg{width:1.6rem;height:1.6rem}
html[data-mobile] #screen-lobby #lobby-profile .st-info{flex:none;width:4.4rem;height:4.4rem;margin:-1.1rem 0}      /* the finger's box; no negative side margin, so its 44px never reach the streak's column */
html[data-mobile] #screen-lobby #lobby-profile .st-info svg{width:2rem;height:2rem}
/* the trophies line: the count on its chip, the cup, then the step to the next rank or the keep line; it wraps rather than run into the streak */
html[data-mobile] #screen-lobby #lobby-profile .st-rank-cap{flex-wrap:wrap;white-space:normal;row-gap:.25rem;column-gap:.45rem;font-size:1.4rem;line-height:1.25}
html[data-mobile] #screen-lobby #lobby-profile .st-rank-cap .st-tro > b{font-size:1.9rem}
html[data-mobile] #screen-lobby #lobby-profile .st-rank-cap .cup-ic{width:1.7rem;height:1.7rem}
html[data-mobile] #screen-lobby #lobby-profile .st-next{font-size:1.3rem}
html[data-mobile] #screen-lobby #lobby-profile #st-crest.is-top ~ .st-rank #st-next{display:none}      /* Pro: "Top rank" says nothing the name has not */
/* the bar across the rank column (base capped it at 20rem); Pro has no next division, so its full strip means nothing and goes */
html[data-mobile] #screen-lobby #lobby-profile .st-rank-bar{width:100%;max-width:none;height:1rem;margin-top:.4rem}
html[data-mobile] #screen-lobby #lobby-profile #st-crest.is-top ~ .st-rank .st-rank-bar{display:none}
html[data-mobile] #screen-lobby #lobby-profile .st-best{font-size:1.3rem;line-height:1.3}
/* the streak plate: its own column at the right; at 0 it is not drawn (the same zero is said in the Online multiplayer chips) and the rank takes its room */
html[data-mobile] #screen-lobby #lobby-profile .st-streak{grid-column:3;grid-row:1;justify-self:end;align-self:center;min-width:0}
html[data-mobile] #screen-lobby #lobby-profile .st-streak[aria-label="Win streak: 0"]{display:none}
html[data-mobile] #screen-lobby #lobby-profile .st-ribbon{height:3.4rem;padding:0 1rem;gap:.4rem;font-size:1.3rem}
html[data-mobile] #screen-lobby #lobby-profile .st-ribbon .st-flame{width:1.8rem;height:1.8rem}
html[data-mobile] #screen-lobby #lobby-profile .st-ribbon b{font-size:1.9rem}
html[data-mobile] #screen-lobby #lobby-profile .st-road{grid-column:1 / -1;grid-row:2;justify-self:center;flex-wrap:wrap;gap:.4rem}

/* ======================================================= 4. YOUR STATS: the Matt card ======================================================= */
/* The four levels are the card's second row: four equal cells, tall enough to read, their label 1.3rem and their record 1.7rem. is-won, is-top and is-flawless
   keep their own colours (ui.css): a won level keeps its tick, the badge's level its ring, a flawless one its gold. */
html[data-mobile] #screen-lobby #lobby-profile .st-matt{grid-template-columns:auto minmax(0,1fr);column-gap:1rem;row-gap:1rem;padding:1rem 1.2rem 1.2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mbadge{width:4.4rem;height:4.4rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mtext{gap:.2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mtext .caps{font-size:1.3rem;line-height:1.25}
html[data-mobile] #screen-lobby #lobby-profile .st-mbest{font-size:1.9rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mtext small{font-size:1.3rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mlevels{grid-column:1 / -1;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv{min-width:0;min-height:5.2rem;padding:.6rem .3rem;gap:.2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv b{font-size:1.3rem;line-height:1.2}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv small{font-size:1.7rem;line-height:1.15}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv small i{font-size:1.3rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv .st-flame{width:1.3rem;height:1.3rem}

/* ======================================================= 5. YOUR STATS: Online multiplayer ======================================================= */
/* With nothing played the tug-of-war bar was an empty pale strip: it goes, and only the record is left. The chips are read, not pressed, so they only grow
   to legible type. */
html[data-mobile] #screen-lobby #lobby-profile #pf-human{padding:.8rem 1.2rem 1rem;row-gap:.6rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .caps{font-size:1.3rem;line-height:1.25}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-wl b{font-size:2.4rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-bar{height:1.2rem;margin-bottom:1.6rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-bar.is-empty{display:none}      /* no match yet: no meaningless empty track */
html[data-mobile] #screen-lobby #lobby-profile #pf-human :is(.st-bar-l,.st-bar-r){font-size:1.3rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-chips{gap:.6rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-chip{height:2.6rem;padding:0 1rem;font-size:1.3rem;gap:.4rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-chip .st-flame{width:1.4rem;height:1.4rem}

/* ======================================================= 6. YOUR STATS: the play row ======================================================= */
/* The hairline at the return rate's right end is ua-views' box-shadow (it replaced the border), not a border: it goes, and the divider is the one under
   the rate, over the figures. The six figures: their number 1.8rem, their label 1.3rem, three across in two rows. */
html[data-mobile] #screen-lobby #lobby-profile #pf-play{padding:1rem 1.2rem 1.2rem;row-gap:1rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-ring{width:4.4rem;height:4.4rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-ret-text .caps{font-size:1.3rem;line-height:1.25}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-ret-n > b{font-size:2.2rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-ret-n small{font-size:1.3rem;line-height:1.3}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-figs{grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-fig{padding:.7rem .3rem;gap:.35rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-fig dd{font-size:1.8rem;padding:.22rem .6rem .16rem .55rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-fig dt{font-size:1.3rem;letter-spacing:0}
@media (max-width:760px){      /* the stacked row (the base's own breakpoint): the rate over the figures, one divider, the bottom one */
  html[data-mobile] #screen-lobby #lobby-profile #pf-play .st-ret{border-right:0;box-shadow:none;padding:0 0 .8rem;border-bottom:.125rem solid var(--sky-2)}
}

/* ======================================================= 7. YOUR STATS: the three bests ======================================================= */
/* Every row the same shape and the same height: the badge (4rem, its icon 2.2rem), the label with the date under it, vertically centred, and the value at
   the right, vertically centred too. One column on a phone; three across on its side (section 8). */
html[data-mobile] #screen-lobby #lobby-profile .st-tiles{grid-template-columns:minmax(0,1fr);gap:.8rem;width:100%}
html[data-mobile] #screen-lobby #lobby-profile .st-tile{
  display:grid;
  grid-template-columns:4rem minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  grid-template-areas:"b l n" ". c n";
  align-content:center;
  align-items:center;
  column-gap:1rem;
  row-gap:.2rem;
  min-height:6.4rem;
  padding:.8rem 1.2rem;
}
html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-badge{position:static;grid-area:b;align-self:center;width:4rem;height:4rem}
html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-badge svg{width:2.2rem;height:2.2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-tile .caps{grid-area:l;align-self:end;font-size:1.6rem;line-height:1.15}
html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-cap{grid-area:c;align-self:start;justify-self:start;font-size:1.3rem;line-height:1.2;padding-top:.1rem}      /* the day the best was set: under its label, never its own taller row */
html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-num{grid-area:n;align-self:center;justify-self:end;margin:0;gap:.4rem}
html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-num b{font-size:2.6rem}
html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-num small{font-size:1.3rem;margin-left:.2rem}

/* ======================================================= 8. A PHONE ON ITS SIDE (844x390): the hero stays one row, the bests go three across ======================================================= */
/* The same rows, one step down: a third of the width cannot hold a 4rem badge and 1.6rem label, so the badge, the label and the value shrink a little and
   the label takes two lines when it must. The row's shape (badge | label + date | value) never changes. */
@media (min-aspect-ratio:1/1){
  html[data-mobile] #screen-lobby #lobby-profile .st-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  html[data-mobile] #screen-lobby #lobby-profile .st-tile{grid-template-columns:3.2rem minmax(0,1fr) auto;column-gap:.8rem;padding:.8rem 1rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-badge{width:3.2rem;height:3.2rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-badge svg{width:1.9rem;height:1.9rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-tile .caps{font-size:1.4rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-tile .st-num b{font-size:2.2rem}
}

/* 8b. A 360px phone: the crest and the streak give the rank its last few pixels, so "Champion III" keeps one line beside a streak plate (measured: 149px at 2.2rem). */
@media (max-width:379px){
  html[data-mobile] #screen-lobby #lobby-profile .st-hero{grid-template-columns:5.6rem minmax(0,1fr) auto;column-gap:.8rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-crest{width:5.6rem;height:5.6rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-crest .st-em{--em-h:4.3rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-crest .st-em .rank-em{width:4.6rem;height:4.6rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-rank-name{font-size:2.2rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-ribbon{padding:0 .8rem;font-size:1.2rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-ribbon .st-flame{width:1.6rem;height:1.6rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-ribbon b{font-size:1.7rem}
  html[data-mobile] #screen-lobby #lobby-profile .st-tile{padding:.8rem 1rem;column-gap:.8rem}
}

/* ======================================================= 9. RANKS ======================================================= */
/* The same gutter and gap as Your stats. (The lead and the note live in the view's hidden .view-info-src: they open in the (i) popup, never on the page.) */
html[data-mobile] #screen-lobby #lobby-ranks{
  gap:1rem!important;                                     /* base: --s-3, 7.5px, !important */
  padding:1.2rem 1.6rem 1.6rem!important;                 /* base: 15px / 10px, !important */
}
/* the cards: two a row upright, four a row on the phone's side (so the eight make two short rows, never two huge ones) */
html[data-mobile] #screen-lobby #lobby-ranks .ranks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem .8rem}
html[data-mobile] #screen-lobby #lobby-ranks .ranks-card{padding:1rem .8rem 1.2rem;gap:.4rem}
html[data-mobile] #screen-lobby #lobby-ranks .ranks-name{font-size:1.6rem}
html[data-mobile] #screen-lobby #lobby-ranks .ranks-from{font-size:1.3rem}
/* Pro's card says "By leaderboard place" where the others show three divisions: one long chip that used to run into the slanted face. It keeps 8px inside
   the card's sides and wraps in two lines rather than run edge to edge. */
html[data-mobile] #screen-lobby #lobby-ranks .ranks-divs{flex-wrap:wrap;padding-inline:.2rem}
html[data-mobile] #screen-lobby #lobby-ranks .ranks-divs > .ranks-div:only-child{max-width:100%;padding:.2rem .6rem;font-size:1.3rem;line-height:1.2;white-space:normal;text-align:center}

/* the Ranks header: the (i) after the title plate, the account chip drawn over it at 360-430 wide. The chip goes on this view on a phone (Back leads to
   the home, where it lives) so the (i) has its whole 44px and air around it. */
@media (max-width:599px){
  html[data-mobile] #screen-lobby:is([data-view="ranks"],[data-view="profile"]) #btn-head-acct{display:none}      /* Your stats too: a four-digit count ("1,300") ran into the title plate, and the hero right under it shows the same medal and count */
}

/* the Ranks page on the phone's side: four columns, two rows, the cards compact enough to stand in a 390px height */
@media (min-width:600px){
  html[data-mobile] #screen-lobby #lobby-ranks .ranks-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-aspect-ratio:1/1) and (min-width:600px){
  html[data-mobile] #screen-lobby #lobby-ranks .ranks-grid{gap:.8rem}
  html[data-mobile] #screen-lobby #lobby-ranks .ranks-card{padding:.6rem .6rem .7rem;gap:.1rem}
  html[data-mobile] #screen-lobby #lobby-ranks .ranks-card .rank-em{width:2.8rem;height:2.8rem}
  html[data-mobile] #screen-lobby #lobby-ranks .ranks-card .ranks-evo .rank-em{width:1.6rem;height:1.6rem}
  html[data-mobile] #screen-lobby #lobby-ranks .ranks-name{font-size:1.5rem}
}

/* ======================================================= 10. SECOND PASS (shot at 390x844, 360x640, 844x390) ======================================================= */
/* The hero's rank column as ONE wrapping line set: its two rows (.st-rank-row, .st-rank-cap) give their children to it (display:contents), so the order is
   the reading order whatever the markup: the name and its (i) | the count, the cup, the sign-in line, the #212 pill | the bar | the step to the next division.
   ui.css's phone rule (padding-right:5rem, room for the old absolute streak) goes: the streak has its own grid column now. The hero is one grid row (the road
   is never drawn on a phone), so no empty band under it. */
html[data-mobile] #screen-lobby #lobby-profile .st-hero{grid-template-rows:auto;row-gap:0;padding:1.2rem 1.2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-hero .st-rank{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;align-content:center;column-gap:.6rem;row-gap:0;padding-right:0;text-align:left}
html[data-mobile] #screen-lobby #lobby-profile .st-rank :is(.st-rank-row,.st-rank-cap){display:contents}
html[data-mobile] #screen-lobby #lobby-profile .st-rank::before{content:"";order:3;flex:0 0 100%;height:0;margin-bottom:.6rem}      /* the line break after the name */
html[data-mobile] #screen-lobby #lobby-profile #st-rank{order:1}
html[data-mobile] #screen-lobby #lobby-profile #btn-st-info{order:2}
html[data-mobile] #screen-lobby #lobby-profile .st-tro{order:4}
html[data-mobile] #screen-lobby #lobby-profile #st-rank-cap{order:6;font:400 1.4rem/1.25 var(--font-display);color:var(--ink-soft);white-space:normal}
html[data-mobile] #screen-lobby #lobby-profile #st-rank-cap:empty{display:none}
html[data-mobile] #screen-lobby #lobby-profile .st-foot{order:10;flex:0 0 100%}      /* (NOTES 795) the place tags and the best rank: their own line under the bar */
html[data-mobile] #screen-lobby #lobby-profile #st-rank-bar{order:8;flex:0 0 100%;margin-top:.8rem}
html[data-mobile] #screen-lobby #lobby-profile #st-next{order:9;flex:0 0 100%;margin-top:.5rem;font-size:1.3rem;color:var(--ua-ink,#1c3150);white-space:normal}
html[data-mobile] #screen-lobby #lobby-profile #st-next::before{content:none}      /* the "· " was a separator from the count's line; it starts its own line now */
html[data-mobile] #screen-lobby #lobby-profile #st-best{margin-top:.3rem}
html[data-mobile] #screen-lobby #lobby-profile .st-hero.is-none .st-rank::before{margin-bottom:.3rem}

/* The bests: the badge and the value span both rows, so a row with a date and a row without are the same height with everything on one centre line. A tile
   with no date (Tournaments won has none; the others before a best is set) centres its label. */
html[data-mobile] #screen-lobby #lobby-profile .st-tile{grid-template-areas:"b l n" "b c n"}
html[data-mobile] #screen-lobby #lobby-profile .st-tile:not(:has(.st-cap:not(:empty))) .caps{grid-row:1 / span 2;align-self:center}

/* Online multiplayer: a column of what is there (a hidden bar or chips row leaves no gap behind). The bar's two read-outs (69% won | Points 180-150) hang
   under it: ua's overflow:hidden on the slanted bar was cutting them off, and they stand upright against its slant. */
html[data-mobile] #screen-lobby #lobby-profile #pf-human{display:flex;flex-direction:column;align-items:stretch;gap:.8rem;padding:1rem 1.2rem 1.2rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human > *{margin-top:0}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-wl{align-self:flex-start;margin:0}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-bar{overflow:visible;margin-bottom:2.2rem}
html[data-mobile] #screen-lobby #lobby-profile #pf-human :is(.st-bar-l,.st-bar-r){margin-top:.5rem;font-size:1.3rem;line-height:1.3;transform:skewX(calc(-1 * var(--ua-skew,0deg)))}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-chips{margin:0}
html[data-mobile] #screen-lobby #lobby-profile #pf-human .st-chips[hidden]{display:none}

/* Matt's four levels: a won level's tick is a small mark in the cell's corner, not a glyph before the word, so "Rookie" keeps 1.3rem and its cell at 360. */
html[data-mobile] #screen-lobby #lobby-profile .st-mlv{padding:.6rem .2rem}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv b{white-space:nowrap;letter-spacing:0}
html[data-mobile] #screen-lobby #lobby-profile .st-mlv.is-won b::before{content:none}      /* the solid fill already marks a level passed (and the card's headline names the highest): no tick crowding "Rookie" */
html[data-mobile] #screen-lobby #lobby-profile .st-mlv.is-flawless{background:linear-gradient(180deg,#fff4bd,#ffd75e)}      /* flawless: its gold, as at every other width (the phone's cyan under brown text read as a mistake) */

/* The return rate before a single return chance: an empty ring over a bare word says nothing. Only the six figures show. */
html[data-mobile] #screen-lobby #lobby-profile #st-ret.is-hint{display:none}

/* Ranks, Pro's card: "By leaderboard place" at body size on two balanced lines inside the slanted face. */
html[data-mobile] #screen-lobby #lobby-ranks .ranks-card .ranks-divs > .ranks-div:only-child{max-width:100%;padding:.3rem .5rem;letter-spacing:-.01em;font-size:1.3rem;line-height:1.25;white-space:normal;text-wrap:balance;text-align:center}

/* The card grows with what it holds and the page scrolls (as phone.css does for Ranks): the larger type made the stats taller than one screen, and a
   panel held to the screen's height left the last cards hanging below its own border. */
html[data-mobile] #screen-lobby #lobby-profile{flex-shrink:0;height:auto;max-height:none;overflow:visible;overscroll-behavior:auto}      /* flex-shrink:0: the min-height above replaced the flex item's content minimum, so the column squeezed it to the screen */

/* A phone on its side: the name and its pencil on the left, Sign out and Share at their own width on the right, one row (a 1100px Sign out bar said nothing). */
@media (min-aspect-ratio:1/1){
  html[data-mobile] #screen-lobby #lobby-profile .pf-head{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}
  html[data-mobile] #screen-lobby #lobby-profile .pf-who{width:auto;flex:1 1 auto}
  html[data-mobile] #screen-lobby #lobby-profile .pf-acct{width:auto;flex:0 0 auto}
  html[data-mobile] #screen-lobby #lobby-profile .pf-signout{flex:0 0 auto;min-width:16rem}
  html[data-mobile] #screen-lobby #lobby-profile .pf-acct > .pf-signin{flex:0 0 auto}
}
html[data-mobile] #screen-lobby #lobby-profile #btn-st-info{margin-right:.4rem}      /* air between the (i) and the streak plate at 360 */
