/* The profile window's tabs (platform/public/profile-window.js). The rows, ELO chart and history keep the
   Duraks profile classes (styled by each page: games/duraks/public/style.css, site/public/duraks-profile.css). */
#profileModal .modal-card { width: min(380px, 92vw); max-width: 380px; }
.pw-title { margin-bottom: 12px; }
.pw-tabs {
  display: grid;
  gap: 4px;
  padding: 4px;
  margin: 0 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.pw-tab {
  min-height: 38px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cfe0e8;
  font: 700 0.85rem -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.pw-tab:hover { color: #faf6ec; }
.pw-tab.active { background: linear-gradient(180deg, #e8c876, #c9a24b); color: #2a2005; }
.pw-tab:focus-visible, .pw-game-card:focus-visible { outline: 3px solid #e2c374; outline-offset: 2px; }
.pw-panel { text-align: left; }
.pw-panel .profile-stats { margin-top: 10px; }

/* Kopā */
.pw-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.pw-tile { padding: 10px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pw-tile strong { font-size: 1.3rem; color: #e2c374; }
.pw-tile span { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a9c6d4; }
.pw-game-card {
  display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0 0 8px; padding: 10px 12px;
  border: 0; border-left: 4px solid #2f7391; border-radius: 10px; background: rgba(255, 255, 255, 0.05);
  color: #faf6ec; font: inherit; text-align: left; cursor: pointer;
}
.pw-game-card:hover { background: rgba(255, 255, 255, 0.09); }
.pw-game-top { display: flex; align-items: baseline; gap: 7px; }
.pw-game-suit { font-size: 1.05rem; }
.pw-game-name { font-weight: 700; font-size: 0.95rem; }
.pw-game-meta { margin-left: auto; font-size: 0.75rem; color: #a9c6d4; white-space: nowrap; }
.pw-game-elo { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8rem; color: #cfe0e8; }
.pw-game-elo strong { color: #e2c374; }

/* a game badge in the shared "Pēdējās spēles" list */
.profile-history-row.pw-history-tagged { flex-direction: row; align-items: center; gap: 9px; }
.pw-badge {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; line-height: 1;
}
.pw-history-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
