/* Table game intro screen — plain, factual game index.
   Scoped to #intro so the play screen, dialogs and theme layers stay untouched.
   Loaded after table.css / table-home-theme.css / four-theme.css. */

body.table-home-theme:not([data-screen="play"]){
  background:#0b1020;
}
body.table-home-theme:not([data-screen="play"]) #intro{
  max-width:1080px;margin:0 auto;padding:30px 30px 22px;
}
body.table-home-theme:not([data-screen="play"]) .intro-heading{display:none}
/* No decorative all-caps labels anywhere in the game shell. */
body.table-home-theme:not([data-screen="play"]) .eyebrow{display:none}
body.table-home-theme[data-screen="play"] .play-sidebar .eyebrow,
body.table-home-theme[data-screen="play"] .board-top .eyebrow{display:none}

/* Two plain columns: game info on the left, standings on the right. */
body.table-home-theme:not([data-screen="play"]) .intro-grid{
  grid-template-columns:minmax(0,1fr) 460px;
  gap:24px;min-height:0;align-items:start;
}

/* Cover + copy: no giant hero, no oversized title, no check-mark badges. */
body.table-home-theme:not([data-screen="play"]) .game-hero{
  display:grid;grid-template-columns:minmax(0,230px) minmax(0,1fr);
  column-gap:22px;row-gap:0;align-content:start;align-items:start;
  max-width:none;padding:0;
}
body.table-home-theme:not([data-screen="play"]) .hero-art{
  grid-column:1;grid-row:1/span 6;align-self:center;justify-self:center;
  /* The first-frame inline cover is a 192px thumbnail, later swapped for
     a 900px one. Keep the picture at its approved rendered size (~259px)
     while the column narrows, so it stays crisp and centred. */
  width:94%;height:auto;aspect-ratio:1/1;margin:0;
  border:1px solid #ffffff12;border-radius:14px;
  background:#141b30;box-shadow:none;overflow:hidden;
}
body.table-home-theme:not([data-screen="play"]) .hero-art img{width:100%;height:100%;object-fit:cover}
body.table-home-theme:not([data-screen="play"]) #hero-title,
body.table-home-theme:not([data-screen="play"]) #hero-description,
body.table-home-theme:not([data-screen="play"]) .hero-tags,
body.table-home-theme:not([data-screen="play"]) .launch-actions{grid-column:2}

/* The small English game name above the title is gone. The node stays in the
   DOM because intro-boot.js and table.js write into it on the first frame;
   display:none removes the grid item entirely, so the title moves up with no
   empty row left behind. */
