.gs-sub-shop {
  position: fixed;
  top: 370px;
  left: 20px;
  width: 316px;

  /* 面板 = 永远暗色 */
  background-color: var(--panel-bg-medium);
  color: var(--panel-text-light);

  border: 2px solid var(--panel-accent-medium);
  border-radius: 12px;

  box-shadow:
    0 0 0 1px var(--panel-accent-medium),
    0 10px 24px rgba(0,0,0,0.25);

  z-index: 99997;
  display: none;
  padding: 6px;
  font-family: var(--theme-font) !important;
}

/* 子视图切换 */
.gs-sub-view {
  display: none;
}
.gs-sub-view.active {
  display: block;
}

/* 面板内容 */
.gs-shop-panel {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-shop-items {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 20px;
}

/* ===== 商品按钮基础 ===== */
.gs-shop-item {
  position: relative;
  top: 3px;
  left: 4px;

  flex: 0 0 calc(40% / 2);
  aspect-ratio: 1 / 1;
  border-radius: 8px;

  background-color: var(--button-bg-dark);
  color: var(--button-text-disabled);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* ===== 已购买 ===== */
.gs-shop-item.purchased {
  animation: gs-unlock-pop 0.25s ease-out;
  transform: scale(1.05);

  background-color: var(--button-bg-dark);
  filter: saturate(1.05) brightness(1.05);
}

/* ===== 启用状态 ===== */
.gs-shop-item.purchased.enabled {
  background-color: var(--button-bg-light);

  box-shadow:
    0 0 0 2px var(--button-accent-light),
    0 0 16px color-mix(in srgb, var(--button-accent-light) 60%, transparent);

  filter: saturate(1.15) brightness(1.1);
}

/* ===== 图标 ===== */
.gs-shop-item img.gs-shop-icon {
  max-width: 70%;
  max-height: 70%;
  transition: filter 0.3s ease;
}

/* 已购买 */
.gs-shop-item.purchased img.gs-shop-icon {
  filter: brightness(0.9) saturate(0.95);
}

/* 启用 → 图标反色 */
.gs-shop-item.purchased.enabled img.gs-shop-icon {
  filter: invert(1) brightness(0);
}

/* ===== 价格遮罩 ===== */
.gs-shop-price {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.65);
  color: var(--panel-text-light);

  font-size: 40px;
  font-weight: bold;
  border-radius: 8px;

  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gs-shop-item.purchased .gs-shop-price {
  opacity: 0;
  background: #fff;
}

/* ===== 动画 ===== */
@keyframes gs-unlock-pop {
  0%   { transform: scale(0.96); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
