/* Store UI (inventory-like, but landscape) */

.store-floating{
  position: fixed;
  z-index: 950000;
  left: 18px;
  top: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}

.store-card{
  pointer-events: auto;
  width: 760px;
  height: 520px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 120px);
  background: var(--bg-panel);
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 2px 0 rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--text-main);
}

.store-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--text-muted);
  cursor: move;
  user-select: none;
}
.store-title{
  font-weight: 950;
  letter-spacing: .02em;
  font-size: 16px;
}
.store-close-x{
  width: 36px;
  height: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--bg-container);
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.06);
}
.store-close-x img{ width: 18px; height: 18px; opacity: .9; }
.store-close-x:hover{ background: var(--bg-hover); }

.store-tabs{
  display:flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--text-muted);
}
.store-tab{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 4px;
  background: var(--bg-container);
  border: 1px solid var(--text-muted);
  font-weight: 850;
  font-size: 13px;
  opacity: .92;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.06);
  color: var(--text-main);
}
.store-tab-icon{ width: 18px; height: 18px; image-rendering: pixelated; }
.store-tab.active{
  opacity: 1;
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--text-main);
}

.store-body{
  padding: 12px;
  flex: 1;
  min-height: 0;
  padding-bottom: 64px;
}

.store-results-scroll{
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.store-grid{
  height: 100%;
  overflow: auto;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
  align-content: start;
  padding: 2px;
}
.store-grid::-webkit-scrollbar { width: 10px; }
.store-grid::-webkit-scrollbar-track { background: var(--scroll-track); border-radius: 999px; }
.store-grid::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 3px solid var(--scroll-thumb-border);
  background-clip: padding-box;
}
.store-grid::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); background-clip: padding-box; }

.store-tile{
  height: 86px;
  border-radius: 4px;
  background: var(--bg-container);
  border: 1px solid var(--text-muted);
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.06), 0 2px 0 rgba(0,0,0,0.12);
  overflow: hidden;
}
.store-tile:hover{
  border-color: var(--accent-yellow);
  background: var(--bg-hover);
}
.store-tile.selected{
  outline: 2px solid var(--accent-yellow);
}
.store-tile.owned{
  opacity: .55;
  cursor: not-allowed;
}
.store-tile.owned:hover{
  border-color: var(--text-muted);
  background: var(--bg-container);
}
.store-price.owned{
  background: rgba(0,0,0,0.55);
}
.store-lock{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
}
.store-lock img{
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  opacity: .95;
}
.store-tile img{ width: 48px; height: 48px; image-rendering: pixelated; }
.store-price{
  position:absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 950;
  font-size: 12px;
  color: #ffffff;
}
.store-tag{
  position:absolute;
  right: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 950;
  font-size: 11px;
  color: #ffffff;
  text-transform: uppercase;
  opacity: .9;
}

.store-empty{
  padding: 16px;
  opacity: .8;
  font-weight: 900;
  color: #ffffff;
}

.store-footer{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display:flex;
  gap: 10px;
  align-items:center;
}
.store-action{
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 950;
  font-size: 13px;
  border: 1px solid var(--text-muted);
  background: var(--bg-container);
  color: var(--text-main);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05);
}
.store-action.primary{
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--text-main);
}

.store-coins{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--bg-container);
  border: 1px solid var(--text-muted);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05);
  pointer-events: auto;
}
.store-coins img{ width: 18px; height: 18px; image-rendering: pixelated; }
.store-coins span{ font-weight: 950; font-size: 13px; color: var(--text-main); }

.store-fab{
  position: fixed;
  right: 74px;
  top: 86px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--bg-panel);
  border: 2px solid var(--accent-yellow);
  z-index: 9999999;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
.store-fab img{ width: 28px; height: 28px; image-rendering: pixelated; opacity: .95; }
.store-fab:hover{
  background: var(--bg-hover);
  border-color: var(--accent-hover);
}
.store-fab:active{ background: var(--bg-container); }



