/* Price Pulse (/play, /play/leaderboard, /play/stats). Motion is transform
   and opacity only, one-shot (the deal, the flip, the sparkle burst); the
   only endless shine is the title's foil lettering from style.css. Reduced
   motion drops the movement and keeps the colour. */
.pp { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
.pp-public { padding: 0.4rem 0 2rem; }
@media (min-width: 1180px) {
  .pp { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 1.6rem; align-items: start; }
  .pp-head, .pp-bar { grid-column: 1 / -1; }
  .pp-stage, .pp-end { grid-column: 1; }
  .pp-side { grid-column: 2; grid-row: 4 / span 2; position: sticky; top: calc(var(--topbar-h) + 1rem); }
  .gm-page .pp-side { grid-row: 3 / span 2; }            /* the other games have no market bar */
}
.pp .eyebrow { margin-bottom: 0.3rem; }

/* ---------------------------------------------------------------- header */
.pp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.pp-title h1 { margin: 0 0 0.35rem; font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -0.045em; }
.pp-lede { margin: 0; max-width: 34rem; color: var(--ink-dim); }
.pp-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pp-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.8rem; border-radius: var(--pill);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.82rem; color: var(--ink-dim); white-space: nowrap; }
.pp-chip b { color: var(--ink); font-weight: 800; }
.pp-chip .ico { width: 1.05em; height: 1.05em; }
.pp-link { color: var(--ink-dim); }
.pp-link:hover { text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pp-chip-streak { background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--rainbow) border-box;
  border: 1px solid transparent; box-shadow: none; }
