.ph-page { box-sizing:border-box; width:100%; max-width:1240px; min-height:72vh; margin:auto;
  container-type:inline-size; padding:12px 14px 28px; color:#faf9ff; background:#0c0b1c; border-radius:24px; }
.ph-header { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:48px; margin:0 0 16px; }
.ph-header h1 { margin:0; font-size:20px; line-height:1.2; font-weight:700; letter-spacing:-.02em; }
.ph-back { justify-self:start; width:44px; height:44px; background:none; border:0; color:inherit; font-size:32px; line-height:1; }
.ph-modes { display:flex; justify-self:end; padding:2px; border-radius:13px; background:#ffffff0a; border:1px solid #ffffff14; }
.ph-mode { display:grid; width:34px; height:34px; place-items:center; border-radius:11px; color:#bdb8d0; }
.ph-mode[aria-current] { color:white; background:#7a45fd4d; box-shadow:inset 0 0 0 1px #b7aaf040; }
.ph-mode-grid span {display:grid;grid-template-columns:repeat(2,6px);gap:2px;}
.ph-mode-grid i {width:6px;height:6px;border:1.5px solid currentColor;border-radius:1.5px;}
.ph-mode-list span { width:16px; height:2px; background:currentColor; box-shadow:0 -5px,0 5px; }
.ph-summary { margin:0 6px; padding:20px; display:grid; gap:10px; background:linear-gradient(180deg,#100f24 0%,#100f24 47%,#302050 100%);
  border:1px solid #7a45fd4d; border-radius:24px; }
.ph-summary > div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ph-summary dt { font-size:16px; color:#ffffff99; font-weight:600; }
.ph-summary dd { font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; }
.ph-list-title { margin:16px 6px 8px; color:#a8a5b7; font-size:12px; letter-spacing:.09em; text-transform:uppercase; }
.ph-openings { display:grid; gap:12px; padding:6px; }
.ph-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ph-list { grid-template-columns:minmax(0,1fr); }
@container (min-width: 516px) { .ph-grid {grid-template-columns:repeat(3,minmax(0,1fr));} }
@container (min-width: 686px) { .ph-grid {grid-template-columns:repeat(4,minmax(0,1fr));} }
@container (min-width: 1134px) { .ph-list {grid-template-columns:repeat(2,minmax(0,1fr));} }
.ph-entry { --ph-line:#9990fa8c; --ph-glow:#7a45fd12; --ph-tier:#c8bddf;
  display:flex; flex-direction:column; gap:10px; align-items:stretch; isolation:isolate;
  position:relative; overflow:hidden; min-width:0; padding:12px; border:1px solid transparent; border-radius:22px;
  color:#faf9ff; background:linear-gradient(#100f20,#100f20) padding-box,
    linear-gradient(0deg,var(--ph-line),#ffffff24 60%,#ffffff12) border-box; }
.ph-entry.ph-profit { --ph-line:#4ade8099; --ph-glow:#4ade8019; }
.ph-entry::before,.ph-entry::after {position:absolute; inset:0; content:''; pointer-events:none; z-index:-1;}
.ph-entry::before {background:var(--ph-art) center/cover; opacity:.18;}
.ph-entry::after {background:radial-gradient(ellipse 92% 44% at 50% 32%,var(--ph-glow),transparent);}
.ph-entry[data-rarity=Common] {--ph-art:url('/art/handbag-reel/common-card-bg.webp');}
.ph-entry[data-rarity=Uncommon] {--ph-art:url('/art/handbag-reel/uncommon-card-bg.webp');--ph-tier:#a2e6b4;}
.ph-entry[data-rarity=Rare] {--ph-art:url('/art/inventory/rare-card-bg.webp');--ph-tier:#a2c7ff;}
.ph-entry[data-rarity=Epic] {--ph-art:url('/art/inventory/epic-card-bg.webp');--ph-tier:#ccb1fc;}
.ph-entry[data-rarity=Legendary] {--ph-art:url('/art/inventory/legendary-card-bg.webp');--ph-tier:#ffdd99;}
.ph-entry[data-rarity=Grail] {--ph-art:url('/art/handbag-reel/grail-card-bg.webp');--ph-tier:#ffd9a7;}
.ph-entry:focus-visible,.ph-mode:focus-visible,.ph-more:focus-visible,.ph-back:focus-visible {outline:2px solid #d6c5ff;outline-offset:2px;}
.ph-entry:active {opacity:.8;}
.ph-stage {position:relative;aspect-ratio:1;width:100%;align-self:center;}
.ph-stage img {position:absolute;object-fit:contain;pointer-events:none;}
.ph-unavailable {position:absolute;display:grid;align-content:center;padding:4px;text-align:center;background:#151326dc;border-radius:9px;color:#c7bfd8;font-size:11px;}
.ph-pack {left:5%;top:2%;height:96%;width:66%;transform:rotate(-4deg);}
.ph-prize {bottom:4%;right:0;height:72%;width:52%;transform:rotate(10deg);filter:drop-shadow(0 8px 9px #0007);}
.ph-box .ph-pack {left:0;top:8%;width:76%;height:78%;transform:none;}
.ph-box .ph-prize {right:0;bottom:4%;width:54%;height:54%;transform:none;}
.ph-info {display:grid;align-content:start;gap:5px;min-width:0;}
.ph-info h3 {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.22;}
.ph-open {color:inherit;}
.ph-open::after {content:'';position:absolute;inset:0;z-index:1;}
.ph-entry:has(.ph-open:focus-visible) {outline:2px solid #d6c5ff;outline-offset:2px;}
.ph-chips {display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:20px;}
.ph-chips span,.ph-copies summary {padding:2px 7px;color:#eeeaf9;background:#ffffff0f;border:1px solid #ffffff15;border-radius:99px;font-size:11px;line-height:15px;}
.ph-copies {position:relative;z-index:2;max-width:100%;}
.ph-copies summary {width:max-content;cursor:pointer;}
.ph-copies[open] {flex-basis:100%;}
.ph-copies ol {margin:8px 0;padding-inline-start:18px;font-size:12px;}
.ph-copy {display:block;padding:6px 0;color:inherit;}
.ph-copy small {display:block;color:#ccc4dd;}
.ph-chips .ph-sold {color:#e3d7ff;border-color:#a185d95e;}
.ph-tier {color:var(--ph-tier);font-size:12px;font-weight:600;}
.ph-time {color:#b8b3c8;font-size:11px;line-height:1.25;}
.ph-money {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin-top:auto;font-size:16px;font-variant-numeric:tabular-nums;}
.ph-money strong {font-weight:800;}
.ph-money span {font-size:12px;font-weight:700;color:#86efac;}
.ph-list .ph-entry {flex-direction:row;align-items:center;gap:12px;}
.ph-list .ph-entry::after {background:linear-gradient(to bottom left,var(--ph-glow),transparent);}
.ph-list .ph-stage {width:92px;flex:none;}
.ph-list .ph-info {flex:1;}
.ph-list .ph-money {margin:0 0 0 auto;display:grid;justify-items:end;max-width:32%;text-align:right;}
.ph-empty {display:grid;justify-items:center;align-content:center;gap:12px;min-height:36vh;padding:40px 24px;text-align:center;}
.ph-empty-icon {display:grid;place-items:center;width:56px;height:56px;background:#7a45fd26;color:#bb9bff;border-radius:16px;border:1px solid #b7aaf040;font:26px 'Wallet Icons';}
.ph-empty h3 {font-size:20px;}
.ph-empty p,.ph-message {color:#bab7c9;font-size:14px;line-height:1.5;}
.ph-text-link,.ph-more {display:inline-flex;align-items:center;min-height:40px;margin:0 6px;color:#cbb5ff;}
.ph-more {display:block;margin:16px auto 0;padding:0 20px;border:1px solid #ffffff26;border-radius:99px;background:#211c35;color:#fff;}
.ph-message {margin:8px 6px;text-align:center;}
.ph-message:empty {display:none;}
@media(max-width:760px) {
  main:has(> .ph-page) {padding:0 0 calc(64px + env(safe-area-inset-bottom));}
  .ph-page {border-radius:0;min-height:calc(100svh - 112px);}
}
