/*
 * Player Profile v2 (redesign PR 3), behind ?layout=v2.
 * Visual language from Mark's "Player Profile v3" mockup (2026-10-30 export):
 * bracket-cornered navy panels, Cinzel headings over Baskervville body,
 * gold accents, green/coral for wins and losses. The mockup's literal colors
 * live in the custom properties below, in one place. Desktop first; the
 * phone pass is a later step.
 */

.ppv2 {
  --ppv2-ink: #070d19;
  --ppv2-text: #f6ead0;
  --ppv2-text-strong: #fff7e2;
  --ppv2-text-soft: #f1e4c6;
  --ppv2-muted: rgba(241, 228, 198, 0.74);
  --ppv2-faint: rgba(241, 228, 198, 0.62);
  --ppv2-gold: #e8c46f;
  --ppv2-gold-hot: #fff0bc;
  --ppv2-corner: #d7b268;
  --ppv2-line: rgba(213, 177, 101, 0.24);
  --ppv2-line-soft: rgba(213, 177, 101, 0.14);
  --ppv2-line-faint: rgba(213, 177, 101, 0.08);
  --ppv2-win: #8fd398;
  --ppv2-loss: #f0a58f;
  --ppv2-track: rgba(255, 255, 255, 0.06);
  --ppv2-panel-bg: linear-gradient(180deg, #111b2e, #0a1120);
  --ppv2-title: "Cinzel", Georgia, serif;
  --ppv2-body: "Baskervville", Georgia, serif;
  --ppv2-gutter: 48px;

  background:
    radial-gradient(1100px 520px at 82% 640px, rgba(36, 115, 126, 0.13), transparent 70%),
    radial-gradient(900px 700px at 6% 1700px, rgba(182, 122, 44, 0.07), transparent 70%),
    radial-gradient(1000px 700px at 90% 3000px, rgba(36, 115, 126, 0.09), transparent 70%),
    var(--ppv2-ink);
  color: var(--ppv2-text);
  font-family: var(--ppv2-body);
}

/* Layout classes set display; the hidden attribute must still win. */
.ppv2 [hidden] { display: none !important; }
.ppv2 a { color: var(--ppv2-gold); text-decoration: none; }
.ppv2 a:hover { color: var(--ppv2-gold-hot); }
.ppv2 .is-win { color: var(--ppv2-win); }
.ppv2 .is-loss { color: var(--ppv2-loss); }
.ppv2 h1, .ppv2 h2, .ppv2 h3, .ppv2 h4 { margin: 0; }

.ppv2-wrap { max-width: 1420px; margin-inline: auto; padding-inline: var(--ppv2-gutter); }
.ppv2-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 76px; padding-top: 44px; padding-bottom: 88px; }
.ppv2-main > *, .ppv2-tabpanel { min-width: 0; }
.ppv2-dot { color: rgba(213, 177, 101, 0.65); }
.ppv2-dash { margin: 0 0.3em; color: var(--ppv2-faint); }
.ppv2-icon-blank { display: inline-block; width: 32px; height: 32px; border-radius: 50%; background: var(--ppv2-track); }

/* The mockup's bracket frame: hairline border, inset outline, gold corner
   ticks drawn as eight gradients, and a highlight along the top edge. */
.ppv2-frame {
  border: 1px solid var(--ppv2-line);
  border-radius: 10px;
  outline: 1px solid rgba(213, 177, 101, 0.1);
  outline-offset: -6px;
  background:
    linear-gradient(90deg, rgba(255, 240, 188, 0) 20%, rgba(255, 240, 188, 0.5) 50%, rgba(255, 240, 188, 0) 80%) center top / 100% 1px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) left 11px top 11px / 14px 1.5px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) left 11px top 11px / 1.5px 14px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) right 11px top 11px / 14px 1.5px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) right 11px top 11px / 1.5px 14px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) left 11px bottom 11px / 14px 1.5px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) left 11px bottom 11px / 1.5px 14px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) right 11px bottom 11px / 14px 1.5px no-repeat,
    linear-gradient(var(--ppv2-corner), var(--ppv2-corner)) right 11px bottom 11px / 1.5px 14px no-repeat,
    var(--ppv2-panel-bg);
  background-origin: border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 24px 50px rgba(0, 0, 0, 0.36);
}

.ppv2-panel { min-width: 0; padding: 26px 28px 28px; }

/* ---------------------------------------------------------------- type */

.ppv2-kicker { margin: 0; font-family: var(--ppv2-title); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-eyebrow { font-family: var(--ppv2-title); font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-eyebrow--quiet { color: var(--ppv2-muted); font-weight: 400; letter-spacing: 0.2em; font-family: var(--ppv2-body); font-size: 11px; }
.ppv2-label { display: block; font-family: var(--ppv2-body); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ppv2-muted); }
.ppv2-label small { letter-spacing: 0.04em; text-transform: none; color: var(--ppv2-faint); }
.ppv2-h2 { font-family: var(--ppv2-title); font-weight: 600; font-size: 34px; letter-spacing: 0.03em; color: var(--ppv2-text-strong); }
.ppv2-headline { margin: 10px 0 0; font-family: var(--ppv2-title); font-size: 26px; line-height: 1.2; color: var(--ppv2-text-strong); text-wrap: balance; }
.ppv2-headline--small { font-size: 20px; }
.ppv2-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ppv2-faint); }
.ppv2-note--slot { padding: 8px 12px; border: 1px dashed rgba(213, 177, 101, 0.28); border-radius: 6px; }
.ppv2-note-inline { font-size: 12px; color: var(--ppv2-faint); }
.ppv2-panel-intro { margin: 0 0 20px; font-size: 15px; color: var(--ppv2-muted); }

.ppv2-section-head {
  margin-bottom: 22px;
  padding-bottom: 14px;
  background:
    linear-gradient(var(--ppv2-gold), var(--ppv2-gold)) left 11px bottom 11px / 14px 1.5px no-repeat,
    linear-gradient(90deg, rgba(213, 177, 101, 0.4), rgba(213, 177, 101, 0)) left bottom / 100% 1px no-repeat;
}
.ppv2-section-head p { margin: 4px 0 0; font-size: 14px; color: var(--ppv2-muted); }
.ppv2-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--ppv2-muted); }

