/* ===== t1257u (JB): uniform action buttons on every pick card (streaks, today's lines, floor lines, top-player tiles) =====
   PREVIEW-ONLY file: injected by tools/appfeel_preview/apply_cardsfix.py (called from out/preview/appfeel-20261112/rebuild_and_deploy.sh),
   NOT by appfeel_v1.py, so production never links it until JB says "make it live".
   Both buttons: identical 40px glass squares (44px hit area via ::after), same radius/style as the header buttons, 8px gap, fully inside
   the card with 12px right padding, vertically centred; a missing droplet keeps its slot (invisible spacer) so the + never moves. */
html[data-af]{--cf-b:40px;--cf-gap:8px;--cf-pad:12px;
  --cf-glass:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.03));--cf-bd:rgba(255,255,255,.13);
  --cf-hi:inset 0 1px 0 rgba(255,255,255,.14);--cf-sh:0 1px 2px rgba(0,0,0,.45),0 4px 10px rgba(0,0,0,.18)}

/* the action group */
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-acts,
html[data-af] #fl-list .fl .rv-acts{display:flex!important;flex-direction:row;align-items:center!important;justify-content:flex-end;gap:var(--cf-gap)!important;
  flex:0 0 auto;border:0!important;border-radius:0!important;background:none!important;margin:0;padding:0;box-shadow:none}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-water,html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-water-spacer{order:1}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-add{order:2}

/* one button look */
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) :is(.rv-add,.rv-water,.rv-water-spacer),
html[data-af] #fl-list .fl :is(.rv-add,.rv-water,.rv-water-spacer){
  position:relative;box-sizing:border-box;display:grid!important;place-items:center;
  width:var(--cf-b)!important;min-width:var(--cf-b)!important;max-width:var(--cf-b)!important;
  height:var(--cf-b)!important;min-height:var(--cf-b)!important;max-height:var(--cf-b)!important;flex:0 0 var(--cf-b)!important;
  margin:0!important;padding:0!important;align-self:center!important;grid-column:auto!important;grid-row:auto!important;
  border-radius:12px!important;border:1px solid var(--cf-bd)!important;
  background:var(--cf-glass)!important;box-shadow:var(--cf-hi),var(--cf-sh)!important;color:#46DCC8!important;
  -webkit-tap-highlight-color:transparent;transition:transform .14s ease,filter .14s ease;font:800 22px/1 "Space Grotesk",system-ui,sans-serif}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-water svg{width:18px!important;height:18px!important}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) :is(.rv-add,.rv-water)::after{content:"";position:absolute;inset:-2px}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-add[aria-pressed=true]{background:#46DCC8!important;color:#061015!important;border-color:rgba(70,220,200,.9)!important}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) :is(.rv-add,.rv-water):active{transform:scale(.95);filter:brightness(.92)}
@media (hover:hover){html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) :is(.rv-add,.rv-water):not(:disabled):hover{filter:brightness(1.12)}}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-water:disabled{opacity:.38}
/* the reserved slot: same box, nothing drawn, not tappable */
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) .rv-water-spacer,html[data-af] #fl-list .fl .rv-water-spacer{
  visibility:hidden;pointer-events:none;background:none!important;border-color:transparent!important;box-shadow:none!important}
html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) :is(.rv-add,.rv-water):focus:not(:focus-visible){outline:none}

/* ---- 1. hot streaks: [name / bet / pill] [buttons], pill under the bet so nothing is truncated ---- */
html[data-af] .rv-sk{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto;align-items:center;column-gap:10px!important;row-gap:5px;
  padding:10px var(--cf-pad) 10px 14px!important;min-height:76px}
html[data-af] .rv-sk .rv-sk-main{grid-column:1;grid-row:1;overflow:visible}
html[data-af] .rv-sk .rv-sk-l2{flex-wrap:wrap;overflow:visible;row-gap:0}
html[data-af] .rv-sk .rv-skln{font-size:20px;font-weight:800;letter-spacing:-.01em;line-height:1.2;white-space:normal}
html[data-af] .rv-sk .rv-skn-wrap{grid-column:1;grid-row:2;justify-self:start;align-self:start;flex-direction:row;align-items:center;gap:6px;max-width:100%}
html[data-af] .rv-sk .rv-acts{grid-column:2;grid-row:1 / span 2;align-self:center!important}

/* ---- 2. today's lines + other .rv-line cards ---- */
html[data-af] .rv-line{align-items:center!important;padding-right:var(--cf-pad)!important;min-height:92px}
html[data-af] .rv-line .rv-line-main{padding-left:12px;padding-right:0}
html[data-af] .rv-line .rv-acts{align-self:center!important;margin-left:10px}

/* ---- 3. floor lines (.fl): buttons in the right column, centred against the card header rows ---- */
html[data-af] #fl-list .fl,html[data-af] .fl:has(.rv-acts){grid-template-columns:minmax(0,1fr) auto auto!important;column-gap:10px;padding-right:var(--cf-pad)!important}
html[data-af] #fl-list .fl .rv-acts,html[data-af] .fl .rv-acts{grid-column:3!important;grid-row:1 / span 2!important;align-self:center!important}

/* ---- 4. top-player tiles: name gets the full row, bet under it, matchup full width, buttons bottom-right (same spot on every tile) ---- */
html[data-af] .rv-ptile{padding:10px!important}
html[data-af] .rv-ptile .ph{display:grid!important;grid-template-columns:minmax(0,1fr);row-gap:3px;align-items:center;justify-content:stretch}
html[data-af] .rv-ptile .ph>div:first-child{display:contents}
html[data-af] .rv-ptile .ph .topline{display:contents}
html[data-af] .rv-ptile .ph .topline>b{grid-column:1;grid-row:1;font-size:13px}
html[data-af] .rv-ptile .ph .topline>:not(b){grid-column:1;grid-row:2;min-width:0}
html[data-af] .rv-ptile .ph small{grid-column:1;grid-row:3;margin:0;white-space:normal}
html[data-af] .rv-ptile .ph .rv-acts{grid-column:1;grid-row:4;justify-self:end;margin-top:4px}
@media (prefers-reduced-motion:reduce){html[data-af] :is(.rv-sk,.rv-line,.fl,.rv-ptile .ph) :is(.rv-add,.rv-water){transition:none}}

/* ---- 5. floor-line cards: name on its own line, matchup under it; same outline droplet as every other card ---- */
html[data-af] .fl .who small{display:block;margin-left:0;margin-top:2px}
html[data-af] .fl .rv-water svg{display:none!important}
html[data-af] .fl .rv-water::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--cf-drop) center/contain no-repeat;mask:var(--cf-drop) center/contain no-repeat}
html[data-af]{--cf-drop:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3c-3.2 4.2-6 7.4-6 11a6 6 0 0 0 12 0c0-3.6-2.8-6.8-6-11z'/><path d='M12 10v6M9.5 14.5 12 17l2.5-2.5'/></svg>")}
