/* База CUSA кодов — стили страницы (в стиле ps-bc лендингов GameNSK) */

.ps-cusa-page { --cusa-accent: #b91c1c; --cusa-dark: #0c1222; font-size: 16px; }
.ps-cusa-page .ps-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== HERO ===== */
.ps-cusa-hero {
  background: radial-gradient(1200px 400px at 20% -10%, rgba(239,68,68,.25), transparent 60%),
              linear-gradient(135deg, #7f1d1d 0%, #b91c1c 38%, #991b1b 100%);
  color: #fff;
  padding: 48px 0 40px;
  border-radius: 0 0 18px 18px;
}
.ps-cusa-hero__badge {
  display: inline-block; padding: 6px 14px; margin: 0 0 14px;
  background: rgba(255,255,255,.14); color: #fecaca;
  border: 1px solid rgba(254,202,202,.4); border-radius: 999px;
  font-size: 13px; letter-spacing: .4px; text-transform: uppercase;
}
.ps-cusa-hero__title { margin: 0 0 12px; font-size: 34px; line-height: 1.15; font-weight: 800; text-align: left; }
.ps-cusa-hero__lead { margin: 0 0 22px; max-width: 860px; color: #fee2e2; line-height: 1.7; font-size: 16px; text-align: left; }
.ps-cusa-hero__stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.ps-cusa-stat {
  min-width: 150px; padding: 14px 18px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}
.ps-cusa-stat__num { display: block; font-size: 26px; font-weight: 800; color: #fecaca; }
.ps-cusa-stat__label { display: block; margin-top: 2px; font-size: 13px; color: #fde3e3; }
.ps-cusa-hero__note { margin: 16px 0 0; text-align: left; color: #fecaca; font-size: 13px; }

/* ===== HOW ===== */
.ps-cusa-how { padding: 34px 0 10px; }
.ps-cusa-how__title { text-align: left; font-size: 24px; margin: 0 0 18px; }
.ps-cusa-how__steps {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.ps-cusa-how__step {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f5f8fc; border: 1px solid #e3ebf4; border-radius: 12px; padding: 14px 16px;
  line-height: 1.45; font-size: 14.5px;
}
.ps-cusa-how__num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--cusa-accent); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.ps-cusa-how__note { text-align: left; color: #66788c; font-size: 13px; margin-top: 12px; }

/* ===== DB ===== */
.ps-cusa-db { padding: 26px 0 8px; }
.ps-cusa-db__title { font-size: 24px; margin: 0 0 14px; }

.ps-cusa-filters {
  background: #fff; border: 1px solid #e3ebf4; border-radius: 14px;
  padding: 16px; box-shadow: 0 2px 10px rgba(16,38,62,.05);
}
.ps-cusa-filters__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ps-cusa-filters__row:last-child { margin-bottom: 0; }
.ps-cusa-filters__label { font-size: 13.5px; font-weight: 600; color: #5b6478; min-width: 96px; }
.ps-cusa-filters__row--search { margin-bottom: 12px; }
#ps-cusa-search {
  flex: 1 1 320px; max-width: 520px; padding: 11px 14px;
  border: 1.5px solid #cfdce9; border-radius: 10px; font-size: 15px; outline: none;
}
#ps-cusa-search:focus { border-color: var(--cusa-accent); box-shadow: 0 0 0 3px rgba(185,28,28,.14); }
.ps-cusa-filters__hint { color: #8598ab; font-size: 12.5px; }

.ps-cusa-chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid #cfdce9;
  background: #fff; cursor: pointer; font-size: 13.5px; color: #33475c; transition: all .12s ease;
}
.ps-cusa-chip:hover { border-color: var(--cusa-accent); color: var(--cusa-accent); }
.ps-cusa-chip.is-active { background: var(--cusa-accent); border-color: var(--cusa-accent); color: #fff; }

.ps-cusa-results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 10px; font-size: 14px; color: #5b6478; gap: 10px; flex-wrap: wrap;
}
.ps-cusa-btn {
  padding: 9px 18px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--cusa-accent); color: #fff; font-size: 14px; font-weight: 600;
}
.ps-cusa-btn:hover { filter: brightness(1.08); }
.ps-cusa-loading { color: #66788c; font-size: 13.5px; }

.ps-cusa-table-wrap {
  background: #fff; border: 1px solid #e3ebf4; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(16,38,62,.05);
}
.ps-cusa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ps-cusa-table thead th {
  position: sticky; top: 0; background: #f2f6fb; z-index: 1;
  text-align: left; padding: 11px 12px; font-size: 12.5px; letter-spacing: .3px;
  text-transform: uppercase; color: #6b7280; border-bottom: 1px solid #e3ebf4;
}
.ps-cusa-table tbody td { padding: 9px 12px; border-bottom: 1px solid #eef3f8; vertical-align: middle; }
.ps-cusa-table tbody tr:hover td { background: #f7fafd; }

.ps-cusa-cell-game { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.ps-cusa-cover { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; background: #e8eef5; flex: 0 0 34px; }
.ps-cusa-name { font-weight: 600; color: #0c1222; }
.ps-cusa-cell-code { white-space: nowrap; }
.ps-cusa-code {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  padding: 4px 10px; border-radius: 8px; border: 1px dashed #b9cadd;
  background: #f4f8fc; color: #991b1b; cursor: copy;
}
.ps-cusa-code.is-copied { background: #d9f3e2; color: #14764a; border-color: #79c79a; }
.ps-cusa-cell-regions { max-width: 260px; overflow-wrap: break-word; color: #6b7280; font-size: 12.5px; line-height: 1.45; }

.ps-cusa-empty { padding: 28px; text-align: center; color: #66788c; }
.ps-cusa-more { text-align: center; padding: 16px 0 4px; }
.ps-cusa-table-note { color: #8598ab; font-size: 12.5px; margin-top: 8px; }

/* ===== FAQ ===== */
.ps-cusa-faq { padding: 30px 0 44px; }
.ps-cusa-faq h2 { font-size: 24px; margin: 0 0 14px; }
.ps-cusa-faq details {
  background: #fff; border: 1px solid #e3ebf4; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
.ps-cusa-faq summary { font-weight: 700; cursor: pointer; color: #0c1222; font-size: 15.5px; }
.ps-cusa-faq details p { margin: 10px 0 0; color: #5b6478; line-height: 1.6; font-size: 14.5px; }
.ps-cusa-source { color: #8598ab; font-size: 12.5px; margin-top: 16px; line-height: 1.55; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .ps-cusa-hero__title { font-size: 25px; }
  .ps-cusa-stat { min-width: 110px; padding: 10px 12px; }
  .ps-cusa-stat__num { font-size: 20px; }
  .ps-cusa-table thead th:nth-child(4), .ps-cusa-table tbody td:nth-child(4) { display: none; }
  .ps-cusa-cell-game { min-width: 170px; }
  .ps-cusa-name { font-size: 13px; }
}
