/* Stats screen. Kept separate from app.css to make the component auditable. */

.fs-screen-stats {
  padding-top: 0;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Сезонная статистика в горизонтальном формате */
.fs-stats-season-grid {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fs-stats-season-item {
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  border-radius: 12px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-stats-season-label {
  font-size: 11px;
  color: #9ca3af;
}

.fs-stats-season-value {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
}

.fs-stats-season-subvalue {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
}

.fs-stats-positive {
  color: #22c55e;
}

.fs-stats-season-note {
  margin-top: 6px;
  font-size: 11px;
  color: #9ca3af;
}

/* Последние выплаты */
.fs-stats-payout-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-stats-payout-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.fs-stats-payout-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fs-stats-payout-user {
  font-size: 13px;
  color: #e5e7eb;
}

.fs-stats-payout-wallet {
  font-size: 11px;
  color: #9ca3af;
}

.fs-stats-payout-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.fs-stats-payout-amount {
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
}

.fs-stats-payout-meta {
  font-size: 10px;
  color: #6b7280;
}

.fs-stats-payout-footnote {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}

/* Ссылка на публичный кошелёк проекта */
.fs-stats-wallet-link {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  background: rgba(14, 116, 144, 0.12);
  color: #e0f2fe;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  text-decoration: none;
}

.fs-stats-wallet-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.16);
  font-size: 15px;
}

.fs-stats-wallet-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fs-stats-wallet-copy strong {
  font-size: 11px;
  color: #f0f9ff;
}

.fs-stats-wallet-copy small {
  font-size: 10px;
  line-height: 1.25;
  color: #94a3b8;
}

.fs-stats-wallet-action {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 700;
}

/* на очень узких экранах складываем строки */
@media (max-width: 400px) {
  .fs-stats-season-item {
    flex: 1 1 100%;
  }

  .fs-stats-payout-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .fs-stats-payout-right {
    align-items: flex-start;
  }
}
