body:has(:is(#main,#layer) > .paid-hand) { overflow:hidden; }
body:has(:is(#main,#layer) > .paid-hand) > :is(.mast,.bottom-nav),
.frame:has(> :is(#main,#layer) > .paid-hand) > .rail { display:none; }
#main:has(> .paid-hand) { padding:0; grid-column:1/-1; }
:is(#main,#layer) > .paid-hand {
  --ph-size:240px; --ph-height:334px; --ph-tone:#39da82; --ph-dock:64px;
  position:fixed; inset:0; z-index:35; isolation:isolate; display:block;
  width:100%; height:100dvh; max-width:none; margin:0; padding:0; overflow:hidden;
  color:#fff; color-scheme:dark; font:600 16px/1.5 'Proxima Nova',system-ui,sans-serif;
  background:radial-gradient(95% 80% at 50% 46%,color-mix(in oklab,#3a3358 40%,#0d0a1a),#0d0a1a 75%);
}
.paid-hand *, .paid-hand *::before { box-sizing:border-box; }
.paid-hand :is(button,a) { font:inherit; cursor:pointer; }
.paid-hand :is(button,a):focus-visible { outline:2px solid #bbadff; outline-offset:3px; }
.paid-hand [hidden] { display:none!important; }
.paid-hand :is(h1,h2,p) { margin:0; }
.paid-hand .ph-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.paid-hand .ph-body { position:absolute; inset:0 0 calc(var(--ph-dock) + env(safe-area-inset-bottom,0px)); overflow:clip; }
.paid-hand[data-phase=overview] .ph-body { visibility:hidden; }
.paid-hand .ph-rail {
  position:absolute; top:calc(50% - var(--ph-height)/2); left:calc(50% - var(--ph-size)/2 - 6px);
  display:flex; width:calc(var(--ph-size) + 12px); height:var(--ph-height);
  transform:translateX(var(--ph-offset,0%)); transition:transform 360ms cubic-bezier(.22,1,.36,1);
  touch-action:pan-y; user-select:none; -webkit-user-select:none;
}
.paid-hand .ph-rail[data-dragging] { transition:none; }
.paid-hand .ph-tile {
  flex:0 0 100%; display:flex; align-items:end; justify-content:center; padding-inline:6px;
  transform-origin:50% 100%; transition:opacity 360ms ease-out,scale 360ms ease-out;
}
.paid-hand .ph-tile[data-active=false] { scale:.84; opacity:.4; }
.paid-hand .ph-art-button, .paid-hand .ph-overview-item {
  position:relative; display:flex; justify-content:center; align-items:end;
  width:100%; max-height:100%; padding:0; border:0; border-radius:0; background:transparent;
}
.paid-hand .ph-tile[data-active=true] .ph-art-button { cursor:zoom-in; }
.paid-hand .ph-photo {
  display:block; width:100%; height:auto; max-width:100%; max-height:100%; margin:0;
  object-fit:contain; translate:0 var(--ph-floor,0%); pointer-events:none;
  filter:drop-shadow(0 0 3px color-mix(in srgb,var(--ph-tone) 65%,transparent))
         drop-shadow(0 0 20px color-mix(in srgb,var(--ph-tone) 40%,transparent));
}
.paid-hand .ph-caption {
  position:absolute; top:calc(50% + var(--ph-height)/2 + 8px); left:50%; transform:translateX(-50%);
  width:100%; max-width:472px; padding-inline:16px; text-align:center;
}
.paid-hand .ph-dots { display:flex; align-items:center; justify-content:center; height:22px; }
.paid-hand .ph-marker { display:grid; place-items:center; padding:8px 3px; border:0; border-radius:99px; background:transparent; }
.paid-hand .ph-marker span { width:6px; height:6px; border-radius:8px; background:var(--ph-tone); }
.paid-hand .ph-marker[aria-current=true] span { width:16px; }
.paid-hand .ph-marker.ph-decided:not([aria-current=true]) span { opacity:.35; }
.paid-hand .ph-price { margin:2px 0 4px; font-weight:900; font-size:46px; line-height:1.1; font-variant-numeric:tabular-nums; }
.paid-hand .ph-price small { font-size:26px; }
.paid-hand .ph-name { font-size:16px; line-height:1.25; font-weight:700; }
.paid-hand :is(.ph-name,.ph-grade,.ph-price) { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.paid-hand .ph-grade,.paid-hand .ph-fate { color:#abadcc; margin-top:2px; font-size:13px; }
.paid-hand .ph-fate { color:#cdecd9; }
.paid-hand .ph-footer {
  position:absolute; z-index:2; bottom:calc(18px + env(safe-area-inset-bottom,0px)); inset-inline:16px;
  display:flex; gap:8px; align-items:center; margin:auto;
}
.paid-hand .ph-exit { display:grid; place-items:center; flex:0 0 40px; height:40px; overflow:hidden; font-size:0; color:#c2bfd9; background:#0d0c1ebd; border-radius:50%; text-decoration:none; }
.paid-hand .ph-exit::before { content:'←'; font:600 22px/1 system-ui; }
.paid-hand .ph-actions { flex:1; min-width:0; }
:is(.ph-actions,.ph-detail-actions) .model-form,:is(.ph-actions,.ph-detail-actions) .model-form .controls { display:block; border:0; margin:0; padding:0; min-width:0; background:none; }
:is(.ph-actions,.ph-detail-actions) .model-form .actions { display:flex; margin:0; gap:8px; }
:is(.ph-actions,.ph-detail-actions) .model-form .button,.paid-hand :is(.ph-secondary,.ph-inventory) {
  display:grid; place-items:center; flex:1; min-width:0; min-height:44px; margin:0; padding:5px 12px;
  border:0; border-radius:12px; background:#302e54; color:white; text-decoration:none;
  font:800 14px/1.25 'Proxima Nova',system-ui,sans-serif;
}
.paid-hand .ph-sell,.paid-hand .ph-dialog .model-form .button {
  border:2px solid #6744fa; background:linear-gradient(#3116ad,#603aef);
}
.paid-hand .form-status:empty { display:none; }
.paid-hand .form-status:not(:empty) { font-size:13px; color:white; background:#1a1729; }
.paid-hand .ph-overview {
  position:absolute; inset:0; display:block; width:100%; padding:0; border:0; color:white; background:transparent;
}
.paid-hand .ph-prompt { position:absolute; top:max(16px,env(safe-area-inset-top)); inset-inline:0; text-align:center; color:#abadcc; font-size:15px; }
.paid-hand .ph-spread {
  position:absolute; top:calc((100% - var(--ph-dock) - env(safe-area-inset-bottom,0px))/2); left:50%; transform:translate(-50%,-50%);
  display:grid; grid-template-columns:repeat(var(--ph-columns,3),var(--ph-thumb,106px)); gap:var(--ph-gap,18px);
  justify-content:center; align-items:end; pointer-events:none;
}
.paid-hand .ph-overview-item { align-self:end; height:var(--ph-thumb-height,174px); }
.paid-hand .ph-dialog { width:min(380px,calc(100% - 32px)); padding:24px; border:1px solid #534b70; border-radius:18px; background:#211d34; color:white; text-align:center; }
.paid-hand .ph-dialog::backdrop { background:#090815cf; }
.paid-hand .ph-dialog h2 { margin-bottom:8px; font-size:21px; line-height:1.25; }
.paid-hand .ph-dialog p { color:#cecade; }
.paid-hand .ph-dialog .ph-quote { margin:16px 0; font-weight:800; color:white; }
.paid-hand .ph-dialog .ph-secondary { margin-top:8px; width:100%; }
.paid-hand .ph-dialog .ph-photo { max-height:52dvh; object-fit:contain; translate:none; margin:0 auto 16px; }
.paid-hand[data-leaving] { animation:ph-leave 480ms ease both; }
@keyframes ph-leave { to { opacity:0; } }
@media(min-width:768px) {
  :is(#main,#layer) > .paid-hand { --ph-dock:76px; }
  .paid-hand .ph-price { font-size:58px; }
  .paid-hand .ph-price small { font-size:32px; }
  .paid-hand .ph-name { font-size:20px; }
  .paid-hand .ph-grade { font-size:14px; }
  .paid-hand .ph-footer { max-width:520px; bottom:calc(20px + env(safe-area-inset-bottom,0px)); }
  .paid-hand .ph-exit { position:fixed; top:12px; left:12px; width:40px; }
  :is(.ph-actions,.ph-detail-actions) .model-form .button,.paid-hand .ph-inventory { min-height:56px; font-size:17px; }
}
@media(max-height:500px) {
  :is(#main,#layer) > .paid-hand { --ph-dock:56px; }
  .paid-hand .ph-footer { bottom:6px; }
  .paid-hand .ph-price { font-size:30px; }
  .paid-hand .ph-name { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .paid-hand .ph-rail,.paid-hand .ph-tile,.paid-hand[data-leaving] { animation:none; transition:none; }
}

.paid-hand .ph-field { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; opacity:0; }
.paid-hand .ph-tools { position:absolute; inset:12px 12px auto; display:flex; align-items:center; justify-content:space-between; pointer-events:none; }
.paid-hand .ph-tools > * { pointer-events:auto; }
.paid-hand :is(.ph-tool,.ph-exit,.ph-x) {
  position:static; display:grid; place-items:center; border:0; border-radius:50%; padding:0;
  width:40px; height:40px; flex:0 0 40px; color:#b8b6d1; background:rgb(0 0 0 / 45%); font-size:20px;
}
.paid-hand .ph-exit { font-size:0; }
.paid-hand .ph-keys { display:none; }
.paid-hand .ph-prompt { top:12px; line-height:30px; }
.paid-hand .ph-settled { display:block; text-align:center; }
.paid-hand .ph-again [type=submit] { background:linear-gradient(#4a22cc,#6840ed); }
.paid-hand .ph-dialog { margin:auto; }
.paid-hand .ph-dialog[data-kind=detail] {
  position:fixed; inset:auto 0 0; width:100%; max-width:460px; max-height:95dvh;
  margin:0 auto; padding:0; border:0; border-radius:24px 24px 0 0; overflow:auto;
  background:#1b1934; color:white; text-align:center;
}
.paid-hand .ph-dialog[data-kind=detail]::backdrop { background:rgb(7 5 20 / 64%); }
.paid-hand .ph-zoom-well {
  position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center; padding:28px 32px;
  background:radial-gradient(52% 46% at 50% 50%,color-mix(in srgb,var(--ph-tone) 42%,transparent),transparent 74%),#151327;
}
.paid-hand .ph-zoom-well .ph-zoom-rays.shop-rays {
  --rays:oklch(from var(--ph-tone) l c h / 34%); --ray-spread:0; --ray-top:.96;
  position:absolute; inset:50% auto auto 50%; z-index:-1; width:190%; height:auto; aspect-ratio:1;
  translate:-50% -50%; transform:none; animation:none; opacity:1; filter:blur(5px); pointer-events:none;
}
.paid-hand .ph-zoom-well .ph-photo { width:auto; height:280px; max-width:100%; max-height:none; margin:0; filter:drop-shadow(0 24px 30px rgb(0 0 0 / 70%)); }
.paid-hand .ph-zoom-copy { padding:24px; }
.paid-hand .ph-zoom-copy h2 { font-size:22px; line-height:1.25; margin:6px 0 0; font-weight:800; }
.paid-hand .ph-zoom-copy .ph-zoom-tier { display:flex; align-items:center; justify-content:center; gap:6px; font-size:13px; }
.paid-hand .ph-zoom-tier::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--ph-tone); }
.paid-hand .ph-zoom-grade { margin-top:4px; font-size:14px; }
.paid-hand .ph-zoom-value { margin-top:12px; font-size:36px; line-height:1; font-weight:800; }
.paid-hand .ph-zoom-copy .model-form { margin-top:20px; }
.paid-hand .ph-dialog .ph-x { position:absolute; right:16px; top:16px; height:36px; width:36px; color:white; }
.paid-hand .ph-dialog[data-kind=keys] { position:fixed; inset:60px 12px auto auto; width:280px; margin:0; text-align:left; border-radius:14px; padding:18px; }
.paid-hand .ph-dialog[data-kind=keys]::backdrop { background:transparent; }
.paid-hand .ph-key { display:flex; align-items:center; gap:10px; font-size:13px; margin-top:6px; }
.paid-hand kbd { display:inline-grid; place-items:center; min-width:44px; padding:4px; border-radius:6px; color:white; background:#ffffff1a; font:800 11px/1 'Proxima Nova',sans-serif; }
@media(min-width:640px) {
  .paid-hand .ph-dialog[data-kind=detail] { inset:0; width:min(460px,calc(100% - 32px)); margin:auto; border-radius:24px; }
  .paid-hand .ph-zoom-well .ph-photo { height:clamp(260px,calc(100svh - 340px),380px); }
}
@media(min-width:768px) and (pointer:fine) {
  .paid-hand .ph-mute { position:fixed; right:60px; top:12px; }
  .paid-hand .ph-keys { display:grid; }
}
:is(.ph-actions,.ph-detail-actions) .model-form .button.ph-sell { border:2px solid #6744fa; background:linear-gradient(#3116ad,#603aef); }
.paid-hand .ph-tile[data-active=true] .ph-art-button::before,
.paid-hand .ph-overview-item::before {
  content:''; position:absolute; left:50%; top:55%; translate:-50% -50%; width:230%; aspect-ratio:1; z-index:-1;
  pointer-events:none; mix-blend-mode:plus-lighter;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--ph-tone) 55%,transparent),color-mix(in srgb,var(--ph-tone) 42%,transparent) 40%,color-mix(in srgb,var(--ph-tone) 20%,transparent) 62%,color-mix(in srgb,var(--ph-tone) 6%,transparent) 84%,transparent);
}
.paid-hand .ph-overview-item { isolation:isolate; }
.paid-hand .ph-overview-item::before { top:auto; bottom:-40%; translate:-50% 0; width:185%; }
.paid-hand .ph-detail-actions { display:flex; gap:10px; margin-top:20px; }
.paid-hand .ph-detail-actions .model-form { flex:1; margin:0; }
.paid-hand .ph-detail-actions .model-form .button,.paid-hand .ph-ship { min-height:48px; font-size:16px; }
.paid-hand .ph-ship {
  display:flex; align-items:center; justify-content:center; gap:8px; flex:0 1 160.6px; max-width:49%; padding:8px 12px; border-radius:12px; color:white;
  background:#25233e; font-weight:700; text-decoration:none;
}
.paid-hand .ph-actions .actions:has(> button:nth-child(2)) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.paid-hand .ph-mute::before { content:''; width:18px; height:18px; background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.paid-hand .ph-mute[data-muted=true]::before { content:''; width:18px; height:18px; background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M56.88,31.93A12,12,0,1,0,39.12,48.07L64.51,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V185.44l35.12,38.63a12,12,0,0,0,17.76-16.14ZM36,100H68v56H36Zm104,99.46L92,162.13V106.24L140,159Zm-31-134a12,12,0,0,1,2.11-16.84l33.51-26.07A12,12,0,0,1,164,32V94.94a12,12,0,0,1-24,0V56.54l-14.15,11A12,12,0,0,1,109,65.44Zm74,49.35a12,12,0,0,1,18-15.85,44,44,0,0,1,5.55,50.21,12,12,0,0,1-21-11.55A19.67,19.67,0,0,0,188,128,20,20,0,0,0,183,114.79ZM252,128a84.18,84.18,0,0,1-19.11,53.35,12,12,0,1,1-18.53-15.25A60,60,0,0,0,212.73,88a12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.paid-hand .ph-keys::before { content:''; width:18px; height:18px; background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,44H32A20,20,0,0,0,12,64V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V64A20,20,0,0,0,224,44Zm-4,144H36V68H220ZM52,128a12,12,0,0,1,12-12H192a12,12,0,0,1,0,24H64A12,12,0,0,1,52,128Zm0-36A12,12,0,0,1,64,80H192a12,12,0,0,1,0,24H64A12,12,0,0,1,52,92Zm0,72a12,12,0,0,1,12-12h8a12,12,0,0,1,0,24H64A12,12,0,0,1,52,164Zm108,0a12,12,0,0,1-12,12H108a12,12,0,0,1,0-24h40A12,12,0,0,1,160,164Zm44,0a12,12,0,0,1-12,12h-8a12,12,0,0,1,0-24h8A12,12,0,0,1,204,164Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.paid-hand .ph-shards { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.paid-hand .ph-zoom-copy { padding-bottom:54px; }
@media(max-width:767px) {
  .paid-hand[data-cleared] :is(.ph-body,.ph-footer,.ph-tools) { visibility:hidden; }
}
.paid-hand[data-still] :is(.ph-rail,.ph-tile),.paid-hand[data-still][data-leaving] { animation:none; transition:none; }
.paid-hand .ph-ship::before { content:''; width:16px; height:16px; background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M255.14,115.54l-14-35A19.89,19.89,0,0,0,222.58,68H196V64a12,12,0,0,0-12-12H32A20,20,0,0,0,12,72V184a20,20,0,0,0,20,20H46.06a36,36,0,0,0,67.88,0h44.12a36,36,0,0,0,67.88,0H236a20,20,0,0,0,20-20V120A21.7,21.7,0,0,0,255.14,115.54ZM196,92h23.88l6.4,16H196ZM80,204a12,12,0,1,1,12-12A12,12,0,0,1,80,204Zm92-41.92A36.32,36.32,0,0,0,158.06,180H113.94a36,36,0,0,0-67.88,0H36V140H172ZM172,116H36V76H172Zm20,88a12,12,0,1,1,12-12A12,12,0,0,1,192,204Zm40-24h-6.06A36.09,36.09,0,0,0,196,156.23V132h36Z'/%3E%3C/svg%3E") center/contain no-repeat; }
