/* =========================================================
   BANK CABINET — scoped styles
   ========================================================= */

/* ---------- Page paint (scoped, non-crime only) ---------- */
body:not(.crime-mode) #screen-game {
  background: linear-gradient(180deg, #fff9ee 0%, #fdf4e6 100%);
}

/* =========================================================
   BANK CABINET ROOT
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 20px 16px 40px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #24352b;
  font-size: 14px;
  line-height: 1.4;
}

body:not(.crime-mode) #screen-game .bank-cabinet *,
body:not(.crime-mode) #screen-game .bank-cabinet *::before,
body:not(.crime-mode) #screen-game .bank-cabinet *::after {
  box-sizing: border-box;
}

body:not(.crime-mode) #screen-game .bank-cabinet h1,
body:not(.crime-mode) #screen-game .bank-cabinet h2,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-name,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #1f3b2c;
}

/* ---------- Header ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-heading h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 3vw, 32px);
  color: #1f3b2c;
  overflow-wrap: anywhere;
  white-space: normal;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-subtitle {
  margin: 0 0 16px;
  color: #6b7a5e;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ---------- Summary ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  background: #fffdf8;
  border: 1px solid #d9c89a;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-icon {
  width: 20px;
  height: 20px;
  color: #b09243;
  flex: 0 0 auto;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8a6c;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-value {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1f3b2c;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-note {
  font-size: 12px;
  color: #8a957f;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- Layout ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-main,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ---------- Sections ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-section {
  min-width: 0;
  background: #fffdf8;
  border: 1px solid #e2d3a9;
  border-radius: 12px;
  padding: 16px;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-section-header h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1f3b2c;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* =========================================================
   DEPOSIT ACTIVE CARD (emerald + gold trim, flat/quiet)
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit {
  background: linear-gradient(180deg, #1f5b41 0%, #17482f 100%);
  border: 1px solid #c9a95b;
  border-radius: 14px;
  padding: 20px;
  color: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(201, 169, 91, 0.28);
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-icon {
  width: 28px;
  height: 28px;
  color: #e6cf8e;
  flex: 0 0 auto;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-name {
  font-size: 19px;
  color: #fffdf8;
  margin: 0;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-amount {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #f3e2a9;
  margin: 0 0 16px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-bottom: 16px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(243, 226, 169, 0.8);
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-fact-value {
  font-size: 14px;
  font-weight: 600;
  color: #fffdf8;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Buttons (native, working) ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #1f5b41;
  background: #1f5b41;
  color: #fffdf8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-button:hover {
  background: #17482f;
  border-color: #17482f;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-button-light {
  background: #fffdf8;
  color: #1f3b2c;
  border: 1px solid #c9a95b;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-button-light:hover {
  background: #f3e2a9;
  color: #1f3b2c;
  border-color: #b09243;
}

/* ---------- Deposit list (empty catalog) ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-option {
  padding: 10px 12px;
  border: 1px solid #e2d3a9;
  border-radius: 8px;
  background: #fffdf8;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* =========================================================
   ACTIVE LOANS + JOURNAL
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-active-loans {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-active-loan {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2d3a9;
  border-radius: 10px;
  background: #fffdf8;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-name {
  font-weight: 600;
  color: #1f3b2c;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-amount {
  text-align: right;
  font-weight: 600;
  color: #1f3b2c;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #7a8a6c;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-progress {
  height: 4px;
  margin-top: 8px;
  background: #ece2c8;
  border-radius: 2px;
  overflow: hidden;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-progress-fill {
  height: 4px;
  background: #1f5b41;
  border-radius: 2px;
  /* do NOT override inline width */
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-cooldown {
  margin-top: 6px;
  font-size: 12px;
  color: #9a7b2e;
  font-style: italic;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ---------- Journal / history ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-history {
  margin-top: 4px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #f0e8d2;
  font-size: 13px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-icon {
  width: 18px;
  height: 18px;
  color: #b09243;
  flex: 0 0 auto;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #3d4c40;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-date {
  color: #8a957f;
  font-size: 12px;
  white-space: normal;
  text-align: right;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-more {
  margin-top: 10px;
  cursor: pointer;
  color: #1f5b41;
  font-size: 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* =========================================================
   CREDIT CATALOG — product cards
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: #fffdf8;
  border: 1px solid #e2d3a9;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-icon {
  width: 24px;
  height: 24px;
  color: #b09243;
  flex: 0 0 auto;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name {
  font-size: 16px;
  margin: 0;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-range,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-rate,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-term {
  font-size: 13px;
  color: #3d4c40;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-status {
  font-size: 12px;
  font-weight: 600;
  color: #1f5b41;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-status.is-disabled,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-status.bc-status-disabled {
  color: #9a7b2e;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-status.is-warning,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-status.bc-status-warning {
  color: #b23b2e;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-button {
  margin-top: auto;
  align-self: stretch;
}

/* =========================================================
   RATING
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-value {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: #1f5b41;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-thresholds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-threshold {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d9c89a;
  background: #f7f0dd;
  font-size: 12px;
  color: #6b7a5e;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-threshold.bc-unlocked {
  background: #1f5b41;
  border-color: #1f5b41;
  color: #fffdf8;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-threshold.bc-locked {
  opacity: 0.85;
}

/* =========================================================
   EMPTY / MUTED / ERROR
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-empty {
  padding: 16px;
  text-align: center;
  color: #8a957f;
  border: 1px dashed #d9c89a;
  border-radius: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-muted {
  color: #8a957f;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-error {
  color: #b23b2e;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* =========================================================
   FOCUS (accessible) — scoped
   ========================================================= */
body:not(.crime-mode) #screen-game .bank-cabinet button:focus-visible,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-more:focus-visible,
body:not(.crime-mode) #screen-game .bank-cabinet summary:focus-visible,
body:not(.crime-mode) #screen-game .bank-cabinet a:focus-visible {
  outline: 3px solid #c9a95b;
  outline-offset: 2px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* main stacks */
@media (max-width: 1050px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* single main: products 1 col on narrow-ish, 3 cols wide handled below */
@media (max-width: 600px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-date {
    grid-column: 2;
    text-align: left;
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-row {
    flex-direction: column;
    gap: 2px;
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-loan-amount {
    text-align: left;
  }
}

/* wide: products 3 cols */
@media (min-width: 1101px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* main stacked but wide enough (601–1050): products 3 cols */
@media (min-width: 601px) and (max-width: 1050px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* small screens: keep min font 12, controls 44 */
@media (max-width: 600px) {
  body:not(.crime-mode) #screen-game .bank-cabinet {
    padding: 14px 10px 32px;
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-button {
    width: 100%;
  }
}

/* Verified markup refinements. */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:12px}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-copy{min-width:0}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-icon{width:32px;height:32px;color:#947125}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-icon svg,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-icon svg,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-icon svg,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-history-icon svg{display:block;width:100%;height:100%}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit .bc-button{background:linear-gradient(180deg,#f2dca1,#d9b76a);color:#203c2c;border-color:#dbc282}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-heading{flex-wrap:wrap}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name{min-width:0;flex:1 1 90px}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-muted,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-empty,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-stat-note{color:#67705e}
@media(prefers-reduced-motion:reduce){body:not(.crime-mode) #screen-game .bank-cabinet .bc-button{transition:none}}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-heading{flex-direction:column;align-items:flex-start;gap:8px}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name{flex:0 1 auto;max-width:100%}
@media(min-width:1650px){body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-heading{flex-direction:row;align-items:center}body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name{flex:1 1 90px}}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-more{display:block;width:100%}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-more summary{min-height:44px;padding:12px 0;cursor:pointer}

@media(min-width:1051px) and (max-width:1400px){body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name{font-size:14px}}

/* Panorama is a separate upper-row cell. Native controls keep their own cells. */
body:not(.crime-mode) #screen-game > .tb-header::before{content:none!important;background:none!important}
body:not(.crime-mode) #screen-game > .tb-header #top-row-1 .tb-bank-panorama{display:none;min-width:0;width:100%;max-width:300px;height:68px;pointer-events:none;user-select:none;background:url("../img/topbar-bank-panorama-v1.png") center/contain no-repeat}
@media(min-width:1200px){
 body:not(.crime-mode) #screen-game > .tb-header #top-row-1{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) minmax(0,auto);gap:12px;align-items:center}
 body:not(.crime-mode) #screen-game > .tb-header #top-row-1 .tb-identity{min-width:0}
 body:not(.crime-mode) #screen-game > .tb-header #top-row-1 .tb-bank-panorama{display:block;justify-self:center;align-self:center}
 body:not(.crime-mode) #screen-game > .tb-header #top-row-1 .tb-quickactions{justify-self:end;min-width:0}
}

/* (2) BANK COMPONENT POLISH — scope: body:not(.crime-mode) #screen-game .bank-cabinet */

/* ---------- Кредитные продукты ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  line-height: 1.35;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #b09243;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  color: #1f3b2c;
  margin: 0;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7a8a6c;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-rate,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-range,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-term {
  font-size: 14px;
  color: #3d4c40;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-rate-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f5b41;
  white-space: normal;
  overflow-wrap: break-word;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-range-value {
  font-size: 14px;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: break-word;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-status {
  font-size: 12px;
  font-weight: 500;
  color: #6b7a5e;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-button {
  margin-top: auto;
  align-self: stretch;
  min-height: 44px;
}

@media (max-width: 900px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Пустые депозиты: компактные плитки ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-section > .bc-empty {
  text-align: left;
  padding: 6px 10px;
  margin: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #67705e;
  font-size: 12px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-deposit-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  background: #fffdf8;
  border: 1px solid #e2d3a9;
  border-radius: 10px;
  line-height: 1.35;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-heading {
  align-items: flex-start;
  gap: 4px;
}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-icon {
  width: 20px;
  height: 20px;
}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-name {
  font-size: 14px;
  font-weight: 600;
}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-rate,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-range {
  font-size: 13px;
}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-button {
  width: 100%;
  margin-top: auto;
  min-height: 44px;
}

/* активный депозит (эмерольд) — не трогаем оформление, только кнопку не расширяем */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit .bc-button {
  min-height: 44px;
}

@media (max-width: 600px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-heading {
    grid-column: 1 / -1;
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-button {
    min-height: 44px;
  }
}
@media (max-width: 380px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Рейтинг ---------- */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-section {
  min-width: 0;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-card {
  display: grid;
  grid-template-columns: auto minmax(90px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid #e2d3a9;
  border-radius: 10px;
  line-height: 1.35;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-medal {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #b09243;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-score {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-value {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 30px;
  font-weight: 700;
  color: #1f5b41;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: break-word;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-level {
  font-size: 12px;
  font-weight: 400;
  color: #7a8a6c;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-scale {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: #ece2c8;
  overflow: visible;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: #1f5b41;
  border-radius: 3px;
  /* width задаётся inline, не перезаписываем */
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-pointer {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fffdf8;
  border: 2px solid #1f5b41;
  transform: translate(-50%, -50%);
  /* left задаётся inline */
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-ticks {
  position: relative;
  height: 16px;
  font-size: 11px;
  color: #8a957f;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-tick {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  /* left задаётся inline из % */
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-tick:last-child {
  transform: translateX(-100%);
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-scale-caption {
  font-size: 12px;
  color: #7a8a6c;
  line-height: 1.35;
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-details {
  margin-top: 8px;
}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: #1f5b41;
}

@media (max-width: 600px) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-scale {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-button,
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-fill,
  body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-pointer {
    transition: none;
  }
}

/* Match the reviewed rating markup and keep phone deposit choices compact. */
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-medal svg{display:block;width:100%;height:100%}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-value{font-variant-numeric:tabular-nums}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-muted{font-size:12px;line-height:1.35}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-label,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-level,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-ticks,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-muted,
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-scale-caption{color:#626d59}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-product-term-value{font-weight:400}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-conditions{list-style:none;padding:8px 0 0;margin:0;display:grid;gap:8px}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-condition{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;min-width:0;font-size:13px;overflow-wrap:anywhere}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-condition .bc-muted{grid-column:1/-1;font-size:12px}
body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-condition.bc-unlocked .bc-rating-condition-value{color:#1f5b41}
@media(max-width:600px){
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list{grid-template-columns:minmax(0,1fr)}
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-deposit-option{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:8px 12px;padding:12px}
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-heading{grid-column:1/-1;flex-direction:row;align-items:center;gap:8px}
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-name{flex:1;min-width:0;width:auto}
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-rate{grid-column:1;grid-row:2}
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-product-range{grid-column:1;grid-row:3}
 body:not(.crime-mode) #screen-game .bank-cabinet .bc-deposit-list .bc-button{grid-column:2;grid-row:2/4;align-self:center;margin:0;padding:6px 8px;font-size:12px;line-height:1.3}
}

body:not(.crime-mode) #screen-game .bank-cabinet .bc-rating-ticks{font-size:12px}
