/* BK Sports v57 — Bold tappable team/player icons + one-time Home coach-mark.
   Volt stays only on Get the latest and the BK mark (slate.css). */

html:not([data-theme="light"]) {
  --tap-bg: rgba(143,166,188,0.24);
  --tap-ring: rgba(163,185,207,0.72);
  --tap-ring-w: 1.5px;
  --tap-press-bg: #2A3440;
  --tap-press-ring: rgba(199,216,230,0.9);
  --tap-chev-size: 16px;
  --tap-chev-op: 1;
  --tap-slate: var(--spark, #A3B9CF);
  --bubble-bg: #1A202A;
  --bubble-line: rgba(163,185,207,0.34);
  --bubble-shadow: 0 12px 28px rgba(0,0,0,0.48), 0 0 0 1px rgba(163,185,207,0.08);
  --hint-glow: rgba(163,185,207,0.42);
  --hint-glow-soft: rgba(163,185,207,0.16);
}
html[data-theme="light"] {
  --tap-bg: rgba(62,79,96,0.14);
  --tap-ring: rgba(62,79,96,0.4);
  --tap-ring-w: 1.5px;
  --tap-press-bg: #3E4F60;
  --tap-press-ring: #3E4F60;
  --tap-chev-size: 16px;
  --tap-chev-op: 1;
  --tap-slate: #3E4F60;
  --bubble-bg: #FFFFFF;
  --bubble-line: rgba(62,79,96,0.18);
  --bubble-shadow: 0 12px 28px rgba(20,28,40,0.16), 0 0 0 1px rgba(62,79,96,0.08);
  --hint-glow: rgba(62,79,96,0.38);
  --hint-glow-soft: rgba(62,79,96,0.14);
}

/* ===== Tappable logo / headshot chip ===== */
.tap {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--tap-bg);
  box-shadow: inset 0 0 0 var(--tap-ring-w) var(--tap-ring);
  line-height: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 80ms ease, background 80ms ease, box-shadow 80ms ease;
}
.tap.is-team { border-radius: 10px; }
.tap.is-player { border-radius: 50%; }
.tap img { display: block; position: relative; z-index: 1; background: transparent !important; }
.tap.is-team img { object-fit: contain; }
.tap.is-player img { object-fit: cover; border-radius: 50%; width: 100%; height: 100%; }
.tap .tap-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--muted);
  width: 100%;
  height: 100%;
}

.tap.sz-lg { width: 44px; height: 44px; }
.tap.sz-lg img, .tap.sz-lg .tap-fallback { width: 32px; height: 32px; }
.tap.sz-md { width: 38px; height: 38px; }
.tap.sz-md img, .tap.sz-md .tap-fallback { width: 26px; height: 26px; }
.tap.sz-sm { width: 32px; height: 32px; border-radius: 8px; }
.tap.sz-sm img, .tap.sz-sm .tap-fallback { width: 22px; height: 22px; }
.tap.sz-av { width: 48px; height: 48px; padding: 4px; }
.tap.sz-av.is-player img { width: 40px; height: 40px; }
.tap.sz-av .tap-fallback { font-size: 12px; }

