/* Mates Market: isolated social overlay, no changes to reel/feature styles. */
.mates-credit-icon{position:relative;flex:none;width:40px;height:40px;border:2px solid #ffe19a;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffe79e,#b06c1e 58%,#492514);box-shadow:0 2px 14px #e2a64e80;color:#231307;font:900 25px/1 Georgia,serif;cursor:pointer}
.shop-credit-count{position:absolute;right:-13px;bottom:-11px;min-width:26px;border-radius:12px;background:#1c142a;border:1px solid #d5a356;color:#ffe0a1;padding:2px 4px;font:800 10px system-ui;white-space:nowrap}
.mates-shop-dialog{position:fixed;margin:auto;inset:0;width:min(550px,calc(100vw - 18px));max-width:none;max-height:calc(100dvh - 20px);padding:0;border:2px solid #d2a85e;border-radius:17px;box-shadow:0 15px 60px #000c;background:#161222;color:#fff2d6;font-family:system-ui,sans-serif;overflow:hidden}
.mates-shop-dialog::backdrop{background:#06040ccb}
.mates-shop-dialog[open]{display:flex;flex-direction:column}
.mates-shop-dialog *{box-sizing:border-box}
.mates-shop-dialog .shop-head{display:flex;align-items:center;justify-content:space-between;background:#33243a;padding:14px 16px;border-bottom:1px solid #b58b4d}
.mates-shop-dialog h2{margin:1px 0;font-size:24px;letter-spacing:.03em;color:#ffe3a2}
.mates-shop-dialog .shop-eyebrow{font:700 10px system-ui;color:#cdb9a0;letter-spacing:.15em}
.mates-shop-dialog button{cursor:pointer;border:1px solid #c79f62;border-radius:9px;background:#3a2a40;color:#fff2d3;padding:10px 12px;font:800 12px system-ui;min-height:42px}
.mates-shop-dialog button:disabled{opacity:.54;cursor:not-allowed}
.mates-shop-dialog .shop-exit{font-size:24px;min-width:42px;line-height:1}
.mates-shop-dialog .shop-hero{display:grid;gap:3px;padding:14px 16px 8px;background:linear-gradient(110deg,#493017,#191522 80%);color:#ffefc2}
.mates-shop-dialog .shop-hero span{font:800 11px system-ui;letter-spacing:.1em}
.mates-shop-dialog .shop-hero strong{font:900 36px/1.1 Georgia,serif;color:#ffe18c;font-variant-numeric:tabular-nums}
.mates-shop-dialog .shop-hero small{font:600 10px system-ui;color:#ddcba6}
.mates-shop-dialog .shop-next{margin:0;padding:6px 16px 9px;background:#241a25;font:800 11px system-ui;color:#f5c16d}
.mates-shop-dialog .shop-tabs{display:flex;gap:5px;padding:9px;background:#201926;overflow-x:auto;flex:none}
.mates-shop-dialog .shop-tab{flex:1;min-width:max-content;padding:8px;font-size:11px;background:#292335}
.mates-shop-dialog .shop-tab[data-selected=true]{border-color:#f5cb7c;background:#76502d;color:#fff9d6}
.mates-shop-dialog .shop-items{min-height:100px;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:10px 13px 16px;display:grid;align-content:start;gap:9px}
.mates-shop-dialog .shop-card{display:grid;grid-template-columns:55px minmax(0,1fr) auto;align-items:center;gap:9px;background:linear-gradient(110deg,#302339,#201927);border:1px solid #725b51;border-radius:11px;padding:10px;min-width:0}
.mates-shop-dialog .shop-featured{background:linear-gradient(110deg,#64421b,#302334);border-color:#ecc47c;box-shadow:inset 0 0 12px #eeb05422}
.mates-shop-dialog .shop-symbol{display:grid;place-items:center;font-size:30px;width:50px;height:50px;background:#5b413c66;border-radius:12px}
.mates-shop-dialog .shop-card-copy{min-width:0;display:grid;gap:3px}
.mates-shop-dialog .shop-card-copy small{font:800 9px system-ui;color:#e2b978}
.mates-shop-dialog .shop-card-copy strong{font:900 14px system-ui;color:#fff0c3}
.mates-shop-dialog .shop-card-copy p{font:12px/1.3 system-ui;color:#e1d5cc;margin:0}
.mates-shop-dialog .shop-price{font:900 12px system-ui;color:#ffdc83}
.mates-shop-dialog .shop-buy{background:linear-gradient(#348b60,#18613d);border:1px solid #a0e1b2;max-width:120px;min-width:82px}
.mates-shop-dialog .shop-players{grid-column:2/4;min-height:42px;width:100%;background:#160f22;border:1px solid #b18b64;border-radius:7px;color:white;padding:7px;font-size:16px}
.mates-shop-dialog .shop-history{display:flex;gap:10px;justify-content:space-between;padding:12px;background:#292133;border:1px solid #614a58;border-radius:7px;font-size:12px}
.mates-shop-dialog .shop-history strong{color:#f4c779}
.mates-shop-dialog .shop-footer{flex:none;text-align:center;padding:9px 14px;color:#bcad9b;font-size:10px;border-top:1px solid #634f47}
.mates-shop-dialog .shop-confirm{position:absolute;inset:0;display:grid;place-items:center;z-index:2;background:#090710e8;padding:16px}
.mates-shop-dialog .shop-confirm-card{width:min(100%,390px);padding:22px 18px;border-radius:15px;border:2px solid #d5a45b;background:#2c2135;text-align:center}
.mates-shop-dialog .shop-confirm-emoji{font-size:40px}
.mates-shop-dialog .shop-confirm-card h3{color:#ffe1a2;font-size:20px;margin:8px 0}
.mates-shop-dialog .shop-confirm-card p{font-size:13px;line-height:1.4}
.mates-shop-dialog .shop-quote{color:#ffdc88;font-weight:800}
.mates-shop-dialog .shop-confirm-buttons{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.mates-shop-dialog .shop-confirm-buy{background:#287a50!important}
.mates-shop-dialog .shop-status{color:#ffd487;font-size:12px;min-height:19px}
.shop-success{position:fixed;z-index:2147483647;top:18%;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:16px 24px;border:2px solid #e5c580;border-radius:12px;background:#21432c;color:#f6e8be;box-shadow:0 10px 30px #000a;font:900 17px system-ui;text-align:center}
.shop-active-boost{margin:4px auto;padding:5px 12px;border:1px solid #efd29d;border-radius:14px;background:#513725;color:#fff0bd;font:900 11px system-ui;text-align:center;width:max-content}
.shop-active-boost[hidden]{display:none}
.shop-premium-vault{display:grid;gap:8px;margin:12px auto}
.shop-premium-option{background:#513259!important;color:#ffe4a3!important;border:1px solid #e2bd7e!important}
#raidTheftNotice .notice-item.vault-unlock{border:2px solid #fa526a;background:#611629}
@media(max-width:420px){.mates-credit-icon{width:33px;height:33px;font-size:21px}.mates-shop-dialog .shop-items{padding:7px}.mates-shop-dialog .shop-card{grid-template-columns:42px minmax(0,1fr) 90px;padding:7px;gap:6px}.mates-shop-dialog .shop-symbol{width:40px;height:40px;font-size:24px}.mates-shop-dialog .shop-card-copy strong{font-size:12px}.mates-shop-dialog .shop-card-copy p{font-size:11px}.mates-shop-dialog .shop-buy{min-width:80px;padding:8px 4px;font-size:10px}.mates-shop-dialog .shop-tab{font-size:10px;padding:7px}}

#shopAdminControls .shop-admin-list,#shopAdminControls .shop-admin-products{max-height:340px;overflow-y:auto;display:grid;gap:6px;margin:10px 0;padding:3px}#shopAdminControls .shop-admin-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px;background:#2c2635;border:1px solid #6d5b4a;border-radius:8px}#shopAdminControls .shop-admin-row span{flex:2 1 150px;color:#ffe6ac;font:700 12px system-ui}#shopAdminControls .shop-admin-row input[type=number]{width:100px}#shopAdminControls .shop-admin-row input:not([type=checkbox]){max-width:155px;min-height:34px;font-size:16px;background:#15101b;color:#fff;border:1px solid #b38e5c;border-radius:6px;padding:5px}#shopAdminControls button{min-height:36px;padding:7px 9px;border:1px solid #c59b61;border-radius:7px;background:#4d3550;color:#ffeab8;font:800 11px system-ui}

/* r153: readable bank action cards, not crushed inline labels */
.foot.bank-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 0}
.foot.bank-actions #reset,.foot.bank-actions #lockVault{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:6px;min-width:0;min-height:76px;padding:13px clamp(11px,2.7vw,20px);box-sizing:border-box;border-radius:12px}
.foot.bank-actions #reset b,.foot.bank-actions #lockVault b{display:block;width:100%;font:900 clamp(14px,3.4vw,19px)/1.15 system-ui,sans-serif;letter-spacing:.025em;white-space:normal;word-break:keep-all;overflow-wrap:normal;text-transform:uppercase}
.foot.bank-actions #reset small,.foot.bank-actions #lockVault small{display:block;width:100%;font:700 clamp(10px,2.1vw,12px)/1.3 system-ui,sans-serif;margin:0;letter-spacing:.01em;white-space:normal;overflow-wrap:normal;color:#f3e6d8;opacity:.9}
.foot.bank-actions #reset{background:linear-gradient(145deg,#245e9a,#153d73);border:1px solid #83bdec;box-shadow:inset 0 1px 0 #b1ddff44,0 2px 9px #0b426a33}
.foot.bank-actions #reset.recharge-ready{background:linear-gradient(145deg,#245e9a,#153d73);border:1px solid #83bdec;box-shadow:inset 0 1px 0 #b1ddff44,0 2px 9px #0b426a33}
.foot.bank-actions #lockVault{background:linear-gradient(145deg,#80293e,#51162b);border:1px solid #d7788b;box-shadow:inset 0 1px 0 #ffc0c433,0 2px 9px #74324433}
.foot.bank-actions #reset:hover,.foot.bank-actions #lockVault:hover{filter:brightness(1.08)}
@media(max-width:370px){.foot.bank-actions{gap:8px}.foot.bank-actions #reset,.foot.bank-actions #lockVault{padding:11px 10px;min-height:80px}.foot.bank-actions #reset b,.foot.bank-actions #lockVault b{font-size:13px}.foot.bank-actions #reset small,.foot.bank-actions #lockVault small{font-size:10px}}

/* Send to Mate: one neat form, recipient/amount verified by the server */
.shop-transfer-intro{font:600 13px/1.45 system-ui;margin:2px 4px 12px;color:#ecd8b9}
.shop-transfer-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:490px;margin:auto;width:100%}
.shop-transfer-field{display:grid;min-width:0;gap:5px;color:#ffe6b0;font:800 11px system-ui}
.shop-transfer-field:nth-child(-n+2),.shop-transfer-field:nth-child(5){grid-column:1/-1}
.shop-transfer-field select,.shop-transfer-field input{min-width:0;width:100%;box-sizing:border-box;min-height:45px;padding:9px 11px;background:#21172b;color:#fff4df;border:1px solid #a78d69;border-radius:8px;font:16px system-ui}
.shop-transfer-form .shop-send-submit{grid-column:1/-1;min-height:48px;background:#25694c;border:1px solid #9ad6ab;color:#fff}
.shop-transfer-form .shop-status{grid-column:1/-1;margin:0;min-height:14px}
@media(max-width:390px){.shop-transfer-form{grid-template-columns:1fr}.shop-transfer-field:nth-child(n){grid-column:1/-1}}

/* Credit Admin: search then act, no endless open inputs or mystery tick */
#shopAdminControls .shop-admin-body{padding:9px}
#shopAdminControls .shop-admin-tabs{position:sticky;top:0;display:flex;gap:6px;z-index:2;background:#171322;padding:7px 0}
#shopAdminControls .shop-admin-tabs button{flex:1;min-width:0}
#shopAdminControls .shop-admin-tab[data-selected="true"],#shopAdminControls .shop-admin-mode button[data-selected="true"]{background:#735333;border-color:#ffda8f;color:#fff6d6}
#shopAdminControls .shop-admin-content{max-height:min(58dvh,510px);overflow-y:auto;overscroll-behavior:contain;padding:4px}
#shopAdminControls .shop-admin-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#shopAdminControls .shop-admin-field{display:grid;gap:5px;font:800 11px system-ui;color:#f2d6a0;margin:8px 0;min-width:0}
#shopAdminControls .shop-admin-field input:not([type=checkbox]),#shopAdminControls .shop-admin-field select{display:block;width:100%;max-width:none;min-height:42px;background:#1d1629;border:1px solid #ab855b;border-radius:8px;padding:8px;color:#fff;font:16px system-ui;box-sizing:border-box}
#shopAdminControls .shop-admin-details{display:grid;gap:7px;margin:12px 0;padding:14px;border:1px solid #926b4a;border-radius:11px;background:#271d2e}
#shopAdminControls .shop-admin-details>strong{color:#ffdc8b;font:900 16px system-ui}
#shopAdminControls .shop-admin-details>p{margin:1px 0;font:12px system-ui;color:#dfcfbc}
#shopAdminControls .shop-admin-mode{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#shopAdminControls .shop-admin-switch{display:flex;gap:10px;align-items:center;justify-content:flex-start}
#shopAdminControls .shop-admin-available{width:22px;height:22px;accent-color:#29a56f;cursor:pointer}
#shopAdminControls .shop-admin-save{width:100%;background:#23643b;border-color:#9ed5a2;min-height:44px}
#shopAdminControls .shop-admin-history{max-height:190px;overflow-y:auto;padding:8px;background:#16111d;border-radius:7px}
#shopAdminControls .shop-admin-history p,#shopAdminControls .shop-admin-audit p{font:11px/1.45 system-ui;color:#dbc5ad}
#shopAdminControls .shop-admin-status{font:12px/1.4 system-ui;min-height:20px;color:#ffe5aa}
@media(max-width:410px){#shopAdminControls .shop-admin-toolbar{grid-template-columns:1fr}}

/* R154 mobile shop: all offers visibly available, not a one-card viewport. */
.mates-shop-dialog .shop-scroll-cue{flex:none;text-align:center;background:linear-gradient(#252035,#473020);border-top:1px solid #957149;color:#ffe3a2;font:850 11px/1.2 system-ui;padding:7px 8px;letter-spacing:.04em}
.mates-shop-dialog .shop-scroll-cue[hidden]{display:none}
.mates-shop-dialog .shop-items{min-height:0;scrollbar-width:thin;scrollbar-color:#d0a559 #241a28}
.mates-shop-dialog .shop-card{min-height:68px}
.mates-shop-dialog .shop-card-copy{line-height:1.18}
.mates-shop-dialog .shop-card-copy p{line-height:1.15}
@media(max-width:650px){
 .mates-shop-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:13px}
 .mates-shop-dialog .shop-head{padding:7px 12px}
 .mates-shop-dialog .shop-head h2{font-size:19px}
 .mates-shop-dialog .shop-head .shop-exit{min-height:32px;padding:4px 10px}
 .mates-shop-dialog .shop-hero{padding:7px 12px 5px;gap:1px}
 .mates-shop-dialog .shop-hero strong{font-size:27px}
 .mates-shop-dialog .shop-hero small{font-size:9px}
 .mates-shop-dialog .shop-next{padding:4px 12px;font-size:10px}
 .mates-shop-dialog .shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible;padding:5px 7px}
 .mates-shop-dialog .shop-tabs .shop-tab{min-width:0;min-height:30px;padding:5px 4px;font-size:10px;border-radius:6px;white-space:normal;line-height:1.1}
 .mates-shop-dialog .shop-items{padding:6px 8px;gap:6px;min-height:0}
 .mates-shop-dialog .shop-card{grid-template-columns:38px minmax(0,1fr) minmax(74px,auto);gap:8px;padding:7px 9px;min-height:66px;border-radius:8px}
 .mates-shop-dialog .shop-symbol{width:36px;height:36px;font-size:23px;border-radius:7px}
 .mates-shop-dialog .shop-card-copy{gap:2px}
 .mates-shop-dialog .shop-card-copy small{font-size:9px}
 .mates-shop-dialog .shop-card-copy strong{font-size:clamp(11px,3.1vw,14px);line-height:1.2}
 .mates-shop-dialog .shop-card-copy p{display:none}
 .mates-shop-dialog .shop-price{font-size:11px}
 .mates-shop-dialog .shop-card .shop-buy{font-size:10px;min-width:74px;max-width:116px;min-height:36px;padding:6px 7px}
 .mates-shop-dialog .shop-footer{padding:6px 8px;font-size:9px}
 .mates-shop-dialog .shop-players{min-height:36px;padding:6px;grid-column:2/4}
}
@media(max-width:350px){.mates-shop-dialog .shop-card{grid-template-columns:30px minmax(0,1fr) 74px;gap:5px;padding:6px}.mates-shop-dialog .shop-symbol{width:30px;height:30px;font-size:20px}.mates-shop-dialog .shop-card-copy strong{font-size:11px}.mates-shop-dialog .shop-price{font-size:10px}}


/* R155: Full-screen mobile Mates Market. No nested scroll, no hidden purchase rows.
   Every catalogue category fits as a grid; history is paginated instead of scrolled. */
.mates-shop-dialog .shop-items{
 overflow:hidden!important;
 overscroll-behavior:none;
 min-height:0;
}
.mates-shop-dialog .shop-tabs{overflow:visible}
.mates-shop-dialog .shop-scroll-cue{display:none!important}
.mates-shop-dialog .shop-history-pages{
 display:flex;gap:8px;justify-content:space-between;align-items:center;
 padding:4px 0;color:#ffe5a6;font:800 11px system-ui;
}
.mates-shop-dialog .shop-history-pages button{min-height:36px;padding:5px 9px}
.mates-shop-dialog .shop-history{min-height:0;align-items:center}
@media (max-width:650px), (max-height:500px) and (max-width:950px){
 html:has(.mates-shop-dialog[open]),
 body:has(.mates-shop-dialog[open]){overscroll-behavior:none}
 .mates-shop-dialog{
  position:fixed!important;
  top:var(--shop-viewport-top,0px)!important;
  bottom:auto!important;
  left:0!important;right:0!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
  width:100vw!important;
  height:var(--shop-viewport-height,100dvh)!important;
  max-width:none!important;max-height:none!important;
  border:0!important;border-radius:0!important;
  overflow:hidden!important;
  display:flex;flex-direction:column;
  background:#181322;
 }
 .mates-shop-dialog .shop-head{flex:none;min-height:42px;padding:7px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}
 .mates-shop-dialog .shop-head h2{font-size:19px}
 .mates-shop-dialog .shop-head .shop-exit{min-width:40px;min-height:36px;padding:4px 9px}
 .mates-shop-dialog .shop-hero{flex:none;padding:7px 14px 6px;gap:1px}
 .mates-shop-dialog .shop-hero strong{font-size:clamp(23px,6vw,30px)}
 .mates-shop-dialog .shop-hero span,.mates-shop-dialog .shop-hero small{font-size:9px}
 .mates-shop-dialog .shop-next{flex:none;font-size:10px;padding:4px 14px}
 .mates-shop-dialog .shop-tabs{
  flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:4px;overflow:visible;padding:6px 7px;
 }
 .mates-shop-dialog .shop-tabs .shop-tab{
  min-width:0;min-height:42px;padding:5px 3px;
  white-space:normal;overflow-wrap:normal;line-height:1.15;
  font-size:clamp(9px,2.35vw,11px);border-radius:7px;
 }
 .mates-shop-dialog .shop-items{
  flex:1 1 0%;min-height:0;min-width:0;
  overflow:hidden!important;overscroll-behavior:none!important;
  padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));
  display:grid;gap:8px;align-content:stretch;
 }
 .mates-shop-dialog .shop-footer{
  flex:none;padding:5px 8px calc(5px + env(safe-area-inset-bottom));
  font-size:9px;
 }
 /* Four recharges: all four are visible and touchable on the first screen. */
 .mates-shop-dialog .shop-items[data-shop-view="recharge"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
 }
 .mates-shop-dialog .shop-items[data-shop-view="boost"]{
  grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);
 }
 .mates-shop-dialog .shop-items[data-shop-view="vault"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
 }
 .mates-shop-dialog .shop-items[data-shop-view="history"]{
  grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(5,minmax(0,1fr));
  gap:5px;
 }
 .mates-shop-dialog .shop-items[data-shop-view="send"]{display:flex;flex-direction:column;gap:4px;justify-content:center}
 .mates-shop-dialog .shop-items[data-shop-view="recharge"] .shop-card,
 .mates-shop-dialog .shop-items[data-shop-view="boost"] .shop-card,
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card:not([data-product="unlockVault"]){
  display:flex;flex-direction:column;justify-content:space-between;
  align-items:stretch;gap:4px;min-height:0;min-width:0;
  padding:9px;border-radius:10px;
 }
 .mates-shop-dialog .shop-items .shop-card-copy{display:grid;gap:3px;min-width:0;align-content:center}
 .mates-shop-dialog .shop-items .shop-card-copy strong{font-size:clamp(12px,3.4vw,15px);line-height:1.12;overflow-wrap:break-word}
 .mates-shop-dialog .shop-items .shop-card-copy small{font-size:9px}
 .mates-shop-dialog .shop-items .shop-card-copy p{display:none}
 .mates-shop-dialog .shop-items .shop-price{font-size:clamp(11px,3vw,13px)}
 .mates-shop-dialog .shop-items .shop-symbol{width:32px;height:32px;font-size:23px;border-radius:7px}
 .mates-shop-dialog .shop-items .shop-buy{
  display:block;width:100%;max-width:none;min-width:0;
  min-height:38px;flex:none;padding:7px 5px;font-size:11px;line-height:1.13;
  margin-top:auto;white-space:normal;overflow-wrap:break-word;
 }
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card[data-product="unlockVault"]{
  grid-column:1/-1;display:grid;grid-template-columns:36px minmax(0,1fr) minmax(88px,auto);
  align-items:center;gap:5px;padding:8px;min-height:0;
 }
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card[data-product="unlockVault"] .shop-buy{
  width:100%;min-width:0;max-width:105px;margin:0;
 }
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card[data-product="unlockVault"] .shop-players{
  grid-column:2/4;width:100%;min-width:0;min-height:36px;padding:5px;
 }
 .mates-shop-dialog .shop-history{
  display:flex;min-height:0;max-height:none;gap:6px;
  padding:6px 9px;border-radius:7px;overflow-wrap:anywhere;
 }
 .mates-shop-dialog .shop-history span{font-size:clamp(10px,2.7vw,12px);line-height:1.15;min-width:0}
 .mates-shop-dialog .shop-history strong{font-size:11px;flex:none}
 .mates-shop-dialog .shop-history-pages{min-height:0;gap:6px}
 .mates-shop-dialog .shop-history-pages button{min-height:32px;padding:5px}
 .mates-shop-dialog .shop-transfer-intro{flex:none;font-size:11px;line-height:1.3;margin:0 0 3px}
 .mates-shop-dialog .shop-transfer-form{
  display:grid;flex:none;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px 8px;align-content:start;width:100%;max-width:550px;
 }
 .mates-shop-dialog .shop-transfer-field:nth-child(n){grid-column:auto}
 .mates-shop-dialog .shop-transfer-field:nth-child(5){grid-column:1/-1}
 .mates-shop-dialog .shop-transfer-field{gap:3px;font-size:9px}
 .mates-shop-dialog .shop-transfer-field input,.mates-shop-dialog .shop-transfer-field select{
  min-height:38px;height:38px;padding:5px 8px;font-size:16px;max-width:100%;
 }
 .mates-shop-dialog .shop-transfer-form .shop-send-submit{grid-column:1/-1;min-height:40px;padding:7px}
 .mates-shop-dialog .shop-transfer-form .shop-status{grid-column:1/-1;min-height:12px;font-size:11px}
 .mates-shop-dialog .shop-confirm-card{
  max-height:calc(var(--shop-viewport-height,100dvh) - 24px);
  overflow:hidden;box-sizing:border-box;padding:clamp(10px,3vw,20px);
 }
 .mates-shop-dialog .shop-confirm-card h3{font-size:17px}
 .mates-shop-dialog .shop-confirm-card p{margin:7px 0}
}
@media (max-width:350px){
 .mates-shop-dialog .shop-items{gap:5px;padding:5px}
 .mates-shop-dialog .shop-items[data-shop-view="recharge"] .shop-card,
 .mates-shop-dialog .shop-items[data-shop-view="boost"] .shop-card,
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card:not([data-product="unlockVault"]){padding:7px;gap:2px}
 .mates-shop-dialog .shop-items .shop-card-copy strong{font-size:12px}
 .mates-shop-dialog .shop-items .shop-buy{font-size:10px;min-height:36px}
 .mates-shop-dialog .shop-items .shop-symbol{width:27px;height:27px;font-size:20px}
 .mates-shop-dialog .shop-tabs{padding:4px;gap:3px}
}
@media (max-height:500px) and (max-width:950px){
 .mates-shop-dialog .shop-head{min-height:34px;padding:3px 10px}
 .mates-shop-dialog .shop-head h2{font-size:16px}
 .mates-shop-dialog .shop-eyebrow{display:none}
 .mates-shop-dialog .shop-hero{padding:3px 10px}
 .mates-shop-dialog .shop-hero strong{font-size:22px}
 .mates-shop-dialog .shop-hero small{display:none}
 .mates-shop-dialog .shop-next{padding:2px 10px}
 .mates-shop-dialog .shop-tabs{padding:3px 8px}
 .mates-shop-dialog .shop-tabs .shop-tab{min-height:30px}
 .mates-shop-dialog .shop-footer{padding:3px;font-size:8px}
 .mates-shop-dialog .shop-items[data-shop-view="recharge"]{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
 .mates-shop-dialog .shop-items[data-shop-view="vault"]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card[data-product="unlockVault"]{
  grid-column:auto;display:flex;flex-direction:column;gap:4px;padding:6px;
 }
 .mates-shop-dialog .shop-items[data-shop-view="vault"] .shop-card[data-product="unlockVault"] .shop-players{grid-column:auto;min-height:30px}
 .mates-shop-dialog .shop-transfer-form{gap:2px 8px}
 .mates-shop-dialog .shop-transfer-field input,.mates-shop-dialog .shop-transfer-field select{min-height:33px;height:33px}
 .mates-shop-dialog .shop-transfer-intro{font-size:10px;margin:0}
 .mates-shop-dialog .shop-items{padding:5px}
 .mates-shop-dialog .shop-items .shop-card{padding:6px}
}

@media (max-height:500px) and (max-width:950px){
 .mates-shop-dialog[data-shop-view="send"] .shop-next,
 .mates-shop-dialog[data-shop-view="send"] .shop-footer{display:none}
 .mates-shop-dialog[data-shop-view="send"] .shop-items{padding:3px 9px}
 .mates-shop-dialog[data-shop-view="send"] .shop-transfer-form{gap:1px 7px}
 .mates-shop-dialog[data-shop-view="send"] .shop-transfer-field input,
 .mates-shop-dialog[data-shop-view="send"] .shop-transfer-field select{height:31px;min-height:31px}
}


/* Adapt short landscape screens and mobile virtual keyboards without a scrolling shop. */
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-hero,
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-next,
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-footer{display:none}
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-transfer-field input,
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-transfer-field select{min-height:30px;height:30px}
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-transfer-form{gap:1px 6px}
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-transfer-intro{font-size:10px;line-height:1.15}
.mates-shop-dialog.shop-compact-viewport[data-shop-view="send"] .shop-send-submit{min-height:36px}
.mates-shop-dialog.shop-keyboard-open[data-shop-view="send"] .shop-tabs{display:none}


/* Credit purchase action shares the balance row beneath the close control. */
.mates-shop-dialog .shop-hero{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:14px}
.mates-shop-dialog .shop-credit-summary{display:grid;gap:3px;min-width:0}
.mates-shop-dialog .shop-credit-summary strong{overflow-wrap:anywhere}
.mates-shop-dialog .shop-buy-credits{background:linear-gradient(#35b971,#187b42);border:1px solid #8ce6a9;color:#fff;box-shadow:0 3px 12px #062c2480,inset 0 1px #ffffff35;min-width:80px;min-height:44px;padding:10px 18px;font:900 14px system-ui;letter-spacing:.04em;align-self:center}
.mates-shop-dialog .shop-buy-credits:hover{filter:brightness(1.12)}
.mates-shop-dialog .shop-buy-credits:focus-visible{outline:3px solid white;outline-offset:3px}
.mates-shop-dialog .shop-credit-checkout{overflow:auto;padding:14px}
.mates-shop-dialog .shop-credit-checkout .shop-confirm-card{max-width:390px;margin:auto;max-height:none}
.mates-shop-dialog .shop-pack-amount{display:block;font:900 clamp(38px,10vw,54px)/1.2 Georgia,serif;color:#ffe29b;margin:12px 0 0}
.mates-shop-dialog .shop-pack-label{font:800 12px system-ui;letter-spacing:.08em;margin:0 0 12px}
.mates-shop-dialog .shop-pack-price{font:900 25px system-ui;color:white;margin:10px 0}
.mates-shop-dialog .shop-pack-description{font:13px/1.5 system-ui;color:#eadfda}
.mates-shop-dialog .shop-wallet-methods{font:700 13px system-ui;margin:16px 0 5px}
.mates-shop-dialog .shop-wallet-note{display:block;font:11px/1.4 system-ui;color:#d8c9bb}
.mates-shop-dialog .shop-checkout-link{color:#b5f4cd;text-decoration:underline}
.mates-shop-dialog .shop-check-payment{margin:0 0 12px;width:100%}
@media(max-height:420px){.mates-shop-dialog .shop-credit-checkout .shop-confirm-card{padding:12px}.mates-shop-dialog .shop-pack-amount{font-size:30px;margin:0}.mates-shop-dialog .shop-pack-price{font-size:20px;margin:5px 0}.mates-shop-dialog .shop-wallet-methods{margin:8px 0 3px}}

/* Compact, comparable one-time credit packs. */
.mates-shop-dialog .shop-credit-checkout .shop-confirm-card{max-width:440px}
.mates-shop-dialog .shop-credit-packs{display:grid;gap:7px;margin:12px 0;text-align:left}
.mates-shop-dialog .shop-credit-pack{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:57px;padding:10px 13px;border:1px solid #826c4e;border-radius:10px;background:#211c24;color:#fff;text-align:left;cursor:pointer}
.mates-shop-dialog .shop-credit-pack[aria-pressed="true"]{border-color:#8ee3b1;background:#173d2c;box-shadow:inset 0 0 0 1px #8ee3b1}
.mates-shop-dialog .shop-credit-pack:focus-visible{outline:3px solid #ffe29b;outline-offset:2px}
.mates-shop-dialog .shop-credit-pack-copy{display:grid;gap:3px}
.mates-shop-dialog .shop-credit-pack-copy strong{font:800 17px/1.2 system-ui}
.mates-shop-dialog .shop-credit-pack-copy small{font:700 10px/1.3 system-ui;color:#bde6ca}
.mates-shop-dialog .shop-credit-pack-price{font:800 17px/1.2 system-ui;white-space:nowrap;color:#ffe29b}
.mates-shop-dialog .shop-credit-pack:disabled{cursor:default}
.mates-shop-dialog .shop-credit-checkout .shop-pack-description{font-size:11px;line-height:1.35;margin:8px 0}
@media(max-height:740px){.mates-shop-dialog .shop-credit-checkout{padding:8px}.mates-shop-dialog .shop-credit-checkout .shop-confirm-card{padding:12px}.mates-shop-dialog .shop-credit-packs{gap:5px;margin:8px 0}.mates-shop-dialog .shop-credit-pack{min-height:48px;padding:6px 10px}}