body.table-home-theme:not([data-screen="play"]) .game-kicker{display:none}
body.table-home-theme:not([data-screen="play"]) #hero-title{
  margin:3px 0 6px;font-size:27px;line-height:1.2;letter-spacing:-.3px;
  font-weight:600;color:#dbe4fa;
}
body.table-home-theme:not([data-screen="play"]) #hero-description{
  max-width:44em;margin:0;font-size:12.5px;line-height:1.6;color:#8e9dbe;
}
body.table-home-theme:not([data-screen="play"]) .hero-tags{
  display:flex;gap:0;margin:8px 0 9px;font-size:11px;color:#7a8aac;
}
body.table-home-theme:not([data-screen="play"]) .hero-tags span:before{content:none;display:none}
body.table-home-theme:not([data-screen="play"]) .hero-tags span{padding:0 12px}
body.table-home-theme:not([data-screen="play"]) .hero-tags span:first-child{padding-left:0}
body.table-home-theme:not([data-screen="play"]) .hero-tags span+span{border-left:1px solid #ffffff24}

/* Flat buttons: one solid primary, no gradients, no 3D shadows. */
body.table-home-theme:not([data-screen="play"]) .intro-screen button{
  border:1px solid #46518a;border-radius:8px;
  background:#1b254a;color:#e7eeff;box-shadow:none;
  font-size:12.5px;min-height:36px;padding:8px 12px;
}
body.table-home-theme:not([data-screen="play"]) .intro-screen button:hover:not(:disabled){
  background:#293657;border-color:#8d9dff;transform:none;
}
/* Three stacked launch buttons: Quick play / Create room / Play computer. The old .local-buttons wrapper put the last two side by
   side; it is gone from the markup, so every button owns a full row. */
body.table-home-theme:not([data-screen="play"]) .launch-actions{
  width:100%;max-width:100%;
  display:grid;grid-template-columns:minmax(0,1fr);gap:6px;
}
body.table-home-theme:not([data-screen="play"]) .launch-actions>button{
  min-height:38px;margin:0;font-size:14px;font-weight:500;color:#d3ddf5;
}
body.table-home-theme:not([data-screen="play"]) .launch-actions>.primary{
  min-height:38px;font-size:14px;font-weight:600;
  background:#3c54bd;background-image:none;border-color:#6f8bff;color:#eef2ff;box-shadow:none;
}
body.table-home-theme:not([data-screen="play"]) .launch-actions>.primary:hover:not(:disabled){
  background:#4d66d8;background-image:none;border-color:#8d9dff;
}
/* The sign-in dialog still pairs Login / Register in .local-buttons. Keep its
   original sizing here; the launch row no longer has that wrapper at all. */
body.table-home-theme:not([data-screen="play"]) .local-buttons{gap:8px;margin-top:0}
body.table-home-theme:not([data-screen="play"]) .local-buttons button{
  min-height:40px;font-size:13.5px;padding:8px 10px;
  display:flex;align-items:center;justify-content:center;gap:6px;
}
body.table-home-theme:not([data-screen="play"]) input{
  color:#e8edff;background:#0c1426;border:1px solid #46518a;border-radius:8px;
}

/* Standings: a thin-rule table, not a trophy card with a dashed empty state. */
body.table-home-theme:not([data-screen="play"]) .home-ranking{
  padding:16px 16px 12px;border:1px solid #ffffff12;border-radius:10px;
  background:#141b30;box-shadow:none;min-width:0;
}
body.table-home-theme:not([data-screen="play"]) .ranking-heading{margin:0 0 10px}
body.table-home-theme:not([data-screen="play"]) .ranking-heading h2{
  margin:0;font-size:15px;letter-spacing:0;color:#dfe6fb;
}
body.table-home-theme:not([data-screen="play"]) .ranking-heading>img,
body.table-home-theme:not([data-screen="play"]) .ranking-heading .eyebrow{display:none}
body.table-home-theme:not([data-screen="play"]) .period-tabs{
  display:flex;gap:0;padding:0;margin:0 0 8px;border:0;border-bottom:1px solid #ffffff14;
  background:none;border-radius:0;
}
body.table-home-theme:not([data-screen="play"]) .period-tabs button{
  flex:1 1 0;min-width:0;min-height:0;padding:6px 2px;border-radius:0;
  background:none;border:0;box-shadow:none;font-size:11px;color:#8390b0;
  text-align:center;white-space:nowrap;
}
body.table-home-theme:not([data-screen="play"]) .period-tabs button:hover:not(:disabled){background:none;color:#c8d3ff}
body.table-home-theme:not([data-screen="play"]) .period-tabs button[aria-pressed="true"]{
  background:none;box-shadow:none;color:#c8d3ff;border-bottom:2px solid #9caaff;
}
body.table-home-theme:not([data-screen="play"]) .ranking-columns{
  padding:0 0 6px;border-bottom:1px solid #ffffff0c;font-size:10px;color:#7f8cab;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard{
  min-height:0;max-height:190px;margin:0;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard li{
  min-height:0;margin:0;padding:8px 0;border:0;border-bottom:1px solid #ffffff0c;
  border-radius:0;background:none;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard li .seat{
  padding:0;border:0;background:none;box-shadow:none;
}
/* Both number columns share one type scale. A larger score beside a smaller
   game count reads as a mismatched pair inside the same row; the score's
   brighter colour is enough of a hierarchy cue. */
body.table-home-theme:not([data-screen="play"]) #leaderboard .ranking-points,
body.table-home-theme:not([data-screen="play"]) #leaderboard .ranking-games{
  font-size:16px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard .ranking-points{color:#c8d3ff}
body.table-home-theme:not([data-screen="play"]) #leaderboard .ranking-empty{
  min-height:0;justify-content:flex-start;padding:14px 0;
  border:0;background:none;color:#8390b0;font-size:11px;
}
body.table-home-theme:not([data-screen="play"]) .ranking-footnote{
  margin:8px 0 0;text-align:left;font-size:10px;color:#7f8cab;
}
body.table-home-theme:not([data-screen="play"]) #stats{
  margin:3px 0 0;text-align:left;font-size:10px;line-height:1.6;color:#8390b0;
}

/* Bottom: two text columns separated by a rule, no promo cards. */
body.table-home-theme:not([data-screen="play"]) .intro-bottom{
  grid-template-columns:1.25fr 1fr;gap:0;
  margin-top:22px;padding-top:16px;border-top:1px solid #ffffff14;
}
body.table-home-theme:not([data-screen="play"]) .intro-bottom>section{
  padding:0 22px 0 0;background:none;border:0;border-radius:0;
}
body.table-home-theme:not([data-screen="play"]) .intro-bottom>section+section{
  padding:0 0 0 22px;border-left:1px solid #ffffff14;
}
body.table-home-theme:not([data-screen="play"]) .intro-bottom h2{
  margin:0 0 6px;font-size:14px;font-weight:600;color:#a9b8dc;
}
body.table-home-theme:not([data-screen="play"]) .intro-bottom p{
  margin:0;font-size:12.5px;line-height:1.7;color:#8494b4;
}
body.table-home-theme:not([data-screen="play"]) .member-note>.member-label{display:none}

@media(max-width:900px){
  body.table-home-theme:not([data-screen="play"]) .intro-grid{grid-template-columns:1fr;gap:24px}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{max-width:520px}
  body.table-home-theme:not([data-screen="play"]) .intro-bottom{grid-template-columns:1fr;gap:14px}
  body.table-home-theme:not([data-screen="play"]) .intro-bottom>section+section{
    padding:14px 0 0;border-left:0;border-top:1px solid #ffffff14;
  }
}
@media(max-width:560px){
  body.table-home-theme:not([data-screen="play"]) #intro{padding:20px 16px}
  body.table-home-theme:not([data-screen="play"]) .game-hero{grid-template-columns:minmax(0,150px) minmax(0,1fr);column-gap:16px}
  body.table-home-theme:not([data-screen="play"]) .hero-art{width:100%;height:auto;aspect-ratio:1/1}
  body.table-home-theme:not([data-screen="play"]) #hero-title{font-size:21px}
  body.table-home-theme:not([data-screen="play"]) .hero-tags{flex-wrap:wrap;row-gap:4px}
}

/* Intro layout: left column = game info, rules, membership; right column =
   a standings panel that spans both rows and always reserves ten player rows. */
body.table-home-theme:not([data-screen="play"]) #intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) 460px;
  column-gap:28px;row-gap:0;align-items:start;
}
body.table-home-theme:not([data-screen="play"]) .intro-grid{display:contents;min-height:0}
body.table-home-theme:not([data-screen="play"]) .game-hero{grid-column:1;grid-row:1}
body.table-home-theme:not([data-screen="play"]) .intro-bottom{
  grid-column:1;grid-row:2;
  grid-template-columns:1fr;gap:0;
  margin-top:14px;padding-top:14px;border-top:1px solid #ffffff14;
}
body.table-home-theme:not([data-screen="play"]) .intro-bottom>section{padding:0}
body.table-home-theme:not([data-screen="play"]) .intro-bottom>section+section{
  margin-top:14px;padding:14px 0 0;border-left:0;border-top:1px solid #ffffff14;
}
body.table-home-theme:not([data-screen="play"]) .home-ranking{
  grid-column:2;grid-row:1/span 2;align-self:stretch;
  display:flex;flex-direction:column;min-height:500px;
}
body.table-home-theme:not([data-screen="play"]) .ranking-heading{margin-bottom:8px}
body.table-home-theme:not([data-screen="play"]) .period-tabs{margin-bottom:6px}
body.table-home-theme:not([data-screen="play"]) #leaderboard{
  --rank-row:34px;
  flex:1 1 auto;display:grid;grid-auto-rows:minmax(var(--rank-row),1fr);
  min-height:calc(var(--rank-row)*10);max-height:none;height:auto;
  overflow:hidden;margin:0;
}
/* The gold / silver / bronze accent bar is absolutely positioned at left:0.
   Without this gutter the first-place coin sat exactly on top of the bar,
   so the two were visually squashed together. 14px separates them, and the
   header gets the same gutter so its two number columns stay pixel-aligned. */
body.table-home-theme:not([data-screen="play"]) #leaderboard li{
  grid-template-columns:32px minmax(0,1fr) 60px 60px;column-gap:16px;
  padding:0 0 0 14px;margin:0;min-height:0;align-items:center;
  position:relative;transition:background .16s ease;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard .avatar-shell{
  width:30px;height:30px;flex:0 0 30px;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard .seat{gap:9px}
/* One line per player: the name plus its VIP / YEAR VIP badge. The old 280px
   column was too narrow, so flex-wrap pushed the badge onto a second line and
   the medals looked stacked. The name may ellipsise, the badge never moves. */
body.table-home-theme:not([data-screen="play"]) #leaderboard .seat-name{
  flex-wrap:nowrap;gap:3px;min-width:0;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard .seat-name strong{
  font-size:14px;max-width:none;flex:0 1 auto;min-width:0;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard .member-label{
  flex:0 0 auto;margin-left:2px;width:36px;height:18px;
}
body.table-home-theme:not([data-screen="play"]) #leaderboard .rank-medal{
  width:28px;height:28px;font-size:12px;color:#8a9ac0;
}
/* Keep the score and the game count on exactly the same 16px / 600 scale so
   "486 96" reads as one pair. Only the colours differ; column widths and
   --rank-row stay untouched, so the panel height does not change. */
body.table-home-theme:not([data-screen="play"]) #leaderboard .ranking-points,
body.table-home-theme:not([data-screen="play"]) #leaderboard .ranking-games{
  font-size:16px;font-weight:600;line-height:1;text-align:right;
  font-variant-numeric:tabular-nums;
}
body.table-home-theme:not([data-screen="play"]) .ranking-columns{
  grid-template-columns:1fr 60px 60px;column-gap:16px;padding:0 0 6px 14px;
  font-size:12px;line-height:13px;
}
body.table-home-theme:not([data-screen="play"]) .ranking-footnote{margin-top:8px}
body.table-home-theme:not([data-screen="play"]) .demo-tag{color:#6f7fa0}
/* Podium polish: the top three rows read as a podium — a faint metal wash plus
   a short left accent bar in gold / silver / bronze. The portrait itself gets
   NO coloured square frame: all ten rows show the same plain rounded-square
   avatar. Any other row lights softly on hover. :has() keeps the JS row
   markup untouched. */
body.table-home-theme:not([data-screen="play"]) #leaderboard li:hover{background:#ffffff0a}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-1){background:linear-gradient(90deg,#f7cd5e26,transparent 68%)}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-2){background:linear-gradient(90deg,#c9d7e622,transparent 68%)}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-3){background:linear-gradient(90deg,#e4b08322,transparent 68%)}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-1)::before,
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-2)::before,
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-3)::before{content:"";position:absolute;left:0;top:22%;bottom:22%;width:3px;border-radius:3px}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-1)::before{background:#efbe45}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-2)::before{background:#b8c9d8}
body.table-home-theme:not([data-screen="play"]) #leaderboard li:has(.rank-medal.rank-3)::before{background:#d49a63}

/* Membership figures keep the lower-left block populated on a new deployment. */
body.table-home-theme:not([data-screen="play"]) .member-facts{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px;
}
body.table-home-theme:not([data-screen="play"]) .member-facts>div{
  display:flex;flex-direction:column;gap:3px;min-width:0;
  padding:10px 12px;border:1px solid #ffffff12;border-radius:8px;background:#111a2e;
}
body.table-home-theme:not([data-screen="play"]) .member-facts b{
  font-size:15.5px;color:#c6d2f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.table-home-theme:not([data-screen="play"]) .member-facts span{font-size:11px;color:#7e8eb0}

@media(max-width:900px){
  body.table-home-theme:not([data-screen="play"]) #intro{grid-template-columns:1fr;row-gap:20px}
  body.table-home-theme:not([data-screen="play"]) .game-hero,
  body.table-home-theme:not([data-screen="play"]) .intro-bottom,
  body.table-home-theme:not([data-screen="play"]) .home-ranking{grid-column:1;grid-row:auto}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{
    align-self:auto;min-height:0;
  }
  body.table-home-theme:not([data-screen="play"]) #leaderboard{flex:none}
}
@media(max-width:560px){
  body.table-home-theme:not([data-screen="play"]) .member-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Intro stage upscale: the detail used to sit as a small island in the middle
   of the game iframe. Scale the whole composition (cover, type, buttons,
   standings and rules) and let the ten ranking rows absorb the extra height,
   so it reads as one larger panel instead of a stretched empty box.
   `zoom` is a layout scale, so text stays crisp; the height media query keeps
   it inside shorter / 100%-zoom viewports without introducing a scrollbar. */
body.table-home-theme:not([data-screen="play"]) #intro{
  --intro-zoom:1.3;
  zoom:var(--intro-zoom);
  /* The standings column grew from 360px to 460px so the medal, portrait
     and a name with its VIP / YEAR VIP badge no longer touch. Grow the shell by
     160px (and its viewport share) so the left column keeps its old width:
     the left column keeps its old width, so the description and buttons do
     not wrap into a tall column and push the panel past the iframe. */
  max-width:min(1160px,74vw);
  grid-template-rows:auto minmax(0,1fr);
  align-items:stretch;
}
body.table-home-theme:not([data-screen="play"]) .game-hero{align-self:start}
body.table-home-theme:not([data-screen="play"]) .intro-bottom{
  align-self:stretch;
  display:flex;flex-direction:column;justify-content:space-between;
  gap:0;margin-top:18px;padding-top:16px;
}
body.table-home-theme:not([data-screen="play"]) .intro-bottom>section+section{
  margin-top:0;padding-top:12px;
}
body.table-home-theme:not([data-screen="play"]) .home-ranking{min-height:760px}

@media(max-height:900px){
  body.table-home-theme:not([data-screen="play"]) #intro{--intro-zoom:1.2}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{min-height:650px}
}
/* The standalone /table/index.html document has a taller viewport than the
   portal iframe. Keep the stretched ranking from outgrowing it there too. */
@media(min-height:901px){
  body.table-home-theme:not([data-screen="play"]) #intro{--intro-zoom:1.15}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{min-height:650px}
}
/* Narrower viewports step the scale down so the zoomed panel never exceeds
   the iframe width (76vw x zoom stays inside the viewport). */
@media(max-width:1500px){
  body.table-home-theme:not([data-screen="play"]) #intro{--intro-zoom:1.15}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{min-height:520px}
}
/* Below ~1200px the two-column composition gets cramped by wrapped copy and
   would grow taller than the iframe, so fall back to the original stacked
   layout with no zoom (vertical scrolling is expected there). */
@media(max-width:1200px){
  body.table-home-theme:not([data-screen="play"]) #intro{
    --intro-zoom:1;zoom:1;max-width:none;
    grid-template-columns:1fr;grid-template-rows:auto auto;align-items:start;row-gap:20px;
  }
  body.table-home-theme:not([data-screen="play"]) .game-hero,
  body.table-home-theme:not([data-screen="play"]) .intro-bottom,
  body.table-home-theme:not([data-screen="play"]) .home-ranking{grid-column:1;grid-row:auto}
  body.table-home-theme:not([data-screen="play"]) .game-hero{align-self:start}
  body.table-home-theme:not([data-screen="play"]) .intro-bottom{
    display:grid;justify-content:normal;align-self:auto;gap:0;
  }
  body.table-home-theme:not([data-screen="play"]) .intro-bottom>section+section{
    margin-top:14px;padding-top:14px;
  }
  body.table-home-theme:not([data-screen="play"]) .home-ranking{align-self:auto;min-height:0}
  body.table-home-theme:not([data-screen="play"]) #leaderboard{flex:none}
}

/* Medium desktops (1201-1450px): the shell is narrower, so take 70px back
   from the standings and 35px from the cover column. 390px still fits the wider
   medal / portrait track plus a name and its 40px VIP badge on one line, while
   the description and the launch buttons keep a usable width instead of being
   clipped. The extra #intro
   qualifier keeps this hero split ahead of the wider <=1500px rule below. */
@media(min-width:1201px) and (max-width:1450px){
  body.table-home-theme:not([data-screen="play"]) #intro{
    grid-template-columns:minmax(0,1fr) 390px;
  }
  body.table-home-theme:not([data-screen="play"]) #intro .game-hero{
    grid-template-columns:minmax(0,165px) minmax(0,1fr);column-gap:16px;
  }
  body.table-home-theme:not([data-screen="play"]) #intro .hero-art{width:96%}
}

