/*
 * The live match block (stats/templates/stats/player_profile_v2/_live.html, presenter stats/player_profile_live.py):
 * the player profile's rating box and the creator profile's Live Activity card render the same template with these
 * rules. Moved unchanged from player_profile_v2.css; it is loaded after that file, so the cascade is as before.
 * Colors and fonts come from the --ppv2-* custom properties of the page that includes it.
 */
.ppv2-live-head { display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ppv2-muted); }
.ppv2-live-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ppv2-title); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ppv2-win); }
.ppv2-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(143, 211, 152, 0.6); animation: ppv2-live-pulse 2s ease-out infinite; }
.ppv2-live-badge--lobby { color: var(--ppv2-gold); }
.ppv2-live-badge--lobby i { animation: none; }
@keyframes ppv2-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 211, 152, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(143, 211, 152, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 211, 152, 0); } }
@media (prefers-reduced-motion: reduce) { .ppv2-live-badge i { animation: none; } }
.ppv2-live-queue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppv2-live-clock { margin-left: auto; font-family: var(--ppv2-title); font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ppv2-text-strong); }
/* Copy match link: the same share icon and "Link copied" wording as Live Activity's cards. */
.ppv2-live-link { position: relative; display: grid; flex: none; align-self: center; width: 30px; height: 28px; margin-left: auto; padding: 0; place-items: center; border: 1px solid rgba(232, 196, 111, 0.45); border-radius: 5px; background: rgba(232, 196, 111, 0.06); cursor: pointer; }
.ppv2-live-clock + .ppv2-live-link { margin-left: 0; }
.ppv2-live-link:hover, .ppv2-live-link:focus-visible { border-color: var(--ppv2-gold); background: rgba(232, 196, 111, 0.16); }
.ppv2-live-link:focus-visible { outline: 1px solid var(--ppv2-gold); outline-offset: 2px; }
.ppv2-live-link.is-copied { border-color: rgba(143, 211, 152, 0.8); }
.ppv2-live-link-icon { width: 15px; height: 15px; background: url("../assets/images/ui/Icon_Share_Gold.49afeadcf59c.png") center / contain no-repeat; background-image: image-set(url("../assets/optimized/images/ui/Icon_Share_Gold.cc1706aec8a0.webp") type("image/webp"), url("../assets/images/ui/Icon_Share_Gold.49afeadcf59c.png") type("image/png")); }
.ppv2-live-link-status { position: absolute; right: 0; bottom: calc(100% + 6px); padding: 4px 9px; border: 1px solid rgba(232, 196, 111, 0.4); border-radius: 6px; background: rgba(7, 11, 18, 0.96); color: var(--ppv2-gold-hot); font-family: var(--ppv2-title); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 140ms ease; }
.ppv2-live-link-status:not(:empty) { opacity: 1; }
.ppv2-live-map { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-family: var(--ppv2-title); font-size: 17px; color: var(--ppv2-text); }
.ppv2-live-map img { width: 64px; height: 40px; flex: none; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--ppv2-line); }
.ppv2-live-map small { margin-left: auto; font-family: var(--ppv2-body); font-size: 13px; color: var(--ppv2-faint); white-space: nowrap; }
.ppv2-live-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(232, 196, 111, 0.35); }
.ppv2-live-side { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ppv2-live-side li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 15px; }
.ppv2-live-side img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.45); }
.ppv2-live-side a, .ppv2-live-side span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ppv2-text); }
.ppv2-live-side li.is-self span { font-weight: 700; color: var(--ppv2-text-strong); }
.ppv2-live-side b { font-family: var(--ppv2-title); font-size: 15px; font-weight: 400; color: var(--ppv2-muted); }
.ppv2-live-side--them li { grid-template-columns: auto minmax(0, 1fr) 30px; text-align: right; }
.ppv2-live-side--them li img { grid-column: 3; grid-row: 1; }
.ppv2-live-side--them li b { grid-column: 1; grid-row: 1; }
/* Teams unknown: one list in source order. Never two columns, which would read as two teams. */
.ppv2-live-sides--roster { grid-template-columns: minmax(0, 1fr); }
.ppv2-live-note { margin: 10px 0 0; font-size: 13px; color: var(--ppv2-faint); }
.ppv2-live-vs { font-family: var(--ppv2-title); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(232, 196, 111, 0.9); }
.ppv2-live-win { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ppv2-muted); }
.ppv2-live-win-bar { display: flex; flex: 1; gap: 2px; height: 5px; }
.ppv2-live-win-bar i { border-radius: 3px; }
.ppv2-live-win-bar .is-mine { background: var(--ppv2-gold); }
.ppv2-live-win-bar .is-theirs { background: rgba(241, 228, 198, 0.22); }
.ppv2-live-win b { font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text-strong); }
.ppv2-live-action { display: inline-flex; gap: 8px; margin-top: 16px; padding: 9px 16px; border: 1px solid rgba(232, 196, 111, 0.55); border-radius: 6px; font-family: var(--ppv2-title); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ppv2-gold-hot); background: rgba(232, 196, 111, 0.08); }
.ppv2-live-action:hover, .ppv2-live-action:focus-visible { background: rgba(232, 196, 111, 0.16); border-color: var(--ppv2-gold); }
.ppv2-live-lobby { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(232, 196, 111, 0.35); font-size: 13px; color: var(--ppv2-muted); }
.ppv2-live-lobby a { margin-left: auto; font-family: var(--ppv2-title); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ppv2-gold-hot); }

@media (max-width: 760px) {
  .ppv2-live-clock { font-size: 19px; }
  .ppv2-live-sides { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ppv2-live-vs { justify-self: center; }
  .ppv2-live-side--them li { grid-template-columns: 30px minmax(0, 1fr) auto; text-align: left; }
  .ppv2-live-side--them li img { grid-column: 1; }
  .ppv2-live-side--them li b { grid-column: 3; }
}