.pp-chip-streak b { font-size: 1rem; }
.pp-chip[hidden] { display: none; }
.pp-mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ------------------------------------------------------ market + progress */
.pp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; padding: 0.7rem 0.8rem;
  border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pp-market { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-market button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 700;
  padding: 0.38rem 0.8rem; border-radius: var(--pill); cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.pp-market button.on { background: var(--elev); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 14px -6px rgba(0, 0, 0, 0.6); }
.pp-market button:disabled { cursor: default; opacity: 0.45; }
.pp-market button:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }
.pp-pips { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; flex: 1 1 180px; min-width: 0; }
.pp-pip { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  position: relative; overflow: hidden; }
.pp-pip.is-guess { border-radius: 3px; }
.pp-pip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.4s var(--ease); }
.pp-pip.is-now::after { opacity: 1; background: var(--ice); }
.pp-pip.is-right::after { opacity: 1; background: var(--pos); }
.pp-pip.is-close::after { opacity: 1; background: var(--warn); }
.pp-pip.is-meh::after { opacity: 1; background: #e89a5a; }
.pp-pip.is-wrong::after { opacity: 1; background: var(--neg); }
.pp-total { margin-left: auto; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pp-total small { font-size: 0.78rem; color: var(--muted); font-weight: 700; margin-left: 1px; }

/* ----------------------------------------------------------------- stage */
.pp-stage { position: relative; border-radius: calc(var(--radius) + 6px); padding: clamp(1rem, 3vw, 1.8rem);
  background: radial-gradient(60rem 22rem at 50% -8%, rgba(191, 232, 247, 0.09), transparent 64%), var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pp-stage[hidden] { display: none; }
.pp-stage.is-busy .pp-card { cursor: progress; }
.pp-q { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-bottom: 1.1rem; }
.pp-q h2 { flex-basis: 100%; margin: 0.35rem 0 0; font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 900; letter-spacing: -0.035em; }
.pp-round-n { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.pp-theme { display: inline-flex; align-items: center; padding: 0.22rem 0.62rem; border-radius: var(--pill); font-size: 0.74rem; font-weight: 800;
  color: #10141a; background: var(--sticker); box-shadow: 0 2px 10px -4px rgba(191, 232, 247, 0.6); }
.pp-hint { font-size: 0.84rem; color: var(--muted); }

.pp-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: clamp(0.5rem, 2.4vw, 1.6rem);
  max-width: 620px; margin: 0 auto; }
.pp-vs { align-self: center; margin-top: -2.2rem; width: clamp(34px, 7vw, 54px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px -10px rgba(0, 0, 0, 0.7); }
.pp-vs i { font-style: normal; font-weight: 900; font-size: clamp(0.7rem, 1.9vw, 1.05rem); letter-spacing: -0.02em;
  background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* a card: a real button that flips to show its price */
.pp-card { position: relative; display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; perspective: 1600px; -webkit-tap-highlight-color: transparent; }
.pp-card:focus-visible { outline: none; }
.pp-card:focus-visible .pp-flip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ice); }
.pp-flip { position: relative; display: block; width: 100%; aspect-ratio: 63 / 88; border-radius: 4.6% / 3.3%;
  transform-style: preserve-3d; transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.85); }
.pp-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: #16171b; }
.pp-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-shine { position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.34) 48%, rgba(214, 240, 255, 0.18) 52%, transparent 62%);
  transform: translateX(-55%); transition: transform 0.9s var(--ease), opacity 0.3s; }
@media (hover: hover) {
  .pp-card:not(.is-revealed):not([aria-disabled]):hover .pp-flip { transform: translateY(-6px) rotateX(3deg); }
  .pp-card:not(.is-revealed):hover .pp-shine { opacity: 1; transform: translateX(55%); }
}
.pp-card.is-picked:not(.is-revealed) .pp-flip { transform: translateY(-4px) scale(0.985); box-shadow: 0 0 0 3px var(--ice), 0 22px 40px -22px rgba(0, 0, 0, 0.85); }
.pp-card.is-revealed .pp-flip { transform: rotateY(180deg); }
.pp-back { transform: rotateY(180deg); display: grid; place-items: center; background: #101116; }
.pp-back-art { position: absolute; inset: -14%; background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.5) brightness(0.5); }
.pp-back-foil { position: absolute; inset: 0; background: var(--sticker); opacity: 0.16; }
.pp-back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; pointer-events: none; opacity: 0;
  background: var(--rainbow); transition: opacity 0.5s 0.5s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pp-card.is-winner .pp-back::after { opacity: 1; }
.pp-back-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem; text-align: center; }
.pp-price { font-weight: 900; font-size: clamp(1.3rem, 5.2vw, 2.5rem); letter-spacing: -0.04em; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.pp-price-l { font-size: clamp(0.62rem, 1.6vw, 0.78rem); font-weight: 700; color: rgba(236, 246, 252, 0.8); letter-spacing: 0.02em; }
.pp-card.is-loser .pp-back { opacity: 0.7; transition: opacity 0.6s 0.6s; }   /* never on .pp-flip: opacity flattens its 3D */
.pp-card.is-winner .pp-flip { box-shadow: 0 26px 60px -26px rgba(191, 232, 247, 0.55); }
.pp-cap { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.pp-cap b { font-size: clamp(0.86rem, 2.2vw, 1.02rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.pp-cap small { font-size: 0.76rem; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.pp-cap .pp-rar { color: var(--ice); font-weight: 700; }
:root[data-theme="light"] .pp-cap .pp-rar { color: var(--ice-deep); }

/* the deal: the cards slide in once */
.pp-round .pp-card, .pp-round .pp-guess { opacity: 0; transform: translateY(18px); }
.pp-round.is-in .pp-card, .pp-round.is-in .pp-guess { opacity: 1; transform: none; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
.pp-round.is-in [data-pick="b"], .pp-round.is-in .pp-guess { transition-delay: 0.08s; }

/* the result under the cards */
.pp-result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.2rem auto 0; max-width: 720px; padding: 0.9rem 1rem;
  border-radius: var(--radius); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-result[hidden] { display: none; }
.pp-result.is-good { box-shadow: inset 0 0 0 1px rgba(86, 192, 138, 0.35); }
.pp-result p { margin: 0; }
.pp-result .small { flex: 1 1 240px; color: var(--ink-dim); }
.pp-verdict-l { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; flex-basis: 100%; }
.pp-next { margin-left: auto; }
.pp-alert { margin: 1rem auto 0; max-width: 720px; padding: 0.7rem 1rem; border-radius: var(--radius-sm); background: rgba(230, 181, 74, 0.12); color: var(--warn); }

/* sparkles when you're right */
.pp-burst { position: absolute; left: 50%; top: 38%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.pp-burst i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; background: var(--rainbow-spark);
  -webkit-mask: var(--spark-mask) center / contain no-repeat; mask: var(--spark-mask) center / contain no-repeat;
  opacity: 0; animation: pp-burst 0.95s var(--d, 0s) cubic-bezier(0.15, 0.7, 0.3, 1) both; }
.pp-burst i:nth-child(3n) { width: 10px; height: 10px; left: -5px; top: -5px; }
@keyframes pp-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(120deg); }
}

/* ------------------------------------------------------------ guess round */
.pp-solo { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.2rem); align-items: center;
  max-width: 760px; margin: 0 auto; }
.pp-card-solo { cursor: default; }
.pp-guess { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.pp-guess-v { font-weight: 900; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pp-slider { --pp-fill: 50%; width: 100%; height: 30px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pp-slider::-webkit-slider-runnable-track { height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, #9fe3f5, #cec6f6 60%, #ff9fc4) 0 0 / var(--pp-fill) 100% no-repeat, var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-slider::-moz-range-track { height: 10px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-slider::-moz-range-progress { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #9fe3f5, #cec6f6 60%, #ff9fc4); }
.pp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 0 0 4px rgba(191, 232, 247, 0.35), 0 6px 16px -4px rgba(0, 0, 0, 0.7); }
.pp-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 0 0 4px rgba(191, 232, 247, 0.35), 0 6px 16px -4px rgba(0, 0, 0, 0.7); }
.pp-slider:focus-visible { outline: none; }
.pp-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ice), 0 6px 16px -4px rgba(0, 0, 0, 0.7); }
.pp-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; margin-top: -0.35rem; }
.pp-fine { display: flex; align-items: center; gap: 0.5rem; }
.pp-fine .iconbtn { font-size: 1.2rem; font-weight: 800; width: 40px; height: 40px; }
.pp-type { flex: 1; display: flex; align-items: center; gap: 0.3rem; padding: 0 0.8rem; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.pp-type input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; }
.pp-type input:focus { outline: none; }
.pp-type:focus-within { box-shadow: inset 0 0 0 1px var(--ice); }
.pp-lock { align-self: flex-start; padding-inline: 1.4rem; }
.pp-meter { position: relative; flex-basis: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); margin: 0.4rem 0 0.2rem; }
.pp-meter span { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.pp-meter-a { background: var(--pos); box-shadow: 0 0 0 3px rgba(86, 192, 138, 0.25); }
.pp-meter-g { background: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ice); }

/* ---------------------------------------------------------------- the end */
.pp-end[hidden] { display: none; }
.pp-end-card { position: relative; text-align: center; padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1rem, 4vw, 2rem); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(40rem 18rem at 50% 0%, rgba(206, 198, 246, 0.12), transparent 70%), var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pp-end-card .eyebrow { justify-content: center; }
.pp-score { display: flex; align-items: baseline; justify-content: center; gap: 0.2rem; margin: 0.3rem 0 0.2rem; }
.pp-score b { font-size: clamp(3.4rem, 13vw, 5.6rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pp-score span { font-size: 1.2rem; font-weight: 800; color: var(--muted); }
.pp-verdict { font-weight: 800; font-size: 1.1rem; margin: 0 0 0.8rem; }
.pp-grid { display: inline-block; margin: 0 auto 1.1rem; padding: 0.7rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line); font-family: inherit; font-size: clamp(1.3rem, 5vw, 1.7rem); line-height: 1.25; letter-spacing: 0.08em; white-space: pre; }
.pp-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.pp-end-streak { margin: 0 0 0.3rem; }
.pp-end-rank { margin: 0 0 0.6rem; }
.pp-end-rank[hidden] { display: none; }
.pp-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.7rem 1rem; margin: 0.9rem auto 1rem; max-width: 560px;
  padding: 0.9rem 1rem; border-radius: var(--radius); text-align: left;
  background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box, var(--rainbow) border-box; border: 1px solid transparent; }
.pp-save-t { display: flex; gap: 0.6rem; align-items: flex-start; flex: 1 1 280px; font-size: 0.9rem; color: var(--ink-dim); }
.pp-save-t .ico { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; }
.pp-review-h { margin: 1.6rem 0 0.7rem; font-size: 1.1rem; }
.pp-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pp-review li { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.7rem; padding: 0.7rem; border-radius: var(--radius-sm); background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); }
.pp-review-n { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 900;
  background: var(--surface-2); color: var(--muted); }
