/* ====================================================================
   Component Styles — Page layouts, cards, move list, chat, etc.
   ==================================================================== */

/* --- Page Container --- */
.page {
  width: 100%;
  max-width: 1200px;
  animation: fadeIn 300ms ease;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Lobby / Home --- */
.lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.lobby-hero {
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.hero-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.card-icon-wrap {
  margin-bottom: 16px;
  display: inline-block;
  cursor: pointer;
}

.lobby-vector-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(56, 189, 248, 0.08);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.lobby-vector-icon.icon-cyan {
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.45);
}

.lobby-vector-icon.icon-warning {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.45);
}

.lobby-vector-icon.icon-success {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.45);
}

.lobby-vector-icon.icon-amber {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
}

.lobby-card {
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--p-card);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.1);
  transition: all var(--transition-normal);
}

.lobby-card:hover {
  background: var(--p-card-hover);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.7), 0 0 20px -2px rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
}

.lobby-card:hover .lobby-vector-icon,
.lobby-vector-icon:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.lobby-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.lobby-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.lobby-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* --- Stats Bar (Lobby) --- */
.stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-card {
  padding: 16px 20px;
  flex: 1;
  min-width: 140px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Play Page --- */
.play-setup {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-matte-md);
}

.play-setup h2 {
  text-align: center;
  margin-bottom: 24px;
}

.time-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.time-control-btn {
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: #111726;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-matte-sm);
}

.time-control-btn:hover {
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  background: #151d2f;
  transform: translateY(-1px);
}

.time-control-btn.active {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(56, 189, 248, 0.15);
}

.time-control-btn .tc-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.time-control-btn .tc-detail {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.color-select {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.color-btn {
  width: 60px;
  height: 60px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: #111726;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-matte-sm);
}

.color-btn:hover {
  border-color: rgba(148, 163, 184, 0.28);
  transform: translateY(-2px);
  background: #151d2f;
}

.color-btn.active {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(56, 189, 248, 0.15);
}

/* --- Invite Link --- */
.invite-link-box {
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}

.invite-url {
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-md);
  background: #090e17;
  color: var(--cyan);
  font-family: monospace;
  font-size: 13px;
  width: 100%;
  text-align: center;
  margin: 12px 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.invite-url:hover {
  border-color: var(--cyan);
}

.waiting-text {
  color: var(--text-secondary);
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

/* --- Right Dock Panel (Move list, Chat, Controls) --- */
.dock-panel {
  width: 320px;
  min-width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 48px);
}

.move-list-container {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  min-height: 200px;
  max-height: 400px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-md);
}

.move-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 8px;
}

.move-list-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.move-list {
  display: grid;
  grid-template-columns: 30px 1fr 1fr;
  gap: 1px 0;
  font-size: 14px;
}

.move-number {
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.move-cell {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.move-cell:hover {
  background: rgba(255, 255, 255, 0.05);
}

:root {
  --move-brilliant: #06b6d4;
  --move-great: #2563eb;
  --move-best: #3b82f6;
  --move-good: #60a5fa;
  --move-inaccuracy: #eab308;
  --move-mistake: #f97316;
  --move-blunder: #ef4444;
}

.move-cell.active {
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent-blue);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.move-cell.brilliant { color: var(--move-brilliant); }
.move-cell.great { color: var(--move-great); }
.move-cell.best { color: var(--move-best); }
.move-cell.good { color: var(--move-good); }
.move-cell.inaccuracy { color: var(--move-inaccuracy); }
.move-cell.mistake { color: var(--move-mistake); }
.move-cell.blunder { color: var(--move-blunder); }

.move-eval-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.move-eval-icon svg {
  width: 16px;
  height: 16px;
}

/* --- Game Controls --- */
.game-controls {
  padding: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-md);
}

.game-controls .btn {
  flex: 1;
  min-width: 80px;
}

/* --- Chat Panel --- */
.chat-panel {
  padding: 12px;
  max-height: 200px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-md);
}

.chat-messages {
  height: 120px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.chat-msg {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.4;
}

.chat-msg-author {
  font-weight: 600;
  color: var(--accent);
}

.chat-msg-text {
  color: var(--text-secondary);
}

.chat-input-row {
  display: flex;
  gap: 6px;
}

.chat-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-sm);
  background: #090e17;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
}

.chat-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

/* --- Bot Roster --- */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.bot-card {
  padding: 20px;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
  transition: all var(--transition-fast);
}

.bot-card.locked {
  opacity: 0.5;
}

.bot-card:hover {
  transform: translateY(-2px);
  background: var(--p-card-hover);
  border-color: var(--glass-hover-border);
  box-shadow: var(--shadow-matte-md);
}

.bot-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #111726;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-matte-sm);
}

.bot-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bot-elo {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.bot-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bot-defeated-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
}

/* --- Puzzle Page --- */
.puzzle-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.puzzle-container .board-wrapper {
  flex: 1 1 auto;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.puzzle-container #board-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 320px;
  min-height: 320px;
  width: 100%;
}

.puzzle-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.puzzle-info {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
}

.puzzle-rating-display {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  margin-bottom: 8px;
}

