html:not(.auth-ready) body{visibility:hidden;}
.account-games-shell{width:min(1280px,calc(100% - 28px));margin:0 auto 44px;}
.account-games-hero{border:1px solid var(--border);background:linear-gradient(135deg,color-mix(in srgb,var(--card) 94%, transparent),color-mix(in srgb,var(--primary) 10%, transparent));border-radius:24px;padding:20px;box-shadow:0 18px 60px rgba(0,0,0,.18);}
.account-games-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.account-games-title{margin:0;color:var(--title);font-size:clamp(26px,4vw,42px);line-height:1.05;}
.account-games-subtitle{margin:8px 0 0;color:var(--muted);max-width:760px;}
.account-games-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.account-games-btn{border:1px solid var(--border);background:color-mix(in srgb,var(--card) 84%, transparent);color:var(--fg);border-radius:13px;padding:10px 13px;font-weight:800;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;min-height:42px;}
.account-games-btn:hover{border-color:color-mix(in srgb,var(--primary) 42%, var(--border));box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 18%, transparent);text-decoration:none;}
.account-games-btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-fg,#fff);}
.account-games-btn.warn{color:#ff5f7a;}
.account-games-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px;}
.account-games-stat{border:1px solid var(--border);background:color-mix(in srgb,var(--card) 78%, transparent);border-radius:17px;padding:13px;display:flex;align-items:center;gap:10px;min-width:0;}
.account-games-stat-icon{width:40px;height:40px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--primary) 13%, transparent);font-size:20px;flex:0 0 auto;}
.account-games-stat strong{display:block;color:var(--title);font-size:22px;line-height:1;}
.account-games-stat span:last-child{display:block;color:var(--muted);font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.account-games-tools{display:grid;grid-template-columns:1fr auto auto;gap:10px;margin:16px 0;align-items:center;}
.account-games-search,.account-games-select{border:1px solid var(--border);background:color-mix(in srgb,var(--card) 88%, transparent);color:var(--fg);border-radius:14px;padding:12px 13px;min-height:44px;outline:none;}
.account-games-search:focus,.account-games-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 18%, transparent);}
.account-games-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0 0;}
.account-games-tab{border:1px solid var(--border);background:color-mix(in srgb,var(--card) 82%, transparent);color:var(--fg);border-radius:999px;padding:10px 13px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:8px;}
.account-games-tab b{min-width:24px;height:24px;border-radius:999px;padding:0 8px;background:color-mix(in srgb,var(--primary) 14%, transparent);display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:var(--title);}
.account-games-tab.active{background:var(--primary);border-color:var(--primary);color:var(--primary-fg,#fff);}
.account-games-tab.active b{background:rgba(255,255,255,.22);color:inherit;}
.account-games-status{min-height:22px;margin:12px 2px;color:var(--muted);font-weight:700;}
.account-games-status.err{color:#ff617d;}
.account-games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;}
.account-game-card{border:1px solid var(--border);background:color-mix(in srgb,var(--card) 90%, transparent);border-radius:20px;overflow:hidden;box-shadow:0 12px 36px rgba(0,0,0,.14);display:flex;flex-direction:column;min-height:100%;}
.account-game-cover-link{display:block;position:relative;background:color-mix(in srgb,var(--card) 80%, #000);}
.account-game-cover{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:var(--card);}
.account-game-badges{position:absolute;left:10px;right:10px;top:10px;display:flex;gap:7px;flex-wrap:wrap;}
.account-game-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 8px;background:rgba(0,0,0,.62);color:#fff;font-size:12px;font-weight:900;backdrop-filter:blur(8px);}
.account-game-body{padding:13px;display:flex;flex-direction:column;gap:10px;flex:1;}
.account-game-title{color:var(--title);font-weight:950;text-decoration:none;line-height:1.2;font-size:15px;}
.account-game-title:hover{text-decoration:underline;}
.account-game-meta{display:grid;gap:5px;color:var(--muted);font-size:12px;line-height:1.35;}
.account-game-rating{display:inline-flex;align-items:center;gap:5px;color:var(--title);font-weight:900;}
.account-game-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;}
.account-games-empty{border:1px dashed var(--border);border-radius:20px;padding:22px;background:color-mix(in srgb,var(--card) 82%, transparent);color:var(--muted);text-align:center;font-weight:800;}
.account-games-guest{width:min(760px,calc(100% - 28px));margin:38px auto;}
@media (max-width:860px){.account-games-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.account-games-tools{grid-template-columns:1fr;}.account-games-actions{justify-content:flex-start;}}
@media (max-width:520px){.account-games-shell{width:min(100% - 18px,1280px);margin-top:14px}.account-games-hero{padding:15px;border-radius:20px}.account-games-stats{grid-template-columns:1fr}.account-games-grid{grid-template-columns:1fr}.account-games-btn{width:100%;justify-content:center}.account-games-actions{width:100%;}.account-games-tab{flex:1;justify-content:center;}}

/* Page Mes jeux : moins d'espace en haut + icône Watchlist identique à la fiche jeu */
body.account-games-page{
  padding-top:4px;
}

.account-watchlist-icon{
  display:inline-flex;
  width:20px;
  height:20px;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  transform:translateY(1px);
}

.account-watchlist-icon svg{
  width:20px;
  height:20px;
  display:block;
  overflow:visible;
}

.account-games-stat-icon-watch .account-watchlist-icon{
  width:24px;
  height:24px;
}

.account-games-stat-icon-watch .account-watchlist-icon svg{
  width:24px;
  height:24px;
}

.account-game-meta .account-watchlist-icon{
  width:15px;
  height:15px;
  vertical-align:-2px;
  margin-right:4px;
}

.account-game-meta .account-watchlist-icon svg{
  width:15px;
  height:15px;
}

.account-game-badge .account-watchlist-icon{
  width:14px;
  height:14px;
}

.account-game-badge .account-watchlist-icon svg{
  width:14px;
  height:14px;
}


/* Correctif : viewer.css applique un padding sur <main>, on le neutralise pour remonter la tuile Mes jeux */
body.account-games-page{
  padding-top:0 !important;
}

body.account-games-page .account-games-shell{
  padding:0 !important;
  margin-top:10px !important;
}

/* Cartes Mes jeux : boutons plus compacts */
.account-game-card-actions{
  gap:6px;
}

.account-game-card-actions .account-games-btn{
  min-height:32px;
  padding:7px 10px;
  border-radius:11px;
  font-size:13px;
  line-height:1;
  gap:5px;
}

.account-game-card-actions .account-games-btn.primary{
  padding:8px 11px;
}

.account-game-card-actions .account-games-btn.warn{
  font-size:12px;
  padding:7px 9px;
}


/* Top personnel Mes jeux */
.account-games-top-list{
  margin-top:16px;
  border:1px solid var(--border);
  background:color-mix(in srgb,var(--card) 78%, transparent);
  border-radius:18px;
  padding:14px;
}
.account-games-top-list-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.account-games-top-list h2{
  margin:0;
  color:var(--title);
  font-size:20px;
  line-height:1.15;
}
.account-games-top-list p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
}
.account-games-top-list-items{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
}
.account-games-top-item{
  position:relative;
  min-width:0;
  border:1px solid var(--border);
  background:color-mix(in srgb,var(--card) 88%, transparent);
  border-radius:15px;
  padding:9px;
  display:grid;
  grid-template-columns:auto 46px minmax(0,1fr);
  gap:9px;
  align-items:center;
  color:var(--fg);
  text-decoration:none;
  overflow:visible;
}
.account-games-top-item:hover,
.account-games-top-item:focus-visible{
  z-index:25;
  border-color:color-mix(in srgb,var(--primary) 42%, var(--border));
  text-decoration:none;
}
.account-games-top-rank{
  font-weight:950;
  color:var(--title);
  min-width:28px;
  text-align:center;
}
.account-games-top-cover{
  width:46px;
  height:46px;
  border-radius:11px;
  object-fit:cover;
  background:var(--card);
}
.account-games-top-info{
  min-width:0;
  display:block;
}
.account-games-top-info strong{
  display:block;
  color:var(--title);
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.account-games-top-info small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.account-games-top-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translate(-50%, 8px);
  width:max-content;
  min-width:260px;
  max-width:min(330px, calc(100vw - 32px));
  padding:12px;
  display:block;
  border:1px solid color-mix(in srgb,var(--primary) 36%, var(--border));
  border-radius:15px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--card) 98%, transparent),color-mix(in srgb,var(--card) 90%, var(--primary) 10%));
  box-shadow:0 18px 42px rgba(0,0,0,.34);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.account-games-top-tooltip::after{
  content:'';
  position:absolute;
  left:50%;
  top:100%;
  transform:translateX(-50%);
  border:8px solid transparent;
  border-top-color:color-mix(in srgb,var(--card) 92%, var(--primary) 8%);
}
.account-games-top-item:hover .account-games-top-tooltip,
.account-games-top-item:focus-visible .account-games-top-tooltip,
.account-games-top-item:focus-within .account-games-top-tooltip{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, 0);
}
.account-games-top-tooltip-title{
  display:block;
  margin-bottom:9px;
  color:var(--title);
  font-size:12px;
  font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.account-games-top-tooltip-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  padding:8px 10px;
  border-radius:11px;
  background:color-mix(in srgb,var(--primary) 12%, transparent);
  color:var(--fg);
  font-size:13px;
}
.account-games-top-tooltip-total b{
  color:var(--title);
  font-size:15px;
}
.account-games-top-tooltip-rows{
  display:grid;
  gap:6px;
}
.account-games-top-tooltip-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  font-size:12px;
  line-height:1.3;
}
.account-games-top-tooltip-label{
  min-width:0;
  color:var(--muted);
}
.account-games-top-tooltip-points{
  white-space:nowrap;
  color:var(--title);
  font-weight:800;
}
.account-games-top-empty{
  grid-column:1/-1;
  border:1px dashed var(--border);
  border-radius:14px;
  padding:13px;
  color:var(--muted);
  text-align:center;
  font-weight:800;
}
@media (max-width:1100px){.account-games-top-list-items{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:620px){.account-games-top-list-items{grid-template-columns:1fr}.account-games-top-item{grid-template-columns:auto 54px minmax(0,1fr)}.account-games-top-cover{width:54px;height:54px}.account-games-top-tooltip{left:10px;right:10px;bottom:calc(100% + 8px);transform:translate(0,8px);min-width:0;max-width:none;width:auto}.account-games-top-tooltip::after{left:34px;transform:none}.account-games-top-item:hover .account-games-top-tooltip,.account-games-top-item:focus-visible .account-games-top-tooltip,.account-games-top-item:focus-within .account-games-top-tooltip{transform:translate(0,0)}}


/* Actions de publication du Top jeux */
.account-games-top-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;align-items:center;}
.account-games-btn-disabled,.account-games-btn:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.25);box-shadow:none;}
.account-games-btn-disabled:hover,.account-games-btn:disabled:hover{border-color:var(--border);box-shadow:none;}
@media (max-width:760px){.account-games-top-list-head{flex-direction:column}.account-games-top-actions{width:100%;justify-content:flex-start}.account-games-top-actions .account-games-btn{width:auto;flex:1 1 210px}}