/* Hover and focus hints for labels that need a definition (data-hint). */
.ppv2-hint { position: relative; cursor: help; text-decoration: underline dotted rgba(232, 196, 111, 0.45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ppv2-hint--icon { display: inline-flex; text-decoration: none; }
.ppv2-hint:focus { outline: none; }
.ppv2-hint:focus-visible { outline: 1px solid var(--ppv2-gold); outline-offset: 2px; border-radius: 2px; }
.ppv2-hint::after {
  content: attr(data-hint);
  position: absolute; z-index: 60; left: 0; top: calc(100% + 8px);
  display: none; width: max-content; max-width: min(300px, 80vw); padding: 10px 12px;
  border: 1px solid rgba(213, 177, 101, 0.42); border-radius: 6px; background: #0b1323;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  color: var(--ppv2-text-soft); font-family: var(--ppv2-body); font-size: 13px; font-weight: 400; line-height: 1.45;
  letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; pointer-events: none;
}
.ppv2-hint--end::after { left: auto; right: 0; }
.ppv2-hint:hover::after, .ppv2-hint:focus::after { display: block; }

/* ---------------------------------------------------------------- hero */

.ppv2-hero { position: relative; overflow: hidden; isolation: isolate; }
.ppv2-hero-art { position: absolute; inset: 0; z-index: -3; background: url("../assets/optimized/images/backgrounds/player-profile-hero-athens.8b70575e9313.webp") 50% 11% / cover no-repeat; filter: saturate(1.12) contrast(1.05); }
.ppv2-hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, 0.94) 0%, rgba(5, 9, 18, 0.7) 38%, rgba(5, 9, 18, 0.36) 62%, rgba(5, 9, 18, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.35) 0%, rgba(5, 9, 18, 0) 30%, rgba(7, 13, 25, 0.82) 82%, var(--ppv2-ink) 100%);
}
.ppv2-pillar { position: absolute; z-index: -1; top: 0; height: 100%; width: auto; opacity: 0.82; pointer-events: none; }
.ppv2-pillar--left { left: 0; transform: translateX(-18%); }
.ppv2-pillar--right { right: 0; transform: translateX(18%); }

.ppv2-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 48px; align-items: end; padding-top: 80px; }
.ppv2-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; }
.ppv2-avatar-frame {
  width: 136px; height: 136px; padding: 6px; box-sizing: border-box;
  border: 1px solid rgba(213, 177, 101, 0.5); border-radius: 10px;
  outline: 1px solid rgba(213, 177, 101, 0.22); outline-offset: 4px;
  background: rgba(5, 9, 18, 0.8);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
}
.ppv2-avatar-frame img { display: block; width: 100%; height: 100%; border-radius: 6px; background: #050812; object-fit: cover; }
.ppv2-name { margin-top: 10px; font-family: var(--ppv2-title); font-weight: 600; font-size: clamp(48px, 4.4vw, 62px); line-height: 1; letter-spacing: 0.01em; color: var(--ppv2-text-strong); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); text-wrap: balance; overflow-wrap: anywhere; }
.ppv2-name-clan { color: var(--ppv2-gold); font-weight: 500; }
.ppv2-idline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 0; font-size: 18px; line-height: 1.3; color: var(--ppv2-text-soft); }
.ppv2-idline img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }

