/* ==========================================================================================================
   THE PHONE (html[data-mobile], set by web/main.js MOBILE: a coarse pointer and a short screen side under 600 px, or ?mobile=1).
   Every rule here is prefixed html[data-mobile] and overrides the desktop's own: nothing on a computer changes. It is loaded last
   (after pinstripe.css), so a rule of equal weight wins; where it must beat a heavier rule of the other sheets it says so itself.
   1. tap targets (44 x 44 CSS px: a finger, not a mouse)  2. text inputs (16 px or more: iOS zooms the page in under it)
   3. the legal footer, on the home only  4. the Shop, rebuilt  5. the Locker, rebuilt  6. the court list  7. the Ranks page
   8. a narrow phone (under 380 px): the header's title plate
   ========================================================================================================== */

/* ======================================================= 1. TAP TARGETS ======================================================= */
/* The look stays: an element that is smaller than a finger grows a transparent hit area (a ::after with a negative inset), or, where it
   draws its own plate and its pseudo-elements are taken, its box. Rows grow their own height. */

/* the four code boxes in Courts: 44 px square, wider letters, still four in a row at 360 px */
html[data-mobile] #screen-lobby .court-shelf .code-box{width:4.4rem;height:4.4rem;font-size:2rem}
html[data-mobile] #screen-lobby .court-shelf .code-boxes{gap:.3rem}
html[data-mobile] #lobby-courts .cs-code{gap:.4rem}

/* Your stats: the pencil beside the name, the (i) beside the rank, the global-place pill */
html[data-mobile] #screen-lobby #lobby-profile .pf-edit{width:4.4rem;height:4.4rem}
html[data-mobile] #screen-lobby #lobby-profile .st-info{width:4.8rem;height:4.8rem;margin:-1.3rem}      /* the box grows for the finger, the margin gives the room back: the rank's line is as wide as it was */
html[data-mobile] #screen-lobby #lobby-profile .st-place{position:relative}
html[data-mobile] #screen-lobby #lobby-profile .st-place::after{content:"";position:absolute;left:0;right:0;top:-1.6rem;bottom:-1.6rem}
/* the header's (i): a plate of its own, so it grows as a plate */
html[data-mobile] #screen-lobby .view-info-btn{width:4.4rem;height:4.4rem}
html[data-mobile] #screen-lobby #btn-head-acct{min-width:4.4rem;min-height:4.4rem}

/* the leaderboard: its three tabs and every row */
html[data-mobile] #screen-lobby #lobby-leaderboard .lb-tabs .seg-opt{min-height:4.4rem}
html[data-mobile] #screen-lobby #lobby-leaderboard :is(.lb-row,.lb-you){min-height:4.4rem}
html[data-mobile] #screen-lobby #lobby-leaderboard .lb-show{min-height:4.4rem}

/* Friends: a player's name opens their card, so the name itself is a target (the padding is given back by the margin: the row does not move) */
html[data-mobile] #screen-lobby #lobby-friends .fr-name{padding-block:1.6rem;margin-block:-1.6rem;padding-inline:1.5rem;margin-inline:-1.5rem}

/* the Locker: the Gear/Body/Outfit and the part tabs, the search/filter/sort strip and the Finish chips */
html[data-mobile] #screen-lobby #lobby-locker .lk-head .seg-opt{min-height:4.4rem}
html[data-mobile] #lobby-locker .lk-bar > *{min-height:4.4rem}
html[data-mobile] #lobby-locker .lk-chip{min-width:4.4rem}
html[data-mobile] #lobby-locker .lk-acts .lk-fin{--lk-fin2-chip:4.4rem}
html[data-mobile] #lobby-locker .lk-acts .lk-fin-opts{flex-wrap:wrap}
html[data-mobile] #screen-lobby #lobby-locker .lk-fin-row .lk-fin-how{grid-column:2;grid-row:2;justify-self:start;width:auto}
html[data-mobile] #screen-lobby #lobby-locker :is(.lk-bar > .lk-styles,.lk-acts .lk-styles){min-width:4.4rem}

