/* Previously Stats Depth v1: scoped to owned comparison surfaces. */
.pv-depth {
  --pv-depth-bg: #0C121B;
  --pv-depth-text: #C7D0DA;
  --pv-depth-gold: #F2BC68;
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  color: var(--pv-depth-text);
  font-family: inherit;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}
.pv-depth *, .pv-depth *::before, .pv-depth *::after { box-sizing: border-box; }
.pv-depth h3 { margin: 0 0 8px; color: #f2f4f6; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.pv-depth h4 { margin: 0 0 8px; color: #f2f4f6; font-size: 1rem; }
.pv-depth p { margin: 0 0 16px; }
.pv-depth-heading { padding: 24px 0 12px; border-top: 1px solid #344151; }
.pv-depth-heading p { color: var(--pv-depth-gold); font-size: .9rem; }
.pv-depth-receipts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; padding: 0 0 16px; }
.pv-depth-receipts > div { display: grid; align-content: start; gap: 4px; }
.pv-depth-receipts strong { color: #f2f4f6; }
.pv-depth-receipts span { display: block; font-size: .8rem; }
.pv-depth-help { max-width: 75ch; font-size: .85rem; color: #aab7c6; }
.pv-depth-row { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(110px,.65fr)); align-items: center; gap: 16px; padding: 18px 16px; border-bottom: 1px solid #293544; background: #111b28; scroll-margin-top: 100px; }
.pv-depth-row:nth-child(even) { background: #0f1823; }
.pv-depth-metric { min-width: 0; display: grid; gap: 4px; }
.pv-depth-metric > strong { color: #edf1f5; font-size: .95rem; }
.pv-depth-metric > span { color: #aab7c6; font-size: .76rem; line-height: 1.5; }
.pv-depth-metric > .pv-depth-formula { color: #bdc9d7; }
.pv-depth-side { display: flex; flex-direction: column; gap: 6px; align-self: stretch; justify-content: center; min-width: 0; }
.pv-depth-side-name { color: #aab7c6; font-size: .76rem; }
.pv-depth-value { color: #f0f3f6; font-size: 1.45rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pv-depth-group { margin-top: 10px; border: 1px solid #344151; }
.pv-depth summary { cursor: pointer; padding: 14px 16px; min-height: 48px; color: #f2f4f6; font-weight: 600; }
.pv-depth summary::marker { color: var(--pv-depth-gold); }
.pv-depth-group summary span { display: inline; margin-left: 12px; font-size: .78rem; font-weight: 400; color: #b7c3d0; }
.pv-depth-group[open] > summary { border-bottom: 1px solid #344151; background: #182332; }
.pv-depth-warnings { margin: 20px 0; border-left: 2px solid var(--pv-depth-gold); background: #111b28; }
.pv-depth-warnings summary { color: var(--pv-depth-gold); font-size: .9rem; }
.pv-depth-warnings ul { margin: 0; padding: 0 20px 18px 36px; font-size: .82rem; }
.pv-depth-warnings li + li { margin-top: 8px; }
.pv-depth-take { margin-top: 24px; padding: 22px 20px; background: #141f2c; border-top: 2px solid var(--pv-depth-gold); }
.pv-depth-take p { max-width: 85ch; }
.pv-depth-take nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; }
.pv-depth a { color: var(--pv-depth-gold); text-decoration: underline; text-underline-offset: 3px; }
.pv-depth a:hover { color: #ffe0ad; }
.pv-depth-take a { display: inline-block; padding: 6px 0; }
.pv-depth :is(a,button,summary):focus-visible, .pv-depth-row:focus, .pv-depth-row:target { outline: 2px solid var(--pv-depth-gold); outline-offset: 3px; }
.pv-depth-local { margin-top: 28px; padding: 22px 0; border-top: 1px solid #344151; }
.pv-depth-local > p { max-width: 75ch; font-size: .87rem; }
.pv-depth button { appearance: none; display: inline-block; min-height: 44px; padding: 10px 16px; border: 1px solid var(--pv-depth-gold); border-radius: 0; background: transparent; color: var(--pv-depth-gold); font: inherit; font-size: .85rem; font-weight: 600; line-height: 1.4; white-space: normal; cursor: pointer; }
.pv-depth button:hover { background: #28303a; color: #ffe0ad; }
.pv-depth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.pv-depth-actions button { background: var(--pv-depth-gold); color: var(--pv-depth-bg); }
.pv-depth-actions button:hover { background: #ffcf89; color: var(--pv-depth-bg); }
.pv-depth-status:not(:empty) { margin: 12px 0; color: var(--pv-depth-gold); }
.pv-depth-status:empty { margin: 0; }
.pv-depth-checkpoint { padding: 18px 16px; margin: 16px 0; background: #111b28; border: 1px solid #344151; font-size: .85rem; }
.pv-depth-checkpoint p:last-child { margin-bottom: 0; }
.pv-depth-changes { margin: 0 0 14px; padding-left: 20px; }
.pv-depth-changes li + li { margin-top: 8px; }
.pv-depth-saved ul { list-style: none; margin: 18px 0 0; padding: 0; }
.pv-depth-saved li { display: flex; align-items: center; gap: 16px; justify-content: space-between; border-top: 1px solid #293544; padding: 16px 0; }
.pv-depth-saved li > div { min-width: 0; }
.pv-depth-saved li a { display: inline-block; padding: 4px 0; font-size: .95rem; }
.pv-depth-saved li span { display: block; font-size: .76rem; color: #aab7c6; }
.pv-depth-saved button { flex-shrink: 0; border-color: #596777; color: #c7d0da; }
@media (max-width: 600px) {
  .pv-depth-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; padding: 18px 14px; }
  .pv-depth-metric { grid-column: 1 / -1; padding-bottom: 2px; }
  .pv-depth-value { font-size: 1.4rem; }
  .pv-depth-receipts { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .pv-depth-receipts > div + div { border-top: 1px solid #293544; padding-top: 12px; }
  .pv-depth-group summary span { display: block; margin: 4px 0 0 16px; }
  .pv-depth-take { padding: 20px 16px; }
  .pv-depth-saved li { align-items: flex-start; }
  .pv-depth-saved button { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-depth, .pv-depth * { scroll-behavior: auto; animation: none; transition: none; }
}
/* The overview shares player headings; names and direction remain available to assistive technology. */
.pv-depth .pv-depth-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pv-depth-column-headings { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(110px,.65fr)); align-items: end; gap: 16px; padding: 12px 16px; background: #182332; font-size: .78rem; color: #c7d0da; }
.pv-depth-column-headings strong { font-weight: 600; }
.pv-depth [data-pv-overview] .pv-depth-row { min-height: 86px; padding-top: 14px; padding-bottom: 14px; }
.pv-depth .pv-depth-edge .pv-depth-value { color: var(--pv-depth-gold); }
.pv-depth-source { font-size: .8rem; color: #aab7c6; }
.pv-depth-unavailable { font-size: .72rem; color: #aab7c6; }
@media (max-width: 600px) {
  .pv-depth [data-pv-overview] .pv-depth-row, .pv-depth-column-headings { grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(0,.65fr)); gap: 10px; padding-left: 12px; padding-right: 12px; }
  .pv-depth [data-pv-overview] .pv-depth-metric { grid-column: auto; }
  .pv-depth [data-pv-overview] .pv-depth-metric > strong { font-size: .85rem; }
  .pv-depth [data-pv-overview] .pv-depth-metric > span { font-size: .68rem; }
  .pv-depth [data-pv-overview] .pv-depth-value { font-size: 1.15rem; }
  .pv-depth-column-headings { font-size: .68rem; }
}
