/* ============================================================
 * result.css —— 覆盖层与结算面板（本局总结 / 暂停）
 * 注意：全项目不使用毛玻璃（backdrop-filter），遮罩就是一层纯色。
 * ============================================================ */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  /* 不用毛玻璃：遮罩就是一层较暗的纯色，下面的画面依然看得清 */
  background: rgba(6, 7, 11, 0.72);
  animation: overlay-in 0.22s ease-out;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card {
  width: min(420px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #191c26, #14161d);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: card-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.card-emoji { font-size: 40px; line-height: 1; margin-bottom: 8px; }

.card h2 { font-size: 19px; margin-bottom: 6px; }

.card-sub { font-size: 12.5px; color: var(--dim); margin-bottom: 14px; line-height: 1.6; }

/* 明细列表：逐张列出刮开程度 */
.stats {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px;
  text-align: left;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-row .stat-key { color: var(--dim); }

.stat-row .stat-val { font-variant-numeric: tabular-nums; font-weight: 600; }

.card-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
}

.card-actions .btn { flex: 0 1 auto; }
