.budget-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border: 1px solid var(--ink);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  cursor: pointer;
}

.budget-button strong {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.shop-dialog {
  width: min(960px, 100%);
  max-height: min(90dvh, 820px);
  overflow: auto;
  border: 1px solid var(--ink);
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
}

.shop-dialog__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.shop-dialog h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.shop-dialog__intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.shop-dialog__close {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shop-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 24px 0 16px;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.shop-balance strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.shop-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-left: 5px solid var(--green);
  padding: 12px 14px;
  background: #e5f2ed;
  color: var(--ink);
}

.shop-result.is-downside {
  border-color: var(--red);
  background: #f7e6e2;
}

.shop-result strong {
  color: var(--green);
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.shop-result.is-downside strong { color: var(--red); }

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

.shop-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--surface);
}

.shop-item.is-purchased { opacity: .58; }

.shop-item h3 {
  margin: 0;
  font-size: 18px;
}

.shop-item__description {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.shop-item__cases {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.shop-item__case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 9px;
  font-size: 11px;
}

.shop-item__case.is-downside { border-color: var(--red); }
.shop-item__case strong { color: var(--green); font-size: 9px; text-transform: uppercase; }
.shop-item__case.is-downside strong { color: var(--red); }
.shop-item__buy { width: 100%; margin-top: auto; }

@media (max-width: 700px) {
  .shop-dialog { width: 100%; max-height: 92dvh; padding: 23px 18px; box-shadow: 7px 7px 0 var(--ink); }
  .shop-dialog__top { gap: 12px; }
  .shop-dialog h2 { font-size: 34px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-item__case { align-items: start; flex-direction: column; gap: 3px; }
  .shop-result { align-items: start; flex-direction: column; }
}
