/* ============================================================
   WASEL — Profile Sheet styles (shared across pages)
   ============================================================ */

.profile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.profile-overlay.open { display: flex; }

.profile-sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px;
  padding: 24px;
  border-top: 1px solid var(--border);
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.profile-sheet-header { text-align: center; margin-bottom: 20px; }
.big-avatar { font-size: 72px; margin-bottom: 8px; display: block; }
.profile-sheet-header h3 { font-size: 22px; font-weight: 700; }

.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; margin: 16px 0;
}
.detail-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 12px;
  font-size: 12px; color: var(--text-muted);
}
.detail-box .val { font-size: 15px; color: var(--text); font-weight: 600; margin-top: 2px; }

.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Filter / Settings Modal shared styles */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 200; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(6px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; width: 100%; max-width: 400px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); animation: fadeUp 0.3s ease; }
.modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; margin-top: -4px; }
.modal-close:hover { color: var(--text); }

/* Game Overlay */
.game-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 150; flex-direction: column;
  align-items: center; padding: 16px;
  overflow-y: auto;
}
.game-overlay.open { display: flex; }
.game-header {
  width: 100%; max-width: 480px;
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.game-header h3 { font-size: 18px; font-weight: 700; }
.game-body { width: 100%; max-width: 480px; }
