/* ===== VARIABLES ===== */
:root {
  --bg: #0f0e0a;
  --surface: #1a1916;
  --surface2: #242320;
  --border: #2e2c28;
  --accent: #e8b84b;
  --accent2: #c45c2e;
  --text: #f0ede6;
  --text2: #9e9a90;
  --text3: #6b6760;
  --danger: #c0392b;
  --success: #27ae60;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: 'Fraunces', serif; }

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ===== SCREENS ===== */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ===== AUTH ===== */
#auth-screen {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 50%, #1f1a0e 0%, var(--bg) 60%);
  position: relative;
  padding: 20px;
}
#auth-screen.active { display: flex; }

.auth-deco {
  position: absolute;
  font-size: clamp(120px, 25vw, 280px);
  color: rgba(232,184,75,0.04);
  user-select: none;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.auth-logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.auth-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.auth-logo h1 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; letter-spacing: -0.5px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active { background: var(--accent); color: #0f0e0a; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 7px; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select option { background: var(--surface2); }
.form-group textarea { resize: vertical; }

/* ===== BUTTONS ===== */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0f0e0a; }
.btn-primary:hover { background: #d4a43c; transform: translateY(-1px); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(232,184,75,0.1); }
.btn-sm { padding: 7px 14px; font-size: 13px; width: auto; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text3);
  font-size: 13px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-google:hover { background: #f5f5f5; transform: translateY(-1px); }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15,14,10,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo h2 { font-size: 20px; font-weight: 700; }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface2); color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0e0a;
  font-weight: 700;
  overflow: hidden;
}
.nav-avatar:hover { border-color: var(--accent); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.admin-badge {
  background: var(--accent2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--surface2); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 190;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  padding: 8px 0 16px;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.mobile-nav-link:hover { background: var(--surface2); }
.mobile-logout { color: var(--danger); }
.mobile-menu-sep { height: 1px; background: var(--border); margin: 8px 24px; }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(0,0,0,0.5);
  z-index: 180;
}
.mobile-overlay.open { display: block; }

/* desktop-only */
.desktop-only { display: flex; }

/* ===== MAIN ===== */
main {
  flex: 1;
  padding: 40px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ===== PAGE HEADER ===== */
.page-header { margin-bottom: 36px; }
.page-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}
.page-header p { color: var(--text2); margin-top: 8px; font-size: 15px; }
.accent { color: var(--accent); }

.sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.new-session-btn { align-self: center; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
}
.game-card-img img { width: 100%; height: 100%; object-fit: cover; }
.game-card-body { padding: 14px 16px; }
.game-card-body h4 { font-size: 15px; font-weight: 700; }
.game-card-actions { padding: 0 16px 14px; }

/* ===== SESSIONS ===== */
.sessions-list { display: flex; flex-direction: column; gap: 14px; }
.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: box-shadow 0.2s;
}
.session-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.session-title { font-size: 19px; font-weight: 700; font-family: 'Fraunces', serif; margin-bottom: 6px; }
.session-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.session-meta {
  display: flex;
  gap: 14px;
  color: var(--text2);
  font-size: 13px;
  flex-wrap: wrap;
}
.session-meta span { display: flex; align-items: center; gap: 5px; }
.session-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.tag-open { background: rgba(39,174,96,0.15); color: #2ecc71; }
.tag-full { background: rgba(192,57,43,0.15);  color: #e74c3c; }
.tag-mine { background: rgba(232,184,75,0.15); color: var(--accent); }

.session-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.players-bar { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.player-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text2);
}

/* ===== PROFILE ===== */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  max-width: 500px;
}
.avatar-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.avatar-preview {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 50%;
  background: var(--surface2);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  overflow: hidden;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-btn { display: flex; flex-direction: column; gap: 8px; }
.upload-hint { color: var(--text3); font-size: 13px; }

/* ===== ADMIN ===== */
.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 20px;
}
.admin-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-preview-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo-preview-box {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
  border: 2px solid var(--border);
}
.logo-preview-box img { width: 100%; height: 100%; object-fit: cover; }

.favicon-preview-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}
.favicon-preview-box img { width: 100%; height: 100%; object-fit: contain; }

/* Icons grid */
.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.icon-row:hover { border-color: var(--accent); }
.icon-row-preview {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
  flex-shrink: 0;
}
.icon-row-preview img { width: 100%; height: 100%; object-fit: contain; }
.icon-row-info { flex: 1; min-width: 0; }
.icon-row-info label { font-size: 12px; color: var(--text2); display: block; margin-bottom: 6px; font-weight: 500; }
.icon-row-info .icon-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-status {
  font-size: 11px;
  color: var(--success);
  margin-top: 4px;
}

/* Users table — responsive wrapper */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.users-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.users-table th {
  text-align: left;
  padding: 11px 14px;
  background: var(--surface2);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.users-table th:first-child { border-radius: 8px 0 0 8px; }
.users-table th:last-child  { border-radius: 0 8px 8px 0; }
.users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.users-table tr:last-child td { border-bottom: none; }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.user-row-avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f0e0a;
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
  vertical-align: middle;
  overflow: hidden;
}
.user-row-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.modal h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 240px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent); }
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ===== MISC ===== */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state .icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-size: 20px; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