.puzzle-theme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.puzzle-theme-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.difficulty-selector {
  padding: 16px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
}

.difficulty-selector h4 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diff-btn {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.diff-btn:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.diff-btn.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: var(--shadow-matte-sm);
}

.puzzle-feedback {
  text-align: center;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
}

.puzzle-feedback.correct {
  color: var(--success);
}

.puzzle-feedback.incorrect {
  color: var(--danger);
}

/* --- Leaderboard --- */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border);
}

.leaderboard-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.06);
}

.leaderboard-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-rank {
  font-weight: 700;
  color: var(--text-muted);
  width: 40px;
}

.leaderboard-rank.gold { color: #fbbf24; }
.leaderboard-rank.silver { color: #94a3b8; }
.leaderboard-rank.bronze { color: #d97706; }

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: var(--shadow-matte-sm);
}

.leaderboard-elo {
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

/* --- Analysis Page --- */
.analysis-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.analysis-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.accuracy-display {
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
}

.accuracy-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 24px;
  font-weight: 800;
}

.accuracy-ring.high { border-color: var(--success); color: var(--success); }
.accuracy-ring.medium { border-color: var(--warning); color: var(--warning); }
.accuracy-ring.low { border-color: var(--danger); color: var(--danger); }

.classification-summary {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  gap: 4px;
}

.class-item {
  text-align: center;
}

.class-count {
  font-size: 18px;
  font-weight: 700;
}

.class-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Game Over Overlay --- */
.game-over-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: var(--radius-md);
  animation: fadeIn 400ms ease;
}

.game-over-content {
  text-align: center;
  padding: 32px;
  background: #111726;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.9);
}

.game-over-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.game-over-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.game-over-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.elo-change {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.elo-change.positive { color: var(--success); }
.elo-change.negative { color: var(--danger); }
.elo-change.neutral { color: var(--text-muted); }

.game-over-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* --- Loading Spinner --- */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Avatar Grid --- */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.avatar-option {
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: #111726;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-matte-sm);
}

.avatar-option:hover {
  border-color: rgba(148, 163, 184, 0.28);
  transform: scale(1.08);
  background: #151d2f;
}

.avatar-option.selected {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.14);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

/* --- Responsive Layout --- */
@media (max-width: 900px) {
  .board-layout {
    flex-direction: column;
    align-items: center;
  }

  .dock-panel {
    width: 100%;
    max-height: none;
  }

  .eval-bar-container {
    display: none;
  }

  .puzzle-container {
    flex-direction: column;
  }

  .puzzle-sidebar {
    width: 100%;
  }

  .analysis-layout {
    flex-direction: column;
  }

  .analysis-sidebar {
    width: 100%;
  }

  .chess-board.size-lg {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 1;
  }
}

/* =========================================================================
   Chess.com-style Profile Page, Match History & Replay Modal
   ========================================================================= */

.profile-layout {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.profile-header-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-matte-lg);
}

.profile-header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.2);
  background: #111726;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: var(--shadow-matte-md);
}

.profile-avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #041024;
  border: 1px solid rgba(56, 189, 248, 0.5);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}

.profile-avatar-edit-btn:hover {
  transform: scale(1.15);
}

.profile-identity {
  flex: 1;
  min-width: 220px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-username {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.profile-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-rating-badge {
  text-align: center;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: #0f1624;
  min-width: 160px;
  flex-shrink: 0;
  box-shadow: var(--shadow-matte-sm);
}

.rating-tier-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.rating-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1.1;
}

.rating-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* --- Stats Grid & Win Rate Bar --- */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-stat-box {
  padding: 16px;
  text-align: center;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-name {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.win-rate-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #0d131f;
}

.win-rate-segment.win {
  background: var(--green);
}

.win-rate-segment.draw {
  background: var(--text-faint);
}

.win-rate-segment.loss {
  background: var(--red);
}

/* --- Boss Showcase Grid --- */
.boss-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
}

.boss-trophy-card {
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  background: #111726;
  border: 1px solid var(--glass-border);
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-matte-sm);
}

.boss-trophy-card.defeated {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.boss-trophy-card.locked {
  opacity: 0.45;
  filter: grayscale(80%);
}

.boss-trophy-avatar {
  font-size: 26px;
  margin-bottom: 4px;
}

.boss-trophy-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-trophy-elo {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
}

.boss-trophy-check {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  color: var(--green);
  font-weight: 800;
}

.boss-trophy-lock {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  color: var(--text-dim);
}

/* --- Match History Archive --- */
.match-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.history-filter-pills {
  display: flex;
  gap: 6px;
}

.pill-btn {
  background: #111726;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-matte-sm);
}

.pill-btn:hover {
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  background: #151d2f;
}

.pill-btn.active {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #041024;
  border-color: rgba(56, 189, 248, 0.5);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.match-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all var(--transition-fast);
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-matte-sm);
}

.match-history-row:hover {
  background: var(--p-card-hover);
  border-color: var(--glass-hover-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-matte-md);
}

.match-outcome-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 65px;
}