.pp-review-t { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.pp-review-c { display: flex; gap: 0.6rem; align-items: flex-start; }
.pp-mini { flex: 1; display: grid; grid-template-columns: 44px 1fr; gap: 0 0.5rem; align-items: center; min-width: 0; padding: 0.3rem; border-radius: 8px; }
.pp-mini img { grid-row: span 2; width: 44px; height: auto; border-radius: 3px; }
.pp-mini b { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.pp-mini small { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-mini.is-win { background: rgba(86, 192, 138, 0.1); }
.pp-mini.is-pick { box-shadow: inset 0 0 0 1px var(--ice); }
.pp-mini-g { font-size: 0.74rem; color: var(--muted); text-align: right; }
.pp-mini-g b { color: var(--ink); font-size: 0.92rem; }

/* ------------------------------------------------------------------ side */
.pp-side { display: grid; gap: 1rem; min-width: 0; }
.pp-board .panel-head h2 { display: flex; align-items: center; gap: 0.4rem; font-size: 1rem; margin: 0; }
.pp-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.pp-board-list li { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.pp-board-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.pp-board-list b { font-variant-numeric: tabular-nums; }
.pp-board-n { width: 1.4rem; text-align: center; font-weight: 900; color: var(--muted); font-size: 0.82rem; }
.pp-board-list li:first-child .pp-board-n { color: var(--ice); }
.pp-how summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.pp-how ul { margin: 0.8rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; color: var(--ink-dim); }

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .pp-bar { padding: 0.6rem; gap: 0.6rem; }
  .pp-market { width: 100%; }
  .pp-market button { flex: 1; padding-inline: 0.4rem; }
  .pp-pips { flex-basis: 60%; }
  .pp-stage { padding: 0.9rem 0.7rem 1rem; border-radius: var(--radius); }
  .pp-vs { margin-top: -3.4rem; }
  .pp-solo { grid-template-columns: minmax(0, 1fr); }
  .pp-card-solo { max-width: 210px; margin: 0 auto; width: 100%; }
  .pp-lock { align-self: stretch; }
  .pp-next { width: 100%; justify-content: center; }
  .pp-grid { letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-flip, .pp-shine, .pp-round .pp-card, .pp-round .pp-guess { transition: none !important; }
  .pp-round .pp-card, .pp-round .pp-guess { opacity: 1; transform: none; }
  .pp-burst { display: none; }
}

/* --------------------------------------------------- leaderboard & stats */
.pp-page { max-width: 880px; margin: 0 auto; }
.pp-public.pp-page { padding: 0.4rem 0 2rem; }
.pp-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.4rem 0 1rem; }
.pp-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.pp-lb li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.pp-lb li.is-me { box-shadow: inset 0 0 0 1px var(--ice); }
.pp-lb .n { font-weight: 900; font-size: 1.05rem; text-align: center; color: var(--muted); }
.pp-lb li:nth-child(-n+3) .n { background: var(--foil-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pp-lb .who { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.pp-lb .who a { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-lb .sc { font-weight: 900; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.pp-lb .sc small { color: var(--muted); font-weight: 700; font-size: 0.75rem; }
.pp-me { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.9rem 1rem; margin-bottom: 1rem; border-radius: var(--radius);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-cal { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; margin-top: 0.4rem; }
.pp-cal span { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pp-cal span.s1 { background: rgba(159, 227, 245, 0.25); }
.pp-cal span.s2 { background: rgba(159, 227, 245, 0.45); }
.pp-cal span.s3 { background: rgba(206, 198, 246, 0.7); }
.pp-cal span.s4 { background: var(--rainbow-spark); }
.pp-cal-legend { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--faint); margin-top: 0.35rem; }

/* ----------------------------------------------------- the games hub tabs */
.pp-hub { grid-column: 1 / -1; display: flex; gap: 0.4rem; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.pp-hub::-webkit-scrollbar { display: none; }
.pp-hub-t { position: relative; flex: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border-radius: var(--radius-sm);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-dim); font-weight: 700; font-size: 0.9rem; }
.pp-hub-t:hover { text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pp-hub-t.on { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--ice), 0 8px 22px -12px rgba(191, 232, 247, 0.5); }
.pp-hub-t .ico { width: 1.1em; height: 1.1em; }
.pp-hub-ok { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.64rem; font-weight: 900; color: #0d1a12; background: var(--pos); }
.pp-tabs-sub { margin-top: -0.4rem; }
.pp-hist { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.pp-hist li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 2rem; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.pp-hist span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-hist i { display: block; height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pp-hist i b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--rainbow); }
.pp-hist em { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