.ppv2-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ppv2-badge { position: relative; }
.ppv2-badge-chip {
  display: flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px; padding: 0 15px; border: 0; border-radius: 999px;
  background: rgba(7, 12, 24, 0.78);
  box-shadow: inset 0 0 0 1px rgba(213, 177, 101, 0.45), 0 4px 10px rgba(0, 0, 0, 0.45);
  color: var(--ppv2-text); font-family: var(--ppv2-title); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
}
.ppv2-badge-chip--emblem { width: 40px; padding: 0; background: radial-gradient(circle at 50% 40%, #17233b, #070c18); box-shadow: inset 0 0 0 2px rgba(213, 177, 101, 0.55), 0 4px 10px rgba(0, 0, 0, 0.45); }
.ppv2-badge-chip--emblem img { width: 30px; height: 30px; object-fit: contain; }
.ppv2-badge-chip.is-gold { box-shadow: inset 0 0 0 2px #f1cf72, 0 0 14px rgba(241, 207, 114, 0.35), 0 4px 10px rgba(0, 0, 0, 0.45); }
.ppv2-badge-chip.is-silver { box-shadow: inset 0 0 0 2px #cfd4dc, 0 4px 10px rgba(0, 0, 0, 0.45); }
.ppv2-badge-chip.is-bronze { box-shadow: inset 0 0 0 2px #c08550, 0 4px 10px rgba(0, 0, 0, 0.45); }
.ppv2-badge-chip:focus-visible { outline: 2px solid var(--ppv2-gold-hot); outline-offset: 2px; }
.ppv2-tip {
  position: absolute; z-index: 40; top: 50px; left: 0; display: none; width: 300px; padding: 14px 16px;
  border: 1px solid rgba(213, 177, 101, 0.42); border-radius: 6px; background: #0b1323;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65); text-align: left;
}
.ppv2-badge:hover .ppv2-tip, .ppv2-badge:focus-within .ppv2-tip { display: grid; gap: 4px; }
.ppv2-tip-kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-tip strong { font-family: var(--ppv2-title); font-size: 17px; font-weight: 400; color: var(--ppv2-text-strong); }
.ppv2-tip span { font-size: 14px; line-height: 1.45; color: var(--ppv2-text-soft); }
.ppv2-tip small { margin-top: 5px; padding-top: 8px; border-top: 1px solid rgba(213, 177, 101, 0.18); font-size: 12px; line-height: 1.45; color: var(--ppv2-muted); }
.ppv2-badge-more summary { list-style: none; }
.ppv2-badge-more summary::-webkit-details-marker { display: none; }
.ppv2-badge-list { position: absolute; z-index: 40; top: 50px; left: 0; display: grid; gap: 8px; width: 300px; margin: 0; padding: 14px 16px; list-style: none; border: 1px solid rgba(213, 177, 101, 0.42); border-radius: 6px; background: #0b1323; font-size: 13px; }
.ppv2-badge-list strong { display: block; font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text-strong); }

.ppv2-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 15px; color: rgba(241, 228, 198, 0.78); }
.ppv2-meta b { font-weight: 400; color: var(--ppv2-text); }
.ppv2-slash { color: rgba(213, 177, 101, 0.5); }
.ppv2-link { border-bottom: 1px solid rgba(232, 196, 111, 0.35); }
.ppv2 .ppv2-link--quiet { border: 0; color: rgba(241, 228, 198, 0.78); }
.ppv2-link-button { padding: 0; border: 0; border-bottom: 1px solid rgba(232, 196, 111, 0.35); background: none; font: inherit; color: var(--ppv2-text); cursor: pointer; }
.ppv2-link-button:hover, .ppv2-link-button:focus-visible { color: var(--ppv2-gold-hot); border-bottom-color: var(--ppv2-gold); }

/* Steam name history: a dialog opened from the meta line, so the hero keeps its height. */
.ppv2-dialog { width: min(520px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 48px)); padding: 0; border: 1px solid var(--ppv2-line); border-radius: 10px; background: var(--ppv2-panel-bg); color: var(--ppv2-text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.ppv2-dialog::backdrop { background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(2px); }
.ppv2-dialog-body { padding: 22px 24px 24px; }
.ppv2-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ppv2-dialog-title { margin: 0; font-family: var(--ppv2-title); font-size: 15px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-dialog-close { width: 34px; height: 34px; border: 1px solid var(--ppv2-line); border-radius: 50%; background: transparent; font-size: 20px; line-height: 1; color: var(--ppv2-text); cursor: pointer; }
.ppv2-dialog-close:hover, .ppv2-dialog-close:focus-visible { border-color: var(--ppv2-gold); color: var(--ppv2-gold-hot); }
.ppv2-names { margin: 14px 0 0; padding: 0; list-style: none; }
.ppv2-names li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ppv2-line-faint); }
.ppv2-names li:first-child span { color: var(--ppv2-text-strong); }
.ppv2-names span { min-width: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 700; }
.ppv2-names time { flex: none; font-size: 13px; color: var(--ppv2-faint); }


.ppv2-actions { margin-top: 20px; }
.ppv2-actions .leaderboards-ghost-button {
  height: 40px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(5, 9, 18, 0.55); border: 1px solid rgba(235, 199, 119, 0.5); border-radius: 6px;
  color: var(--ppv2-gold-hot); font-family: var(--ppv2-title); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.ppv2-actions .leaderboards-ghost-button small { font-size: 11px; letter-spacing: 0.2em; color: var(--ppv2-muted); }

.ppv2-rail { padding: 24px 28px 22px; backdrop-filter: blur(6px); background-color: rgba(6, 11, 22, 0.88); }
.ppv2-rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--ppv2-muted); }
.ppv2-rail-head .ppv2-eyebrow { font-size: 11px; font-weight: 400; }
.ppv2-rail-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: end; margin-top: 6px; }
.ppv2-rail-rating { font-family: var(--ppv2-title); font-weight: 600; font-size: 76px; line-height: 0.9; color: var(--ppv2-text-strong); }
.ppv2-rail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 6px; }
.ppv2-rail-facts span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ppv2-faint); }
.ppv2-rail-facts b { font-family: var(--ppv2-title); font-size: 22px; font-weight: 400; color: var(--ppv2-text); }
.ppv2-rail-sub { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed rgba(232, 196, 111, 0.35); font-size: 13px; color: var(--ppv2-muted); }
.ppv2-rail-sub b { font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text); }
.ppv2-rail-sub .ppv2-dot { margin-inline: 0.45em; }
.ppv2-rail-empty { margin: 18px 0 6px; font-size: 16px; color: var(--ppv2-muted); }

/* Live match: while the player is in one, the rail shows the match and keeps the rating as one line. */
.ppv2-rail.is-live .ppv2-rail-body { display: none; }
.ppv2-rail:not(.is-live) .ppv2-rail-compact { display: none; }
.ppv2-rail-compact { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed rgba(232, 196, 111, 0.35); font-size: 13px; color: var(--ppv2-muted); }
.ppv2-rail-compact b { font-family: var(--ppv2-title); font-size: 16px; font-weight: 400; color: var(--ppv2-text); }
.ppv2-rail-compact .ppv2-dot { margin-inline: 0.45em; }
.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); }
.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; }
.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); }
.ppv2-record { margin-top: 18px; }
.ppv2-record-top { display: flex; justify-content: space-between; align-items: baseline; }
.ppv2-record-top b { font-family: var(--ppv2-title); font-size: 22px; font-weight: 400; }
.ppv2-record-rate { margin-left: 10px; font-family: var(--ppv2-title); font-size: 17px; color: var(--ppv2-text-strong); }
.ppv2-record-bar { display: flex; gap: 2px; height: 4px; margin-top: 10px; }
.ppv2-record-bar i { border-radius: 3px; }
.ppv2-record-bar i.is-win { background: var(--ppv2-win); }
.ppv2-record-bar i.is-loss { background: var(--ppv2-loss); opacity: 0.75; }
.ppv2-record-bar--wide { height: 5px; margin-top: 20px; }

.ppv2-queues {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px;
  margin-top: 44px; border-bottom: 1px solid rgba(213, 177, 101, 0.28);
}
.ppv2 .ppv2-queue {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 62px; padding: 10px 12px 12px;
  margin-bottom: -1px; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; color: rgba(241, 228, 198, 0.72);
}
.ppv2 .ppv2-queue:hover { background: rgba(232, 196, 111, 0.08); color: var(--ppv2-gold-hot); }
.ppv2 .ppv2-queue.is-current { background: rgba(232, 196, 111, 0.1); border-bottom-color: var(--ppv2-gold); color: var(--ppv2-gold-hot); }
.ppv2-queue-label { font-family: var(--ppv2-title); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; }
.ppv2-queue-rating { font-family: var(--ppv2-title); font-size: 18px; letter-spacing: 0.02em; color: var(--ppv2-text); }
.ppv2-queue.is-combined .ppv2-queue-rating { font-size: 13px; color: var(--ppv2-faint); }

/* ------------------------------------------------- identity, playstyle */

.ppv2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

