*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c14;
  --surface: #13131f;
  --surface2: #1c1c2e;
  --border: #ffffff12;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --cyan: #22d3ee;
  --text: #e2e8f0;
  --muted: #64748b;
  --muted2: #94a3b8;
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
}

/* NAV */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800;
  color: var(--text); text-decoration: none; letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.6rem; color: var(--purple); }
.nav-right { display: flex; gap: 12px; align-items: center; }

.btn-ghost {
  background: none; border: 1px solid var(--border);
  color: var(--muted2); padding: 8px 18px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--purple); color: var(--text); }

.btn-primary {
  background: var(--purple); border: none;
  color: white; padding: 8px 18px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* HERO */
.hero {
  position: relative; padding: 140px 24px 80px;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139,92,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem; color: var(--muted2);
  margin-bottom: 36px; line-height: 1.6;
}

.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 20px;
  max-width: 540px; margin: 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.search-icon { font-size: 1.3rem; color: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 1rem;
}
.search-bar input::placeholder { color: var(--muted); }

/* GAMES SECTION */
.games-section { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section-header h2 { font-size: 1.4rem; font-weight: 700; }

.sort-tabs { display: flex; gap: 8px; }
.sort-tab {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted2); padding: 7px 14px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.sort-tab:hover { border-color: var(--purple); color: var(--text); }
.sort-tab.active {
  background: var(--purple); border-color: var(--purple);
  color: white;
}

/* GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.card-delete-btn {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(0,0,0,0.75); border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: 0.75rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.game-card:hover .card-delete-btn { opacity: 1; }
.card-delete-btn:hover { background: #ef4444; }
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 12px 40px rgba(139,92,246,0.12);
}
.game-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: var(--surface2);
}
.game-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface2), #1e1e35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--muted);
}
.game-card-body { padding: 14px; }
.game-card-title {
  font-size: 0.95rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.game-rating {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.85rem; font-weight: 600; color: var(--cyan);
}
.game-rating::before { content: '★'; }
.game-year {
  font-size: 0.8rem; color: var(--muted);
}
.game-platforms {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px;
}
.platform-tag {
  font-size: 0.7rem; padding: 2px 7px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; color: var(--muted2);
}

/* LOADING */
.loading {
  grid-column: 1/-1; text-align: center;
  padding: 80px 20px; color: var(--muted2);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* PAGINATION */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted2); padding: 8px 16px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--purple); color: var(--text); }
.page-btn.active { background: var(--purple); border-color: var(--purple); color: white; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; max-width: 780px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  transform: scale(0.95); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: sticky; top: 16px; left: calc(100% - 48px);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted2); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  float: right; margin: 16px 16px 0 0;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--purple); color: white; }
.modal-content { padding: 24px; }

/* MODAL DETAIL */
.detail-hero { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.detail-hero-img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.detail-hero-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, var(--surface), transparent);
}
.detail-title {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem; color: var(--muted2);
}
.detail-badge strong { color: var(--text); }
.detail-rating-big {
  font-size: 1.1rem; font-weight: 700; color: var(--cyan);
}
.detail-rating-big::before { content: '★ '; }
.detail-desc {
  color: var(--muted2); line-height: 1.7; font-size: 0.95rem;
  margin-bottom: 24px;
}
.detail-genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.genre-tag {
  padding: 5px 12px; border-radius: 20px;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  color: var(--purple); font-size: 0.82rem; font-weight: 500;
}
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-add {
  background: var(--purple); border: none; color: white;
  padding: 11px 24px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-add:hover { background: var(--purple-dark); transform: translateY(-1px); }
.btn-wishlist {
  background: none; border: 1px solid var(--border); color: var(--muted2);
  padding: 11px 24px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-wishlist:hover { border-color: var(--cyan); color: var(--cyan); }

/* NO RESULTS */
.no-results {
  grid-column: 1/-1; text-align: center; padding: 80px 20px;
  color: var(--muted); font-size: 1rem;
}

/* AUTH MODAL */
.modal-sm { max-width: 420px; }
.auth-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted2); padding: 10px; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  margin-bottom: -1px; transition: all 0.2s;
}
.auth-tab.active { color: var(--purple); border-bottom-color: var(--purple); }
.link-btn {
  background: none; border: none; color: var(--purple);
  cursor: pointer; font-family: inherit; font-size: 0.85rem;
  padding: 0; text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--purple-dark); }