.outcome-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.outcome-win {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.outcome-loss {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.outcome-draw {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.rating-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.rating-change.positive { color: var(--green); }
.rating-change.negative { color: var(--red); }
.rating-change.neutral { color: var(--text-muted); }

.match-opponent-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 2;
  min-width: 140px;
}

.match-opp-avatar {
  font-size: 22px;
}

.match-opp-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.match-opp-elo {
  font-size: 12px;
  color: var(--text-secondary);
}

.match-format-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 100px;
}

.match-color-label {
  font-size: 11px;
  color: var(--text-muted);
}

.match-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 80px;
}

.match-move-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.match-date {
  font-size: 11px;
  color: var(--text-dim);
}

.match-actions-col {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .match-history-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .match-actions-col {
    width: 100%;
    justify-content: flex-end;
  }
}

.replay-modal-wrap {
  width: 100%;
}

#game-replay-modal .modal {
  max-width: 860px;
  width: 95%;
  padding: 24px;
}

.replay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.replay-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.replay-board-wrapper {
  flex-shrink: 0;
}

.replay-board-wrapper .chess-board {
  width: min(440px, 60vh);
  height: min(440px, 60vh);
}

.replay-controls {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 12px;
}

.replay-movelist {
  flex: 1;
  min-width: 220px;
}

@media (max-width: 820px) {
  .replay-body {
    flex-direction: column;
    align-items: center;
  }
  .replay-movelist {
    width: 100%;
  }
}

/* --- Game Review Match Selector & DB Status Styles --- */
.review-selector-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.review-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.review-nav-tab {
  background: #111726;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-matte-sm);
}

.review-nav-tab:hover {
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  background: #151d2f;
}

.review-nav-tab.active {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #041024;
  border-color: rgba(56, 189, 248, 0.5);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.review-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.review-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.review-search-input {
  width: 100%;
  background: #090e17;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color var(--transition-fast);
}

.review-search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.review-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 13px;
}

.review-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.review-match-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--p-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-matte-sm);
}

.review-match-card:hover {
  transform: translateY(-2px);
  background: var(--p-card-hover);
  border-color: var(--glass-hover-border);
  box-shadow: var(--shadow-matte-md);
}

.review-match-card.is-cached {
  border-left: 3px solid var(--green);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.review-card-opp {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f1624;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-matte-sm);
}

.review-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.review-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.review-db-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.review-db-badge.ready {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
}

.review-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #0d131f;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.review-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.review-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  background: var(--p-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-matte-sm);
}

.review-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ====================================================================
   Chess.com Dashboard Homescreen Layout & Friends Panel
   ==================================================================== */
.homescreen-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
  max-width: 1380px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .homescreen-layout {
    grid-template-columns: 1fr;
  }
}

.homescreen-main {
  min-width: 0;
}

.homescreen-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Friends Widget & Search --- */
.friends-widget {
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-matte-md);
}

.friends-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.friends-widget-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.friends-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.friends-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.friends-tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.friend-search-box .input-with-icon {
  display: flex;
  gap: 6px;
}

.friend-search-input {
  font-size: 12px;
  padding: 6px 10px;
}

.friend-search-results {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.95);
  padding: 4px;
}

.search-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast);
  gap: 8px;
}

.search-user-card:hover {
  background: rgba(59, 130, 246, 0.12);
}

.search-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.search-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-user-elo {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.friends-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  gap: 10px;
  transition: all var(--transition-fast);
}

.friend-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.friend-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.friend-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.friend-meta {
  flex: 1;
  min-width: 0;
}

.friend-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-name:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.friend-rating {
  font-size: 11px;
  font-family: var(--font-mono);
}

.friend-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-xs {
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

/* --- Avatar Selector / Upload Modal --- */
.avatar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.avatar-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  padding: 24px;
  position: relative;
}

.avatar-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.avatar-picker-choice {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f172a;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  transition: all var(--transition-fast);
}

.avatar-picker-choice:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.avatar-picker-choice.selected {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

.avatar-custom-upload-box {
  border: 2px dashed rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 16px;
}

.avatar-custom-upload-box:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
}

/* --- Quick Play Time Controls --- */
.quick-play-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.time-control-pill:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.time-control-pill.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.time-control-pill .tc-label {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Puzzle Controls Bar & Reward Badges --- */
.puzzle-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(14, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.btn-blue-sm {
  background: var(--blue, #3b82f6);
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.8);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-blue-sm:hover {
  background: #2563eb;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

#puzzle-reward-badge {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

/* Button aliases for spec buttons */
.btn-primary {
  background: var(--accent, #38bdf8);
  color: #060913;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f1f5f9);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Profile Settings Timezone Card */
.profile-settings-card {
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg, 12px);
}

/* Post-Puzzle Stockfish Continuation Panel */
.puzzle-continuation-panel {
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-left: 4px solid var(--blue, #3b82f6);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.18);
  animation: fadeIn 0.3s ease-out;
}

.continuation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.continuation-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cyan, #38bdf8);
}

.continuation-line {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
  padding: 8px 10px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 6px;
  word-break: break-word;
}

.continuation-subtext {
  font-size: 11px;
  color: var(--text-dim, #94a3b8);
  line-height: 1.4;
}