/* the Shop: Reshuffle (its face is the ::before, the price its own tag) and the FREE tag that points at a waiting gift */
html[data-mobile] #screen-lobby #shop-reroll{position:relative}
html[data-mobile] #screen-lobby #shop-reroll::after{content:"";position:absolute;left:0;right:0;top:-1rem;bottom:-1rem}
html[data-mobile] .sh-gift-peek::after{content:"";position:absolute;inset:-.8rem -.4rem}

/* Settings: Back, the tabs, every row (the switches, the sliders' own + and -) */
html[data-mobile] #settings #btn-set-back{min-width:4.4rem;min-height:4.4rem}
html[data-mobile] #settings .sx-tab{min-height:4.4rem}
html[data-mobile] #settings .sx-row{min-height:4.4rem}
html[data-mobile] #settings .sx-pm{width:4.4rem;height:4.4rem}

/* ======================================================= 2. TEXT INPUTS ======================================================= */
/* iOS zooms the whole page in under a 16 px field. The boxes keep their size: only the type grows. */
html[data-mobile] #screen-lobby #name-input{font-size:16px}
html[data-mobile] #lobby-friends .fr-q{font-size:16px}
html[data-mobile] #lobby-locker .lk-search input{font-size:16px}
html[data-mobile] #settings #code-in{font-size:16px}

/* ======================================================= 3. THE LEGAL FOOTER ======================================================= */
/* Only the home keeps it (it is the one view that shows the landing links too); every other view gives its room to content. */
html[data-mobile] #screen-lobby:not([data-view="home"]) .menu-foot{display:none}

/* ======================================================= 4. THE SHOP, REBUILT (NOTES 679) ======================================================= */
/* Owner 2026-11-17: "locker and the shop layouts look terrible for mobile too, rebuild those completely". A phone reads top to bottom:
   - the timer, Reshuffle and the balance are the header's second line (in the bar, never over the cards as they scroll);
   - Featured, Daily and Free one under the other, each a grid two across, every card one size (4:5); no sideways rails;
   - the daily gift one wide card across both columns, as tall as a card. The one slant stays (the grids' skew); the grids keep its lean inside the screen. */
html[data-mobile] #screen-lobby[data-view="shop"] .menu-body{margin-top:4.6rem}      /* the chips' line (shop.css: under the bar) is the body's top edge: nothing scrolls under them */
html[data-mobile] #screen-lobby #lobby-shop{--sh-pad-x:1.2rem;--sh-gap:1.2rem;--sh-sec-gap:2.4rem;--sh-lean-x:1.3rem;width:100%;max-width:56rem;margin:.6rem auto 0;padding-bottom:2.4rem}
html[data-mobile] #lobby-shop .sh-rail{display:flex;flex-direction:column;align-items:stretch;gap:var(--sh-sec-gap);width:auto;height:auto;
  overflow:visible;padding:0 var(--sh-pad-x);margin:0;cursor:default;scroll-snap-type:none;-webkit-mask-image:none;mask-image:none}
html[data-mobile] #lobby-shop .sh-sec{display:flex;flex-direction:column;gap:.9rem;width:100%;min-width:0;height:auto;margin:0}
html[data-mobile] #lobby-shop .sh-sec .sh-lab{position:static;margin:0;transform:none}
html[data-mobile] #lobby-shop .sh-sec .sh-grid,html[data-mobile] #lobby-shop .sh-feat .sh-grid,html[data-mobile] #lobby-shop .sh-daily .sh-grid{display:grid;grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;grid-template-rows:none;grid-auto-rows:auto;
  gap:var(--sh-gap);width:auto;height:auto;margin:0;padding:0 var(--sh-lean-x);overflow:visible;scroll-snap-type:none;transform:none}      /* each card keeps the one slant itself: a whole grid sheared leaned its top off the screen */
