.shop-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid #ffdf8555;border-radius:12px;background:#5e1017b8;color:#fff6de;font-size:13px;font-weight:900;letter-spacing:.7px;box-shadow:0 4px 12px #29060a44}
.shop-open span{font-size:18px;line-height:1}
.shop-open:hover{background:#781a21}
.shop-open:focus-visible,.shop-close:focus-visible,.shop-buy:focus-visible,.shop-equip:focus-visible{outline:3px solid #fff;outline-offset:3px}
.hero-title-row{display:flex;align-items:center;gap:11px;min-width:0}
.hero-title-row h2{white-space:nowrap}
.lobby-fruit-balance{display:inline-flex;align-items:center;gap:6px;min-height:29px;padding:4px 9px;border:1px solid #ffdf8566;border-radius:999px;background:#541219;color:#fff3d3;font-size:12px;line-height:1;font-weight:900;white-space:nowrap}
.lobby-fruit-balance span{font-size:15px}
.lobby-fruit-balance b{font-size:12px;font-variant-numeric:tabular-nums}
#shopDialog{width:min(860px,calc(100% - 24px));max-width:860px;max-height:min(90dvh,900px);overflow-y:auto;padding:clamp(18px,4vw,34px);border-color:#ffdf8577;background:linear-gradient(150deg,#79171eeF,#481116f5);color:#fff6de;scrollbar-color:#ffcf83 transparent}
#shopDialog h2{margin:6px 0 0;font:900 clamp(31px,5vw,42px)/1 var(--display);color:#fff3d3}
.shop-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.shop-header .eyebrow{display:block}
.shop-close{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin:-4px -4px 0 0;border:1px solid #ffdf8555;border-radius:11px;background:#531118;color:#fff6de;font-size:27px;line-height:1}
.shop-close:hover{background:#8b2428}
.shop-intro{max-width:660px;margin:12px 0 18px;color:#ffe5cb;font-size:14px;line-height:1.55}
.shop-balance{display:flex;align-items:center;gap:12px;width:max-content;min-width:172px;padding:10px 16px;border:1px solid #ffe29966;border-radius:14px;background:#3f1118;color:#fff5d6}
.shop-balance-icon{font-size:27px;line-height:1}
.shop-balance small,.shop-balance b{display:block}
.shop-balance small{color:#ffdf85;font-size:10px;font-weight:900;letter-spacing:1.3px}
.shop-balance b{margin-top:1px;font:900 26px/1 var(--display)}
.shop-section{margin-top:22px}
.shop-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}
.shop-section-heading h3{margin:0;color:#ffdf85;font:800 23px/1.1 var(--display);letter-spacing:.3px}
.shop-section-heading>span{color:#f6d7c5;font-size:11px;font-weight:800}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shop-card{position:relative;display:grid;grid-template-columns:43px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:11px;min-width:0;padding:14px;border:1px solid #f5d78a44;border-radius:15px;background:linear-gradient(145deg,#ffffff0d,#23090d55);box-shadow:inset 0 1px #ffffff0a}
.shop-card-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border:1px solid #f6d77e55;border-radius:12px;background:#ffdc7112;color:#ffdf85;font-size:25px}
.shop-card h4,.inventory-card h4{margin:0;color:#fff6de;font:800 20px/1.05 var(--display)}
.shop-card p,.inventory-card p{margin:5px 0 0;color:#f9e3ce;font-size:12px;line-height:1.4}
.shop-card-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:10px;border-top:1px solid #ffdf8528}
.shop-card-footer small{color:#efcbb9;font-size:10px;font-weight:800}
.shop-buy,.shop-equip{min-height:36px;padding:7px 12px;border:1px solid #ffe69b;border-radius:9px;background:#ffcf5b;color:#431318;font-size:12px;font-weight:900;white-space:nowrap}
.shop-buy:hover:not(:disabled),.shop-equip:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}
.shop-buy:disabled{border-color:#f1d48f66;background:#57313a;color:#f4decc;cursor:default;opacity:.88}
.shop-inventory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.inventory-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:11px 12px;border:1px solid #ffdf8533;border-radius:12px;background:#330d13a8}
.inventory-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#ffdf8518;color:#ffdf85;font-size:21px}
.inventory-copy{min-width:0}
.inventory-card h4{font-size:17px}
.inventory-card p{font-size:11px}
.shop-equip{min-height:34px;padding:6px 10px;background:transparent;color:#fff2d8;border-color:#ffdf8577}
.shop-equip.is-equipped{background:#ffcf5b;color:#431318;border-color:#ffe69b}
.shop-inventory-empty{grid-column:1/-1;margin:0;padding:13px;border:1px dashed #ffdf8555;border-radius:12px;color:#f1d5c4;font-size:12px;text-align:center}
.shop-status{min-height:1.4em;margin:14px 0 0;color:#ffdf85;font-size:12px;font-weight:800}
.prebattle-section{padding:14px;border:1px solid #ffe18e4a;border-radius:17px;background:linear-gradient(145deg,#391017aa,#23090d66)}
.prebattle-intro{margin:0 0 13px;color:#f7dfcb;font-size:12px;line-height:1.5}
.prebattle-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.prebattle-group{min-width:0}
.prebattle-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.prebattle-group-heading h4{margin:0;color:#ffdf85;font:800 16px/1.1 var(--display)}
.prebattle-group-heading>span{color:#f3d1bb;font-size:12px;font-weight:800;text-align:right}
.prebattle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.prebattle-card{display:grid;grid-template-columns:31px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:8px;min-width:0;padding:10px;border:1px solid #f5d78a33;border-radius:12px;background:#ffffff08}
.prebattle-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#ffdc7112;font-size:19px}
.prebattle-card h5{margin:0;color:#fff6de;font:800 14px/1.12 var(--display)}
.prebattle-card p{grid-column:1/-1;min-height:2.6em;margin:8px 0 0;color:#f9e3ce;font-size:12px;line-height:1.35}
.prebattle-card-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:9px;padding-top:8px;border-top:1px solid #ffdf8528}
.prebattle-card-footer small{color:#efcbb9;font-size:12px;font-weight:800;white-space:nowrap}
.prebattle-buy{min-height:36px;padding:6px 8px;font-size:12px}
.prebattle-status{min-height:1.3em;margin:11px 0 0;color:#ffdf85;font-size:12px;font-weight:800}
.prebattle-buy:focus-visible{outline:3px solid #fff;outline-offset:3px}

@media(max-width:720px){
  #lobby .shop-open{min-height:36px;padding:0 10px;font-size:11px}
  #lobby .shop-open span{font-size:16px}
  #lobby .hero-title-row{gap:7px}
  #lobby .lobby-fruit-balance{min-height:25px;padding:3px 7px;font-size:10px}
  #lobby .lobby-fruit-balance span{font-size:13px}
  #lobby .lobby-fruit-balance b{font-size:10px}
  #shopDialog{max-height:92dvh;border-radius:19px;padding:19px}
  .shop-section{margin-top:18px}
  .shop-grid,.shop-inventory{gap:8px}
  .prebattle-section{padding:11px}
}
@media(max-width:520px){
  .shop-grid,.shop-inventory{grid-template-columns:minmax(0,1fr)}
  .shop-card{padding:12px}
  .shop-section-heading h3{font-size:21px}
  .shop-intro{font-size:13px}
  .inventory-card{grid-template-columns:30px minmax(0,1fr) auto;gap:8px;padding:9px}
  .inventory-icon{width:30px;height:30px}
  .prebattle-groups{grid-template-columns:minmax(0,1fr);gap:12px}
  .prebattle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:460px){
  #lobby .topbar{gap:6px;padding-right:8px;padding-left:8px}
  #lobby .shop-open{gap:4px;min-height:34px;padding:0 7px;font-size:10px}
  #lobby .brand{gap:6px;font-size:21px}
  #lobby .brand-mark{font-size:29px}
  #lobby .brand small{margin-top:4px;font-size:9px;letter-spacing:2px}
  #lobby #sound{margin-left:auto}
  #lobby .topbar .icon-button{width:34px;height:34px;font-size:18px}
  #shopDialog{width:calc(100% - 14px);padding:16px}
  .prebattle-card{padding:8px;column-gap:6px}
  .prebattle-group-heading h4{font-size:15px}
}
