.shop-flow-v1 {
  --shop-green: #58cc02;
  --shop-green-dark: #46a302;
  --shop-blue: #1cb0f6;
  --shop-orange: #ff9600;
  --shop-red: #ff4b4b;
  --shop-ink: #102418;
  --shop-muted: #617366;
  --shop-line: #d7ebd1;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 10%, rgba(88, 204, 2, 0.18), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(28, 176, 246, 0.14), transparent 30%),
    linear-gradient(135deg, #edffe0 0%, #e6fff8 100%);
  color: var(--shop-ink);
  font-family: "Nunito", "Inter", "Noto Sans SC", "PingFang SC", Arial, sans-serif;
  opacity: 1;
  animation: none;
}

.shop-flow-v1.page.active {
  display: block;
  opacity: 1;
  animation: none;
}

body:has(.shop-flow-v1) {
  margin: 0;
  background: #f8fff4;
}

body:has(.shop-flow-v1) #app {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body:has(.shop-flow-v1) #fx-canvas,
body:has(.shop-flow-v1) #combo-layer,
body:has(.shop-flow-v1) #flash-overlay,
body:has(.shop-flow-v1) #crack-overlay,
body:has(.shop-flow-v1) #slowmo-overlay,
body:has(.shop-flow-v1) .combo-display {
  display: none !important;
}

.shop-flow-v1 * {
  box-sizing: border-box;
}

.shop-flow-topbar,
.shop-flow-grid {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.shop-flow-topbar {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--shop-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(41, 118, 24, 0.12);
}

.shop-flow-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-flow-brand > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(180deg, #58cc02, #46a302);
  border-bottom: 6px solid #328302;
  font-size: 26px;
  font-weight: 950;
}

.shop-flow-brand strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.shop-flow-brand small {
  color: var(--shop-green-dark);
  font-weight: 900;
}

.shop-flow-topbar nav {
  display: flex;
  gap: 10px;
}

.shop-flow-topbar nav button {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--shop-line);
  border-radius: 999px;
  color: var(--shop-ink);
  background: #fff;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.shop-flow-topbar nav button.active {
  color: #fff;
  background: var(--shop-green);
  border-color: var(--shop-green);
  border-bottom: 5px solid var(--shop-green-dark);
}

.shop-flow-coins {
  min-width: 118px;
  padding: 8px 18px;
  border: 1px solid var(--shop-line);
  border-radius: 17px;
  text-align: center;
  background: #fff;
}

.shop-flow-coins span {
  display: block;
  color: var(--shop-green-dark);
  font-weight: 950;
}

.shop-flow-coins strong {
  display: block;
  font-size: 26px;
}

.shop-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.shop-flow-left {
  display: grid;
  gap: 18px;
}

.shop-flow-hero,
.shop-flow-card {
  border: 1px solid var(--shop-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(35, 88, 22, 0.11);
}

.shop-flow-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.shop-flow-hero span {
  color: #0d8dd2;
  font-size: 18px;
  font-weight: 950;
}

.shop-flow-hero h1 {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.shop-flow-hero p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.45;
}

.shop-flow-hero button,
.shop-flow-save,
.shop-flow-item-buy button,
.shop-flow-item-actions button,
.shop-flow-supply-list button {
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--shop-green);
  border-bottom: 6px solid var(--shop-green-dark);
  font-weight: 950;
  cursor: pointer;
}

.shop-flow-hero button {
  min-width: 180px;
  min-height: 58px;
  padding: 0 22px;
  font-size: 18px;
}

.shop-flow-inventory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shop-flow-inv-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(35, 88, 22, 0.08);
}

.shop-flow-inv-card span,
.shop-flow-inv-card small {
  display: block;
  color: var(--shop-muted);
  font-weight: 850;
}

.shop-flow-inv-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
  line-height: 1;
}

.shop-flow-card {
  padding: 20px;
}

.shop-flow-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.shop-flow-card-head strong {
  font-size: 26px;
}

.shop-flow-card-head span {
  color: var(--shop-muted);
  font-weight: 850;
  text-align: right;
}

.shop-flow-list {
  display: grid;
  gap: 12px;
}

.shop-flow-scene {
  scroll-margin-top: 16px;
}

.shop-flow-scene-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.shop-flow-scene-head strong,
.shop-flow-card-head strong {
  font-size: 26px;
}

.shop-flow-scene-head span {
  display: block;
  margin-top: 4px;
  color: var(--shop-muted);
  font-weight: 850;
  line-height: 1.45;
}

.shop-flow-scene-head a {
  flex: 0 0 auto;
  min-width: 98px;
  padding: 9px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  color: var(--shop-green-dark);
  background: #f4ffed;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
}

.shop-flow-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 118px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px solid #d9e8d4;
  border-radius: 18px;
  background: #fff;
}

.shop-flow-item.disabled {
  opacity: 0.64;
}

.shop-flow-item-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(180deg, #eafadc, #d7f7c8);
  border-bottom: 6px solid #bfdcad;
  color: #22650b;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: 0;
}

