/* Profile page */
.pp { display: grid; gap: 0; min-width: 0; }
.pp button:focus-visible, .pp a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.pp-avatar { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 900 30px/1 var(--font); }
.pp-who h1 { overflow-wrap: anywhere; }
.pp-level { margin: 2px 0 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; } .pp-level span, .pp-keys span { color: var(--muted); font-size: 13px; }
.pp-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; max-width: 420px; }
.pp-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pp-bar.small { height: 6px; max-width: none; } .pp-bar.small i { background: var(--info); }
.pp-keys { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pp-key { width: 20px; height: 20px; color: var(--accent); flex: none; }
.pp-wallet { display: grid; gap: 8px; justify-items: stretch; min-width: 170px; }
.pp-balance { display: flex; align-items: center; gap: 8px; font-size: 18px; font-variant-numeric: tabular-nums; }
.pp-btn { display: grid; place-items: center; text-align: center; min-height: 40px; width: auto; }
.pp-stats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pp-stats li { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 2px; min-width: 0; }
.pp-stats b { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; } .pp-stats small { color: var(--muted); font-size: 12px; font-weight: 700; } .pp-stats span { color: var(--muted); font-size: 12px; }
.pp-worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pp-world { display: grid; align-content: start; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pp-world.on { box-shadow: 0 0 0 2px var(--accent); }
.pp-world-open { display: grid; text-align: left; width: 100%; }
.pp-world-pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0c0d; }
.pp-world-pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pp-world-pic .world-noshot { display: grid; }
.pp-world-body { display: grid; gap: 2px; padding: 10px 12px; } .pp-world-body span { color: var(--muted); font-size: 12px; }
.pp-world-body b { font-size: 15px; }
.pp-pass { margin: 0 10px 10px; font-size: 13px; height: auto; min-height: 36px; white-space: normal; line-height: 1.25; }
.pp-detail { margin-top: 14px; }
.pp-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-game { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.pp-game-main { display: grid; min-width: 0; } .pp-game-main b { overflow-wrap: anywhere; } .pp-game-main span, .pp-game-stat { color: var(--muted); font-size: 12px; }
.pp-state { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; background: var(--surface-3); }
.pp-free, .pp-open { color: var(--win); } .pp-locked { color: var(--muted); }
.pp-game-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pp-game-act .ghost { display: inline-grid; place-items: center; min-height: 36px; background: var(--surface-3); }
.pp-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.pp-tab { flex: none; min-height: 38px; padding: 6px 14px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.pp-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.pp-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pp-card { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.pp-card.done { box-shadow: 0 0 0 1px #2c6b4d; }
.pp-card p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pp-card-line { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 12px !important; }
.pp-reward { color: var(--accent); font-weight: 700; }
.pp-got { color: var(--win); font-weight: 800; font-size: 13px; }
.pp-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-badges li { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--info); font-weight: 700; font-size: 13px; }
.pp-fine { margin: 24px 0 0; color: var(--faint); font-size: 12px; }
.pp-board, .pp-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-rank { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.pp-rank.me { box-shadow: 0 0 0 2px var(--accent); }
.pp-pos { font-weight: 800; color: var(--muted); } .pp-rank b { overflow-wrap: anywhere; } .pp-rank-n { color: var(--muted); font-size: 12px; }
.pp-you { margin: 8px 0 0; font-weight: 700; }
.pp-hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.pp-when, .pp-what span { color: var(--muted); font-size: 12px; } .pp-what { display: grid; min-width: 0; } .pp-what b { overflow-wrap: anywhere; }
.pp-how { font-weight: 700; font-size: 13px; text-align: right; }
.pp-more { margin-top: 8px; min-height: 40px; }
@media (max-width: 480px) {
  .pp-rank { grid-template-columns: 28px minmax(0, 1fr); } .pp-rank-n { grid-column: 2; }
  .pp-hist li { grid-template-columns: minmax(0, 1fr) auto; } .pp-when { grid-column: 1 / -1; }
}
.pp-sub { margin: 16px 0 8px; font-size: 15px; }
.pp-goals { margin-bottom: 4px; }
@media (max-width: 760px) {
  .pp-head { grid-template-columns: auto minmax(0, 1fr); } .pp-wallet { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } .pp-balance { grid-column: 1 / -1; }
  .pp-game { grid-template-columns: minmax(0, 1fr) auto; } .pp-game-stat { grid-column: 1; } .pp-game-act { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 480px) { .pp-worlds { grid-template-columns: 1fr 1fr; gap: 8px; } .pp-avatar { width: 52px; height: 52px; font-size: 24px; } .pp-ach { grid-template-columns: 1fr; } }
.pp-badges button.pp-badge { font: inherit; color: inherit; background: var(--surface-2); box-shadow: 0 0 0 1px var(--info); border: 0; border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.pp-badges button.pp-badge[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); box-shadow: 0 0 0 2px var(--accent); }
.pp-hint { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.pp-pinned { display: inline-block; max-width: 140px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--info); font-size: 12px; font-weight: 700; }

/* Trail Pass */
.pp-season { min-width: 0; margin-bottom: 4px; }
.pp-season-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 8px; }
.pp-season-top .pp-level { margin: 0; } .pp-season-top .primary { min-height: 40px; white-space: normal; }
.pp-pass { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; margin-top: 12px; min-width: 0; }
.pp-pass-labels, .pp-tier { display: grid; grid-template-rows: 44px 96px 96px; gap: 6px; }
.pp-pass-labels span { display: grid; align-items: center; color: var(--muted); font-size: 12px; font-weight: 800; }
.pp-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; min-width: 0; scroll-snap-type: x proximity; }
.pp-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-tier { flex: none; width: 118px; scroll-snap-align: start; }
.pp-tier-n { display: grid; align-content: center; text-align: center; border-radius: 10px; background: var(--surface-3); } .pp-tier.reached .pp-tier-n { box-shadow: 0 0 0 1px var(--accent); }
.pp-tier-n small { color: var(--muted); font-size: 11px; }
.pp-cell { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; padding: 8px; border-radius: 10px; background: var(--surface-2); min-width: 0; overflow: hidden; }
.pp-cell.ready { box-shadow: 0 0 0 2px var(--accent); } .pp-cell.got { box-shadow: 0 0 0 1px #2c6b4d; } .pp-cell.empty { place-items: center; opacity: .5; }
.pp-cell .pp-reward { font-size: 12px; overflow-wrap: anywhere; line-height: 1.25; }
.pp-cell .primary { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.pp-cell-state { color: var(--faint); font-size: 12px; text-align: center; }
@media (max-width: 480px) { .pp-pass { grid-template-columns: 46px minmax(0, 1fr); gap: 6px; } .pp-tier { width: 108px; } }
