/* Big's shop is a single register with a fixed header and scrollable merchandise drawer. */
#panel:has(#bigRegister) {
  --shop-edge: #544647;
  --shop-copper: #976350;
  --shop-paper: #f0d9af;
  --shop-mint: #98e9cd;
  --shop-rivet: #8a7770;
  position:relative;
  display:flex;
  flex-direction:column;
  width:min(780px,100%);
  max-height:min(87dvh,690px);
  min-height:0;
  padding:0;
  overflow:hidden;
  color:#e5dbd0;
  background:#171722;
  border:2px solid #645051;
  border-top:3px solid #ab795d;
  box-shadow:0 0 0 2px #101321, inset 0 0 0 1px #332c3c, 0 14px 48px #04050cba;
}
#panel:has(#bigRegister) .panelHead {
  display:flex; flex:0 0 auto; align-items:center;
  min-height:84px; padding:8px 54px 8px 94px;
  border-bottom:3px solid #714e45;
  background:#262232 url(art/shopui/big-counter.webp) right center/auto 100% no-repeat;
  image-rendering:pixelated;
}
#panel:has(#bigRegister) .panelHead::after {
  content:""; position:absolute; inset:auto 0 -5px; height:2px;
  background:#100e18; pointer-events:none;
}
#panel:has(#bigRegister) .panelHead small {display:none}
#panel:has(#bigRegister) .panelHead h2 {
  position:relative;margin:0;
  font:clamp(30px,4.3vw,50px)/1 Tiny,monospace;
  color:#ffdfa4; text-shadow:2px 2px #352331,0 3px #171523;
}
#panel:has(#bigRegister) .panelHead canvas {
  left:17px;top:50%; transform:translateY(-50%);width:61px;height:62px;
  background:#302838; border:2px solid #a07863;
  box-shadow:0 0 0 2px #221d2c,3px 3px #171522;
}
#panel:has(#bigRegister) .panelHead .x {
  top:9px;right:9px;width:38px;height:38px;padding:0;
  background:#211c28ec;color:#fbe5be;border:1px solid #aa8a70;border-radius:0;
}
#bigRegister {min-height:0;display:flex;flex-direction:column}
.bigTop {
  display:grid;grid-template-columns:minmax(118px,.75fr) minmax(107px,.9fr) minmax(0,1.8fr);
  align-items:center;gap:14px;padding:13px 16px 12px;
  border-bottom:1px solid #4b4046;background:#24222c;
}
.bigTop small,.bigInfo small,.bigCost,.bigDeal {font-family:Plex,monospace;font-variant-numeric:tabular-nums}
.bigBalance {display:flex;align-items:center;gap:9px;min-width:0;color:#ffd088}
.bigBalance svg {width:25px;height:25px;flex:none}
.bigTop small {display:block;margin-bottom:2px;color:#c4b4a5;font-size:10px;line-height:1.2}
.bigBalance strong {font:700 clamp(20px,3.3vw,29px)/1.15 Rubik,sans-serif;font-variant-numeric:tabular-nums}
.bigBalance strong span {font:11px Plex}
.bigLoadout {padding-left:13px;border-left:1px solid var(--shop-edge); min-width:0}
.bigLoadout strong {display:block;font-size:13px;line-height:1.2;color:#ede1cb}
.bigRemark {
  margin:0;padding:0 0 0 14px;border-left:1px solid var(--shop-edge);
  font-size:12px;line-height:1.45;color:#d7c3aa;
}
.bigRemark.receipt {color:var(--shop-mint)}
.bigStock {display:grid;grid-template-columns:148px minmax(0,1fr);min-height:0}
.bigTabs {
  display:flex;flex-direction:column;align-items:stretch;gap:4px;
  margin:0;padding:11px 9px;min-height:0;overflow:auto;scrollbar-width:thin;
  background:#171924;border-right:2px solid #302937;
}
.bigTab {
  display:flex;align-items:center;gap:8px;min-height:40px;
  padding:7px 8px;color:#c8c4c8;background:#23232e;border:1px solid #3c3646;border-left:3px solid transparent;
  border-radius:0;text-align:left;font-size:13px;line-height:1.18;
}
.bigTab svg {width:17px;height:17px;flex:0 0 auto;color:#9f8f94}
.bigTab[aria-pressed="true"] {color:#ffe1ac;background:#45332f;border-color:#795742;border-left-color:#efb475}
.bigTab[aria-pressed="true"] svg {color:#ffc47d}
.bigTab:hover {border-color:#9b745d}
.bigInventory {
  display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-color:#78615e #24212b;padding:7px 12px;
  background:#201e28;
}
.bigLot {
  position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) minmax(100px,auto);
  align-items:center;gap:12px;min-height:80px;flex:0 0 auto;padding:10px 2px;
  border-bottom:1px solid #473b41;
}
.bigLot:last-child {border-bottom:0}
.bigLot:focus-visible,.bigInventory:focus-visible {outline:2px solid var(--shop-mint);outline-offset:-2px}
.bigTray {
  display:grid;place-items:center;height:56px;border:1px solid #5c5058;
  background-color:#252a36;
  background-image:linear-gradient(0deg,transparent 95%,#343a474a 95%),linear-gradient(90deg,transparent 95%,#343a474a 95%);
  background-size:9px 9px;
  box-shadow:inset 1px 1px #151924,inset -2px -2px #373341;
}
.bigTray canvas {width:68px;height:48px;max-width:100%;object-fit:contain;image-rendering:pixelated}
.bigInfo {min-width:0}
.bigInfo strong {display:block;color:var(--shop-paper);line-height:1.15;font-size:15px}
.bigInfo p {margin:4px 0 0;font-size:12px;line-height:1.35;color:#c0bdc5}
.bigInfo small {display:block;margin-top:5px;color:#a9c4c0;font-size:10px;line-height:1.2}
.bigLot.carrying .bigInfo small {color:var(--shop-mint)}
.bigLot.carrying .bigTray {border-color:#62978d}
.bigOffer {display:grid;gap:5px;justify-items:end}
.bigCost {color:#ffce88;font-size:17px;line-height:1;font-weight:700}
.bigCost small {font:10px Plex;color:#e3b47e}
.bigDeal {
  width:100%;min-height:34px;padding:5px 8px;
  background:#e4a767;border:1px solid #f5d19b;box-shadow:inset 0 -2px #bd784d;
  border-radius:0;color:#241b23;font-size:12px;font-weight:bold;line-height:1.2;
}
.bigDeal:not(:disabled):hover {background:#ffd295}
.bigDeal:disabled {border-color:#49434c;background:#2a2832;box-shadow:none;color:#c3b6b2;font-size:10px;font-weight:normal}
.bigLot.carrying .bigDeal:disabled {color:#abddcb}
@media (max-width:610px) {
  #panel:has(#bigRegister) {max-height:94dvh}
  #panel:has(#bigRegister) .panelHead {min-height:66px;padding-left:78px;background-size:auto 100%}
  #panel:has(#bigRegister) .panelHead canvas {width:47px;height:48px;left:15px}
  #panel:has(#bigRegister) .panelHead h2 {font-size:33px}
  #panel:has(#bigRegister) .panelHead .x {width:36px;height:36px}
  .bigTop {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:7px 10px;padding:9px 12px}
  .bigRemark {grid-column:1/-1;border:0;padding:0;font-size:11px;line-height:1.3}
  .bigStock {display:flex;flex-direction:column}
  .bigTabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;flex:none;padding:6px 8px;border:0;border-bottom:1px solid var(--shop-edge)}
  .bigTab {font-size:11px;gap:4px;padding:5px 3px;min-height:40px;border-left-width:2px;justify-content:center}
  .bigTab svg {width:13px;height:13px}
  .bigInventory {padding:2px 9px}
  .bigLot {grid-template-columns:52px minmax(0,1fr) 91px;gap:7px;min-height:78px}
  .bigTray {height:46px}
  .bigTray canvas {width:50px;height:36px}
  .bigInfo strong {font-size:13px}
  .bigInfo p {font-size:11px}
  .bigOffer {gap:4px}
  .bigDeal {min-height:44px;padding:4px 3px}
  .bigCost {font-size:16px}
}
@media (max-width:360px) {
  .bigTab {font-size:10px}
  .bigTab svg {width:11px}
  .bigLot {grid-template-columns:42px minmax(0,1fr) 76px;gap:6px}
  .bigTray {height:39px}
  .bigTray canvas {width:40px;height:30px}
}
@media (max-height:495px) and (min-aspect-ratio:7/6) {
  #panel:has(#bigRegister) {max-height:96dvh}
  #panel:has(#bigRegister) .panelHead {min-height:48px;padding-left:68px}
  #panel:has(#bigRegister) .panelHead canvas {width:40px;height:40px}
  #panel:has(#bigRegister) .panelHead h2 {font-size:31px}
  .bigTop {grid-template-columns:minmax(96px,.7fr) minmax(72px,.75fr) minmax(0,1.6fr);gap:8px;padding:6px 12px}
  .bigTop small {margin:0}
  .bigBalance strong {font-size:20px}
  .bigRemark {grid-column:auto;font-size:10px}
  .bigStock {display:grid;grid-template-columns:128px minmax(0,1fr)}
  .bigTabs {display:flex;padding:5px;overflow-y:auto}
  .bigTab {justify-content:flex-start;font-size:11px;min-height:34px}
}

.bigTray .bigKitArt {width:auto;height:85%;max-width:100%;object-fit:contain;image-rendering:pixelated}