.ppv2-godbars { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.ppv2-godbars li { display: grid; grid-template-columns: 32px minmax(84px, 130px) minmax(0, 1fr) 110px; gap: 12px; align-items: center; }
.ppv2-godbars li.is-dim { opacity: 0.55; }
.ppv2-godbars img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.4); }
.ppv2-godbars-name { font-size: 15px; }
.ppv2-godbars-num { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; white-space: nowrap; }
.ppv2-godbars-num b { font-family: var(--ppv2-title); font-size: 16px; font-weight: 400; color: var(--ppv2-text-strong); }
.ppv2-godbars-num small { font-size: 12px; color: var(--ppv2-faint); }
.ppv2-track { height: 6px; border-radius: 3px; background: var(--ppv2-track); overflow: hidden; }
.ppv2-track i { display: block; height: 100%; border-radius: 3px; background: var(--ppv2-gold); }
.ppv2-godbars li:not(:first-child) .ppv2-track i { background: #8c7442; }

.ppv2-divider { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ppv2-line-soft); }
.ppv2-stack { display: flex; gap: 2px; height: 12px; margin-top: 10px; border-radius: 3px; overflow: hidden; }
.ppv2-stack--tall { height: 14px; margin-top: 14px; }
.ppv2-stack i { min-width: 2px; }
.ppv2-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ppv2-text-soft); }
.ppv2-legend li { display: flex; align-items: center; gap: 7px; }
.ppv2-legend i { width: 9px; height: 9px; border-radius: 2px; }
.ppv2-legend b { font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text-strong); }

.ppv2-paths { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.ppv2-paths li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ppv2-line-faint); font-size: 15px; }
.ppv2-paths img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.35); }
.ppv2-paths small { font-size: 13px; color: var(--ppv2-muted); white-space: nowrap; }
.ppv2-arrow { color: var(--ppv2-gold); }
.ppv2-path-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ppv2-path-step { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ppv2-path-step img { width: 30px; height: 30px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.35); }

.ppv2-how { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--ppv2-faint); }
.ppv2-how summary { cursor: pointer; font-family: var(--ppv2-title); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-how p { margin: 8px 0 0; }

.ppv2-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ppv2-line-soft); }
.ppv2-card-head + .ppv2-block { margin-top: 14px; padding-top: 0; border-top: 0; }
.ppv2-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ppv2-block-head > span { font-size: 13px; color: var(--ppv2-muted); }
.ppv2-block-head b { font-family: var(--ppv2-title); font-weight: 400; font-size: 18px; }
.ppv2-lean { font-family: var(--ppv2-title); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ppv2-gold-hot) !important; }
.ppv2-lean--quiet { color: var(--ppv2-muted) !important; font-weight: 400; }
.ppv2-scale { font-size: 12px !important; color: var(--ppv2-faint) !important; }

.ppv2-split { display: flex; gap: 2px; height: 14px; margin-top: 12px; border-radius: 3px; overflow: hidden; }
.ppv2-split .is-military, .ppv2-split-legend .is-military { background: linear-gradient(90deg, #b67a2c, #e8c46f); }
.ppv2-split .is-economy, .ppv2-split-legend .is-economy { background: #9cc7ea; }
.ppv2-split-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--ppv2-text-soft); }
.ppv2-split-legend span { display: flex; align-items: center; gap: 7px; }
.ppv2-split-legend i { width: 9px; height: 9px; border-radius: 2px; }
.ppv2-split-legend b { font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text-strong); }

.ppv2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 16px 0 0; }
.ppv2-facts dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ppv2-muted); }
.ppv2-facts dd { margin: 4px 0 0; font-family: var(--ppv2-title); font-size: 20px; color: var(--ppv2-text-strong); }
.ppv2-facts dd small { font-family: var(--ppv2-body); font-size: 13px; }
.ppv2-facts div > small { display: block; font-size: 12px; line-height: 1.4; color: var(--ppv2-faint); }
.ppv2-facts--row { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 22px; border-block: 1px solid var(--ppv2-line-soft); }
.ppv2-facts--row > div { padding: 14px 0 14px 20px; border-left: 1px solid var(--ppv2-line-soft); }
.ppv2-facts--row > div:first-child { padding-left: 0; border-left: 0; }
.ppv2-facts--stack { grid-template-columns: 1fr 1fr; margin-top: 0; }
.ppv2-facts--stack dd { font-size: 28px; }

.ppv2-ages { display: grid; gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.ppv2-ages li { display: grid; grid-template-columns: 86px 58px minmax(0, 1fr); gap: 14px; align-items: start; }
.ppv2-ages-name { font-size: 15px; }
.ppv2-ages-time { font-family: var(--ppv2-title); font-size: 16px; font-weight: 400; color: var(--ppv2-text-strong); }
.ppv2-ages-track { padding-top: 7px; }
.ppv2-ages-track small { display: block; margin-top: 7px; font-size: 13px; color: rgba(241, 228, 198, 0.78); }
.ppv2-slider { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(213, 177, 101, 0.12); }
.ppv2-slider::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(241, 228, 198, 0.25); }
.ppv2-slider i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ppv2-gold); box-shadow: 0 0 0 2px #0a1120; }

.ppv2-progress { height: 8px; margin-top: 14px; border-radius: 3px; background: var(--ppv2-track); }
.ppv2-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ppv2-gold); }

/* ------------------------------------------------------- rating and form */