html[data-mobile] #lobby-shop .sh-grid > .lk-item{width:100%;height:auto;min-width:0;margin:0;aspect-ratio:5 / 6;transform:skewX(var(--lk-slab-skew))}      /* (its insides stand upright by the grid's --lk-unslant, as on a computer) */
html[data-mobile] #lobby-shop .sh-grid > .lk-item:active:not([aria-disabled="true"]){transform:skewX(var(--lk-slab-skew)) translate(calc(var(--lk-drop-sm-x) * .6),calc(var(--lk-drop-sm-y) * .6))}
html[data-mobile] #screen-lobby #lobby-shop .sh-gift .sh-grid > .lk-item.sh-gift-tile{grid-column:auto;width:100%;max-width:100%;min-width:0;aspect-ratio:5 / 6}      /* the gift: a card like the others (its coin, figure, stamp and countdown are sized by the card's width, cqw: a wide card piled them up, owner 2026-11-17) */
@media (min-aspect-ratio:1/1){      /* a phone on its side: four across */
  html[data-mobile] #screen-lobby #lobby-shop{max-width:90rem}
  html[data-mobile] #lobby-shop .sh-sec .sh-grid,html[data-mobile] #lobby-shop .sh-feat .sh-grid,html[data-mobile] #lobby-shop .sh-daily .sh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* the daily gift, claimed with coins: the card is short on a phone (its face 106 px), and the coin and its count ran under the Claimed stamp at the panel's foot (the number at
   y 745-766, the stamp at 760-774). The column keeps the stamp's room at the bottom (its padding: the box stays inside the face) and the coin and the figure shrink into it */
html[data-mobile] #screen-lobby #lobby-shop .sh-gift-tile[data-gift="done"]:not(.is-item) .sh-gift-won:not(.sh-gift-pic){gap:2cqw;padding-bottom:15cqw;box-sizing:border-box}      /* the stamp's room (bottom 5cqw, ~14 px tall): the column ends above it */
html[data-mobile] #screen-lobby #lobby-shop .sh-gift-tile[data-gift="done"]:not(.is-item) .sh-gift-won:not(.sh-gift-pic) .coin-ic{width:32cqw;height:32cqw}      /* the coin a size the short column holds */
html[data-mobile] #screen-lobby #lobby-shop .sh-gift-tile[data-gift="done"]:not(.is-item) .sh-gift-n{font-size:14cqw}      /* the figure with it, above the stamp */
/* a gift won with an item: Featured's whole-kid zoom (web/gift.js) reads as a headless mannequin on the short card (web/shop.js leaves it off a phone's Featured cards), so the
   card's own picture of the item shows instead */
html[data-mobile] #screen-lobby #lobby-shop .sh-gift-tile .sh-gift-zoom{display:none}      /* no zoom on a phone */
html[data-mobile] #screen-lobby #lobby-shop .sh-gift-tile .sh-gift-pic > :not(.sh-gift-zoom){visibility:visible}      /* (gift.css hid it under the zoom) the item's own picture */
/* the claim screen on a phone (web/claim.css stacks it under 980 px: the canvas above, the chip, the name and the buttons at the foot) */
@media (max-aspect-ratio:1/1){
  html[data-mobile] #reveal.cl .cl-cv{top:-2svh;height:calc(100% - 15rem)}      /* upright: down and shorter, the figure centred in the room above the chip (its cap was cut by the screen's top, its shoes 230 px clear of the chip) */
}
@media (min-aspect-ratio:1/1){      /* on its side: the computer's own side-by-side, the figure left, the chip and the name right, the buttons bottom right */
  html[data-mobile] #reveal.cl{--cl-item-x:27vw;--cl-cv-w:60vw;--cl-cv-top:0;--cl-pad:1.6rem}      /* the stage in the left half, the words' edge room */
  html[data-mobile] #reveal.cl .cl-cv{top:0;height:100%}      /* the whole height: the figure's head whole, its shoes clear of the words */
  html[data-mobile] #reveal.cl .cl-info{left:52vw;right:var(--cl-pad);top:42%;bottom:auto;transform:translateY(-50%);justify-items:start}      /* the chip and the name right, beside the figure */
  html[data-mobile] #reveal.cl .cl-name{text-align:left;justify-self:start}      /* the name under the chip, from the same edge */
  html[data-mobile] #reveal.cl .cl-acts{left:52vw;right:var(--cl-pad);justify-content:flex-start}      /* the buttons bottom right */
}

