:root {
  --bg: #0d0f14;
  --surface: #171a22;
  --surface-2: #1f2330;
  --border: #2a2f3d;
  --text: #eef0f5;
  --muted: #8d93a5;
  --accent: #3ddc84;      /* vert « mission réussie » */
  --accent-ink: #062b16;
  --pink: #ff4fa3;
  --platinum: #b9d3ff;
  --gold: #f2c14e;
  --silver: #c9ced8;
  --bronze: #d08a52;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

.screen {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
}

/* ── Barre du haut ── */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) 0 12px;
  background: linear-gradient(var(--bg) 75%, transparent);
}
.brand { flex: 1; margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: .5px; }
.brand span { color: var(--pink); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 1.2rem;
}
.intro { color: var(--muted); margin: 4px 0 12px; }

/* ── Choix du jeu ── */
.game-list { display: grid; gap: 12px; }
.game-card {
  text-align: left; width: 100%;
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #2a1730, var(--surface) 60%);
}
.game-card { display: flex; gap: 14px; align-items: flex-start; }
.game-card .card-body { flex: 1; min-width: 0; }
.game-card .cover {
  flex: none; width: 76px; height: 96px; object-fit: cover; border-radius: 10px;
  box-shadow: 0 4px 14px rgb(0 0 0 / .45);
}
.game-card[disabled] .cover { filter: grayscale(.6); }
.publisher-card { align-items: center; }
.pub-logo {
  flex: none; width: 88px; height: 88px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgb(0 0 0 / .45);
}
.pub-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.game-card h2 { margin: 0 0 2px; font-size: 1.3rem; }
.game-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.game-card .mini { display: flex; gap: 14px; margin-top: 12px; font-size: .85rem; }
.game-card .mini b { color: var(--accent); }
.game-card .mini + .mini { margin-top: 6px; }
.game-card .mini { flex-wrap: wrap; }
.game-card .mini em { font-style: normal; color: var(--muted); flex-basis: 100%; font-size: .78rem; margin-bottom: -6px; }
.game-card[disabled] { opacity: .55; cursor: default; background: var(--surface); }
.badge {
  display: inline-block; margin-top: 10px; padding: 2px 10px;
  border-radius: 99px; background: var(--surface-2); color: var(--gold); font-size: .8rem;
}

/* ── Onglets plateformes ── */
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 4px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.tab {
  padding: 10px 4px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: .95rem;
}
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--pink); }
.kind-tabs { margin-top: 8px; grid-template-columns: 1fr 1fr; }
.kind-tabs .tab.active { box-shadow: inset 0 -2px 0 var(--gold); }