/* Responsive hero split: the cover column shrinks with the panel so the
   right-hand copy and the full-width buttons always keep a usable width.
   Declared last and ordered wide -> narrow; only .game-hero is touched, so
   the <=1200px single-column #intro fallback above still applies. */
@media(max-width:1500px){
  body.table-home-theme:not([data-screen="play"]) .game-hero{
    grid-template-columns:minmax(0,200px) minmax(0,1fr);column-gap:20px;
  }
  body.table-home-theme:not([data-screen="play"]) .hero-art{width:94%}
}
@media(max-width:900px){
  body.table-home-theme:not([data-screen="play"]) .game-hero{
    grid-template-columns:minmax(0,185px) minmax(0,1fr);column-gap:18px;
  }
  body.table-home-theme:not([data-screen="play"]) .hero-art{width:96%}
}
@media(max-width:560px){
  body.table-home-theme:not([data-screen="play"]) .game-hero{
    grid-template-columns:minmax(0,140px) minmax(0,1fr);column-gap:14px;
  }
  body.table-home-theme:not([data-screen="play"]) .hero-art{
    width:100%;height:auto;aspect-ratio:1/1;
  }
}

/* Larger type makes the left column taller. On shorter laptop viewports the
   two-column panel would otherwise grow past the iframe, so step the layout
   scale down there while the type itself stays enlarged. Wide/large screens
   (the normal case) keep the full 1.2 scale. */
