/* "Nameplates": equipped Study Cards on the site's lists (plates.js builds the markup). Linked after lateshow.css and
   cosmetics.css on the dashboard, /h2h, /hall and /casino; every selector starts with html so it beats the page's own styles.
   The overall bar shows as a soft wash (.pl-bg with the player's .cbar-<key> class from cosmetics.css), fading out. */
html .plf { position: relative; display: inline-block; line-height: 0; flex: none; vertical-align: middle; }
html .plf > :first-child:not(.cbw) { width: var(--s); height: var(--s); }
/* never squeezed by a narrow grid column (the frame would slide under the pfp) */
html .plf, html .plf .cbw { width: max-content; min-width: max-content; }
html .champ, html .brow { grid-template-columns: auto minmax(0, 1fr) auto; }
html .brow { grid-template-columns: 24px auto minmax(0, 1fr) auto; }
html .plf .cbw > :first-child { width: 64px !important; height: 64px !important; font-size: 28px !important; box-shadow: none !important; outline: 0 !important; margin: 0 !important; }
html .pl-cstk { position: absolute; z-index: 4; right: calc(var(--s) * -.22); bottom: calc(var(--s) * -.18); width: max(22px, calc(var(--s) * .5)); height: max(22px, calc(var(--s) * .5)); line-height: 0; }
html .pl-cstk .cos-stk, html .pl-stk .cos-stk { position: static; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; } /* wide stickers sit in the middle, not at the top */
/* on the lists the sticker rides on the plate next to the name; on phones (no room) it moves to the pfp's corner */
html table.pl-t .pl-cstk { display: none; }
html .pl-stk { flex: none; display: inline-block; width: 32px; height: 32px; line-height: 0; margin-left: calc(4px + var(--rx, 0px)); transform: translateY(var(--ry, 0px)) rotate(var(--rt, 0deg)); }
html .pl-nm { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1; }
html .pl-nm > .link, html .pl-nm > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* names on the lists in the scoreboard type */
html table.pl-t .pl-nm > .link, html table.pl-t .pl-nm > b { font: 400 21px/1 var(--title, "Bebas Neue"), Impact, sans-serif; letter-spacing: .04em; text-decoration: none; }
html .pl-ttl { display: block; font: 400 13px/1 var(--title, "Bebas Neue"), Impact, sans-serif; letter-spacing: .1em; color: var(--tc, #a9a3c9); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
/* .cbar-ice has no text colour of its own (it's light): dark text on it */
html .cbar-ice { color: #15132a; }

/* ---- list tables (dashboard standings, casino chip leaders): a little gap between rows ---- */
html table.pl-t { border-collapse: separate; border-spacing: 0 5px; margin-top: -5px; }
/* the chip leader name cell gives way (long names/titles shorten with …) so the panel never gets wider than a phone */
html .lb.pl-t td.n { max-width: 0; width: 100%; }
html .lb.pl-t td.n .pl-nm { flex: 0 1 auto; overflow: hidden; }

/* ---- dashboard: top 3 podium above the standings ---- */
/* all three cards stretch to the same height (2nd and 3rd always match); 1st starts higher so it stands taller */
html .pl-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; align-items: stretch; }
html .pl-card.p2, html .pl-card.p3 { margin-top: 18px; }
html .pl-pod:empty { display: none; }
html .pl-card { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; background: #26224a; padding: 14px 8px 0; text-align: center; overflow: hidden; }
html .pl-card.p1 { padding-top: 22px; background: linear-gradient(180deg, #3a2a6e, #26224a); }
html .pl-card .pl-plc { font: 400 15px/1 var(--title); letter-spacing: .14em; color: var(--gold); }
html .pl-card .pl-nm { align-items: center; max-width: 100%; }
html .pl-card .pl-nm .link { font: 400 26px/1 var(--title); letter-spacing: .03em; color: #fff; text-decoration: none; max-width: 100%; }
html .pl-card .pl-ttl { white-space: normal; }
html .pl-card .pfp { font-size: 28px; }
html .pl-strip { align-self: stretch; margin-top: auto; display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px 4px; font: 400 17px/1 var(--title); letter-spacing: .06em; background: #3a3470; color: #fff; }
html .pl-strip b { font-weight: 400; }
@media (max-width: 640px) {
  html .pl-pod { gap: 6px; }
  html .pl-card { padding: 10px 4px 0; gap: 6px; } html .pl-card.p1 { padding-top: 16px; }
  html .pl-card .pl-nm .link { font-size: 20px; }
  html .pl-card .pl-ttl { font-size: 11px; }
  html .pl-strip { flex-direction: column; align-items: center; gap: 2px; font-size: 14px; padding: 5px 4px 3px; }
  html table.pl-t .pl-stk { display: none; }
  html table.pl-t .pl-cstk { display: block; }
}

/* ---- the bar as a soft wash (standings, chip leaders, podium, /h2h slots, Hall of Fame): strongest at the pfp side, fading out ---- */
html .pl-wash { position: relative; overflow: hidden; isolation: isolate; }
html .pl-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  -webkit-mask: linear-gradient(90deg, #000, transparent 75%); mask: linear-gradient(90deg, #000, transparent 75%);
  outline: 0 !important; box-shadow: none !important; border: 0 !important; } /* some bars draw an outline (Neon Sign): just the colour here */
html .slot.b .pl-bg { -webkit-mask: linear-gradient(270deg, #000, transparent 75%); mask: linear-gradient(270deg, #000, transparent 75%); }
html .pl-wash.from-top .pl-bg { -webkit-mask: linear-gradient(180deg, #000, transparent 80%); mask: linear-gradient(180deg, #000, transparent 80%); }
@media (max-width: 520px) { /* phones stack the h2h pfp over the name: fade from the top instead */
  html .slot .pl-bg, html .slot.b .pl-bg { -webkit-mask: linear-gradient(180deg, #000, transparent 80%); mask: linear-gradient(180deg, #000, transparent 80%); }
}
/* table rows (dashboard standings, casino chip leaders): the wash spans the whole row (the bg sits in the rank cell but is placed against the row) */
html tr.pl-wash { position: relative; }
html tr.pl-wash .pl-bg { opacity: .6; }
html .pl-card.pl-wash .pl-bg { opacity: .55; }
/* Hall of Fame: titles under names */
html .trophy .face .tot { z-index: 6; } /* title count badge always in front of frames, their tabs and glows */
html .rec .pl-nm .pl-ttl { font-size: 14px; }
html .brow .pl-nm { flex: 1; min-width: 0; }
html .brow .pl-nm .pl-ttl { font-size: 11px; margin-top: 2px; }
/* light bars (Dealer Button, Paper Card, Mint, Ice...) under white names: a soft shadow keeps names and titles readable */
html .pl-wash .pl-nm > .link, html .pl-wash .pl-nm > b, html .pl-wash .pl-ttl, html .pl-wash .pl-nm .link { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 6px rgba(0,0,0,.35); }
html table.pl-t td > .who { display: flex; width: 100%; }
/* Matchbook's striker strip makes its bottom edge thicker: nudge the frame down so the pfp itself sits centred in the row */
html .plf .cb-match { position: relative; top: 2.5px; }
/* basic frame on the top 3 podium for players with no pfp border equipped, so the card doesn't look empty */
html .pl-card .plf > .pfp:first-child { margin: 4px; box-shadow: 0 0 0 4px #4a4380, 0 0 0 5px rgba(255,255,255,.18); }
/* same plain frame on the /h2h player slots when that player has no border */
html .slot.pl-basic .av { box-shadow: 0 0 0 4px #4a4380, 0 0 0 5px rgba(255,255,255,.18) !important; outline: 0 !important; margin: 4px; }

/* ---- dashboard: Top winner + Recent winner tiles (border on the pfp, sticker on its corner, title under the name, bar as a wash) ---- */
html .tile .v .pl-nm { max-width: 100%; }
html .tile .v .pl-nm > .link { line-height: .95; }
html .tile .v .pl-ttl { font-size: 15px; margin-top: 4px; }
html .tile .plf .pl-cstk { right: -8px; bottom: -8px; width: 24px; height: 24px; }
html .tile .v .who:has(.pl-cstk) { column-gap: 16px; padding-bottom: 6px; } /* room for the corner sticker */
html .tile.pl-wash .pl-bg { opacity: .6; }
html .tile.pl-wash .k, html .tile.pl-wash .n { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 6px rgba(0,0,0,.35); }
@media (max-width: 640px) { html .tile .v .pl-ttl { font-size: 12px; } }