/* ======================================================= 5. THE LOCKER, REBUILT (NOTES 678) ======================================================= */
/* Owner 2026-11-17: "locker and the shop layouts look terrible for mobile too, rebuild those completely". A dressing room, the screen's height and no more:
   - the band on top is the stage: his figure stands in it on the wear tabs (scene.js heroRead / lockerPhone, over the name card at the band's foot), the
     racket's or the trail's still fills it on Rackets and Trails; Gear, Body and Outfit stand in a column at its right edge; a sideways drag turns him;
   - under it the sheet: the part tabs, one strip (search folded to its icon until pressed, the owned filter, the sort), the grid three across, which is
     the one thing that scrolls, and the actions at the sheet's foot. So an item is picked with him in view. */
html[data-mobile] body[data-screen="lobby"]:has(#screen-lobby[data-view="locker"]) .glass{background:none;-webkit-backdrop-filter:none;backdrop-filter:none}      /* he is sharp, as on the home */
html[data-mobile] #screen-lobby[data-view="locker"] .menu-body{padding:0;overflow:hidden}
html[data-mobile] #screen-lobby #lobby-locker.panel.lobby-view{--lk-band:clamp(15rem, 34svh, 32rem);position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;max-width:56rem;height:100%;min-height:0;max-height:none;margin:0 auto;padding:0;overflow:hidden;background:none;border:0;box-shadow:none}
html[data-mobile] #screen-lobby #lobby-locker.panel.lobby-view::before,html[data-mobile] #screen-lobby #lobby-locker.panel.lobby-view::after{content:none;display:none}
/* the band */
html[data-mobile] #screen-lobby #lobby-locker .lk-stage,html[data-mobile] #screen-lobby #lobby-locker .lk-stage:not([data-tab="rackets"]):not([data-tab="trails"]):has(.lk-info[data-look]){position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;flex:none;height:var(--lk-band);margin:0;padding:.4rem 12.4rem 1rem 1.6rem;pointer-events:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-stage:not([data-tab="rackets"]):not([data-tab="trails"]) .lk-stage-still{display:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-stage:is([data-tab="rackets"],[data-tab="trails"]) .lk-stage-still{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;width:100%;height:auto;padding:.4rem 0}
html[data-mobile] #screen-lobby #lobby-locker .lk-stage:is([data-tab="rackets"],[data-tab="trails"]) .lk-stage-still > *{max-width:100%;max-height:100%;width:auto;height:100%;object-fit:contain}
html[data-mobile] #screen-lobby #lobby-locker .lk-stage .lk-info{position:relative;inset:auto;flex:none;width:auto;max-width:100%;min-width:0;margin:0;transform:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-swivel[data-on="true"]{display:block;position:absolute;left:0;right:11rem;top:0;height:calc(var(--lk-band) - 6rem);z-index:1;touch-action:pan-y;cursor:grab}
/* Gear, Body, Outfit: a column at the band's right edge (out of the sheet's flow: the sheet and its head are not the column's box) */
html[data-mobile] #screen-lobby #lobby-locker :is(.lk-panel,.lk-head){position:static}
html[data-mobile] #screen-lobby #lobby-locker .lk-head > .lk-grps{position:absolute;z-index:2;top:.8rem;right:1.2rem;display:flex;flex-direction:column;gap:.7rem;width:10rem;height:auto;margin:0}
html[data-mobile] #screen-lobby #lobby-locker .lk-head > .lk-grps .seg-opt{flex:none;justify-content:flex-start;gap:.6rem;width:100%;min-height:4.4rem;padding:0 1rem}
/* the sheet */
html[data-mobile] #screen-lobby #lobby-locker .lk-panel{display:flex;flex-direction:column;gap:.9rem;flex:1 1 0;min-height:0;width:auto;max-width:none;height:auto;margin:0 .8rem;padding:1.2rem 1.2rem 0;border-radius:1.2rem 1.2rem 0 0;background:var(--cp-panel,#fff);box-shadow:inset 0 0 0 var(--cp-ol,.25rem) var(--cp-ink,#1c3150);overflow:hidden;transform:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-panel::before,html[data-mobile] #screen-lobby #lobby-locker .lk-panel::after{content:none;display:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-head{display:block;flex:none;height:auto;margin:0;padding:0}
html[data-mobile] #screen-lobby #lobby-locker .lk-head > .lk-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.6rem;width:100%;margin:0}
html[data-mobile] #screen-lobby #lobby-locker .lk-head .lk-tabs .seg-opt{min-height:4.4rem;padding-inline:.3rem;white-space:nowrap}
/* the tray: the strip held at its top, the grid the one scroll */
html[data-mobile] #screen-lobby #lobby-locker .lk-tray{display:flex;flex-direction:column;flex:1 1 0;min-height:0;height:auto;max-height:none;margin:0 -.9rem;padding:0 .9rem;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:none;box-shadow:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-scroll{height:auto;max-height:none;min-height:0;flex:none;overflow:visible;margin:0;padding:0;background:none;box-shadow:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-bar{position:sticky;top:0;z-index:2;display:flex;flex-wrap:nowrap;align-items:center;gap:.6rem;margin:0 -.9rem .9rem;padding:0 .9rem .3rem;width:auto;background:var(--cp-panel,#fff)}
html[data-mobile] #screen-lobby #lobby-locker .lk-bar .lk-search{position:relative;flex:none;width:4.4rem;min-width:4.4rem;transition:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-bar .lk-search:focus-within{position:absolute;left:.9rem;right:.9rem;top:0;z-index:3;width:auto}      /* pressed: the field takes the strip */
html[data-mobile] #screen-lobby #lobby-locker .lk-bar .lk-search:not(:focus-within){justify-content:center;padding:0}
html[data-mobile] #screen-lobby #lobby-locker .lk-bar .lk-search:not(:focus-within) input{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0}      /* folded: the whole square is the field, its icon drawn over */
html[data-mobile] #screen-lobby #lobby-locker .lk-bar .lk-own{flex:none;margin:0}
html[data-mobile] #screen-lobby #lobby-locker .lk-bar .lk-sort{flex:none;margin:0 0 0 auto}
html[data-mobile] #screen-lobby #lobby-locker .lk-bar > .lk-styles{flex:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-grid{--lk-cols:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem .9rem;width:auto;margin:0;padding:.3rem .5rem 1.2rem .3rem}
html[data-mobile] #screen-lobby #lobby-locker .lk-grid > .lk-item{width:auto;height:auto;aspect-ratio:var(--lk-item-aspect,1);min-width:0}
/* a section's own sub-heading (Colour, Pattern, Second colour, Sole): left, on the section head's and the swatches' edge (a phone centred it) */
html[data-mobile] #screen-lobby #lobby-locker .lk-sub{align-items:stretch}      /* no centring: the swatch row starts at the section's left edge */
html[data-mobile] #screen-lobby #lobby-locker .lk-sub-name{text-align:left;align-self:flex-start;margin:0;padding-left:.2rem}      /* the swatches' own left edge */
/* the actions: the sheet's foot */
html[data-mobile] #screen-lobby #lobby-locker .lk-acts{position:relative;z-index:3;flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;height:auto;min-height:0;margin:0 -.9rem;padding:.9rem .9rem calc(.9rem + env(safe-area-inset-bottom,0px));background:var(--cp-panel,#fff);box-shadow:0 -.2rem 0 var(--cp-sky-2,#dbeefa);transform:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-acts:not(:has(:is(button,.lk-fin-row))){display:none}      /* the wear tabs: no actions, no empty foot */
html[data-mobile] #screen-lobby #lobby-locker .lk-acts > .lk-fin-row{flex:1 0 100%;margin:0;padding:0;background:none;box-shadow:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-acts > .lk-fin-row::before{content:none}
html[data-mobile] #screen-lobby #lobby-locker .lk-acts .btn{height:4.6rem;margin:0}
html[data-mobile] #screen-lobby #lobby-locker .lk-acts .lk-equip{flex:1 1 0;min-width:0}
@media (min-aspect-ratio:1/1){      /* a phone on its side: the band left (the figure, the column), the sheet right */
  html[data-mobile] #screen-lobby #lobby-locker.panel.lobby-view{flex-direction:row;max-width:none}
  html[data-mobile] #screen-lobby #lobby-locker .lk-stage,html[data-mobile] #screen-lobby #lobby-locker .lk-stage:not([data-tab="rackets"]):not([data-tab="trails"]):has(.lk-info[data-look]){flex:0 0 34%;width:34%;height:100%;padding:calc(.8rem + 4.4rem + .8rem) 1.2rem 1.2rem}      /* the band's top row (Gear, Body, Outfit) is reserved: the still and the name card start under it */
  html[data-mobile] #screen-lobby #lobby-locker .lk-head > .lk-grps{position:absolute;right:auto;z-index:2;top:.8rem;left:1.2rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;width:calc(34% - 2.4rem);max-width:none;height:auto;margin:0}      /* Gear, Body, Outfit: one row of three across the band's top, so the row owns the band's full width and never stands on the figure or the still */
  html[data-mobile] #screen-lobby #lobby-locker .lk-head > .lk-grps .seg-opt{flex:none;min-height:4.4rem;justify-content:center;gap:.4rem;padding:0 .4rem;white-space:nowrap}      /* a finger's row in a third of the band's width: the word centred, one line */
  html[data-mobile] #screen-lobby #lobby-locker .lk-panel{flex:1 1 0;height:100%;margin:0 .8rem 0 0;padding-top:.8rem;gap:.6rem;border-radius:1.2rem 1.2rem 0 0}      /* tighter: the grid takes the strip's room */
  html[data-mobile] #screen-lobby #lobby-locker .lk-bar{margin-bottom:.6rem}      /* the strip a little closer to the grid */
  html[data-mobile] #screen-lobby #lobby-locker .lk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-mobile] #screen-lobby #lobby-locker .lk-swivel[data-on="true"]{display:none}      /* (no figure in a landscape band: the scene's phone frame is portrait's) */
}

/* ======================================================= 6. THE COURT LIST ======================================================= */
/* A phone watches every court: one Watch block, the cyan one, on every row. A computer keeps each row's own state (a tournament's deep fill,
   Matt's ask, a full court's pale); on a phone they all said Watch but in four different looks, so here the row's state no longer paints the
   button (the BUSY row's own words stay dimmed, its button is the same cyan). */
html[data-mobile] #screen-lobby .court-shelf .court-row .court-go{background:var(--cp-main);color:#fff;box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-deep);font-size:.98rem}
/* the code's own Watch: the same cyan while it can act, and the home's Go plate while it cannot (pale face, muted words, no ink block behind:
   that block is the .btn's drop, which a disabled button on this view draws and a phone is not meant to see) */
html[data-mobile] #screen-lobby .court-shelf #btn-watch-code{background:var(--cp-main);color:#fff;}
html[data-mobile] #screen-lobby .court-shelf #btn-watch-code::after{display:none}
html[data-mobile] #screen-lobby .court-shelf #btn-watch-code:disabled{background:var(--cp-sky-1);color:var(--cp-text-3);box-shadow:inset 0 0 0 var(--cp-ol-sm) var(--cp-sky-3, #9fc3e0)}
/* the list ends at its last row (a little padding): with none, the empty list itself goes, so the words are centred in the well; with many
   rows the panel grows and the view scrolls, never a well of its own with a bar inside it */
html[data-mobile] #screen-lobby #lobby-courts .court-shelf{height:auto;min-height:0}
html[data-mobile] #screen-lobby #lobby-courts .court-shelf .court-wrap{flex:none;min-height:0}
html[data-mobile] #screen-lobby #lobby-courts .court-shelf .court-wrap::after{display:none}
html[data-mobile] #screen-lobby #lobby-courts .court-shelf:has(#room-empty:not([data-state="rows"]):not([data-state="loading"])) #room-list{display:none}
html[data-mobile] #screen-lobby #lobby-courts .court-shelf:has(#room-empty:not([data-state="rows"]):not([data-state="loading"])) .court-state{position:relative;inset:auto;padding:1.8rem 1rem}

/* ======================================================= 7. THE RANKS PAGE ======================================================= */
/* Every medal is on the page, so the panel ends where its content ends and the view itself scrolls: Master and Pro are reached by
   scrolling down, not by a box of their own with its own bar. */
html[data-mobile] #screen-lobby #lobby-ranks.ranks-view{max-height:none;overflow:visible;overscroll-behavior:auto}

/* ======================================================= 8. A NARROW PHONE: THE HEADER'S TITLE ======================================================= */
/* Under 380 px the bar is Back, the title, then the account chip and Settings at the right: "Leaderboard" and "Your stats" ran under the
   chip at their 21 px. The views whose title is a word of its own take a smaller plate here (the tournament and bracket plates carry a code
   and keep their own sizing). No ellipsis, no overlap: every title ends before the chip at 360 px. */
@media (max-width:379px){
  html[data-mobile] #screen-lobby:is([data-view="profile"],[data-view="leaderboard"]) .menu-title{font-size:1.45rem;padding:.55rem 1.2rem .5rem 1rem}      /* the two long titles; the short ones fit at ua-views.css's own size */
}

/* 9. The home's six tiles, one shape (owner 2026-11-17: "make them uniform, text and icon included for all"): Watch a match, Friends, Your stats, Leaderboard, Locker, Shop,
   two to a row, each with its icon top left and its name bottom left. The Locker and the Shop keep their plate (locker.css / shop.css) at the tiles' size */
html[data-mobile] #screen-lobby #lobby-home .tiles{--mt-h:8.6rem;--mt-ic:2.7rem;grid-auto-rows:var(--mt-h)}
html[data-mobile] #screen-lobby #lobby-home .tiles > :is(.tile,#btn-locker,#btn-shop){width:auto;height:var(--mt-h);margin:0;grid-column:auto;justify-self:stretch;align-self:stretch}
html[data-mobile] #screen-lobby #lobby-home .tiles > :is(#btn-locker,#btn-shop){order:9;display:block}
html[data-mobile] #screen-lobby #lobby-home .tiles :is(.m-ic,#btn-profile .fx-art,#btn-leaderboard .fx-art,#btn-locker .hp-ic,#btn-shop .hp-ic){display:block;position:absolute;left:.9rem;top:.8rem;width:auto;height:var(--mt-ic);margin:0;transform:none;translate:none;scale:none;filter:drop-shadow(.12rem .15rem 0 var(--cp-ink));overflow:visible}
html[data-mobile] #screen-lobby #lobby-home .tiles #btn-friends .ua-friends{left:.9rem;top:.8rem}
html[data-mobile] #screen-lobby #lobby-home .tiles #btn-friends .ua-friends .fc{width:var(--mt-ic);height:var(--mt-ic)}
html[data-mobile] #screen-lobby #lobby-home .tiles :is(#btn-locker,#btn-shop) .hp-ic{width:var(--mt-ic)}
html[data-mobile] #screen-lobby #lobby-home .tiles :is(#btn-locker,#btn-shop) .hp-name{display:block;position:absolute;left:.8rem;bottom:.9rem;padding-inline:.1em;font-family:var(--font-display);font-weight:400;font-size:1.5rem;line-height:1.2;color:var(--cp-text);white-space:nowrap}

/* (NOTES 796) a phone's lobby body (overflow-y:auto made x auto too) slid 10 px sideways on Ranks, vs Matt, Create and Courts: up and down only */
html[data-mobile] #screen-lobby .menu-body{overflow-x:hidden;overscroll-behavior-x:none}