@media(max-height:860px) and (min-width:1451px){
  body.table-home-theme:not([data-screen="play"]) #intro{--intro-zoom:1.05}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{min-height:520px}
}
@media(max-height:860px) and (min-width:1201px) and (max-width:1450px){
  body.table-home-theme:not([data-screen="play"]) #intro{--intro-zoom:1}
  body.table-home-theme:not([data-screen="play"]) .home-ranking{min-height:500px}
}


/* Standings width. The intro's two-column layout gives this panel roughly
   326px of usable width. An earlier pass pinned the header and the ten rows
   to a fixed min(84%,340px) centred track, which left a visible empty gutter
   on both sides of an otherwise wide panel. Fill the panel instead. The
   520px cap matters only for the <=1200px single-column fallback, where a
   full-width row would otherwise open a huge gap between name and score.
   Column widths and column-gap are shared by .ranking-columns and each li,
   so the header stays pixel-aligned with the numbers. No height value
   (--rank-row, the ten-row minimum, panel min-height) changes here. */
body.table-home-theme:not([data-screen="play"]) .ranking-columns,
body.table-home-theme:not([data-screen="play"]) #leaderboard{
  width:100%;max-width:520px;margin-left:auto;margin-right:auto;
}
body.table-home-theme:not([data-screen="play"]) .ranking-columns span:not(:first-child){
  text-align:right;
}
/* Period tabs keep the same selected pointer as the surrounding page. */
@media(hover:hover) and (pointer:fine){
  body.table-home-theme .period-tabs button{cursor:var(--joy-cursor)!important}
}