.ppv2-rating { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 36px; }
.ppv2-chart { margin: 0; }
.ppv2-chart-box { position: relative; height: 220px; margin: 8px 0 0 36px; }
.ppv2-chart-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ppv2-chart-line { fill: none; stroke: var(--ppv2-gold); stroke-width: 1.75; stroke-linejoin: round; }
.ppv2-chart-area { fill: rgba(232, 196, 111, 0.08); }
.ppv2-chart-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(213, 177, 101, 0.16); }
.ppv2-chart-grid small { position: absolute; left: -38px; top: -8px; font-size: 11px; color: var(--ppv2-faint); }
.ppv2-chart-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ppv2-text-strong); box-shadow: 0 0 0 2px #08101f; }
.ppv2-chart-dot--peak { background: var(--ppv2-gold); }
.ppv2-chart-dot--peak small { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--ppv2-gold); }
.ppv2-chart-dot--peak.is-end small { left: auto; right: -2px; transform: none; }
.ppv2-chart-dot--peak.is-start small { left: -2px; transform: none; }
.ppv2-chart figcaption { display: flex; justify-content: space-between; margin: 10px 0 0 36px; font-size: 12px; color: var(--ppv2-faint); }
.ppv2-rating-side { display: grid; align-content: start; gap: 22px; padding-left: 28px; border-left: 1px solid var(--ppv2-line-soft); }
.ppv2-form { display: flex; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.ppv2-form li { flex: 1; height: 22px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); font-size: 0; }
.ppv2-form li.is-win { background: var(--ppv2-win); }
.ppv2-form li.is-loss { background: var(--ppv2-loss); opacity: 0.85; }
.ppv2-activity { display: flex; align-items: flex-end; gap: 4px; height: 52px; margin: 10px 0 0; padding: 0; list-style: none; }
.ppv2-activity li { flex: 1; height: 100%; display: flex; align-items: flex-end; border-bottom: 1px solid var(--ppv2-line-soft); }
.ppv2-activity i { display: block; width: 100%; min-height: 1px; border-radius: 2px 2px 0 0; background: #b67a2c; }

/* ------------------------------------------------------- match history */

.ppv2-history .profile-history-section { margin: 0; }
.ppv2-history .profile-section-head h2 { font-family: var(--ppv2-title); font-weight: 600; font-size: 34px; letter-spacing: 0.03em; color: var(--ppv2-text-strong); }

/* ---------------------------------------------------------------- tabs */

.ppv2-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2px; margin-bottom: 28px; border-bottom: 1px solid rgba(213, 177, 101, 0.28); }
.ppv2-tabs button {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-height: 66px; padding: 12px 18px;
  margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; background: transparent; text-align: left; cursor: pointer;
}
.ppv2-tabs button:hover { background: rgba(232, 196, 111, 0.08); }
.ppv2-tabs button[aria-selected="true"] { background: rgba(232, 196, 111, 0.1); border-bottom-color: var(--ppv2-gold); }
.ppv2-tabs button span { font-family: var(--ppv2-title); font-size: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(241, 228, 198, 0.78); }
.ppv2-tabs button[aria-selected="true"] span { color: var(--ppv2-gold-hot); }
.ppv2-tabs button small { font-family: var(--ppv2-body); font-size: 13px; color: var(--ppv2-muted); }
.ppv2-tabpanel + .ppv2-tabpanel { margin-top: 60px; }
.ppv2-breakdown.is-tabbed .ppv2-tabpanel + .ppv2-tabpanel { margin-top: 0; }
.ppv2-tabpanel-title { margin-bottom: 14px; }
.ppv2-breakdown.is-tabbed .ppv2-tabpanel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------- head-to-head */

