/* Critter Party — premium fullscreen board standings.
   Cosmetic only: the original HUD renderer owns ranks, coins and card counts.
   Loaded last to defeat the old floating/sidebar HUD rules. */
body.tv.board-only #raceShowcaseScore {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(74,132,160,.22),transparent 65%),
    linear-gradient(180deg,#203852f9 0%,#0e2139fc 100%)!important;
  border-top:2px solid #d5b56d!important;
  box-shadow:0 -4px 0 #0d1e36,0 -14px 30px #061021aa,
    inset 0 1px 0 #fff6c044!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows {
  position:relative!important;
  align-items:stretch!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase {
  position:relative!important;
  isolation:isolate!important;
  background:
    radial-gradient(ellipse at 50% -45%,#5e91ae42,transparent 75%),
    linear-gradient(145deg,#315571f2 0%,#1a374ff8 53%,#102941f9 100%)!important;
  border:1px solid #a6c9dabb!important;
  box-shadow:
    0 3px 0 #08162e,0 5px 15px #020b1f73,
    inset 0 1px 0 #fff8d638!important;
  border-radius:clamp(10px,1.2vw,18px)!important;
  text-shadow:0 1px 2px #071525bb!important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow::before {
  content:'';position:absolute;inset:0 0 auto;
  height:clamp(3px,.32vw,5px);border-radius:inherit;
  background:linear-gradient(90deg,#3ac9c0,#acdfee 52%,#49a7dd);
  opacity:.72;pointer-events:none;z-index:-1;
}
body.tv.board-only #raceShowcaseScore .scoreRow::after {
  content:'';position:absolute;pointer-events:none;inset:1px;
  border-radius:inherit;
  background:linear-gradient(135deg,#fff3df13 0%,transparent 50%);
  z-index:-1;
}
body.tv.board-only #raceShowcaseScore .scorePlace {
  display:inline-flex!important;align-items:center!important;
  justify-content:center!important;
  min-width:clamp(44px,4.6vw,72px)!important;
  padding:clamp(4px,.4vw,7px) clamp(6px,.7vw,12px)!important;
  border-radius:clamp(7px,.7vw,11px)!important;
  border:1px solid #f5d38c99!important;
  background:linear-gradient(155deg,#755b37b0,#53442fc7)!important;
  color:#fff2c5!important;
  font-variant-numeric:tabular-nums!important;
  box-shadow:inset 0 1px 0 #fff4bd4a,0 2px 6px #0005!important;
  letter-spacing:-.035em!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace {
  color:#382508!important;text-shadow:0 1px #fff3c0aa!important;
  border-color:#fff0b1!important;
  background:linear-gradient(140deg,#fff3ab,#e1b450 58%,#af7527)!important;
  box-shadow:0 0 16px #ffde6661,inset 0 1px #fffce2!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats {
  padding:0 2px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow :is(.scoreCoins,.scoreCards){
  letter-spacing:.01em!important;
  color:#fff5ce!important;
  text-shadow:0 2px 2px #061627!important;
}
body.tv.board-only #raceShowcaseScore .scoreGoldCoin{
  display:inline-grid!important;place-items:center!important;
  width:clamp(21px,1.75vw,28px)!important;
  height:clamp(21px,1.75vw,28px)!important;
  flex:0 0 auto!important;aspect-ratio:1!important;
  border-radius:50%!important;
  border:2px solid #ffeaa2!important;
  background:radial-gradient(circle at 33% 25%,#fff9c1,#f7c444 40%,#c6811a 80%)!important;
  color:#87500d!important;font-size:clamp(11px,1vw,17px)!important;
  text-shadow:0 1px #fff5ac!important;
  box-shadow:0 2px 6px #0008,inset 0 0 0 1px #b9781899!important;
}
body.tv.board-only #raceShowcaseScore .scoreCardGlyph{
  display:inline-grid!important;place-items:center!important;
  width:clamp(20px,1.55vw,26px)!important;
  height:clamp(23px,1.85vw,30px)!important;
  flex:0 0 auto!important;
  border:1.5px solid #e1f4ff!important;
  border-radius:4px!important;
  background:linear-gradient(145deg,#6ca9d9,#2c6197 55%,#193c6d)!important;
  box-shadow:2px 2px 0 #091b34,0 2px 6px #0005!important;
  color:#eaf6ff!important;font-size:clamp(13px,1.2vw,18px)!important;
  transform:rotate(-5deg)!important;
}
body.tv.board-only #raceShowcaseScore .scoreIdentity,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreIdentity{
  margin:0!important;
  padding:0 2px!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar {
  box-sizing:border-box!important;
  display:grid!important;place-items:center!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 35% 26%,#a4d9de,#407a9b 68%,#214a71)!important;
  border:1.5px solid #deeff7bb!important;
  box-shadow:inset 0 2px 2px #ffffff55,0 2px 8px #031021aa!important;
  overflow:hidden!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar img {
  width:100%!important;height:100%!important;
  object-fit:cover!important;border-radius:50%!important;
}
body.tv.board-only #raceShowcaseScore .scoreName{
  letter-spacing:.005em!important;
  color:#fffdf7!important;
  font-weight:950!important;
  text-shadow:0 2px 4px #051123!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isTurn,
body.tv.board-only #raceShowcaseScore .scoreRow[aria-current="true"] {
  background:linear-gradient(145deg,#63532b,#274d59 65%,#143b4a)!important;
  border:2px solid #ffe08f!important;
  box-shadow:0 0 0 1px #b68a36,0 0 18px #f4be3d66,
    inset 0 1px 0 #fff5ba8c!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isTurn::before {
  background:linear-gradient(90deg,#f1b840,#fff0a0,#e4a536)!important;
  opacity:1!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase:not(.isTurn){
  border-color:#b9e9ca!important;
  box-shadow:0 0 15px #6ce5b533,inset 0 1px #fff5!important;
}
@media(max-width:900px){
 body.tv.board-only #raceShowcaseScore .scoreRow,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  padding:5px 8px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{
  gap:5px!important;
 }
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scorePlace{
  padding:2px 6px!important;min-width:36px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreGoldCoin{
  width:18px!important;height:18px!important;border-width:1px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreCardGlyph{
  width:17px!important;height:20px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{gap:4px!important}
}
@media(prefers-reduced-motion:reduce){
 body.tv.board-only #raceShowcaseScore .scoreRow{transition:none!important}
}

/* Nov 19 — character-first standings. Mario Kart-inspired information hierarchy,
   but original Critter Party art, colours, coin/card icons and player data. */
body.tv.board-only{--ccc-board-standings-height:clamp(132px,19dvh,194px)}
body.tv.board-only #raceShowcaseScore{
 padding:clamp(8px,1vh,14px) clamp(10px,1.7vw,28px)!important;
 background:linear-gradient(180deg,#17334af8,#0f2339fc)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows{
 gap:clamp(6px,.85vw,14px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 display:grid!important;
 grid-template-columns:minmax(33px,.7fr) minmax(50px,1.5fr) minmax(54px,.9fr)!important;
 grid-template-rows:minmax(0,1fr) auto!important;
 grid-template-areas:"place portrait stats" "name name name"!important;
 align-items:center!important;
 column-gap:clamp(2px,.5vw,9px)!important;
 row-gap:3px!important;
 padding:clamp(5px,.6vw,10px)!important;
 overflow:visible!important;
 border-radius:clamp(12px,1.2vw,19px)!important;
 background:linear-gradient(145deg,#376d89,#214c70 53%,#173953)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child{
 background:linear-gradient(135deg,#f9d980,#dca74b 65%,#b67d2b)!important;
 border-color:#ffebaf!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:nth-child(2){
 background:linear-gradient(135deg,#d5eafc,#80b7e0 55%,#4d8fca)!important;
 border-color:#d9efff!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:nth-child(3){
 background:linear-gradient(135deg,#ffdac4,#e7a899 55%,#bf7f7e)!important;
 border-color:#ffe1d2!important;
}
body.tv.board-only #raceShowcaseScore .scoreIdentity,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreIdentity{
 display:contents!important;
}
body.tv.board-only #raceShowcaseScore .scorePlace{
 grid-area:place!important;
 min-width:0!important;
 justify-self:center!important;
 font-size:clamp(16px,1.85vw,30px)!important;
 background:transparent!important;border:0!important;
 box-shadow:none!important;padding:0!important;
 color:#fff9e9!important;text-shadow:0 2px 3px #4b2b2bcc!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 grid-area:portrait!important;
 justify-self:center!important;
 width:clamp(43px,5vw,79px)!important;
 height:clamp(43px,5vw,79px)!important;
 max-width:100%!important;
 flex:none!important;
 font-size:clamp(30px,4vw,58px)!important;
 background:transparent!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;
 overflow:visible!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar img,
body.tv.board-only #raceShowcaseScore .scoreAvatar img.ccc-board-hud-selfie{
 width:100%!important;height:100%!important;
 object-fit:contain!important;border-radius:0!important;
 filter:drop-shadow(0 3px 3px #182a3b77);
}
body.tv.board-only #raceShowcaseScore .scoreName{
 grid-area:name!important;align-self:end!important;justify-self:stretch!important;
 width:100%!important;max-width:100%!important;
 padding:4px 7px!important;border-radius:999px!important;
 box-sizing:border-box!important;
 background:linear-gradient(180deg,#80573e,#563b30)!important;
 border:1px solid #f5ca91!important;
 box-shadow:0 2px 4px #0005!important;
 color:#fff7e8!important;font-size:clamp(12px,1.15vw,18px)!important;
 text-align:center!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{
 grid-area:stats!important;display:flex!important;
 flex-direction:column!important;align-items:flex-end!important;
 justify-self:end!important;justify-content:center!important;
 gap:clamp(2px,.45vh,7px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow :is(.scoreCoins,.scoreCards){
 display:inline-flex!important;flex-direction:row-reverse!important;
 justify-content:flex-end!important;gap:4px!important;
 font-size:clamp(13px,1.4vw,23px)!important;
 color:#fffdf6!important;text-shadow:0 2px 3px #312a32a8!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreGoldCoin{
 background:radial-gradient(circle at 32% 23%,#fff6b7,#ffc43e 50%,#bb7817)!important;
 border-color:#fff0a5!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreCardGlyph{
 background:linear-gradient(145deg,#ffeb8b,#e9b837)!important;
 border-color:#fff1a8!important;color:#81551e!important;
 transform:none!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isTurn{
 outline:3px solid #ffdc65!important;outline-offset:-2px!important;
}
/* For larger groups, retain every player in a second row without clipping. */
body.tv.board-only:has(#raceShowcaseScore .scoreRow:nth-child(5)){
 --ccc-board-standings-height:clamp(210px,29dvh,300px);
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)){
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(0,1fr))!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow{
 padding:3px 5px!important;gap:1px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreAvatar{
 width:clamp(29px,3.3vw,55px)!important;height:clamp(29px,3.3vw,55px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreName{
 font-size:clamp(10px,.9vw,14px)!important;padding:2px 3px!important;
}
@media(max-width:700px){
 body.tv.board-only{--ccc-board-standings-height:clamp(150px,25dvh,220px)}
 body.tv.board-only #raceShowcaseScore .scoreRows{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  grid-template-columns:minmax(28px,.7fr) minmax(37px,1.5fr) minmax(46px,1fr)!important;
  padding:3px 5px!important;gap:1px 3px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreAvatar{
  width:clamp(29px,6vw,44px)!important;height:clamp(29px,6vw,44px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreName{font-size:clamp(10px,2vw,13px)!important;padding:2px 4px!important}
 body.tv.board-only #raceShowcaseScore .scoreRow :is(.scoreCoins,.scoreCards){font-size:11px!important}
 body.tv.board-only:has(#raceShowcaseScore .scoreRow:nth-child(5)){
  --ccc-board-standings-height:clamp(220px,40dvh,330px);
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)){
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
 }
}

/* Nov 19 compact HUD correction: protect the 3D playfield.
   Four-player TV HUD uses ~10% screen height, not ~19%.
   More players scale density instead of doubling the footprint. */
body.tv.board-only{
 --ccc-board-standings-height:clamp(92px,10.4dvh,120px)!important;
}
body.tv.board-only #raceShowcaseScore{
 padding:clamp(3px,.45vh,6px) clamp(6px,1vw,16px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows{
 gap:clamp(4px,.65vw,10px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 grid-template-columns:minmax(30px,.7fr) minmax(38px,1.3fr) minmax(47px,.85fr)!important;
 grid-template-rows:minmax(0,1fr) auto!important;
 column-gap:clamp(2px,.3vw,5px)!important;
 row-gap:1px!important;
 padding:3px clamp(4px,.55vw,9px)!important;
 border-radius:clamp(8px,.75vw,13px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 width:clamp(36px,3.65vw,58px)!important;
 height:clamp(36px,3.65vw,58px)!important;
 font-size:clamp(28px,3vw,45px)!important;
}
body.tv.board-only #raceShowcaseScore .scorePlace{
 font-size:clamp(14px,1.5vw,23px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreName{
 padding:2px 5px!important;
 font-size:clamp(10px,.98vw,15px)!important;
 line-height:1.05!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{
 gap:1px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow :is(.scoreCoins,.scoreCards){
 font-size:clamp(11px,1.06vw,17px)!important;
 line-height:1!important;gap:3px!important;
}
body.tv.board-only #raceShowcaseScore .scoreGoldCoin{
 width:clamp(15px,1.4vw,21px)!important;
 height:clamp(15px,1.4vw,21px)!important;
 font-size:clamp(9px,.8vw,13px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreCardGlyph{
 width:clamp(14px,1.25vw,19px)!important;
 height:clamp(16px,1.4vw,21px)!important;
 font-size:clamp(9px,.8vw,13px)!important;
}
/* Maximum ten competitors: two rows, but no giant bottom overlay. */
body.tv.board-only:has(#raceShowcaseScore .scoreRow:nth-child(5)){
 --ccc-board-standings-height:clamp(140px,17.5dvh,190px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)){
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(0,1fr))!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase{
 grid-template-columns:minmax(24px,.7fr) minmax(29px,1.3fr) minmax(36px,.9fr)!important;
 padding:2px 4px!important;gap:1px 2px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreAvatar{
 width:clamp(25px,2.9vw,43px)!important;
 height:clamp(25px,2.9vw,43px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scorePlace{
 font-size:clamp(11px,1.05vw,16px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreName{
 font-size:clamp(9px,.78vw,12px)!important;
 padding:1px 3px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) :is(.scoreCoins,.scoreCards){
 font-size:clamp(9px,.84vw,12px)!important;
}
@media(max-width:700px){
 body.tv.board-only{--ccc-board-standings-height:clamp(100px,19dvh,142px)!important;}
 body.tv.board-only #raceShowcaseScore .scoreRows{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  grid-template-columns:minmax(24px,.7fr) minmax(28px,1.3fr) minmax(35px,.9fr)!important;
  padding:1px 3px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreAvatar{
  width:clamp(24px,5.6vw,34px)!important;
  height:clamp(24px,5.6vw,34px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scorePlace{font-size:clamp(11px,2vw,15px)!important}
 body.tv.board-only #raceShowcaseScore .scoreName{font-size:clamp(9px,1.8vw,12px)!important;padding:1px 2px!important}
 body.tv.board-only #raceShowcaseScore .scoreRow :is(.scoreCoins,.scoreCards){font-size:10px!important}
 body.tv.board-only:has(#raceShowcaseScore .scoreRow:nth-child(5)){
  --ccc-board-standings-height:clamp(170px,31dvh,230px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)){
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
 }
}

/* Final podium polish — keep the compact board lane unchanged.
   Larger original critter portraits, without increasing HUD height. */
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 grid-template-columns:minmax(30px,.64fr) minmax(44px,1.48fr) minmax(47px,.86fr)!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 width:clamp(42px,4.2vw,68px)!important;
 height:clamp(42px,4.2vw,68px)!important;
 max-height:100%!important;
 font-size:clamp(30px,3.3vw,48px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar img{
 filter:drop-shadow(0 2px 3px #10223477)!important;
}
body.tv.board-only #raceShowcaseScore .scorePlace{
 position:relative!important;
 font-size:clamp(14px,1.5vw,23px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace{
 color:#fff5bf!important;
 text-shadow:0 2px 3px #6e4b00aa!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
 content:"👑";position:absolute;
 top:-.62em;left:50%;transform:translateX(-50%);
 font-size:clamp(11px,.95vw,15px);line-height:1;
 filter:drop-shadow(0 1px 1px #0005);
}
body.tv.board-only #raceShowcaseScore .scoreRow:nth-child(2) .scorePlace{
 color:#f6faff!important;text-shadow:0 2px 3px #44627faa!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:nth-child(3) .scorePlace{
 color:#fff1e4!important;text-shadow:0 2px 3px #8f5a42aa!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:is(:first-child,:nth-child(2),:nth-child(3)) .scorePlace::after{
 content:"";position:absolute;left:50%;bottom:-.22em;
 transform:translateX(-50%);width:1.7em;height:2px;
 border-radius:999px;opacity:.9;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::after{
 background:linear-gradient(90deg,#e3b84b,#fff2a8,#d69d2d);
}
body.tv.board-only #raceShowcaseScore .scoreRow:nth-child(2) .scorePlace::after{
 background:linear-gradient(90deg,#b9d3e8,#f6fbff,#8fb2cf);
}
body.tv.board-only #raceShowcaseScore .scoreRow:nth-child(3) .scorePlace::after{
 background:linear-gradient(90deg,#d39a73,#f6d0b8,#b97656);
}
/* Large groups must not cause the portraits to increase board obstruction. */
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreAvatar{
 width:clamp(29px,3.15vw,47px)!important;
 height:clamp(29px,3.15vw,47px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow{
 grid-template-columns:minmax(24px,.7fr) minmax(29px,1.3fr) minmax(36px,.9fr)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  width:clamp(27px,6vw,38px)!important;
  height:clamp(27px,6vw,38px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  grid-template-columns:minmax(24px,.7fr) minmax(28px,1.3fr) minmax(35px,.9fr)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreAvatar{
  width:clamp(24px,5vw,32px)!important;height:clamp(24px,5vw,32px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
  top:-.5em;font-size:10px;
 }
}

/* Nameplate clearance and crown adjustment — no change to reserved HUD height.
   Keep the existing portrait dimensions while preventing characters from obscuring names. */
body.tv.board-only #raceShowcaseScore .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 position:relative!important;
 z-index:1!important;
 transform:translateY(-4px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreName{
 position:relative!important;
 z-index:3!important;
 isolation:isolate!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
 top:-.85em!important;
 font-size:clamp(15px,1.25vw,20px)!important;
 filter:drop-shadow(0 1px 2px #55350088)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  transform:translateY(-2px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
  top:-.65em!important;
  font-size:clamp(11px,2vw,14px)!important;
 }
}

/* Two-player presentation and final portrait clearance. */
body.tv.board-only #raceShowcaseScore .scoreRows:has(> .scoreRow:nth-child(2)):not(:has(> .scoreRow:nth-child(3))){
 grid-template-columns:repeat(2,minmax(0,min(34vw,430px)))!important;
 justify-content:center!important;
}
body.tv.board-only #raceShowcaseScore .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 transform:translateY(-7px)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRows:has(> .scoreRow:nth-child(2)):not(:has(> .scoreRow:nth-child(3))){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  transform:translateY(-4px)!important;
 }
}

/* Compact TV standings — improved portrait clarity and conditional chase distance. */
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 grid-template-areas:"place portrait stats" "chase chase chase" "name name name"!important;
 grid-template-rows:minmax(0,1fr) auto auto!important;
 row-gap:1px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreChaseBadge{display:none!important}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance{
 grid-area:chase!important;display:block!important;justify-self:center!important;
 max-width:100%!important;min-width:0!important;
 padding:1px clamp(4px,.5vw,9px)!important;border-radius:999px!important;
 background:linear-gradient(180deg,#fff1c8,#eec66f)!important;
 border:1px solid #f9db98!important;color:#25374c!important;
 font:850 clamp(8px,.82vw,13px)/1.12 system-ui,sans-serif!important;
 text-shadow:none!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 box-shadow:0 1px 3px #0003!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{
 padding-inline:clamp(2px,.35vw,6px)!important;
 gap:clamp(2px,.4vh,6px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreName{
 padding:1px 5px!important;line-height:1.05!important;
}
body.tv.board-only #raceShowcaseScore .scorePlace{
 text-align:center!important;white-space:nowrap!important;
 font-size:clamp(11px,1.22vw,19px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:not(.isFinalChase) .scoreAvatar{
 width:clamp(44px,4.4vw,70px)!important;height:clamp(44px,4.4vw,70px)!important;
 transform:translateY(-3px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 width:clamp(36px,3.6vw,57px)!important;height:clamp(36px,3.6vw,57px)!important;
 transform:none!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreAvatar{
 width:clamp(25px,2.8vw,42px)!important;height:clamp(25px,2.8vw,42px)!important;transform:none!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scorePlace{
 font-size:clamp(9px,.88vw,13px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreChaseDistance{
 font-size:clamp(8px,.65vw,10px)!important;padding:1px 2px!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar{
  width:clamp(25px,5vw,36px)!important;height:clamp(25px,5vw,36px)!important;transform:none!important;
 }
 body.tv.board-only #raceShowcaseScore .scorePlace{font-size:clamp(9px,1.7vw,13px)!important}
 body.tv.board-only #raceShowcaseScore .scoreChaseDistance{font-size:clamp(8px,1.3vw,10px)!important}
}

/* Nov 19 — final alignment correction; preserve the compact reserved lane.
   The win hint is its own grid child, so the nameplate always remains last. */
/* Visibility is controlled by the renderer: do not globally hide win progress. */
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr) minmax(0,.85fr)!important;
 align-items:center!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:not(.isFinalChase){
 grid-template-areas:"place portrait stats" "name name name"!important;
 grid-template-rows:minmax(0,1fr) 19px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 grid-template-areas:"place portrait stats" "chase chase chase" "name name name"!important;
 grid-template-rows:minmax(0,1fr) 16px 19px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreIdentity{
 display:contents!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreChaseDistance,
body.tv.board-only #raceShowcaseScore .scoreRow .scoreChaseBadge{
 display:none!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
 grid-area:chase!important;
 display:block!important;
 justify-self:center!important;
 align-self:center!important;
 max-width:100%!important;min-width:0!important;
 border:1px solid #f6d891!important;
 border-radius:999px!important;
 background:linear-gradient(#fff0bf,#ecc46d)!important;
 box-shadow:0 1px 2px #0005!important;
 color:#23344a!important;
 padding:1px 9px!important;
 font:850 clamp(9px,.85vw,13px)/1.15 system-ui,sans-serif!important;
 text-shadow:none!important;
 text-align:center!important;
 white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName{
 grid-area:name!important;
 align-self:stretch!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;
 height:19px!important;min-height:0!important;
 padding:0 6px!important;
 margin:0!important;
 position:relative!important;
 font-size:clamp(10px,.98vw,15px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 grid-area:portrait!important;
 justify-self:center!important;align-self:center!important;
 width:clamp(42px,4vw,60px)!important;
 height:clamp(42px,4vw,60px)!important;
 max-height:none!important;
 transform:none!important;
 z-index:1!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{
 grid-area:stats!important;align-self:center!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
 grid-area:place!important;align-self:center!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow:not(.isFinalChase){
 grid-template-rows:minmax(0,1fr) 15px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase{
 grid-template-rows:minmax(0,1fr) 12px 15px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreName{
 height:15px!important;font-size:clamp(9px,.75vw,12px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar{
 width:clamp(25px,2.65vw,40px)!important;height:clamp(25px,2.65vw,40px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreBoardWinDistance{
 font-size:clamp(8px,.67vw,10px)!important;padding:0 3px!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  width:clamp(25px,5.5vw,35px)!important;height:clamp(25px,5.5vw,35px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
  font-size:9px!important;padding:0 4px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName{
  height:16px!important;font-size:clamp(9px,1.7vw,12px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow:not(.isFinalChase){
  grid-template-rows:minmax(0,1fr) 16px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  grid-template-rows:minmax(0,1fr) 12px 16px!important;
 }
}

/* Nov 19 fullscreen regression fix: anchor the three visual levels to the
   card itself, independent of the legacy .scoreIdentity layout and grid
   auto-placement. The nameplate must NEVER move above the portrait. */
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 position:relative!important;
 isolation:isolate!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreIdentity,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreIdentity{
 display:contents!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
 position:absolute!important;
 inset:auto clamp(4px,.5vw,8px) 4px clamp(4px,.5vw,8px)!important;
 width:auto!important;
 max-width:none!important;
 height:19px!important;
 min-height:19px!important;
 margin:0!important;
 z-index:5!important;
 align-self:auto!important;
 justify-self:auto!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 position:absolute!important;
 top:4px!important;
 left:50%!important;
 right:auto!important;
 bottom:auto!important;
 transform:translateX(-50%)!important;
 width:clamp(42px,4vw,60px)!important;
 height:clamp(42px,4vw,60px)!important;
 max-height:calc(100% - 30px)!important;
 z-index:2!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 49px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
 position:absolute!important;
 inset:auto auto 26px 50%!important;
 transform:translateX(-50%)!important;
 width:max-content!important;
 max-width:calc(100% - 12px)!important;
 height:16px!important;
 box-sizing:border-box!important;
 z-index:4!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace,
body.tv.board-only #raceShowcaseScore .scoreRow .scoreStats{
 position:relative!important;
 align-self:start!important;
 z-index:3!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreName{
 bottom:2px!important;height:15px!important;min-height:15px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar{
 width:clamp(25px,2.65vw,40px)!important;
 height:clamp(25px,2.65vw,40px)!important;
 max-height:calc(100% - 22px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 36px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreBoardWinDistance{
 bottom:19px!important;height:13px!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  bottom:2px!important;height:16px!important;min-height:16px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  width:clamp(25px,5.5vw,35px)!important;
  height:clamp(25px,5.5vw,35px)!important;
  max-height:calc(100% - 38px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
  bottom:20px!important;height:12px!important;
 }
}

/* Fullscreen HUD refinement: restore safe clearance for rank and crown.
   Keep every item within the existing fixed-height player card. */
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
 position:absolute!important;
 top:clamp(9px,1.15vh,14px)!important;
 left:clamp(7px,.8vw,13px)!important;
 right:auto!important;bottom:auto!important;
 align-self:auto!important;justify-self:auto!important;
 padding:0!important;
 line-height:1.15!important;
 z-index:4!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
 top:-.72em!important;
 font-size:clamp(10px,.85vw,14px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 top:clamp(7px,.85vh,11px)!important;
 max-height:calc(100% - 40px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 59px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName{
 bottom:4px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
 bottom:26px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scorePlace{
 top:clamp(4px,.55vh,8px)!important;
 left:4px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar{
 top:3px!important;
 max-height:calc(100% - 24px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 38px)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
  top:5px!important;left:4px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:3px!important;
 }
}

/* Keep multi-dice reveals entirely above the reserved fullscreen board HUD.
   This includes standard double/triple dice and the final-chase +3 boost. */
body.tv.board-only #cccMultiDiceTV,
body.tv.board-only #cccMultiDiceTV[data-boost="true"]{
 bottom:calc(var(--ccc-board-standings-height) + 12px)!important;
 max-height:calc(100dvh - var(--ccc-board-standings-height) - 28px)!important;
 max-width:min(94vw,660px)!important;
 box-sizing:border-box!important;
 overflow:hidden!important;
}
@media(max-height:680px){
 body.tv.board-only #cccMultiDiceTV,
 body.tv.board-only #cccMultiDiceTV[data-boost="true"]{
  padding:7px 13px!important;
  font-size:clamp(14px,2.3vh,20px)!important;
 }
 body.tv.board-only #cccMultiDiceTV .multiDiceRow{
  margin:5px 0!important;gap:clamp(5px,1vw,10px)!important;
 }
 body.tv.board-only #cccMultiDiceTV .multiDiceFace{
  width:clamp(35px,9vh,64px)!important;
  padding:clamp(4px,.8vh,8px)!important;
 }
 body.tv.board-only #cccMultiDiceTV .multiDiceTotal{
  font-size:clamp(14px,2.7vh,20px)!important;
  line-height:1.15!important;
 }
}

/* Final portrait and rank decoration clearance, Nov 19.
   Never crop critter ears, heads, or faces in compact fullscreen scorecards. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 top:7px!important;
 width:clamp(34px,3.3vw,51px)!important;
 height:clamp(34px,3.3vw,51px)!important;
 max-height:calc(100% - 40px)!important;
 overflow:visible!important;
 box-sizing:border-box!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar img,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar img,
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar img.ccc-board-hud-selfie{
 display:block!important;
 width:100%!important;
 height:100%!important;
 max-width:100%!important;
 max-height:100%!important;
 object-fit:contain!important;
 object-position:center center!important;
 border-radius:0!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 57px)!important;
}
/* The previous metallic underline/marker was visible through 'Tied 1st'
   and could look like a stray shape. Remove it for all placements. */
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace::after{
 content:none!important;display:none!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
 top:-.62em!important;left:50%!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 top:4px!important;
 width:clamp(23px,2.35vw,34px)!important;
 height:clamp(23px,2.35vw,34px)!important;
 max-height:calc(100% - 25px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 40px)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:4px!important;
  width:clamp(23px,5vw,33px)!important;
  height:clamp(23px,5vw,33px)!important;
  max-height:calc(100% - 36px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  max-height:calc(100% - 49px)!important;
 }
}

/* Portrait-first HUD: reserve a little extra board height rather than
   allowing the character art to disappear beneath the bottom nameplate. */
body.tv.board-only{
 --ccc-board-standings-height:clamp(124px,14dvh,156px)!important;
}
body.tv.board-only:has(#raceShowcaseScore .scoreRow:nth-child(5)){
 --ccc-board-standings-height:clamp(202px,23dvh,252px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 top:clamp(8px,1vh,12px)!important;
 width:clamp(58px,6.4vw,82px)!important;
 height:clamp(58px,6.4vw,82px)!important;
 max-height:calc(100% - 44px)!important;
 overflow:visible!important;
 transform:translateX(-50%)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 66px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar img,
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar img.ccc-board-hud-selfie{
 width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center center!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName{
 bottom:5px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
 bottom:29px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 top:5px!important;
 width:clamp(37px,3.9vw,54px)!important;
 height:clamp(37px,3.9vw,54px)!important;
 max-height:calc(100% - 26px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 max-height:calc(100% - 42px)!important;
}
@media(max-width:700px){
 body.tv.board-only{--ccc-board-standings-height:clamp(174px,26dvh,232px)!important;}
 body.tv.board-only:has(#raceShowcaseScore .scoreRow:nth-child(5)){
  --ccc-board-standings-height:clamp(236px,38dvh,316px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:4px!important;
  width:clamp(31px,6vw,48px)!important;
  height:clamp(31px,6vw,48px)!important;
  max-height:calc(100% - 24px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  max-height:calc(100% - 38px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName{bottom:2px!important;}
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{bottom:20px!important;}
 body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar{
  width:clamp(24px,5vw,36px)!important;height:clamp(24px,5vw,36px)!important;
 }
}

/* Nov 19 — seamless floating standings over the live 3D board.
   Keep the existing card heights and contents, remove only the solid footer.
   The board is full-height behind the non-interactive floating cards. */
body.tv.board-only #app>section.panel>#boardWrap{
 height:100%!important;
 flex:1 1 auto!important;
 min-height:0!important;
}
body.tv.board-only #raceShowcaseScore{
 position:fixed!important;
 inset:auto 0 0 0!important;
 width:100vw!important;
 height:var(--ccc-board-standings-height)!important;
 max-height:var(--ccc-board-standings-height)!important;
 padding:clamp(4px,.5vh,8px) clamp(10px,1.4vw,24px) clamp(5px,.75vh,10px)!important;
 background:transparent!important;
 border:0!important;
 border-top:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 pointer-events:none!important;
 isolation:isolate!important;
 overflow:visible!important;
}
body.tv.board-only #raceShowcaseScore::before,
body.tv.board-only #raceShowcaseScore::after{
 content:none!important;
 display:none!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows{
 position:relative!important;
 z-index:1!important;
 height:100%!important;
 background:transparent!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
 box-shadow:0 5px 12px #081a3080,inset 0 1px 0 #fff7cb66!important;
 border-width:1.5px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isTurn,
body.tv.board-only #raceShowcaseScore .scoreRow[aria-current="true"]{
 box-shadow:0 0 0 2px #ffe09d,0 7px 16px #0d213b99,inset 0 1px 0 #fff8c4a6!important;
}
/* Keep the board-view camera and all media overlays unaffected; player
   panels remain read-only, while dice results use the reserved height. */

/* Remove the rank crown entirely. The former ::before decoration was
   layered over the "Tied 1st" label even after the underline was removed. */
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace::before,
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before{
 content:none!important;
 display:none!important;
 background:none!important;
}

/* Fill the larger floating cards with readable rank, coins and Lucky Cards.
   Desktop 2–4 player view gets strong numbers/icons and deliberate spacing;
   preserve critter portrait clearance and compact 5–10 player treatment. */
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scorePlace{
 top:clamp(24px,3vh,37px)!important;
 left:clamp(15px,1.5vw,28px)!important;
 font-size:clamp(23px,1.9vw,34px)!important;
 line-height:1.12!important;
 letter-spacing:-.035em!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
 position:absolute!important;
 top:clamp(14px,1.9vh,26px)!important;
 right:clamp(12px,1.15vw,22px)!important;
 bottom:auto!important;left:auto!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-end!important;
 justify-content:flex-start!important;
 gap:clamp(10px,1.35vh,17px)!important;
 padding:0!important;
 width:auto!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
 font-size:clamp(23px,1.9vw,33px)!important;
 line-height:1.08!important;
 gap:clamp(6px,.6vw,11px)!important;
 font-variant-numeric:tabular-nums!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin{
 width:clamp(28px,2.25vw,39px)!important;
 height:clamp(28px,2.25vw,39px)!important;
 font-size:clamp(16px,1.35vw,23px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
 width:clamp(27px,2.05vw,36px)!important;
 height:clamp(29px,2.3vw,40px)!important;
 font-size:clamp(16px,1.35vw,23px)!important;
}
/* Narrower card widths must reduce the stat and placement footprint
   before it approaches the central critter artwork. */
@media(max-width:1150px){
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scorePlace{
  font-size:clamp(15px,2vw,24px)!important;
  left:clamp(6px,1vw,13px)!important;top:clamp(16px,2vh,25px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  top:9px!important;right:7px!important;gap:clamp(4px,.65vh,9px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
  font-size:clamp(14px,1.8vw,22px)!important;gap:3px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin,
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
  width:clamp(18px,2.25vw,28px)!important;height:clamp(18px,2.25vw,29px)!important;
 }
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scorePlace{
  top:5px!important;left:4px!important;font-size:clamp(10px,2.1vw,15px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  top:4px!important;right:4px!important;gap:3px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
  font-size:clamp(10px,2.2vw,14px)!important;gap:2px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin,
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
  width:clamp(15px,3vw,20px)!important;height:clamp(15px,3vw,20px)!important;
 }
}

/* Plain rank labels: no badge plate, halo, underline or decorative arcs.
   This applies to first place, ties, and every other rank. */
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace,
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace{
 background:transparent!important;
 background-image:none!important;
 border:0!important;
 border-radius:0!important;
 outline:0!important;
 box-shadow:none!important;
 padding:0!important;
 filter:none!important;
 text-decoration:none!important;
 isolation:isolate!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace::before,
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace::after,
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::before,
body.tv.board-only #raceShowcaseScore .scoreRow:first-child .scorePlace::after{
 content:none!important;
 display:none!important;
 background:none!important;
 border:0!important;
 box-shadow:none!important;
 filter:none!important;
}

/* Keep both stat rows in the space ABOVE the pinned player nameplate.
   Prior large icon sizing allowed the second (Lucky Cards) row to overlap it. */
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
 top:clamp(10px,1.35vh,18px)!important;
 bottom:clamp(39px,4.3vh,47px)!important;
 right:clamp(9px,1vw,18px)!important;
 height:auto!important;
 max-height:none!important;
 min-height:0!important;
 display:flex!important;
 flex-direction:column!important;
 justify-content:space-between!important;
 align-items:flex-end!important;
 gap:clamp(3px,.55vh,7px)!important;
 box-sizing:border-box!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
 display:inline-flex!important;
 flex:0 0 auto!important;
 align-items:center!important;
 justify-content:flex-start!important;
 font-size:clamp(19px,1.65vw,29px)!important;
 line-height:1!important;
 gap:clamp(4px,.4vw,8px)!important;
 margin:0!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin{
 width:clamp(24px,1.95vw,33px)!important;
 height:clamp(24px,1.95vw,33px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
 width:clamp(23px,1.85vw,31px)!important;
 height:clamp(25px,2vw,33px)!important;
}
@media(max-width:1150px){
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  top:7px!important;bottom:clamp(31px,4vh,40px)!important;
  right:6px!important;gap:2px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
  font-size:clamp(13px,1.65vw,20px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin,
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
  width:clamp(17px,1.9vw,25px)!important;
  height:clamp(18px,2.05vw,27px)!important;
 }
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  top:4px!important;bottom:22px!important;right:3px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
  font-size:clamp(10px,2vw,13px)!important;gap:2px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin,
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
  width:clamp(14px,2.7vw,19px)!important;
  height:clamp(14px,2.7vw,19px)!important;
 }
}

/* Nov 19 — lock the final-chase card into three non-overlapping vertical lanes.
   Keep portrait entirely above the win-distance ribbon and give every player
   (including AI Fox) an identical full-width bottom nameplate. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  position:absolute!important;
  top:auto!important;bottom:5px!important;
  left:clamp(7px,.9vw,14px)!important;
  right:clamp(7px,.9vw,14px)!important;
  width:auto!important;max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  height:25px!important;min-height:25px!important;
  padding:0 8px!important;
  margin:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  z-index:6!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  position:absolute!important;
  top:auto!important;bottom:36px!important;
  left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  height:21px!important;min-height:21px!important;
  line-height:17px!important;
  padding:1px 10px!important;
  max-width:calc(100% - 24px)!important;
  box-sizing:border-box!important;
  z-index:5!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:clamp(6px,.8vh,10px)!important;
  max-height:calc(100% - 73px)!important;
  width:min(clamp(58px,6.4vw,82px),calc(100% - 73px))!important;
  height:min(clamp(58px,6.4vw,82px),calc(100% - 73px))!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseBadge{
  display:none!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  bottom:2px!important;height:18px!important;min-height:18px!important;
  left:4px!important;right:4px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  bottom:23px!important;height:15px!important;min-height:15px!important;
  font-size:clamp(8px,1.3vw,10px)!important;
  line-height:11px!important;padding:1px 4px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:3px!important;max-height:calc(100% - 47px)!important;
  width:min(48px,calc(100% - 47px))!important;
  height:min(48px,calc(100% - 47px))!important;
 }
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreName{
  bottom:2px!important;height:16px!important;min-height:16px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreBoardWinDistance{
  bottom:21px!important;height:14px!important;min-height:14px!important;
  line-height:10px!important;padding:1px 4px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
  top:3px!important;max-height:calc(100% - 43px)!important;
  width:min(40px,calc(100% - 43px))!important;
  height:min(40px,calc(100% - 43px))!important;
}

/* Final-chase progress lives underneath the placing, never over the critter.
   Identical nameplate geometry whether a chase badge is visible or not. */
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  top:clamp(76px,10vh,106px)!important;
  bottom:auto!important;
  left:clamp(12px,1.4vw,25px)!important;
  right:auto!important;
  transform:none!important;
  width:max-content!important;
  max-width:calc(43% - 12px)!important;
  height:auto!important;
  min-height:22px!important;
  line-height:1.15!important;
  padding:3px 8px!important;
  font-size:clamp(10px,1.05vw,17px)!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  text-overflow:clip!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  left:clamp(7px,.9vw,14px)!important;
  right:clamp(7px,.9vw,14px)!important;
  width:calc(100% - 2 * clamp(7px,.9vw,14px))!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(max-width:1150px){
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  top:clamp(48px,7vh,78px)!important;
  left:clamp(5px,.8vw,12px)!important;
  max-width:calc(43% - 5px)!important;
  font-size:clamp(8px,1vw,12px)!important;
  padding:2px 4px!important;
 }
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  top:clamp(26px,6vh,48px)!important;
  left:3px!important;
  max-width:calc(43% - 3px)!important;
  min-height:0!important;
  font-size:clamp(7px,1.7vw,10px)!important;
  padding:1px 2px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  left:4px!important;right:4px!important;
  width:calc(100% - 8px)!important;
 }
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreBoardWinDistance{
 top:clamp(19px,4vh,32px)!important;
 left:3px!important;
 max-width:calc(45% - 3px)!important;
 min-height:0!important;
 font-size:clamp(7px,.7vw,10px)!important;
 line-height:1.08!important;
 padding:1px 2px!important;
}

/* Fix: win-progress is sometimes rendered on a non-finalChase row.
   Anchor to the card, not to the transient .isFinalChase class. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
  display:block!important;
  position:absolute!important;
  top:50%!important;bottom:auto!important;
  left:clamp(10px,1.15vw,22px)!important;right:auto!important;
  transform:translateY(-5%)!important;
  width:max-content!important;
  max-width:calc(39% - 12px)!important;
  height:auto!important;min-height:20px!important;
  box-sizing:border-box!important;
  padding:3px 6px!important;
  font:850 clamp(10px,.87vw,15px)/1.15 system-ui,sans-serif!important;
  white-space:normal!important;
  text-align:center!important;
  overflow:visible!important;
  z-index:5!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  display:block!important;
  top:50%!important;bottom:auto!important;
  left:clamp(10px,1.15vw,22px)!important;
  transform:translateY(-5%)!important;
  max-width:calc(39% - 12px)!important;
}
/* The nameplate and portrait must use the whole player card as their
   positioning context, not a legacy narrow identity column. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreIdentity,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreIdentity{
  position:static!important;
  transform:none!important;
  contain:none!important;
  display:contents!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  position:absolute!important;
  inset:auto clamp(8px,.9vw,16px) 5px clamp(8px,.9vw,16px)!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:clamp(20px,2.9vh,26px)!important;
  min-height:0!important;
  box-sizing:border-box!important;
  margin:0!important;
  z-index:7!important;
}
/* Character art ends above the nameplate; no ears, body or frame behind it. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:clamp(4px,.7vh,8px)!important;
  bottom:auto!important;
  max-height:calc(100% - 59px)!important;
  width:clamp(46px,5.6vw,76px)!important;
  height:clamp(46px,5.6vw,76px)!important;
  box-sizing:border-box!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  max-height:calc(100% - 59px)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  left:3px!important;top:47%!important;
  max-width:calc(41% - 5px)!important;
  min-height:0!important;
  font-size:clamp(7px,1.4vw,10px)!important;
  padding:1px 2px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  width:clamp(24px,5vw,38px)!important;
  height:clamp(24px,5vw,38px)!important;
  max-height:calc(100% - 31px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  inset:auto 4px 2px 4px!important;
  height:17px!important;
 }
}


/* Board HUD stable contract — same card in normal play and final chase.
   Keep win distance in the left rank lane. Use the rendered chase-distance
   element when the optional board-win element is absent. */
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  position:relative!important;
  isolation:isolate!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreIdentity{
  display:contents!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  position:absolute!important;
  left:clamp(8px,1vw,16px)!important;
  right:clamp(8px,1vw,16px)!important;
  bottom:clamp(5px,.8vh,9px)!important;
  top:auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:clamp(24px,3.5vh,35px)!important;
  min-height:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  z-index:8!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  position:absolute!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  top:clamp(5px,.8vh,9px)!important;
  width:clamp(46px,5.3vw,76px)!important;
  height:clamp(46px,5.3vw,76px)!important;
  max-width:100%!important;
  max-height:calc(100% - 58px)!important;
  bottom:auto!important;
  z-index:2!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
  position:absolute!important;
  left:clamp(10px,1.1vw,20px)!important;
  top:clamp(15px,2.5vh,30px)!important;
  z-index:4!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance{
  position:absolute!important;
  grid-area:auto!important;
  left:clamp(8px,.95vw,18px)!important;
  top:52%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translateY(-12%)!important;
  width:max-content!important;
  max-width:calc(40% - 12px)!important;
  height:auto!important;
  min-height:0!important;
  padding:3px 6px!important;
  box-sizing:border-box!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  text-overflow:clip!important;
  text-align:center!important;
  font:850 clamp(9px,.9vw,14px)/1.16 system-ui,sans-serif!important;
  background:linear-gradient(#fff0bf,#ecc46d)!important;
  border:1px solid #f6d891!important;
  border-radius:999px!important;
  color:#23344a!important;
  text-shadow:none!important;
  z-index:5!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance{
  display:block!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase:has(.scoreBoardWinDistance) .scoreChaseDistance{
  display:none!important;
}
/* A final-chase flag must not shrink the portrait or name bar. */
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  height:clamp(24px,3.5vh,35px)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  left:4px!important;right:4px!important;bottom:2px!important;
  height:17px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:3px!important;
  width:clamp(24px,5vw,38px)!important;
  height:clamp(24px,5vw,38px)!important;
  max-height:calc(100% - 29px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
  top:clamp(5px,1.5vh,13px)!important;left:4px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance{
  left:3px!important;top:47%!important;
  max-width:calc(42% - 4px)!important;
  font-size:clamp(7px,1.5vw,10px)!important;
  padding:1px 2px!important;
 }
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
  top:3px!important;
  width:clamp(24px,3vw,42px)!important;
  height:clamp(24px,3vw,42px)!important;
  max-height:calc(100% - 29px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreName{
  height:16px!important;bottom:2px!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreBoardWinDistance,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreChaseDistance{
  top:48%!important;left:3px!important;
  max-width:calc(43% - 4px)!important;
  font-size:clamp(7px,.7vw,10px)!important;
  padding:1px 2px!important;
}

/* Board HUD final card clearance v17 — 2026-11-19
   Stable four-zone layout: rank/progress | portrait | stats, plus fixed nameplate.
   Same dimensions with and without final chase. */
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  --hud-name-bottom:clamp(5px,.8vh,9px);
  --hud-name-height:clamp(23px,3.4vh,32px);
  --hud-safe-gap:12px;
  position:relative!important;
  box-sizing:border-box!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreName,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreName{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:absolute!important;
  top:auto!important;
  bottom:var(--hud-name-bottom)!important;
  left:clamp(8px,1vw,16px)!important;
  right:clamp(8px,1vw,16px)!important;
  height:var(--hud-name-height)!important;
  min-height:var(--hud-name-height)!important;
  width:auto!important;max-width:none!important;
  box-sizing:border-box!important;
  padding:0 8px!important;margin:0!important;
  z-index:6!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:clamp(5px,.8vh,9px)!important;
  left:50%!important;
  right:auto!important;bottom:auto!important;
  transform:translateX(-50%)!important;
  width:clamp(40px,5vw,72px)!important;
  height:clamp(40px,5vw,72px)!important;
  /* Reserve gap ABOVE nameplate even on short gameboard screens. */
  max-height:calc(100% - var(--hud-name-bottom) - var(--hud-name-height) - var(--hud-safe-gap) - 9px)!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar img{
  width:100%!important;height:100%!important;
  object-fit:contain!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  bottom:calc(var(--hud-name-bottom) + var(--hud-name-height) + 10px)!important;
  top:clamp(5px,1.35vh,16px)!important;
  height:auto!important;
  min-height:0!important;
  gap:3px!important;
  justify-content:space-between!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance{
  top:auto!important;
  bottom:calc(var(--hud-name-bottom) + var(--hud-name-height) + 10px)!important;
  left:clamp(6px,.9vw,14px)!important;
  transform:none!important;
  max-width:calc(38% - 8px)!important;
  z-index:5!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase:has(.scoreBoardWinDistance) .scoreChaseDistance{
  display:none!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  --hud-name-bottom:2px;
  --hud-name-height:17px;
  --hud-safe-gap:4px;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:3px!important;
  width:clamp(21px,4.5vw,34px)!important;
  height:clamp(21px,4.5vw,34px)!important;
  max-height:calc(100% - 27px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreChaseDistance{
  bottom:23px!important;
  left:3px!important;
  max-width:calc(41% - 5px)!important;
  padding:1px 2px!important;
  font-size:clamp(7px,1.3vw,10px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  bottom:24px!important;
 }
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase{
 --hud-name-bottom:2px;
 --hud-name-height:16px;
 --hud-safe-gap:4px;
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow.isFinalChase .scoreAvatar{
 top:3px!important;
 width:clamp(22px,2.8vw,38px)!important;
 height:clamp(22px,2.8vw,38px)!important;
 max-height:calc(100% - 25px)!important;
}

/* Nov 19 v18 — player card art and stat clearance.
   The nameplate is an untouchable footer zone; the portrait and stat icons
   must end ABOVE it. Matches the four-player board screenshot. */
body.tv.board-only #raceShowcaseScore .scoreRow,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
  --hud-upper-clearance:clamp(18px,2.6vh,27px);
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  width:clamp(38px,4.8vw,68px)!important;
  height:clamp(38px,4.8vw,68px)!important;
  max-height:calc(100% - var(--hud-name-bottom) - var(--hud-name-height) - var(--hud-upper-clearance) - 9px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
  top:clamp(5px,1vh,12px)!important;
  bottom:calc(var(--hud-name-bottom) + var(--hud-name-height) + var(--hud-upper-clearance))!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
  font-size:clamp(17px,1.5vw,26px)!important;
  line-height:1!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin{
  width:clamp(21px,1.75vw,29px)!important;
  height:clamp(21px,1.75vw,29px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
  width:clamp(20px,1.65vw,28px)!important;
  height:clamp(22px,1.8vw,30px)!important;
}
/* Prevent the conditional final-chase badge from changing the nameplate or
   pushing into the center portrait / right statistics. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance{
  bottom:calc(var(--hud-name-bottom) + var(--hud-name-height) + var(--hud-upper-clearance))!important;
  max-width:calc(38% - 8px)!important;
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase{
   --hud-upper-clearance:5px;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow .scoreStats{
   bottom:calc(var(--hud-name-bottom) + var(--hud-name-height) + 7px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreRow :is(.scoreCoins,.scoreCards){
   font-size:clamp(10px,2vw,13px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreGoldCoin,
 body.tv.board-only #raceShowcaseScore .scoreRows:not(:has(.scoreRow:nth-child(5))) .scoreCardGlyph{
   width:clamp(13px,2.5vw,18px)!important;
   height:clamp(13px,2.5vw,18px)!important;
 }
}

/* v19 — compact win-distance badge clearance: keep it wholly inside the left rank lane,
   separated from the central portrait and bottom nameplate. */
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  position:absolute!important;
  grid-area:unset!important;
  top:52%!important;
  bottom:auto!important;
  left:clamp(7px,1.1vw,17px)!important;
  right:auto!important;
  transform:none!important;
  width:max-content!important;
  max-width:calc(31% - 10px)!important;
  height:auto!important;
  min-height:0!important;
  padding:3px 5px!important;
  font:850 clamp(10px,.95vw,15px)/1.08 system-ui,sans-serif!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  box-sizing:border-box!important;
  text-align:center!important;
  z-index:5!important;
}
@media(max-width:1150px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
   top:53%!important;
   max-width:calc(33% - 6px)!important;
   font-size:clamp(8px,.9vw,12px)!important;
   padding:2px 3px!important;
 }
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
   top:48%!important;
   left:3px!important;
   max-width:calc(35% - 4px)!important;
   font-size:clamp(7px,1.4vw,10px)!important;
   padding:1px 2px!important;
 }
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreBoardWinDistance{
  top:45%!important;
  left:3px!important;
  max-width:calc(35% - 4px)!important;
  font-size:clamp(7px,.7vw,10px)!important;
  padding:1px 2px!important;
}

/* v21 — move win-distance badge beneath the placing label.
   Keep the position (1st/2nd/etc.) completely legible. */
/* v20 — subtle final spacing refinement.
   Raise compact progress badges a little; keep the rank above them,
   and preserve visible space between the portrait frame and nameplate.
   No changes to card width, name bar, coins, cards, or game logic. */
body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
  top:clamp(8px,1.5vh,18px)!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  top:60%!important;
  padding:2px 4px!important;
  font-size:clamp(9px,.84vw,13px)!important;
  line-height:1.05!important;
}
body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:clamp(3px,.55vh,6px)!important;
  width:clamp(36px,4.5vw,65px)!important;
  height:clamp(36px,4.5vw,65px)!important;
  max-height:calc(100% - var(--hud-name-bottom) - var(--hud-name-height) - var(--hud-upper-clearance) - 15px)!important;
}
@media(max-width:1150px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
   top:59%!important;
   font-size:clamp(8px,.82vw,11px)!important;
   padding:2px 3px!important;
 }
}
@media(max-width:700px){
 body.tv.board-only #raceShowcaseScore .scoreRow .scorePlace{
  top:3px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreBoardWinDistance,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreBoardWinDistance{
  top:57%!important;
  font-size:clamp(7px,1.3vw,9px)!important;
  padding:1px 2px!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreRow .scoreAvatar,
 body.tv.board-only #raceShowcaseScore .scoreRow.isFinalChase .scoreAvatar{
  top:2px!important;
  width:clamp(23px,4.6vw,34px)!important;
  height:clamp(23px,4.6vw,34px)!important;
  max-height:calc(100% - 31px)!important;
 }
}
body.tv.board-only #raceShowcaseScore .scoreRows:has(.scoreRow:nth-child(5)) .scoreRow .scoreBoardWinDistance{
  top:55%!important;
  font-size:clamp(7px,.67vw,9px)!important;
}