.auth-success {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #86efac; padding: 10px 14px; border-radius: 8px;
  font-size: 0.88rem; margin-bottom: 16px;
}
.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; padding: 10px 14px; border-radius: 8px;
  font-size: 0.88rem; margin-bottom: 16px;
}
.field-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--muted2); margin-bottom: 6px; margin-top: 14px;
}
.field-input {
  display: block; width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  padding: 10px 14px; margin-bottom: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.w-full { width: 100%; margin-top: 20px; padding: 12px; font-size: 1rem; }

/* USER MENU */
.user-menu { position: relative; }
.btn-user {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 16px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-user:hover { border-color: var(--purple); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 160px;
  display: none; z-index: 300;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.user-dropdown.open { display: block; }
.user-dropdown button {
  display: block; width: 100%; background: none; border: none;
  color: var(--muted2); padding: 9px 12px; border-radius: 6px;
  cursor: pointer; font-family: inherit; font-size: 0.9rem;
  text-align: left; transition: all 0.15s;
}
.user-dropdown button:hover { background: var(--border); color: var(--text); }

/* STATUS BADGES */
.status-badge {
  font-size: 0.72rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}
.status-played { background: rgba(34,211,238,0.15); color: var(--cyan); }
.status-playing { background: rgba(74,222,128,0.15); color: #4ade80; }
.status-wishlist { background: rgba(139,92,246,0.15); color: var(--purple); }

/* MY LIST TABS */
.list-tabs { display: flex; gap: 8px; }
.list-tab {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted2); padding: 7px 14px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.list-tab:hover { border-color: var(--purple); color: var(--text); }
.list-tab.active { background: var(--purple); border-color: var(--purple); color: white; }

/* PRICE ALERTS */
.alert-form-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
}
.alert-form-label { color: var(--muted2); font-size: 0.9rem; margin-bottom: 12px; }
.alert-input-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.discount-tag {
  background: rgba(74,222,128,0.15); color: #4ade80;
  padding: 2px 7px; border-radius: 4px; font-size: 0.8rem; font-weight: 700;
}

.alert-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 10px;
}
.alert-triggered { border-color: rgba(34,211,238,0.3); }
.alert-thumb { width: 56px; height: 32px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.alert-info { flex: 1; }
.alert-game { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.alert-details { font-size: 0.83rem; color: var(--muted2); }

/* GENRE PILLS */
.genre-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.genre-pill {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted2); padding: 7px 16px; border-radius: 20px;
  cursor: pointer; font-family: inherit; font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; white-space: nowrap;
}
.genre-pill:hover { border-color: var(--purple); color: var(--text); background: rgba(139,92,246,0.1); }
.genre-pill.active { background: var(--purple); border-color: var(--purple); color: white; }

/* PLATFORM FILTER */
.platform-filter {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 16px; flex-wrap: wrap;
}
.platform-pill {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted2); padding: 5px 14px; border-radius: 6px;
  cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 500;
  transition: all 0.2s;
}
.platform-pill:hover { border-color: var(--cyan); color: var(--cyan); }
.platform-pill.active { background: var(--cyan); border-color: var(--cyan); color: #000; font-weight: 700; }

/* COMMUNITY RATING BADGE */
.community-rating { color: #fbbf24 !important; }

/* GENRE CARDS GRID */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.genre-card {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--surface2);
}
.genre-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(139,92,246,0.2); }
.genre-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5; transition: opacity 0.2s;
}
.genre-card:hover .genre-card-bg { opacity: 0.7; }
.genre-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.genre-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.genre-emoji { font-size: 1.4rem; }
.genre-card-name { font-size: 1.05rem; font-weight: 700; }
.genre-card-count { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* STAR RATING */
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--muted); padding: 0 2px;
  transition: color 0.1s, transform 0.1s; line-height: 1;
}
.star-btn.active { color: #fbbf24; }
.star-btn:hover { transform: scale(1.2); }

/* GAME NOTES */
.game-notes {
  font-size: 0.78rem; color: var(--muted);
  font-style: italic; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* RANKING */
.ranking-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px;
  transition: border-color 0.2s, transform 0.15s; cursor: pointer;
}
.ranking-row:hover { border-color: rgba(139,92,246,0.4); transform: translateX(4px); }
.ranking-pos {
  font-size: 1.3rem; font-weight: 800; color: var(--muted);
  min-width: 32px; text-align: center;
}
.ranking-pos.top-1 { color: #fbbf24; }
.ranking-pos.top-2 { color: #94a3b8; }
.ranking-pos.top-3 { color: #b45309; }
.ranking-score { margin-left: auto; text-align: right; }
.score-num { font-size: 1.8rem; font-weight: 800; color: var(--cyan); }
.score-label { font-size: 0.8rem; color: var(--muted); }

/* PUBLIC PROFILE */
.profile-hero {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: white; flex-shrink: 0;
}
.profile-name { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }
.profile-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.stat-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 24px; text-align: center; min-width: 90px;
}
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--purple); }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* TOAST */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 12px 22px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; z-index: 500;
  opacity: 0; transition: all 0.3s; pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Social / Follow ─────────────────────────────── */
.btn-follow {
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  background: var(--purple); color: white; border: none;
  white-space: nowrap;
}
.btn-follow.following {
  background: transparent; border: 1px solid var(--border); color: var(--muted2);
}
.btn-follow.following:hover { border-color: #ef4444; color: #ef4444; }

.user-search-box { margin-bottom: 24px; max-width: 480px; }
#user-search-results { margin-top: 8px; }

.user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.user-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: white;
  cursor: pointer; flex-shrink: 0;
}
.user-row-name { font-weight: 600; cursor: pointer; }
.user-row-name:hover { color: var(--purple); }

.feed-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.feed-item:hover { background: var(--surface2); margin: 0 -16px; padding: 14px 16px; border-radius: 8px; }
.feed-thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.feed-info { flex: 1; min-width: 0; }
.feed-user { margin-bottom: 4px; }
.feed-username { font-weight: 600; color: var(--purple); cursor: pointer; font-size: 0.9rem; }
.feed-username:hover { text-decoration: underline; }
.feed-game { font-weight: 500; font-size: 0.95rem; }
.feed-notes { color: var(--muted); font-size: 0.82rem; font-style: italic; margin-top: 4px; }

.premium-features { text-align:left; margin-bottom:8px; }
.premium-feature {
  padding: 8px 12px; margin-bottom: 6px;
  background: var(--surface2); border-radius: 8px; font-size: 0.9rem;
}
.premium-badge { font-size: 0.8em; vertical-align: middle; }

.my-entry-box {
  margin-top: 20px; padding: 16px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
}
.my-entry-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.my-entry-notes { color: var(--muted2); font-style: italic; font-size: 0.9rem; margin-bottom: 14px; }
.draft-section { margin-top: 12px; }

/* ── Empty state ────────────────────────────────── */
.empty-state {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ── Profile extras ─────────────────────────────── */
.profile-best {
  margin-top: 12px; padding: 10px 14px;
  background: var(--surface2); border-radius: 8px; font-size: 0.9rem;
}

/* ── Achievements ───────────────────────────────── */
.achievements-section {
  margin-bottom: 20px; padding: 14px;
  background: var(--surface2); border-radius: 10px;
}
.achievements-header {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; margin-bottom: 8px; font-size: 0.9rem;
}
.ach-count { color: var(--cyan); font-size: 0.85rem; }
.ach-bar {
  height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 10px;
}
.ach-progress {
  height: 4px; background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px; transition: width 0.4s;
}
.ach-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ach-item {
  padding: 3px 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; font-size: 0.78rem; color: var(--muted2);
}

/* ── List search ────────────────────────────────── */
.list-search-box { margin-bottom: 0; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-right {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: rgba(12,12,20,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .nav-right.open { display: flex; }
  .nav-right .btn-ghost,
  .nav-right .btn-primary { text-align: center; width: 100%; }
  .user-menu { width: 100%; }
  .btn-user { width: 100%; text-align: center; }

  .sort-tabs { display: none; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .hero { padding: 120px 16px 60px; }
  .list-tabs { flex-wrap: wrap; }
}