.ppv2-h2h { display: grid; grid-template-columns: 360px minmax(0, 1fr); padding: 0; }
.ppv2-h2h-list { padding: 26px 22px 22px 26px; border-right: 1px solid var(--ppv2-line-soft); }
.ppv2-h2h-list .ppv2-label { color: var(--ppv2-gold); }
.ppv2-h2h-list input { width: 100%; box-sizing: border-box; height: 42px; margin-top: 10px; padding: 0 14px; border: 1px solid rgba(213, 177, 101, 0.3); border-radius: 6px; background: rgba(5, 9, 18, 0.7); color: var(--ppv2-text); font: inherit; font-size: 15px; }
.ppv2-h2h-list ul { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.ppv2-rival { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ppv2-text); font: inherit; text-align: left; cursor: pointer; }
.ppv2-rival:hover { background: rgba(232, 196, 111, 0.08); }
.ppv2-rival.is-selected { background: rgba(232, 196, 111, 0.12); box-shadow: inset 0 0 0 1px rgba(213, 177, 101, 0.45); }
.ppv2-rival img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.4); }
.ppv2-rival-name { min-width: 0; }
.ppv2-rival-name > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ppv2-rival-name small { display: block; font-size: 12px; color: var(--ppv2-faint); }
.ppv2-rival-rec { font-family: var(--ppv2-title); font-size: 15px; white-space: nowrap; }
.ppv2-rival-rec b { font-weight: 400; }
.ppv2-h2h-detail { padding: 28px 32px 26px; }
.ppv2-h2h-versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; }
.ppv2-h2h-side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ppv2-h2h-side--them { justify-content: flex-end; text-align: right; }
.ppv2-h2h-side > div { min-width: 0; }
.ppv2-h2h-side img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(232, 196, 111, 0.6); }
.ppv2-h2h-side strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ppv2-title); font-size: 22px; font-weight: 400; color: var(--ppv2-text-strong); }
.ppv2-h2h-side strong a { color: inherit; }
.ppv2-h2h-side small { font-size: 13px; color: var(--ppv2-muted); }
.ppv2-h2h-score { text-align: center; font-family: var(--ppv2-title); font-size: 58px; line-height: 1; white-space: nowrap; }
.ppv2-h2h-score b { font-weight: 400; }
.ppv2-h2h-score small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-h2h-games { margin: 18px 0 0; padding: 0; list-style: none; }
.ppv2-h2h-games li { display: grid; grid-template-columns: 70px 200px minmax(0, 1fr) 60px 50px; gap: 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ppv2-line-faint); }
.ppv2-h2h-date { font-family: var(--ppv2-title); font-size: 15px; white-space: nowrap; }
.ppv2-h2h-map, .ppv2-h2h-gods { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; white-space: nowrap; }
.ppv2-h2h-map img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.3); }
.ppv2-h2h-gods { font-size: 14px; color: rgba(241, 228, 198, 0.78); }
.ppv2-h2h-gods img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.4); }
.ppv2-vs { margin: 0 4px; font-family: var(--ppv2-title); font-size: 11px; text-transform: uppercase; color: rgba(232, 196, 111, 0.9); }
.ppv2-h2h-result { font-family: var(--ppv2-title); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ppv2-h2h-delta { text-align: right; font-size: 14px; }

/* -------------------------------------------------------- god matchups */

.ppv2-heat-panel { padding: 26px 28px 24px; }
.ppv2-heat-legend { display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: 12px; color: var(--ppv2-muted); white-space: nowrap; }
.ppv2-heat-legend > span { display: flex; align-items: center; gap: 5px; }
.ppv2-heat-legend .ppv2-label { margin-right: 4px; }
.ppv2-heat-legend i { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ppv2-heat-wrap { margin-top: 18px; overflow-x: auto; }
.ppv2-heat { border-collapse: separate; border-spacing: 3px; }
.ppv2-heat thead th { padding: 6px 0 8px; vertical-align: bottom; font-weight: 400; }
.ppv2-heat thead th img { display: block; width: 30px; height: 30px; margin: 0 auto 5px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.45); }
.ppv2-heat thead th span { display: block; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ppv2-muted); }
.ppv2-heat-corner { min-width: 150px; text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 196, 111, 0.9) !important; }
.ppv2-heat tbody th { position: sticky; left: 0; z-index: 1; padding: 0 10px 0 6px; border-radius: 6px; background: #0e1729; font-weight: 400; text-align: left; white-space: nowrap; }
.ppv2-heat tbody th { display: flex; align-items: center; gap: 10px; height: 50px; }
.ppv2-heat tbody th img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(232, 196, 111, 0.55); }
.ppv2-heat tbody th span span { display: block; font-size: 14px; }
.ppv2-heat tbody th small { display: block; font-size: 11px; color: var(--ppv2-faint); }
.ppv2-heat-cell { min-width: 52px; height: 50px; padding: 0; border-radius: 6px; text-align: center; vertical-align: middle; }
.ppv2-heat-cell b { display: block; font-family: var(--ppv2-title); font-size: 13px; font-weight: 600; color: var(--ppv2-text-strong); }
.ppv2-heat-cell small { display: block; font-size: 11px; color: rgba(246, 234, 208, 0.7); }
.ppv2-heat-cell.is-low { opacity: 0.42; }
.ppv2-heat-cell.is-mirror { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.28) 0 4px, transparent 4px 8px); }
.ppv2-heat-cell.is-empty { background: rgba(255, 255, 255, 0.025); }
.ppv2-heat-wr-6 { background-color: #2f7d4a; }
.ppv2-heat-wr-5 { background-color: #3e6b4b; }
.ppv2-heat-wr-4 { background-color: #4a5e4c; }
.ppv2-heat-wr-3 { background-color: #4b4f5a; }
.ppv2-heat-wr-2 { background-color: #6a4b44; }
.ppv2-heat-wr-1 { background-color: #84483d; }
.ppv2-heat-wr-0 { background-color: #9b3f34; }
.ppv2-heat-wr-none { background-color: #2a3243; }
.ppv2-heat-legend .ppv2-heat-wr-6, .ppv2-heat-legend .ppv2-heat-wr-5, .ppv2-heat-legend .ppv2-heat-wr-4, .ppv2-heat-legend .ppv2-heat-wr-3,
.ppv2-heat-legend .ppv2-heat-wr-2, .ppv2-heat-legend .ppv2-heat-wr-1, .ppv2-heat-legend .ppv2-heat-wr-0 { display: inline-block; }

.ppv2-matchup-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.ppv2-subpanel { padding: 22px 26px; border: 1px solid rgba(213, 177, 101, 0.2); border-radius: 6px; background: rgba(12, 20, 35, 0.6); }
.ppv2-subpanel .ppv2-eyebrow.is-win { color: var(--ppv2-win); }
.ppv2-subpanel .ppv2-eyebrow.is-loss { color: var(--ppv2-loss); }
.ppv2-mu { margin: 8px 0 0; padding: 0; list-style: none; }
.ppv2-mu li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 60px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(213, 177, 101, 0.1); font-size: 15px; }
.ppv2-mu li.ppv2-note { display: block; border-bottom: 0; font-size: 13px; }
.ppv2-mu-pair { display: flex; }
.ppv2-mu-pair img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.45), 0 0 0 3px #0c1423; }
.ppv2-mu-pair img + img { margin-left: -8px; }
.ppv2-mu small { font-size: 13px; color: var(--ppv2-muted); white-space: nowrap; }
.ppv2-mu b { text-align: right; font-family: var(--ppv2-title); font-size: 18px; font-weight: 400; }

/* ---------------------------------------------------- gods and pantheons */

.ppv2-gods-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ppv2-godtable { padding: 22px 28px 14px; }
.ppv2-godtable-head, .ppv2-godrow { display: grid; grid-template-columns: 220px minmax(0, 1fr) 70px 70px; gap: 20px; align-items: center; }
.ppv2-godtable-head { padding-bottom: 10px; border-bottom: 1px solid var(--ppv2-line); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(232, 196, 111, 0.9); }
.ppv2-godtable-head span:nth-child(n+3) { text-align: right; }
.ppv2-godtable ul { margin: 0; padding: 0; list-style: none; }
.ppv2-godtable li { border-bottom: 1px solid var(--ppv2-line-faint); }
.ppv2-godtable li.is-dim { opacity: 0.6; }
.ppv2-godrow { padding: 12px 0; cursor: pointer; list-style: none; }
.ppv2-godrow::-webkit-details-marker { display: none; }
.ppv2-godrow-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ppv2-godrow-name img { width: 38px; height: 38px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(232, 196, 111, 0.55), 0 6px 12px rgba(0, 0, 0, 0.45); }
.ppv2-godrow-name > span > span { display: block; font-size: 16px; }
.ppv2-godrow-name small { display: block; font-size: 12px; color: var(--ppv2-faint); }
.ppv2-godrow-num { text-align: right; white-space: nowrap; font-size: 14px; color: rgba(241, 228, 198, 0.78); }
details[open] > .ppv2-godrow .ppv2-godrow-name > span > span { color: var(--ppv2-gold-hot); }
.ppv2-wr { display: flex; align-items: center; gap: 14px; }
.ppv2-wr b { width: 58px; text-align: right; font-family: var(--ppv2-title); font-size: 16px; font-weight: 400; }
.ppv2-wr-track { position: relative; flex: 1; display: block; height: 8px; border-radius: 3px; background: rgba(241, 228, 198, 0.07); }
.ppv2-wr-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #b67a2c, #e8c46f); }
.ppv2-wr-track em { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(246, 234, 208, 0.45); }
.ppv2-wr-track--thin { height: 4px; margin-top: 8px; }
.ppv2-wr-track i.is-win { background: var(--ppv2-win); }
.ppv2-wr-track i.is-loss { background: var(--ppv2-loss); }
.ppv2-minor { display: grid; gap: 10px; padding: 4px 0 16px 50px; }
.ppv2-minor-age { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.ppv2-minor-age .ppv2-label { padding-top: 7px; }
.ppv2-minor-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ppv2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ppv2-minor-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid rgba(213, 177, 101, 0.22); border-radius: 6px; background: rgba(5, 9, 18, 0.45); font-size: 14px; text-decoration: none; }
.ppv2-minor-chip img { width: 34px; height: 34px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(213, 177, 101, 0.35); }
.ppv2-minor-chip-text { display: inline-flex; align-items: baseline; gap: 6px; }
.ppv2-minor-chip b { font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text-strong); }
.ppv2-minor-chip small { font-size: 12px; color: var(--ppv2-muted); }
.ppv2-minor-empty { padding: 0 0 14px 50px; }

.ppv2-pantheons { padding: 24px 28px; }
.ppv2-pantheons ul { margin: 18px 0 0; padding: 0; list-style: none; }
.ppv2-pantheons li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 58px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(213, 177, 101, 0.1); }
.ppv2-pantheons li > i { width: 10px; height: 10px; border-radius: 3px; }
.ppv2-pantheons li > span > span { display: block; font-size: 16px; }
.ppv2-pantheons li > span > small, .ppv2-pantheons li > small { font-size: 12px; color: var(--ppv2-faint); }
.ppv2-pantheons li > small { font-size: 13px; color: var(--ppv2-muted); white-space: nowrap; }
.ppv2-pantheons b { text-align: right; font-family: var(--ppv2-title); font-size: 17px; font-weight: 400; }

/* ---------------------------------------------------------------- maps */

.ppv2-maps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ppv2-map { overflow: hidden; border: 1px solid rgba(213, 177, 101, 0.22); border-radius: 10px; outline: 1px solid rgba(213, 177, 101, 0.08); outline-offset: -5px; background: #0b1323; }
.ppv2-map-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111b2e; }
.ppv2-map-art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.18) contrast(1.06) brightness(1.1); }
.ppv2-map-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(11, 19, 35, 0.95)); }
.ppv2-map-art strong { position: absolute; z-index: 1; left: 12px; bottom: 8px; font-family: var(--ppv2-title); font-size: 17px; font-weight: 600; color: var(--ppv2-text-strong); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.ppv2-map-tag { position: absolute; z-index: 1; left: 12px; top: 10px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ppv2-gold-hot); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.ppv2-map-body { padding: 10px 12px 12px; }
.ppv2-map-body > div { display: flex; justify-content: space-between; align-items: baseline; }
.ppv2-map-body small { font-size: 13px; color: var(--ppv2-muted); white-space: nowrap; }
.ppv2-map-body b { font-family: var(--ppv2-title); font-size: 16px; font-weight: 400; }
.ppv2-maps-more { margin-top: 18px; }
.ppv2-maps-more summary { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px; border: 1px dashed rgba(213, 177, 101, 0.3); border-radius: 6px; cursor: pointer; list-style: none; font-family: var(--ppv2-title); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ppv2-gold); }
.ppv2-maps-more summary small { font-family: var(--ppv2-body); letter-spacing: 0; text-transform: none; color: var(--ppv2-faint); }
.ppv2-maps-more[open] summary { margin-bottom: 18px; }