.error-msg { color: #e74c3c; font-size: 13px; margin-top: 6px; min-height: 18px; }

.section-page { display: none; }
.section-page.active { display: block; }

#app-screen { display: none; flex-direction: column; min-height: 100vh; }
#app-screen.active { display: flex; }

.banned-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; text-align: center; gap: 16px; padding: 24px;
}
.banned-screen h2 { font-size: clamp(32px, 6vw, 48px); color: var(--danger); }
.banned-screen p  { color: var(--text2); font-size: 18px; }

/* ===== FORM ROWS ===== */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* ===== COMPLETE PROFILE MODAL ===== */
.modal-wide { max-width: 560px; }

.complete-profile-header { margin-bottom: 24px; }
.complete-profile-step {
  display: inline-block;
  background: rgba(232,184,75,0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.cp-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cp-avatar-preview {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  background: var(--surface2);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}
.cp-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ===== GAME CARD — CLICKABLE ===== */
.game-card { cursor: pointer; }
.game-card:hover .game-card-body h4 { color: var(--accent); }

/* ===== GAME DETAIL MODAL ===== */
.game-detail-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.game-detail-img {
  width: 120px;
  height: 100px;
  min-width: 120px;
  border-radius: var(--radius);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.game-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.game-detail-title-block { flex: 1; }
.game-detail-title-block h3 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.game-detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gd-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(232,184,75,0.12);
  color: var(--accent);
  border: 1px solid rgba(232,184,75,0.25);
}

.game-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.gd-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.gd-stat-icon { font-size: 22px; margin-bottom: 4px; }
.gd-stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.gd-stat-value { font-size: 15px; font-weight: 700; color: var(--text); }

.game-detail-desc {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

@media (max-width: 480px) {
  .game-detail-header { flex-direction: column; }
  .game-detail-img { width: 100%; height: 160px; min-width: unset; }
}

/* Tablet */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .desktop-only { display: none !important; }
  main { padding: 24px 16px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .session-card { grid-template-columns: 1fr; }
  .session-actions { justify-content: flex-start; }
  .icons-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Mobile */
@media (max-width: 480px) {
  .auth-card { padding: 24px 18px; }
  .auth-deco { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card-img { font-size: 36px; }
  .profile-card { padding: 20px 16px; }
  .admin-section { padding: 18px 14px; }
  .modal { padding: 24px 16px; }
  .toast { min-width: 0; font-size: 13px; }
  .users-table td, .users-table th { padding: 10px 10px; }
  .icons-grid { grid-template-columns: 1fr 1fr; }
  .page-header h2 { font-size: 26px; }
}

/* Very small */
@media (max-width: 360px) {
  .games-grid { grid-template-columns: 1fr 1fr; }
  .icons-grid { grid-template-columns: 1fr; }
}
