/* The RP shop (shop.js): built on the app's variables, buttons, panels and tier colours. Also the back-pay notice,
   the bar of a Daily skin being tried on, and the RP page's Spend and Earn layout. */
.shop-page [hidden]{display:none!important}
.shop-balance{display:flex;align-items:center;gap:16px;flex-shrink:0;padding:10px 16px;border:1px solid var(--outline);border-radius:12px;background:var(--surface)}
.shop-balance .rp-amount{font:700 22px var(--font-roll);color:var(--prose)}
.shop-balance a{font-size:13px;color:var(--prose-2)}
/* The one-time back-pay notice, in the coin's gold. */
.shop-backpay{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 18px;margin:0 0 26px;padding:16px 20px;border:1px solid var(--tier-line);border-radius:14px;background:linear-gradient(100deg,var(--tier-bg),var(--surface) 75%)}
.shop-backpay>.rp-coin{font-size:40px}
.shop-backpay h2{margin:0;font-size:16px}
.shop-backpay h2 .rp-amount{font-family:var(--font-roll);color:var(--tier)}
.shop-backpay p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--prose-2);max-width:72ch}
.shop-backpay-actions{display:flex;gap:8px}
/* What you're wearing now: one tile per kind. */
.shop-section-title{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--muted)}
.shop-looks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:22px}
.shop-look{display:grid;gap:3px;min-width:0;padding:10px 12px;text-align:left;border:1px solid var(--outline);border-radius:10px;background:var(--surface);color:var(--prose);font:inherit;cursor:pointer}
.shop-look:hover{border-color:var(--outline-strong)}
.shop-look-kind{font-size:11px;color:var(--muted)}
.shop-look-item{overflow:hidden;font-size:13.5px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.shop-look-item.is-default{font-weight:500;color:var(--prose-2)}
/* Kinds of item. */
.shop-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.shop-tab{padding:8px 15px;border:1px solid var(--outline);border-radius:999px;background:var(--surface);color:var(--prose-2);font:600 13px var(--font-ui);cursor:pointer}
.shop-tab:hover{color:var(--prose);border-color:var(--outline-strong)}
.shop-tab[aria-selected=true]{background:var(--prose);border-color:var(--prose);color:var(--surface)}
.shop-tab-count{margin-left:5px;font:700 11px var(--font-roll);opacity:.65}
/* The stage: the picked item on your own name, profile, Daily page or table, lit in the item's rarity colour. */
.shop-stage{overflow:hidden;border:1px solid var(--outline);border-radius:16px;background:var(--surface)}
.shop-view{padding:24px;background:radial-gradient(85% 100% at 50% 0%,var(--tier-bg,var(--surface-raised)),transparent 72%),var(--surface-dim)}
.shop-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 32px;padding:18px 24px 22px;border-top:1px solid var(--outline)}
.shop-info-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.shop-info-title h2{margin:0;font-size:21px}
.shop-rarity{display:inline-block;padding:2px 9px;border:1px solid var(--tier-line);border-radius:999px;background:var(--tier-bg);color:var(--tier);font:700 11px/1.5 var(--font-ui)}
.shop-price{font:700 15px var(--font-roll)}
.shop-free{font-size:13px;font-weight:600;color:var(--muted)}
.shop-note{margin:8px 0 4px;max-width:68ch;font-size:13.5px;line-height:1.55;color:var(--prose-2)}
.shop-sees{margin:0;font-size:12.5px;color:var(--muted)}
.shop-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:230px}
.shop-actions .button{width:100%}
.shop-wearing{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border-radius:6px;background:var(--surface-raised);font-size:13px;font-weight:700}
.shop-wearing::before{content:'';width:8px;height:8px;border-radius:50%;background:#16a34a}
.shop-short{margin:0;max-width:230px;font-size:12.5px;line-height:1.45;color:var(--prose-2)}
.shop-admin{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12.5px;color:var(--prose-2)}
/* The rack of cards. */
.shop-rack{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px;margin-top:16px}
.shop-rack-title{margin:24px 0 0;font-size:14px}
.shop-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;text-align:left;border:1px solid var(--outline);border-radius:12px;background:var(--surface);color:var(--prose);font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.shop-card:hover{border-color:var(--outline-strong)}
.shop-card.is-picked{border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
.shop-card:focus-visible,.shop-look:focus-visible,.shop-tab:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.shop-card-art{display:grid;place-items:center;position:relative;height:108px;overflow:hidden;border-bottom:1px solid var(--outline);background:var(--surface-dim)}
.shop-card-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.shop-card-body{display:grid;gap:7px;padding:10px 12px 12px}
.shop-card-name{font-size:14px;font-weight:700}
.shop-card-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;min-height:22px}
.shop-card-price{font:700 13px var(--font-roll)}
.shop-tag{font-size:11.5px;font-weight:700;color:var(--muted)}
.shop-tag.is-worn{color:#15803d}
:root[data-theme=dark] .shop-tag.is-worn{color:#4ade80}
.art-names .name-stage{font-size:25px;font-weight:800;line-height:1.2}
.art-frames .profile-avatar{width:56px;height:56px;border-radius:14px;font-size:24px}
.art-felts .poker-table.shop-felt{display:block;width:150px;height:78px;padding:0;border-radius:40px}
.art-felts .shop-felt:not([class*=felt-]){background:var(--surface);border:6px solid var(--outline-strong)}
/* The felts' layers are the lamp light, the table print, the grain and the baize; shrink the print to the card. */
.art-felts .poker-table.shop-felt[class*=felt-]{background-size:auto,118px auto,64px 64px,auto;background-position:center,center,0 0,center}
/* Token backs show on a table's unrevealed digits, so the card's three digits sit on a bare one. */
.poker-table.shop-backs{display:flex;gap:6px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.art-backs .poker-token{width:36px;height:50px;padding:0}
.shop-default-art{display:grid;place-items:center;width:132px;height:72px;border:1px solid var(--outline);border-radius:10px;background:var(--surface);color:var(--muted);font:700 22px var(--font-roll);letter-spacing:.06em}
/* Stage contents. */
.shop-namestage{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:20px 32px;min-height:190px}
.shop-namestage .profile-heading,.shop-framestage .profile-heading{margin:0}
.shop-mini-label{margin:0 0 6px;font-size:11.5px;color:var(--muted)}
.shop-row{display:flex;align-items:center;gap:12px;margin-bottom:6px;padding:9px 12px;border-radius:8px;background:var(--surface);font-size:14px;font-weight:700}
.shop-row.is-you{box-shadow:inset 3px 0 var(--prose)}
.shop-row .rank{font:400 13px var(--font-roll);color:var(--muted)}
.shop-row .ep{margin-left:auto;font:400 13px var(--font-roll)}
.shop-chat{margin:14px 0 0;padding:9px 12px;border-radius:8px;background:var(--surface);font-size:13px;color:var(--prose-2)}
.shop-themestage .profile-heading{margin:0}
.shop-themestage .actions .button{cursor:default}
.shop-dailystage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.shop-dailystage figure{margin:0}
.shop-dailystage img{display:block;width:100%;aspect-ratio:590/450;object-fit:cover;object-position:top;border:1px solid var(--outline);border-radius:10px;background:var(--surface)}
.shop-dailystage figcaption{margin-top:6px;font-size:12px;color:var(--muted)}
.shop-framestage{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-height:200px}
.shop-bigavatar-wrap{display:grid;place-items:center;width:230px;height:200px}
.shop-bigavatar{transform:scale(1.8)}
.shop-pokerstage{max-width:760px;margin:0 auto}
.shop-rules{margin:22px 0 0;font-size:12.5px;color:var(--muted)}
/* Buying. */
.shop-dialog{width:min(440px,calc(100vw - 32px));padding:0;border:1px solid var(--outline);border-radius:14px;background:var(--surface);color:var(--prose);box-shadow:0 24px 60px #0000004d}
.shop-dialog::backdrop{background:#0b0d1299}
.shop-dialog-body{display:grid;gap:12px;padding:22px 22px 20px}
.shop-dialog h2{margin:0;font-size:18px}
.shop-dialog-art{display:grid;place-items:center;height:116px;overflow:hidden;border:1px solid var(--outline);border-radius:10px;background:var(--surface-dim)}
.shop-dialog-art img{width:100%;height:100%;object-fit:cover;object-position:top}
.shop-dialog p{margin:0;font-size:13.5px;line-height:1.5;color:var(--prose-2)}
.shop-dialog .rp-amount{font-family:var(--font-roll);font-weight:700;color:var(--prose)}
.shop-check{display:flex;align-items:center;gap:8px;font-size:13.5px}
.shop-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
/* A Daily skin tried on: its bar sits above the Daily page, outside the skin's scene. */
.shop-tryon{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;box-sizing:border-box;width:min(672px,calc(100% - 32px));margin:16px auto 0;padding:10px 12px 10px 16px;border:1px solid var(--outline);border-radius:12px;background:var(--surface);color:var(--prose);box-shadow:0 6px 18px #0000001a}
.shop-tryon p{display:grid;gap:2px;margin:0;font-size:13px}
.shop-tryon p span{font-size:12px;color:var(--muted)}
.shop-tryon-actions{display:flex;flex-wrap:wrap;gap:8px}
.shop-tryon .button{min-height:34px;padding:7px 12px;font-size:12px}
/* The RP page: Spend and Earn each take the full width, with their options side by side. */
.rp-ways.rp-ways-wide{grid-template-columns:1fr}
.rp-ways-wide .rp-way{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 28px}
.rp-ways-wide .rp-way>h2{grid-column:1/-1}
.rp-ways-wide .rp-way .rp-option{display:flex;flex-direction:column;align-items:flex-start;border-top:1px solid var(--outline)}
.rp-ways-wide .rp-way .rp-option p{flex:1}
@media (max-width:900px){.shop-looks{grid-template-columns:repeat(3,minmax(0,1fr))}.rp-ways-wide .rp-way{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .rp-ways-wide .rp-way{grid-template-columns:1fr}
  .shop-page .page-heading{flex-direction:column;align-items:flex-start}
  .shop-backpay{grid-template-columns:auto minmax(0,1fr)}
  .shop-backpay-actions{grid-column:1/-1}
  .shop-view{padding:16px}
  .shop-namestage,.shop-framestage{grid-template-columns:1fr}
  .shop-bigavatar-wrap{width:100%;height:150px}
  .shop-info{grid-template-columns:1fr;padding:16px}
  .shop-actions{min-width:0}
  .shop-short{max-width:none}
  .shop-rack{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .shop-dailystage{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .shop-tryon{margin-top:12px}
}
@media (prefers-reduced-motion:reduce){.shop-card{transition:none}}
.shop-glyph{display:grid;gap:6px;margin:12px 0 4px}.shop-glyph label{font-weight:600;font-size:13px}.shop-glyph-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.shop-glyph input{width:2.6em;min-height:36px;padding:4px;text-align:center;font:700 18px var(--font-roll)}.shop-glyph small{color:var(--muted);font-size:12px}