/* Pressed state: 0.96 scale + darker fill */
.tap.is-pressed,
.tap:active,
[data-open-team]:active .tap,
[data-open-player]:active .tap,
[data-goto="player"]:active .tap,
[data-open-followed]:active .tap,
.hd-card .hd-top:active .tap,
.hd-g-row:active .tap,
.lb-side:active .tap,
.sc-team:active .tap,
.roster-row:active .tap,
.search-row .sr-main:active .tap,
.follow-item:active .tap,
.bkx-sopp:active .tap,
.pf-card:active .tap {
  transform: scale(0.96);
  background: var(--tap-press-bg);
  box-shadow: inset 0 0 0 var(--tap-ring-w) var(--tap-press-ring), inset 0 2px 5px rgba(0,0,0,0.28);
}
html:not([data-theme="light"]) .tap.is-pressed img,
html:not([data-theme="light"]) .tap:active img,
html:not([data-theme="light"]) [data-open-team]:active .tap img,
html:not([data-theme="light"]) [data-open-player]:active .tap img,
html:not([data-theme="light"]) .hd-card .hd-top:active .tap img,
html:not([data-theme="light"]) .lb-side:active .tap img,
html:not([data-theme="light"]) .sc-team:active .tap img,
html:not([data-theme="light"]) .roster-row:active .tap img,
html:not([data-theme="light"]) .search-row .sr-main:active .tap img {
  filter: brightness(1.1);
}
html[data-theme="light"] .tap.is-pressed img,
html[data-theme="light"] .tap:active img,
html[data-theme="light"] [data-open-team]:active .tap img,
html[data-theme="light"] [data-open-player]:active .tap img,
html[data-theme="light"] .hd-card .hd-top:active .tap img,
html[data-theme="light"] .lb-side:active .tap img,
html[data-theme="light"] .sc-team:active .tap img,
html[data-theme="light"] .roster-row:active .tap img,
html[data-theme="light"] .search-row .sr-main:active .tap img {
  filter: brightness(1.06);
}
html[data-theme="light"] .tap.is-pressed .tap-fallback,
html[data-theme="light"] .tap:active .tap-fallback { color: #F4F7FA; }

/* Name wrap (no chevron) */
.tap-name {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  cursor: pointer;
}
.tap-name b { min-width: 0; }

/* Home card logo wrap + first-visit pulse */
.hd-logo-wrap {
  position: relative;
  width: auto;
  height: auto;
  overflow: visible;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.hd-top { align-items: center; }
.hd-who { min-width: 0; }
.hd-who .tap-name { display: block; }
.hd-who .tap-name b { display: inline; font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.hd-card, .hd-top, .hd-scoreline, .hd-game, .hd-g-row, .hd-game-sides { overflow: visible; }
.hd-scoreline .tap { margin-right: 0; }

.hd-logo-wrap .logo-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 14px;
  border: 2px solid var(--tap-slate);
  box-shadow: 0 0 0 5px var(--hint-glow-soft);
  pointer-events: none;
  z-index: 0;
  animation: tip-ring 1.8s ease-out infinite;
}
@keyframes tip-ring {
  0% { transform: scale(0.94); opacity: 0.95; box-shadow: 0 0 0 0 var(--hint-glow-soft); }
  70% { transform: scale(1.2); opacity: 0; box-shadow: 0 0 0 10px transparent; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ===== Coach-mark tip ===== */
.tip-slot {
  position: relative;
  margin: 0 0 4px;
  min-height: 0;
  padding-bottom: 8px;
  z-index: 8;
}
.coach {
  position: relative;
  width: 278px;
  max-width: calc(100% - 8px);
  background: var(--bubble-bg);
  border: 1px solid var(--bubble-line);
  border-radius: 14px;
  box-shadow: var(--bubble-shadow);
  padding: 12px 12px 12px 14px;
  z-index: 8;
}
.coach p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}
.coach p.sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.coach-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.got-it {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bkx-sel-bg, #3A4A5E);
  color: var(--bkx-sel-ink, #F4F7FA);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--bkx-sel-border, rgba(163,185,207,0.55));
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.got-it:active { transform: scale(0.96); }
.coach-caret {
  position: absolute;
  left: 20px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--bubble-bg);
  border-right: 1px solid var(--bubble-line);
  border-bottom: 1px solid var(--bubble-line);
  transform: rotate(45deg);
  border-radius: 0 0 2px 0;
  z-index: 9;
}

/* ===== Live scoreboard ===== */
.lb-side {
  grid-template-columns: 38px 1fr auto;
  overflow: visible;
}
.lb-game, .lb-list, .lb-sec { overflow: visible; }
.lb-names .tap-name b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

/* Team-page / feed score embeds */
.sc-team { overflow: visible; display: inline-flex; align-items: center; gap: 8px; }
.sc-row, .emb-score, .emb.emb-score { overflow: visible; }
.sc-team .tap-name b { font-weight: 800; }

/* Search (override plus.css img sizing) */
.search-row { overflow: visible; }
.search-row .sr-main { overflow: visible; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.search-row .tap,
.search-row .tap img,
.search-row .tap.is-team img,
.search-row .tap.is-player img {
  width: auto;
  height: auto;
  border-radius: inherit;
  background: transparent;
}
.search-row .tap.sz-lg { width: 44px; height: 44px; }
.search-row .tap.sz-lg img, .search-row .tap.sz-lg .tap-fallback { width: 32px; height: 32px; }
.search-row .tap.sz-av { width: 48px; height: 48px; }
.search-row .tap.sz-av.is-player img { width: 40px; height: 40px; border-radius: 50%; }
.search-row .sr-name .tap-name { align-items: baseline; }
/* Ask BK row keeps its own volt BK mark — do not restyle .ask-row .sr-logo */

/* Roster */
.roster-row { overflow: visible; }
.roster-row .tap { margin-right: 0; }
.roster-row .rr-name .tap-name { align-items: baseline; }
.roster-row img { width: auto; height: auto; border-radius: inherit; }

/* My Feed followed lists + player cards */
.follow-item { overflow: visible; align-items: center; }
.follow-item .tap { margin-right: 0; }
.follow-item .nm .tap-name, .follow-item .goto .tap-name { align-items: baseline; }
.pf-card { overflow: visible; }
.pf-card .tap { flex-shrink: 0; }
.pf-card b.pf-name { display: inline-flex; align-items: baseline; gap: 4px; }

/* Team page schedule opponent */
.bkx-sopp { overflow: visible; display: inline-flex; align-items: center; gap: 6px; }
.bkx-sopp .tap { flex-shrink: 0; }
.bkx-sopp .tap-name { align-items: baseline; }

/* Discover/home game rows */
.hd-g-row { display: flex; align-items: center; gap: 8px; overflow: visible; }
.hd-g-row .tap-name { font-weight: 700; }

/* Chevrons were dropped: never show a leftover badge or arrow after a name. */
.tap-badge, .tap-chev { display: none !important; }