/* ------------------------------------------------------------- context */

.ppv2-splits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ppv2-splits .ppv2-frame { padding: 24px 26px; }
.ppv2-splitrows { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.ppv2-splitrows li { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 3rem 4.2rem; gap: 12px; align-items: center; font-size: 14px; }
.ppv2-splitrows li.is-dim { opacity: 0.5; }
.ppv2-splitrows b { text-align: right; font-family: var(--ppv2-title); font-weight: 400; }
.ppv2-splitrows small { text-align: right; font-size: 12px; color: var(--ppv2-faint); white-space: nowrap; }

/* -------------------------------------------------- status and coverage */

.ppv2-status { padding: 26px 28px; }
.ppv2-status p { margin: 8px 0 0; font-size: 17px; }
.ppv2-coverage { margin: 0; text-align: center; font-size: 14px; color: var(--ppv2-muted); }
.ppv2-coverage b { font-family: var(--ppv2-title); font-weight: 400; color: var(--ppv2-text); }
.ppv2-coverage .ppv2-dot { margin-inline: 0.5em; }

/* -------------------------------------------------------------- tablet */

@media (max-width: 1180px) {
  .ppv2 { --ppv2-gutter: 24px; }
  .ppv2-hero-grid, .ppv2-cards, .ppv2-rating, .ppv2-gods-grid, .ppv2-h2h { grid-template-columns: minmax(0, 1fr); }
  .ppv2-hero-grid { padding-top: 56px; }
  /* Once the rail drops below the identity block, the pillars sit over text. */
  .ppv2-pillar { display: none; }
  .ppv2-rail { max-width: 560px; }
  .ppv2-rating-side { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--ppv2-line-soft); }
  .ppv2-h2h-list { border-right: 0; border-bottom: 1px solid var(--ppv2-line-soft); }
  .ppv2-h2h-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 340px; overflow-y: auto; }
  .ppv2-maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ppv2-splits { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- phone */

@media (max-width: 760px) {
  .ppv2 { --ppv2-gutter: 16px; }
  .ppv2-main { gap: 48px; padding-top: 28px; padding-bottom: 56px; }
  .ppv2-panel { padding: 20px 18px 22px; }
  .ppv2-h2 { font-size: 26px; }
  .ppv2-headline { font-size: 21px; }
  .ppv2-section-head { margin-bottom: 16px; }

  /* Hero */
  .ppv2-hero-shade { background: linear-gradient(180deg, rgba(5, 9, 18, 0.55) 0%, rgba(5, 9, 18, 0.82) 45%, var(--ppv2-ink) 100%); }
  .ppv2-hero-grid { gap: 24px; padding-top: 28px; }
  .ppv2-id { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
  .ppv2-avatar-frame { width: 72px; height: 72px; padding: 4px; outline-offset: 2px; }
  .ppv2-kicker { font-size: 10px; }
  .ppv2-name { margin-top: 6px; font-size: 34px; }
  .ppv2-idline { font-size: 15px; gap: 4px 8px; }
  .ppv2-idline img { width: 22px; height: 22px; }
  .ppv2-id-text { min-width: 0; }
  .ppv2-tip, .ppv2-badge-list { width: min(300px, calc(100vw - 32px)); }
  .ppv2-id-text > .ppv2-badges, .ppv2-id-text > .ppv2-meta, .ppv2-id-text > .ppv2-actions { margin-left: -88px; }
  .ppv2-meta { gap: 4px 12px; font-size: 14px; }

  .ppv2-rail { padding: 20px 18px 18px; }
  .ppv2-rail-main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ppv2-rail-rating { font-size: 60px; }
  .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; }
  .ppv2-rail-facts { padding-bottom: 0; }
  .ppv2-record-top { flex-wrap: wrap; gap: 4px 12px; }

  /* Queue strip scrolls sideways instead of wrapping labels into stacks. */
  .ppv2-queues { display: flex; gap: 2px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
  .ppv2-queues::-webkit-scrollbar { display: none; }
  .ppv2 .ppv2-queue { flex: 0 0 auto; min-width: 128px; min-height: 56px; }
  .ppv2-queue-label { white-space: nowrap; }

  /* Identity and playstyle */
  .ppv2-godbars li { grid-template-columns: 28px minmax(0, 1fr) 92px; gap: 10px; }
  .ppv2-godbars li .ppv2-track { grid-column: 2 / 4; grid-row: 2; }
  .ppv2-godbars img { width: 28px; height: 28px; }
  .ppv2-paths li { grid-template-columns: 24px minmax(0, 1fr); font-size: 14px; }
  .ppv2-paths li small { grid-column: 2; }
  .ppv2-paths img { width: 24px; height: 24px; }
  .ppv2-block-head { flex-wrap: wrap; gap: 4px 12px; }
  .ppv2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .ppv2-facts dd { font-size: 18px; }
  .ppv2-ages li { grid-template-columns: 74px 48px minmax(0, 1fr); gap: 10px; }
  .ppv2-ages-name { font-size: 14px; }
  .ppv2-ages-track small { font-size: 12px; }

  /* Rating and form */
  .ppv2-chart-box { height: 170px; margin-left: 32px; }
  .ppv2-chart figcaption { margin-left: 32px; }
  .ppv2-chart-grid small { left: -34px; }
  .ppv2-rating-side { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ppv2-facts--stack dd { font-size: 24px; }

  /* Tabs scroll sideways; each tab keeps its label on one line. */
  .ppv2-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
  .ppv2-tabs::-webkit-scrollbar { display: none; }
  .ppv2-tabs button { flex: 0 0 auto; min-height: 56px; padding: 10px 14px; }
  .ppv2-tabs button span { font-size: 13px; white-space: nowrap; }
  .ppv2-tabs button small { font-size: 11px; white-space: nowrap; }
  .ppv2-panel-intro { font-size: 13px; }

  /* Head-to-head: score on its own row, the two sides beneath it. */
  .ppv2-h2h-list { padding: 18px 16px; }
  .ppv2-h2h-list ul { grid-template-columns: minmax(0, 1fr); max-height: 300px; }
  .ppv2-h2h-detail { padding: 20px 16px; }
  .ppv2-h2h-versus { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
  .ppv2-h2h-score { grid-column: 1 / -1; order: -1; font-size: 44px; }
  .ppv2-h2h-side { flex-direction: column; gap: 6px; text-align: center; }
  .ppv2-h2h-side--them { flex-direction: column-reverse; justify-content: flex-start; text-align: center; }
  .ppv2-h2h-side img { width: 40px; height: 40px; }
  .ppv2-h2h-side strong { font-size: 16px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .ppv2-h2h-side small { font-size: 12px; }
  .ppv2-facts--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ppv2-facts--row > div { padding: 12px 0 12px 14px; }
  .ppv2-facts--row > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ppv2-facts--row > div:nth-child(n+3) { border-top: 1px solid var(--ppv2-line-soft); }
  .ppv2-h2h-games li { grid-template-columns: 58px minmax(0, 1fr) 40px 36px; gap: 10px; }
  .ppv2-h2h-date { font-size: 13px; }
  .ppv2-h2h-map { font-size: 14px; }
  .ppv2-h2h-map img { width: 26px; height: 26px; }
  .ppv2-h2h-gods { display: none; }

  /* God matchups: the grid scrolls inside its panel; lists stack. */
  .ppv2-heat-panel { padding: 18px 12px; }
  .ppv2-heat-legend { flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; }
  .ppv2-heat-corner { min-width: 0; }
  .ppv2-heat tbody th { gap: 8px; min-width: 116px; padding: 0 8px 0 4px; }
  .ppv2-heat tbody th img { width: 26px; height: 26px; }
  .ppv2-heat tbody th span span { font-size: 13px; }
  .ppv2-heat-cell { min-width: 46px; height: 46px; }
  .ppv2-matchup-lists { grid-template-columns: minmax(0, 1fr); }
  .ppv2-subpanel { padding: 18px 16px; }
  .ppv2-mu li { grid-template-columns: 46px minmax(0, 1fr) 48px; gap: 10px; font-size: 14px; }
  .ppv2-mu li small { grid-column: 2; grid-row: 2; }
  .ppv2-mu li b { grid-column: 3; grid-row: 1 / 3; }

  /* Gods: keep the win rate, drop the bar track and W-L. */
  .ppv2-godtable { padding: 16px 16px 8px; }
  .ppv2-godtable-head { display: none; }
  .ppv2-godrow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; }
  .ppv2-godrow .ppv2-wr-track, .ppv2-godrow > .ppv2-godrow-num:nth-of-type(3) { display: none; }
  .ppv2-godrow .ppv2-wr b { width: auto; }
  .ppv2-godrow-name img { width: 32px; height: 32px; }
  .ppv2-minor { padding: 0 0 14px; }
  .ppv2-minor-age { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ppv2-minor-age .ppv2-label { padding-top: 0; }
  .ppv2-minor-chip { font-size: 13px; }
  .ppv2-minor-empty { padding: 0 0 12px; }
  .ppv2-pantheons { padding: 18px 16px; }
  .ppv2-pantheons li { grid-template-columns: 24px minmax(0, 1fr) 54px; }
  .ppv2-pantheons li > small { grid-column: 2; grid-row: 2; }
  .ppv2-pantheons b { grid-column: 3; grid-row: 1 / 3; }

  /* Maps and context */
  .ppv2-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ppv2-map-art strong { font-size: 14px; }
  .ppv2-map-body { padding: 8px 10px 10px; }
  .ppv2-map-body small { font-size: 11px; }
  .ppv2-maps-facts { grid-template-columns: minmax(0, 1fr); }
  .ppv2-maps-facts > div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ppv2-line-soft); }
  .ppv2-maps-facts > div:first-child { border-top: 0; }
  .ppv2-splits .ppv2-frame { padding: 18px 16px; }
  .ppv2-splitrows li { grid-template-columns: minmax(0, 1fr) 72px 40px 52px; gap: 8px; font-size: 13px; }

  .ppv2-coverage { font-size: 13px; line-height: 1.6; }
}
