/* The player card a Home leaderboard row opens (player-card.js). It sits above
   the artboard in viewport coordinates, like the past-sets sheet, so the
   440x977 screen zoom never shrinks it on a phone. */
[data-player-card][role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-player-card][role="button"]:focus-visible { outline: 2px solid #E32A32; outline-offset: 2px; }
html.dds-playercard-open, html.dds-playercard-open body { overflow: hidden; }
.pc-scrim {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(6,6,6,.72);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.pc-sheet {
  width: min(100vw, 440px); max-height: 86dvh; box-sizing: border-box;
  display: flex; flex-direction: column;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #101010; border: 1px solid rgba(244,241,236,.14);
  border-bottom: 0; border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.6);
  font-family: var(--font-body, system-ui, sans-serif); color: #F4F1EC;
}
.pc-head { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(244,241,236,.12); }
.pc-avatar { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(180deg, #D8262E, #B01F26); border: 2px solid rgba(244,241,236,.18); font-family: var(--font-header, system-ui); font-size: 21px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.pc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-title small { font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .2em; color: #E3555B; text-transform: uppercase; }
.pc-title b { font-family: var(--font-header, system-ui); font-size: 21px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.pc-title span { font-family: var(--font-mono, monospace); font-size: 10.5px; letter-spacing: .08em; color: rgba(244,241,236,.6); text-transform: uppercase; }
.pc-close { width: 44px; height: 44px; flex-shrink: 0; align-self: flex-start; border: 1px solid rgba(244,241,236,.18); border-radius: 12px; background: rgba(244,241,236,.04); color: #F4F1EC; font-size: 16px; cursor: pointer; }
.pc-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: 12px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-stat { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; background: #1A1A1A; border: 1px solid #292929; border-radius: 8px; }
.pc-stat span { font-family: var(--font-mono, monospace); font-size: 8.5px; letter-spacing: .12em; color: #E32A32; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-stat b { font-family: var(--font-header, system-ui); font-size: 17px; font-weight: 700; color: #F4F1EC; font-feature-settings: "tnum"; overflow-wrap: anywhere; }
.pc-section { margin: 16px 0 6px; font-family: var(--font-mono, monospace); font-size: 9.5px; letter-spacing: .14em; color: rgba(244,241,236,.55); text-transform: uppercase; }
.pc-day { border-bottom: 1px solid rgba(244,241,236,.08); }
.pc-dayhead { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 2px; background: none; border: 0; color: #F4F1EC; text-align: left; cursor: pointer; font: inherit; }
.pc-dayhead b { font-family: var(--font-header, system-ui); font-size: 16px; font-weight: 700; white-space: nowrap; }
.pc-dayhead span { flex: 1; min-width: 0; font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .06em; color: rgba(244,241,236,.6); overflow-wrap: anywhere; }
.pc-dayhead i { flex-shrink: 0; font-style: normal; color: #E32A32; font-size: 14px; transition: transform .15s ease; }
.pc-dayhead[aria-expanded="true"] i { transform: rotate(90deg); }
.pc-daybody { padding: 0 2px 10px; }
.pc-move { margin-top: 8px; }
.pc-move h4 { margin: 0 0 4px; font-family: var(--font-header, system-ui); font-size: 14px; font-weight: 700; color: #F4F1EC; overflow-wrap: anywhere; }
.pc-sets { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pc-sets li { padding: 4px 7px; border: 1px solid #333; border-radius: 6px; background: #181818; font-family: var(--font-mono, monospace); font-size: 11px; color: rgba(244,241,236,.9); font-feature-settings: "tnum"; }
.pc-sets li.pc-ramp { color: rgba(244,241,236,.6); border-style: dashed; }
.pc-sets li.pc-skipped { color: #FF8A8F; border-color: rgba(227,85,91,.45); text-decoration: line-through; text-decoration-color: rgba(255,138,143,.5); }
.pc-empty, .pc-note { font-size: 12px; line-height: 1.5; color: rgba(244,241,236,.6); }
.pc-retry { min-height: 44px; margin-top: 6px; padding: 0 16px; border: 1px solid #E3555B; border-radius: 10px; background: #C8232A; color: #fff; font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .08em; cursor: pointer; }
@media (max-width: 359px) {
  .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-title b { font-size: 18px; }
  .pc-avatar { width: 48px; height: 48px; font-size: 18px; }
}

.pc-compare { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 16px; font-size: 12px; }
.pc-compare th, .pc-compare td { padding: 10px 5px; border-bottom: 1px solid #303030; text-align: left; overflow-wrap: anywhere; vertical-align: top; }
.pc-compare th:first-child { width: 34%; }
.pc-compare thead th { color: #F4F1EC; }
.pc-compare .pc-ahead { color: #F04A55; font-weight: 700; }
.pc-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pc-cheers { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.pc-cheers button { min-height: 44px; padding: 8px; background: #202020; border: 1px solid #555; border-radius: 8px; color: #F4F1EC; font: inherit; font-size: 12px; cursor: pointer; }
.pc-cheers button[aria-pressed="true"] { background: #9C1A20; border-color: #E3555B; }
.pc-cheers button:disabled { cursor: default; }

.pc-trend { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 10px 6px; list-style: none; background: #1A1A1A; border: 1px solid #292929; border-radius: 8px; }
.pc-trend li { min-width: 0; text-align: center; }
.pc-trend-track { height: 72px; display: flex; align-items: flex-end; justify-content: center; }
.pc-trend-bar { display: block; width: 70%; background: rgba(244,241,236,.35); border-radius: 3px 3px 0 0; }
.pc-trend-current .pc-trend-bar { background: #E32A32; }
.pc-trend-label { display: block; margin-top: 6px; font-family: var(--font-mono, monospace); font-size: 9px; overflow-wrap: anywhere; }
.pc-bests, .pc-challenges { list-style: none; padding: 0; margin: 0; }
.pc-bests li, .pc-challenges li { padding: 10px; margin-top: 5px; background: #1A1A1A; border: 1px solid #292929; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.pc-bests li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.pc-bests span { text-align: right; font-family: var(--font-mono, monospace); font-size: 11px; white-space: nowrap; }
.pc-challenges li { font-family: var(--font-mono, monospace); font-size: 11px; }
.pc-progress-note { overflow-wrap: anywhere; }
@media (max-width: 359px) {
  .pc-trend { gap: 3px; padding: 8px 4px; }
  .pc-trend-label { font-size: 8px; }
  .pc-bests li { gap: 6px; padding: 8px; }
}