.shop-flow-item[data-shop-id="effect_fire"] .shop-flow-item-icon {
  color: #9c2408;
  background: linear-gradient(180deg, #ffe1a8, #ff9f43);
  border-bottom-color: #d7631f;
}

.shop-flow-item[data-shop-id="effect_ice"] .shop-flow-item-icon {
  color: #0b5f89;
  background: linear-gradient(180deg, #e5fbff, #8be5ff);
  border-bottom-color: #55b8dd;
}

.shop-flow-item[data-shop-id="effect_thunder"] .shop-flow-item-icon {
  color: #442084;
  background: linear-gradient(180deg, #fff594, #b58bff);
  border-bottom-color: #8065d8;
}

.shop-flow-item-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.shop-flow-item-title strong {
  font-size: 20px;
}

.shop-flow-item-title span {
  color: var(--shop-green-dark);
  font-weight: 950;
}

.shop-flow-item p,
.shop-flow-item small {
  display: block;
  margin: 4px 0 0;
  color: var(--shop-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.shop-flow-item-detail {
  max-width: 720px;
}

.shop-flow-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shop-flow-item-meta span {
  padding: 6px 9px;
  border: 1px solid #dcebd6;
  border-radius: 999px;
  color: #37543e;
  background: #f6fff0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.shop-flow-item-buy {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.shop-flow-item-buy b {
  color: var(--shop-orange);
  font-size: 22px;
  text-align: center;
}

.shop-flow-item-buy button {
  min-height: 42px;
  border-radius: 14px;
  font-size: 16px;
}

.shop-flow-item-actions {
  display: grid;
  gap: 8px;
  align-items: center;
}

.shop-flow-item-actions b {
  color: var(--shop-orange);
  font-size: 18px;
  text-align: center;
}

.shop-flow-item-actions button {
  min-height: 40px;
  border-radius: 14px;
  font-size: 15px;
}

.shop-flow-item-actions .shop-flow-use {
  color: var(--shop-ink);
  background: #fff;
  border: 2px solid var(--shop-line);
  border-bottom: 5px solid #c4dbc0;
}

.shop-flow-item-actions small {
  display: block;
  color: var(--shop-muted);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.shop-flow-empty {
  padding: 18px;
  border: 1px solid #d9e8d4;
  border-radius: 16px;
  color: var(--shop-muted);
  background: #f8fff4;
  font-weight: 900;
}

.shop-flow-item-buy button:disabled,
.shop-flow-item-actions button:disabled,
.shop-flow-save:disabled,
.shop-flow-supply-list button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.shop-flow-supply-panel,
.shop-flow-loadout {
  position: sticky;
  top: 18px;
}

.shop-flow-supply-list {
  display: grid;
  gap: 12px;
}

.shop-flow-supply-list button {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  background: linear-gradient(180deg, #1cb0f6, #0a8dd1);
  border-bottom-color: #0672ad;
}

.shop-flow-supply-list button:nth-child(2) {
  background: linear-gradient(180deg, #58cc02, #46a302);
  border-bottom-color: #328302;
}

.shop-flow-supply-list button:nth-child(3) {
  background: linear-gradient(180deg, #ffba3a, #ff9600);
  border-bottom-color: #d77400;
}

.shop-flow-supply-list button:nth-child(4) {
  background: linear-gradient(180deg, #ff6f61, #ff4b4b);
  border-bottom-color: #c92f2f;
}

.shop-flow-supply-list b {
  font-size: 17px;
}

.shop-flow-supply-list span {
  font-size: 13px;
  font-weight: 850;
}

.shop-flow-loadout-list {
  display: grid;
  gap: 12px;
}

.shop-flow-loadout-list div,
.shop-flow-equipment {
  padding: 14px;
  border: 1px solid #d9e8d4;
  border-radius: 18px;
  background: #f5fff0;
}

.shop-flow-loadout-list b,
.shop-flow-loadout-list span {
  font-size: 18px;
  font-weight: 950;
}

.shop-flow-loadout-list span {
  float: right;
  color: var(--shop-green-dark);
}

.shop-flow-loadout-list small,
.shop-flow-equipment small,
.shop-flow-equipment p {
  clear: both;
  display: block;
  margin: 8px 0 0;
  color: var(--shop-muted);
  font-weight: 800;
  line-height: 1.45;
}

.shop-flow-equipment {
  margin-top: 14px;
}

.shop-flow-equipment strong {
  font-size: 20px;
}

.shop-flow-save {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  font-size: 17px;
}

@media (max-width: 1120px) {
  .shop-flow-topbar,
  .shop-flow-grid {
    width: 100%;
  }

  .shop-flow-grid {
    grid-template-columns: 1fr;
  }

  .shop-flow-supply-panel,
  .shop-flow-loadout {
    position: static;
  }
}

@media (max-width: 760px) {
  .shop-flow-v1 {
    padding: 10px;
  }

  .shop-flow-topbar {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .shop-flow-topbar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-flow-topbar nav button {
    padding: 0 8px;
    font-size: 14px;
  }

  .shop-flow-coins {
    width: 100%;
  }

  .shop-flow-hero {
    display: grid;
    padding: 18px;
  }

  .shop-flow-hero button {
    width: 100%;
  }

  .shop-flow-inventory,
  .shop-flow-list-compact {
    grid-template-columns: 1fr;
  }

  .shop-flow-card {
    padding: 16px;
  }

  .shop-flow-card-head {
    display: block;
  }

  .shop-flow-card-head span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .shop-flow-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .shop-flow-item-actions,
  .shop-flow-item-buy {
    grid-column: 1 / -1;
    grid-template-columns: 84px 1fr 1fr;
    align-items: center;
  }

  .shop-flow-item-actions small {
    grid-column: 2 / -1;
  }

  .shop-flow-scene-head {
    display: block;
  }

  .shop-flow-scene-head a {
    display: inline-block;
    margin-top: 10px;
  }
}
