.p-byline {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  min-width: 0;
}

.p-byline .p-pad-name {
  min-width: 0;
}

.p-context {
  flex: none;
  color: #eee6cb;
  font: 600 .8rem/1.12 var(--body);
}

.p-context::before {
  content: "";
  display: inline-block;
  height: .72em;
  margin-right: .45rem;
  border-left: 1px solid currentColor;
  opacity: .46;
}

.p-pad[data-preview=true] .p-meter i {
  visibility: hidden;
}

[data-mode=duet] #p-series {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .85rem;
  row-gap: .12rem;
  min-width: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.p-goal {
  white-space: nowrap;
}

.p-goal[data-reached=true] {
  color: #b5edae;
}

.p-goal[data-reached=true]::after {
  content: "✓";
  margin-left: .2em;
}

.p-stage[data-mode=block] {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "bar bar bar bar"
    "h0 time time h1"
    "court court court court"
    "strategy strategy strategy strategy"
    "pad0 pad0 pad1 pad1";
}

.p-strategy {
  grid-area: strategy;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid #455453;
  background: #17252a;
  --shot-ink: var(--tangerine);
}

.p-strategy[data-attacker="1"] {
  --shot-ink: var(--teal);
}

.p-strategy[data-attacker="1"] .p-shot-choice {
  order: 1;
}

.p-shot-choice {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  padding: 3px 4px;
}

.p-shot-type {
  display: inline-flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 148px;
  min-width: 0;
  min-height: 44px;
  padding: 3px 4px;
  color: #e8ede3;
  background: #233338;
  border: 1px solid #64736e;
  border-radius: 5px;
  font: 700 .86rem/1.1 var(--body);
}

.p-shot-type[aria-pressed=true] {
  background: #34413f;
  border: 2px solid var(--shot-ink);
  color: var(--shot-ink);
}

.p-shot-type:disabled {
  cursor: default;
  opacity: .7;
}

.p-shot-type[aria-pressed=true]:disabled {
  opacity: 1;
}

.p-shot-type::before {
  content: "";
  flex: none;
  width: 17px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
}

#p-lob::before {
  height: 13px;
  border-inline: 1px solid currentColor;
  border-radius: 50% 50% 0 0;
}

.p-read {
  justify-self: center;
  padding-inline: 5px;
  color: #c3cec4;
  text-align: center;
  font: 600 .85rem/1.15 var(--body);
}

.p-read[data-read=quick], .p-read[data-read=lob] {
  color: #fff2cc;
  font-weight: 700;
}

.p-pair-record {
  margin: .5rem 0;
  padding: .45rem .65rem;
  border: 1px solid #56756c;
  border-radius: 4px;
  background: #213936;
  color: #d0edc6;
  font-weight: 700;
}

.pair-match:has(.p-end:not([hidden])), .p-end, .p-end .result-card {
  touch-action: pan-y;
}

@media (max-width: 520px) {
  .p-shot-type {
    flex-direction: column;
    gap: 3px;
    font-size: .74rem;
  }

  [data-mode=duet] #p-series {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex-shrink: 0;
  }
}