/* ── Progression ── */
.progress-card { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.progress-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.progress-row #progress-pct { color: var(--accent); font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #9bf2c1); transition: width .3s; }

/* ── Filtres ── */
.filters { display: grid; gap: 10px; margin-bottom: 12px; }
#search {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip {
  flex: none; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .85rem;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.switch input { width: 18px; height: 18px; accent-color: var(--pink); }

/* ── Liste des trophées ── */
.trophy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trophy {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  overflow: hidden;
}
.trophy.done { border-color: #245c3c; background: #142019; }
.trophy-head { display: flex; align-items: center; gap: 12px; padding: 12px; }
.trophy-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; display: flex; gap: 12px; align-items: center; }
.cup { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.cup svg { width: 24px; height: 24px; }
.t-platinum { color: var(--platinum); }
.t-gold { color: var(--gold); }
.t-silver { color: var(--silver); }
.t-bronze { color: var(--bronze); }
.t-secret { color: #b98cff; }
.t-collect { color: #4fd18b; }
.chip small { opacity: .7; font-weight: 600; margin-left: 2px; }
.trophy-text { min-width: 0; }
.trophy-name { font-weight: 700; }
.trophy.done .trophy-name { color: var(--accent); }
.trophy-desc { color: var(--muted); font-size: .88rem; }
.trophy-desc.spoiler { font-style: italic; opacity: .8; }
.meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }

.check {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--border); background: transparent;
  display: grid; place-items: center; font-size: 1.3rem; color: transparent;
  transition: transform .1s;
}
.check:active { transform: scale(.92); }
.trophy.done .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.trophy-body { padding: 0 12px 14px 64px; display: none; }
.trophy.open .trophy-body { display: block; }
.tip-title { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pink); margin: 0 0 4px; }
.tip { margin: 0 0 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  text-decoration: none; font-size: .88rem;
}
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

/* ── Réglages ── */
dialog {
  width: min(440px, calc(100% - 32px)); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
dialog::backdrop { background: rgb(0 0 0 / .6); }
.settings { padding: 18px; display: grid; gap: 14px; }
.settings h2 { margin: 0; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: grid; gap: 8px; }
legend { color: var(--muted); font-size: .85rem; padding: 0 4px; }
fieldset input[type="radio"] { accent-color: var(--pink); }
.muted { color: var(--muted); font-size: .85rem; margin: 0; }
.field { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.field input {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: .95rem;
}
#sync-status.ok { color: var(--accent); }
#sync-status.error { color: #ff6b6b; }

dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* Connexions PSN / Xbox / Steam */
.conn { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.conn summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.conn-state { text-align: right; }
.conn[open] summary { margin-bottom: 8px; }
.conn .field { margin-bottom: 8px; }
.conn-state { font-weight: 400; font-size: .8rem; color: var(--muted); }
.conn-state.on { color: var(--accent); }
.help { margin: 0 0 8px; padding-left: 18px; font-size: .82rem; color: var(--muted); }
.help a { color: var(--pink); }
#conn-msg.ok { color: var(--accent); }
#conn-msg.error, .import-msg.error { color: #ff6b6b; }
.import-msg.ok { color: var(--accent); }

/* Bouton d'import dans l'écran d'un jeu */
.btn.import { width: 100%; margin-top: 10px; text-align: center; }
.btn.import:disabled { opacity: .5; cursor: default; }
.import-msg { margin-top: 6px; }
.import-msg:empty { display: none; }

/* Connexion */
.login { min-height: 100dvh; display: grid; place-items: center; }
.login-box { width: 100%; max-width: 380px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.brand.big { font-size: 3rem; flex: none; }
.login-lead { color: var(--muted); margin: 0; }
.google-btn { min-height: 44px; display: grid; place-items: center; }
.btn.google {
  display: flex; align-items: center; gap: 10px; background: #fff; color: #1f1f1f;
  border-color: #fff; font-weight: 600; padding: 11px 18px; border-radius: 999px; font-size: .95rem;
}
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; }
#login-msg.error { color: #ff6b6b; }
.account { display: flex; align-items: center; gap: 12px; }
.account img { width: 44px; height: 44px; border-radius: 50%; }
.account .who { flex: 1; min-width: 0; }
.account .who b { display: block; }
.account .who span { color: var(--muted); font-size: .85rem; word-break: break-all; }

/* ── World of Warcraft ── */
.wow-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.wow-card h3, .wow-card h4 { margin: 0 0 6px; }
.wow-card p { margin: 4px 0; }
.wow-chars { margin: 4px 0 10px; }
.wow-chars small { opacity: .7; }
.wow-head { display: flex; gap: 14px; align-items: center; }
.wow-portrait { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; }
.wow-id { min-width: 0; }
.wow-id h3 small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.wow-stats, .wow-kpis { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.wow-stats b, .wow-kpis b { color: var(--text); font-size: 1.05rem; }
.wow-tabs { grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; }
.wow-tabs .tab { font-size: .82rem; }
.wow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wow-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.wow-slot { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.wow-item { font-weight: 600; text-decoration: none; color: var(--text); min-width: 0; }
.wow-ilvl { font-weight: 700; color: var(--gold); }
.wow-ilvl.ok { color: var(--accent); }
.wow-ilvl.ko { color: #ff6b6b; }
.wow-sub { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.wow-exp { margin: 16px 0 8px; }
.wow-mode { margin-top: 8px; }
.wow-mode summary { display: flex; justify-content: space-between; cursor: pointer; margin-bottom: 4px; }
.wow-bosses { list-style: none; padding: 6px 0 0; margin: 0; font-size: .85rem; color: var(--muted); display: grid; gap: 2px; }
.wow-loading { text-align: center; padding: 24px 0; }
.wow-menu { display: grid; gap: 10px; }
.wow-menu-item { align-items: center; }
.wow-menu-icon { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; flex: none; }
.wow-title { margin: 6px 0 8px; }
.wow-char h2 small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.wow-links { margin: 0 0 12px; }
.ok-line { color: var(--accent); margin: 0; }
.wow-char { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wow-star { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); font-size: 1.3rem; }
.wow-star.on { color: var(--gold); border-color: var(--gold); }
.wow-exp-block { margin-bottom: 8px; }
.wow-exp-block > summary { cursor: pointer; list-style: none; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; }
.wow-exp-block > summary small { color: var(--muted); font-weight: 400; }
.wow-exp-block[open] > summary { margin-bottom: 8px; }
/* Raids : carte avec illustration en fond et barres par difficulté */
.wow-raid {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 14px; margin-bottom: 10px;
  background: linear-gradient(rgb(13 15 20 / .78), rgb(13 15 20 / .9)), var(--bg, none) center / cover, var(--surface);
}
.wow-raid h4 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 600; }
.wow-diff { margin-top: 10px; }
.wow-diff > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.wow-diff > summary::-webkit-details-marker { display: none; }
.wow-diff > summary span { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; color: #c9ced8; }
.wow-diff > summary b { font-size: 1.05rem; }
.wow-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgb(255 255 255 / .08); overflow: hidden; }
.wow-bar > div { height: 100%; border-radius: 99px; }
.wow-diff.lfr .wow-bar > div { background: linear-gradient(90deg, #6fd06f, #1ee81e); }
.wow-diff.normal .wow-bar > div { background: linear-gradient(90deg, #6cb6f5, #2f7fe0); }
.wow-diff.hero .wow-bar > div { background: linear-gradient(90deg, #c38af5, #7b3fe4); }
.wow-diff.myth .wow-bar > div { background: linear-gradient(90deg, #ff9f5a, #e2481e); }

/* Donjons : tuiles */
.wow-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.wow-tile {
  min-height: 92px; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between;
  border: 2px solid var(--border);
  background: linear-gradient(rgb(13 15 20 / .45), rgb(13 15 20 / .85)), var(--bg, none) center / cover, var(--surface);
}
.wow-tile.ok { border-color: #3ddc84; }
.wow-tile.ko { border-color: #ff5d6c; }
.wow-tile.none { opacity: .6; }
.wow-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.wow-tile-top b { font-size: 1.15rem; color: #f2e3c2; }
.wow-key { background: rgb(0 0 0 / .55); border-radius: 99px; padding: 2px 8px; font-weight: 700; font-size: .85rem; }
.wow-tile-name { font-size: .9rem; line-height: 1.2; text-shadow: 0 1px 3px #000; }
.wow-score, .wow-rank { display: grid; gap: 2px; }
.wow-label { text-transform: uppercase; letter-spacing: 1.5px; font-size: .74rem; color: var(--muted); }
.wow-score b { font-size: 1.6rem; color: #7d8cff; }
.wow-rank b { font-size: 1.5rem; color: var(--gold); }

/* Sources et ressources WoW */
.wow-sources { text-align: center; margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.wow-sources h4 { margin: 0 0 10px; color: #b39dff; letter-spacing: 2px; text-transform: uppercase; font-size: .82rem; }
.wow-sources div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.wow-sources a { color: var(--muted); text-decoration: none; font-weight: 600; }

.wow-ranks { width: 100%; border-collapse: collapse; font-size: .85rem; }
.wow-ranks th { color: var(--muted); font-weight: 400; text-align: right; padding: 4px; }
.wow-ranks td { padding: 4px; text-align: right; }
.wow-ranks td:first-child, .wow-ranks th:first-child { text-align: left; }

/* Pastille de synchro dans la barre du haut */
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; flex: none; }
.sync-dot.ok { background: var(--accent); }
.sync-dot.syncing { background: var(--gold); animation: pulse 1s infinite; }
.sync-dot.error { background: #ff6b6b; }
@keyframes pulse { 50% { opacity: .3; } }

/* ───── Trailers / photos (GTA VI) ───── */
.media-list { display: grid; gap: 14px; }
.media-video { background: var(--surface); border: 1px solid var(--border, #2a2f3a); border-radius: 14px; overflow: hidden; }
.media-thumb, .media-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 26px; padding-left: 4px; }
.media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.media-info small { opacity: .7; }
.media-group { margin: 18px 2px 8px; font-size: 15px; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 700px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
.media-photo { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); cursor: zoom-in; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-src { margin-top: 14px; }
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
#lightbox[hidden] { display: none !important; }
#lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
#lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; }
#lightbox .lb-close { top: 14px; right: 14px; font-size: 20px; }
#lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; margin: 0; font-size: 14px; }

.app-version { text-align: center; font-size: 12px; margin: 12px 0 0; opacity: .7; }

/* ───── Overwatch ───── */
.ow-player { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: linear-gradient(90deg, rgb(10 12 18 / .85), rgb(10 12 18 / .35)), var(--bg) center / cover no-repeat, var(--surface); border: 1px solid var(--border); }
.ow-avatar { width: 76px; height: 76px; border-radius: 12px; flex: none; background: var(--surface-2); }
.ow-id h3 { margin: 0; font-size: 1.3rem; }
.ow-title { margin: 2px 0; color: #ffb347; font-weight: 600; }
.ow-endo { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #d7dbe3; }
.ow-endo img { width: 22px; height: 22px; }
.ow-ranks-title { text-transform: uppercase; letter-spacing: 1.5px; font-size: .74rem; color: var(--muted); margin: 2px 0 8px; }
.ow-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ow-rank { display: grid; justify-items: center; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 8px 4px; text-align: center; }
.ow-rank img { width: 48px; height: 48px; object-fit: contain; }
.ow-rank span { font-size: .75rem; color: var(--muted); }
.ow-rank b { font-size: .9rem; }
.ow-viewing { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 12px; background: #2a2440; }
.ow-change { text-align: center; margin: 14px 0; }
.ow-form { display: flex; gap: 8px; margin: 8px 0; }
.ow-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.ow-filters { flex-wrap: wrap; margin-bottom: 10px; }
.ow-sep { width: 8px; }
.ow-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ow-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.ow-kpi b { font-size: 1.25rem; }
.good { color: #3fd28b; }
.bad { color: #ff6b6b; }
.ow-kpi.good b { color: #3fd28b; }
.ow-kpi.bad b { color: #ff8a8a; }
.ow-avg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ow-avg div { display: grid; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.ow-avg span { font-size: .75rem; color: var(--muted); }
.ow-avg b { font-size: 1.05rem; }
.ow-role { margin: 8px 0 10px; }
.ow-role-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ow-role-top small { color: var(--muted); }
.ow-heroes { display: grid; gap: 6px; }
.ow-hero-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.ow-hero-row img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.ow-hero-mid { display: grid; gap: 4px; min-width: 0; }
.ow-hero-mid small, .ow-hero-right small { color: var(--muted); font-size: .75rem; }
.ow-hero-right { display: grid; justify-items: end; gap: 2px; }
.ow-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ow-record { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; gap: 4px; }
.ow-record span { font-size: .78rem; color: var(--muted); }
.ow-record b { font-size: 1.3rem; color: #ffb347; }
.ow-soir { display: grid; gap: 10px; }
.ow-pick { display: grid; grid-template-columns: 84px 1fr; gap: 12px; text-align: left; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); border-left: 4px solid var(--role); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.ow-pick img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.ow-pick small { color: var(--muted); }
.ow-pick h4 { margin: 4px 0; font-size: 1.15rem; }
.ow-pick h4 em { font-style: normal; font-size: .8rem; color: var(--role); margin-left: 6px; }
.ow-pick p { margin: 2px 0; font-size: .85rem; color: var(--muted); }
.ow-pick .ow-defi { color: var(--text); margin-top: 6px; }
.ow-hero-head { display: flex; gap: 14px; align-items: center; padding: 18px 14px; border-radius: var(--radius); margin-bottom: 10px; background: linear-gradient(90deg, rgb(10 12 18 / .9), rgb(10 12 18 / .3)), var(--bg) center / cover no-repeat, var(--surface); }
.ow-hero-head img { width: 84px; height: 84px; border-radius: 12px; }
.ow-hero-head h3 { margin: 0; font-size: 1.4rem; }
.ow-hero-head p { margin: 4px 0 0; color: #d7dbe3; }
.ow-abilities { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.ow-abilities li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.ow-abilities img { width: 40px; height: 40px; background: #222a3a; border-radius: 8px; padding: 4px; box-sizing: border-box; }
.ow-abilities p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.ow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ow-cell { display: grid; justify-items: center; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: .78rem; cursor: pointer; }
.ow-cell img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.ow-friends { display: grid; gap: 6px; }
.ow-friend { display: flex; gap: 6px; align-items: center; }
.ow-friend .btn { flex: 1; text-align: left; }

/* Précommandes GTA VI */
.po-hero { display: grid; gap: 4px; text-align: center; padding: 18px 12px; margin-bottom: 10px; border-radius: var(--radius); background: linear-gradient(135deg, #3a1236, #1b1530); border: 1px solid var(--border); }
.po-hero b { font-size: 2rem; color: #ff7ab8; }
.po-hero small { color: #d7dbe3; }
.po-row { display: grid; grid-template-columns: 78px 1fr 64px; gap: 10px; align-items: center; margin: 8px 0; }
.po-row span { font-size: .85rem; color: var(--muted); }
.po-row b { text-align: right; }

.media-block > summary { cursor: pointer; list-style: none; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.media-block > summary::-webkit-details-marker { display: none; }
.media-block > summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.media-block > summary::after { content: "▾"; float: right; color: var(--muted); }
.media-block:not([open]) > summary::after { content: "▸"; }
.media-block[open] > .media-grid { margin-top: 8px; }
.media-block { margin-bottom: 8px; }
