/* ==========================================================================
   Thème « kawaii » : pastels, tout rond, contour prune et ombre « autocollant ».
   Chargé après app.css et catalog.css : il redéfinit les variables et habille
   les composants existants.
   ========================================================================== */

@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url('/vendor/fonts/baloo-2/baloo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/baloo-2/baloo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('/vendor/fonts/baloo-2/baloo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/nunito/nunito-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/vendor/fonts/nunito/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/nunito/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/vendor/fonts/nunito/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #3D2B4F;          /* contours et texte */
  --muted: #6E5A80;        /* texte secondaire (contraste AA sur fond clair) */
  --bg: #FFF5F8;
  --bg-elev: #FFFFFF;
  --bg-hover: #FFF0F5;
  --border: #3D2B4F;
  --line: #F1D4E0;         /* séparateurs doux */
  --text: #3D2B4F;
  --link: #C2185B;
  --link-hover: #8E0F43;
  --pink: #FF8FB8;
  --pink-soft: #FFE3EE;
  --mint: #9FE3C7;
  --mint-soft: #E9F9F1;
  --lilac: #CBB8FF;
  --lilac-soft: #F3EEFF;
  --butter: #FFE38A;
  --butter-soft: #FFF7D6;
  --peach: #FFC2A8;
  --sky: #A8D8FF;
  --sky-soft: #EAF5FF;
  --rose: #FFB3B3;
  --accent: #FF8FB8;
  --accent-hover: #FF73A6;
  --danger: #C92A4E;
  --radius: 26px;
  --shadow: 0 6px 0 var(--ink);
  --shadow-sm: 0 4px 0 var(--ink);
  --font: 'Nunito', system-ui, sans-serif;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --on-pastel: #3D2B4F;    /* texte sur les stickers pastel, clair ou nuit */
  --dot: #FFD9E6;
  --rose-soft: #FFEFEF;
  --steam: #1F5F99;
  --ok: #1E7A4F;
  --tab-on: #3D2B4F;
  --tab-on-text: #FFFFFF;
  --scheme: light;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
}

h1, h2, h3, .brand, .stat-value, .best-price, .card-title, .dlc-name, .agenda-date strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
}
h1 { font-size: 2.1rem; line-height: 1.1; }
h2 { font-size: 1.45rem; line-height: 1.2; }

a { color: var(--link); font-weight: 700; }
a:hover { color: var(--link-hover); text-decoration: none; }
.muted { color: var(--muted); }
.rich { color: var(--text); font-weight: 500; }
code { background: var(--pink-soft); }

::selection { background: var(--pink); color: var(--text); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* --- Barre du haut : une grosse pilule --------------------------------------- */
.topbar {
  margin: 14px auto 0;
  max-width: 1320px;
  width: calc(100% - 2rem);
  top: 10px;
  background: var(--bg-elev);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: .45rem .6rem .45rem 1.1rem;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .mascot { margin: -4px 0; }
.nav { gap: .2rem; }
.nav a { color: var(--text); font-weight: 800; padding: .45rem .9rem; border-radius: 999px; border: 2px solid transparent; }
.nav a:hover { background: var(--pink-soft); color: var(--text); }
.nav a[aria-current="page"] { background: var(--pink); color: var(--text); border-color: var(--text); }
.top-search input { width: 240px; }
.logout .btn { padding: .4rem .9rem; }

.container { max-width: 1320px; padding-top: 2rem; }

/* --- Formulaires --------------------------------------------------------------- */
input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  background: var(--bg-elev);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  color: var(--text);
  font-weight: 700;
  color-scheme: var(--scheme);
}
input[type="search"], input[type="text"], input[type="password"] { border-radius: 999px; padding-inline: 1rem; }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--lilac); outline-offset: 2px; }
input[type="checkbox"] { accent-color: var(--link); width: 1.1rem; height: 1.1rem; }
label { font-weight: 800; }

/* --- Boutons : gélules ----------------------------------------------------------- */
.btn {
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-weight: 800;
  color: var(--text);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(2px); }
.btn-primary, .btn-accent { background: var(--pink); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-hover); color: var(--text); }
.btn-secondary { background: var(--bg-elev); color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--pink-soft); border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--pink-soft); color: var(--text); }
.btn-link { color: var(--link); font-weight: 800; }
.icon-btn { border: 2px solid var(--ink); background: var(--bg-elev); color: var(--text); border-radius: 12px; }
.icon-btn:hover:not(:disabled) { background: var(--pink-soft); border-color: var(--text); }
.icon-btn.danger:hover { background: var(--rose); color: var(--text); border-color: var(--text); }

/* --- Cartes : contour + ombre autocollant ------------------------------------------- */
.card, .widget, .agenda-item, .dlc-list a, .list-card {
  background: var(--bg-elev);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
a.card:hover, .list-card:hover, .dlc-list a:hover, .agenda-item:hover, .dlc-teaser:hover {
  background: var(--bg-elev); border-color: var(--text); transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink);
}
.card { padding: 1.3rem 1.4rem; }
.widget { padding: 1rem 1.1rem 1.1rem; }
.widget-head h2 { font-size: 1.3rem; }
.dash { gap: 1.4rem; }
.dash.is-editing .widget { outline: 3px dashed var(--lilac); outline-offset: 4px; }
.section h2 { font-size: 1.35rem; }
.alert { background: var(--butter-soft); border: 2.5px solid var(--ink); border-radius: 20px; }
.alert-error { background: var(--rose); color: var(--text); border-color: var(--text); }

/* --- Accueil : Chekko et sa bulle ---------------------------------------------------- */
.greeting { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin: 0 0 2rem; }
.greeting .mascot { flex: none; }
.bubble {
  position: relative; flex: 1 1 420px; background: var(--bg-elev); border: 3px solid var(--ink);
  border-radius: 32px; padding: 1.2rem 1.6rem; box-shadow: var(--shadow);
}
.bubble::before {
  content: ''; position: absolute; left: -15px; top: 50%; width: 24px; height: 24px; background: var(--bg-elev);
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-50%) rotate(45deg);
}
.bubble h1 { margin: 0 0 .2rem; font-size: 2.2rem; }
.bubble p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.dash-head h2 { margin: 0; }

/* --- Cartes de jeux ------------------------------------------------------------------ */
.game-card { border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); background: var(--bg-elev); }
.game-card:hover { border-color: var(--text); transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 9px 0 var(--ink); }
.cover { background: var(--lilac-soft); border-bottom: 3px solid var(--ink); }
.card-title { font-size: 1.05rem; line-height: 1.2; }
.card-meta { color: var(--muted); font-weight: 700; }
.price { color: var(--link); }
.cover .fav { color: var(--butter); text-shadow: 0 0 0 var(--ink), 1px 1px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }

.tile-cover { border: 2.5px solid var(--ink); border-radius: 18px; background: var(--lilac-soft); box-shadow: var(--shadow-sm); }
.tile:hover .tile-cover { border-color: var(--text); transform: translateY(-2px); }
.tile-name { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.tile-meta, .mini-meta { color: var(--muted); font-weight: 700; }
.mini-list a { border-radius: 16px; color: var(--text); }
.mini-list a:hover { background: var(--pink-soft); }
.mini-list img { border-radius: 12px; border: 2px solid var(--ink); background: var(--lilac-soft); }
.mini-name { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.mini-meta strong { color: var(--text); }

/* --- Pastilles = stickers -------------------------------------------------------------- */
.pill, .badge, .kind-badge, .chip {
  background: var(--bg-elev); color: var(--text); border: 2px solid var(--ink); font-weight: 800;
}
.pill { font-size: .75rem; padding: .12rem .6rem; }
.pill-cracked { background: var(--mint); color: var(--text); border-color: var(--text); }
.pill-uncracked { background: var(--rose); color: var(--text); border-color: var(--text); }
.pill-unreleased { background: var(--butter); color: var(--text); border-color: var(--text); }
.pill-released { background: var(--bg-elev); color: var(--text); }
.pill-protection { background: var(--lilac); color: var(--text); border-color: var(--text); }
.pill-playing { background: var(--sky); color: var(--text); border-color: var(--text); }
.pill-backlog { background: var(--butter); color: var(--text); border-color: var(--text); }
.pill-wishlist { background: var(--pink); color: var(--text); border-color: var(--text); }
.pill-completed { background: var(--mint); color: var(--text); border-color: var(--text); }
.pill-dropped { background: #E4DEE9; color: var(--text); border-color: var(--text); }
.pill-kind { background: var(--lilac); color: var(--text); border-color: var(--text); }
.pill-new { background: var(--butter); color: var(--text); border-color: var(--text); transform: rotate(-4deg); }
.pill-deal { background: var(--pink); color: var(--text); border-color: var(--text); }
.cover .pill-crack { transform: rotate(-5deg); }
.chip { padding: .25rem .75rem; }
a.chip:hover { background: var(--pink-soft); border-color: var(--text); }
.chip-tag { color: var(--muted); }
.badge-running { background: var(--sky); color: var(--text); }
.badge-success { background: var(--mint); color: var(--text); }
.badge-error { background: var(--rose); color: var(--text); }
.badge-cancelled { background: var(--butter); color: var(--text); }
.kind-indicator { background: var(--lilac); color: var(--text); }
.kind-store { background: var(--peach); color: var(--text); }

.deal {
  background: var(--pink); color: var(--text); border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 800; padding: .05rem .5rem; transform: rotate(-6deg);
}
.deal-steam { background: var(--sky); }
.score { background: var(--mint); color: var(--text); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .5rem; }
.dot { border: 2px solid var(--ink); }
.dot-playing { background: var(--sky); }
.dot-backlog { background: var(--butter); }
.dot-wishlist { background: var(--pink); }
.dot-completed { background: var(--mint); }

/* --- Onglets en gélules ---------------------------------------------------------------- */
.tabs a, .game-tabs a {
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--bg-elev); color: var(--text);
  font-weight: 800; padding: .45rem 1rem; margin: 0;
}
.tabs a:hover, .game-tabs a:hover { background: var(--pink-soft); color: var(--text); }
.tabs a[aria-current="page"], .tabs a.is-on, .game-tabs a[aria-current="page"] {
  background: var(--ink); color: #FFFFFF; border-color: var(--text);
}
.game-tabs { border-bottom: 0; gap: .5rem; flex-wrap: wrap; }
.tab-count { background: var(--pink-soft); color: var(--text); border: 1.5px solid var(--ink); }
.game-tabs a[aria-current="page"] .tab-count { background: var(--pink); }

/* --- Fiche jeu -------------------------------------------------------------------------- */
.game-hero {
  background: var(--bg-elev); border: 3px solid var(--ink); border-radius: 36px; box-shadow: 0 8px 0 var(--ink);
  padding: 1.5rem; align-items: center;
}
.game-cover img { border: 3px solid var(--ink); border-radius: 28px; }
.game-head h1 { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }
.facts { gap: .7rem; }
.facts > div { background: var(--lilac-soft); border: 2px solid var(--ink); border-radius: 18px; padding: .5rem .8rem; }
.facts > div:nth-child(3n+2) { background: var(--pink-soft); }
.facts > div:nth-child(3n) { background: var(--mint-soft); }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.facts-compact > div { background: transparent; border: 0; padding: 0; }
.crumb a { font-weight: 800; }

.crack-box { border-left-width: 3px; }
.crack-box.crack-cracked { background: var(--mint-soft); border-left-color: var(--text); }
.crack-box.crack-uncracked { background: var(--rose-soft); border-left-color: var(--text); }
.crack-box.crack-unreleased { background: var(--butter-soft); border-left-color: var(--text); }

.table th { color: var(--muted); font-weight: 800; border-bottom: 2.5px solid var(--ink); }
.table td { border-bottom: 2px solid var(--line); }
.release-group + .release-group { border-top: 2.5px solid var(--ink); }
.release-older td { background: var(--bg-hover); }

.shots img { border: 2.5px solid var(--ink); border-radius: 18px; }
.shots a:hover img { outline: 3px solid var(--pink); }
.video-thumb { background: var(--lilac-soft); border: 2.5px solid var(--ink); border-radius: 20px; color: var(--text); }
.video-thumb:hover { background: var(--lilac); border-color: var(--text); }
.video-play { color: var(--link); }
.video-player { border-radius: 20px; border: 3px solid var(--ink); }
.more summary, .offers-more summary, .family-form summary { color: var(--link); font-weight: 800; }

.list-toggle { border: 2px solid var(--ink); border-radius: 16px; color: var(--text); font-weight: 700; }
.list-toggle:hover { background: var(--pink-soft); border-color: var(--text); }
.list-toggle .box { border: 2px solid var(--ink); border-radius: 6px; }
.list-toggle.is-on .box { background: var(--pink); border-color: var(--text); color: var(--text); }
.mosaic { background: var(--lilac-soft); }
.dlc-list img { border: 2px solid var(--ink); border-radius: 14px; }
.dlc-name { font-size: 1.05rem; }
.dlc-meta { color: var(--muted); font-weight: 700; }
.spinner { border: 3px solid var(--line); border-top-color: var(--pink); }

/* --- Encadré prix ------------------------------------------------------------------------ */
.offers { background: var(--butter-soft); }
.best-offer {
  background: var(--bg-elev); border: 2.5px solid var(--ink); border-radius: 22px; color: var(--text); padding: .9rem 1rem;
}
.best-offer:hover { background: var(--bg-elev); color: var(--text); transform: translateY(-2px); }
.best-tag { color: var(--link); font-weight: 800; }
.best-price { font-size: 2.2rem; }
.best-store { color: var(--muted); font-weight: 700; }
.best-save strong { color: var(--link); }
.steam-ref { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.steam-name { color: var(--steam); font-weight: 800; }
.offer-list a { border: 2px solid var(--ink); border-radius: 16px; background: var(--bg-elev); color: var(--text); }
.offer-list a:hover { background: var(--pink-soft); border-color: var(--text); }
.offer-list.is-muted a { opacity: .75; }
.stock-out { color: var(--danger); font-weight: 800; }
.offers-sub { color: var(--muted); font-weight: 800; }
.offer-group-title { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.05rem; margin: 1rem 0 .4rem; }

/* --- Agenda -------------------------------------------------------------------------------- */
.agenda-item img { border: 2px solid var(--ink); border-radius: 14px; }
.agenda-date { background: var(--pink); border: 2.5px solid var(--ink); border-radius: 18px; padding: .3rem 0; }
.agenda-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }

/* --- Divers -------------------------------------------------------------------------------- */
progress, progress::-webkit-progress-bar { background: var(--pink-soft); border: 2px solid var(--ink); border-radius: 999px; height: 12px; }
progress::-webkit-progress-value { background: var(--pink); }
progress::-moz-progress-bar { background: var(--pink); }
.source-card.is-running { background: var(--sky-soft); }
.enrich-lanes li, .table td { border-color: var(--line); }
.ok-text { color: var(--ok); }
.error-text { color: var(--danger); }
.toast { background: var(--bg-elev); border: 3px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow); color: var(--text); font-weight: 800; }
.toast-error { background: var(--rose); color: var(--text); border-color: var(--text); }

.login { text-align: center; }
.login .mascot { display: block; margin: 0 auto .4rem; }
.login form { text-align: left; }
.container.narrow { padding-top: 8vh; }

@media (max-width: 700px) {
  .topbar { border-radius: 28px; }
  .bubble::before { display: none; }
  .bubble h1 { font-size: 1.6rem; }
  .game-head h1 { font-size: 2.1rem; }
  .greeting .mascot { width: 90px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card:hover, a.card:hover, .best-offer:hover, .tile:hover .tile-cover { transform: none; }
}

/* La barre du haut est plus haute : la colonne collante de la fiche se cale dessous. */
.game-side { top: 6.5rem; }

/* ==========================================================================
   Texte sur les stickers pastel : toujours prune, de jour comme de nuit.
   ========================================================================== */
::selection,
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover,
.btn-primary, .btn-accent, .btn-primary:hover, .btn-accent:hover,
.icon-btn.danger:hover, .alert-error,
.pill-cracked, .pill-uncracked, .pill-unreleased, .pill-protection, .pill-playing, .pill-backlog,
.pill-wishlist, .pill-completed, .pill-dropped, .pill-kind, .pill-new, .pill-deal,
.badge-running, .badge-success, .badge-error, .badge-cancelled, .kind-indicator, .kind-store,
.deal, .score, .list-toggle.is-on .box, .agenda-date, .toast-error,
.game-tabs a[aria-current="page"] .tab-count { color: var(--on-pastel); }

/* ==========================================================================
   Nuit kawaii : prune profond, petites étoiles, les pastels gardent leur éclat.
   Activé par data-theme="dark" sur <html> (voir /static/js/theme.js).
   ========================================================================== */
:root[data-theme="dark"] {
  --ink: #8C78BD;          /* contours lilas : visibles sur le fond nuit */
  --border: #8C78BD;
  --shadow: 0 6px 0 #0B0614;
  --shadow-sm: 0 4px 0 #0B0614;
  --text: #FBF0FF;
  --muted: #C9B8DC;
  --bg: #1D1430;
  --bg-elev: #2B2042;
  --bg-hover: #372A52;
  --line: #43355F;
  --link: #FF9EC6;
  --link-hover: #FFC4DD;
  --pink-soft: #46294A;
  --mint-soft: #1E3A39;
  --lilac-soft: #352A5C;
  --butter-soft: #3B3226;
  --sky-soft: #1F2F4A;
  --rose-soft: #4A2533;
  --danger: #FF8FA3;
  --dot: #3B2D58;
  --steam: #8CC8FF;
  --ok: #9FE3C7;
  --tab-on: #FF8FB8;
  --tab-on-text: #3D2B4F;
  --scheme: dark;
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(var(--dot) 1.6px, transparent 1.6px),
    radial-gradient(#5A4785 1.2px, transparent 1.2px);
  background-size: 26px 26px, 91px 91px;
  background-position: 0 0, 13px 40px;
}
:root[data-theme="dark"] .greeting .mascot ellipse:first-child { fill: #120B1F; }
:root[data-theme="dark"] .cover .fav { color: var(--butter); }

/* Bouton lune / soleil */
.theme-toggle {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2.5px solid var(--ink); background: var(--butter-soft); color: var(--text); cursor: pointer; padding: 0;
}
.theme-toggle:hover { background: var(--butter); color: var(--on-pastel); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   Refonte ergonomique (nov. 2026) : barre du haut, barre d'onglets mobile,
   fiche jeu, recherche, agenda, listes. Placé en dernier : prime sur le reste.
   ========================================================================== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.btn .icon { margin-right: .15rem; }

/* --- Barre du haut : collée en haut, sur un fond qui masque le contenu qui défile -- */
.topbar-wrap {
  position: sticky; top: 0; z-index: 30;
  padding: 12px 1rem 10px;
  background: linear-gradient(var(--bg) 78%, transparent);
}
.topbar { position: static; margin: 0 auto; width: 100%; flex-wrap: nowrap; }
.nav { flex: 1; flex-wrap: nowrap; }
.nav a { white-space: nowrap; }
.top-search input { width: 220px; }
.logout .btn { white-space: nowrap; }
.container { padding-top: 1rem; }

/* --- Barre d'onglets du bas (téléphone, tablette) ----------------------------------- */
.tabbar { display: none; }

/* --- Pastilles et petits éléments ----------------------------------------------- */
.pill-lg { font-size: .9rem; padding: .2rem .8rem; }
.tab-count { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; border-radius: 999px; font-size: .75rem; text-align: center; vertical-align: middle; }
.empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2rem 1.4rem; }
.empty p { margin: 0; }
.empty .mascot { margin-bottom: .4rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.section-head h2 { margin: 0; }
.error-text { font-weight: 700; }

/* --- Cartes de jeux --------------------------------------------------------------- */
.card-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1.1rem; }
.cover img { background: var(--lilac-soft); }
.card-meta .price { margin-left: 0; }

/* --- Fiche jeu : en-tête ------------------------------------------------------------ */
.game-hero { grid-template-columns: 240px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.game-head h1 { font-size: 2.6rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.byline { margin: 0 0 .5rem; color: var(--muted); font-weight: 700; }
.badges { margin: .2rem 0 .8rem; }
.game-hero .facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: 0; }
.game-hero .facts > div { background: var(--lilac-soft); min-width: 0; }
.game-hero .facts > div:nth-child(3n+2) { background: var(--pink-soft); }
.game-hero .facts > div:nth-child(3n) { background: var(--mint-soft); }
.game-hero .facts > div.fact-price { background: var(--butter-soft); }
.facts dd { line-height: 1.25; }
.fact-sub { display: block; font-family: var(--font); font-size: .8rem; font-weight: 700; color: var(--muted); }
.fact-version { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts .deal { font-size: .72rem; vertical-align: .15em; }
.also-on { margin: .5rem 0 0; }
.game-tabs { margin: 1.4rem 0 1.1rem; }
.game-layout { gap: 1.4rem; }
.game-side { top: 5.6rem; }

/* --- Fiche jeu : « Trouvé sur » ----------------------------------------------------- */
.site-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem 1rem;
  padding: .75rem .9rem; border: 2.5px solid var(--ink); border-radius: 20px; background: var(--bg-elev);
}
.site-row:first-child { background: var(--mint-soft); }
.site-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.site-name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.site-version { font-weight: 800; overflow-wrap: anywhere; }
.site-meta { color: var(--muted); font-size: .85rem; font-weight: 700; }
.site-link { align-self: center; }
.site-older { grid-column: 1 / -1; }
.site-older .btn-link { font-size: .85rem; }
.older-list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .2rem; }
.older-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .8rem; align-items: center;
  padding: .35rem .6rem; border-radius: 12px; background: var(--bg-hover); font-size: .88rem;
}
.older-list li[hidden] { display: none; }
.avail-empty { display: flex; align-items: center; gap: 1rem; }
.avail-empty p { margin: 0; }

/* --- Fiche jeu : médias, infos, colonne -------------------------------------------- */
.video-grid { margin-bottom: .9rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.video-thumb { position: relative; overflow: hidden; padding: 0; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb .video-play {
  position: relative; z-index: 1; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: var(--on-pastel); border: 2.5px solid var(--ink); font-size: 1.3rem; padding-left: .2rem;
}
.video-thumb .video-label {
  position: absolute; z-index: 1; left: .5rem; right: .5rem; bottom: .5rem; padding: .15rem .6rem; border-radius: 999px;
  background: var(--bg-elev); color: var(--text); font-weight: 800; font-size: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shots { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.info-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1.2rem; margin: 0 0 .4rem; }
.info-list dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.info-list dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.infos .more { margin-top: .6rem; }

.crack-state { margin: 0 0 .4rem; }
.crack-facts { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .15rem; font-size: .92rem; }
.crack-box .tiny a { font-weight: 800; }

.library-panel .stack label { margin: .6rem 0 .25rem; }
.lib-quick { display: flex; gap: .5rem; align-items: center; }
.lib-quick select { flex: 1; min-width: 0; }
.fav-toggle { margin: 0 !important; position: relative; cursor: pointer; flex: none; }
.fav-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fav-toggle span[aria-hidden] {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--bg-elev); color: var(--muted); font-size: 1.3rem;
}
.fav-toggle input:checked + span { background: var(--butter); color: var(--on-pastel); }
.fav-toggle input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }
.lib-more { margin-top: .7rem; }
.lib-more summary { cursor: pointer; color: var(--link); font-weight: 800; font-size: .9rem; }
.lib-more .btn { margin-top: .8rem; }
.two-cols > div { min-width: 0; }
.two-cols input { width: 100%; min-width: 0; }

.family-form { margin-top: 1.4rem; }
.family-form > summary { cursor: pointer; }
.fix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: .8rem; }
.fix-block h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.fix-block p { margin: 0 0 .4rem; }
.inline-form.wrap { flex-wrap: wrap; }
.inline-form.wrap input { min-width: 200px; }
.steam-loading { padding: .9rem 1.1rem; border: 2.5px dashed var(--lilac); border-radius: 20px; background: var(--lilac-soft); font-weight: 700; }

/* --- Recherche ------------------------------------------------------------------------ */
.search-form { margin-bottom: 1.4rem; display: grid; gap: .8rem; }
.search-bar { position: relative; }
.search-bar .search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.4rem; height: 1.4rem; color: var(--muted); pointer-events: none; }
.search-bar input { font-size: 1.15rem; padding: .85rem 1.2rem .85rem 3.1rem; box-shadow: var(--shadow-sm); }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filter { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .85rem; }
.filter > span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.filter select { width: auto; max-width: 100%; padding: .45rem 2rem .45rem .8rem; font-size: .9rem; }
.more-filters { flex-basis: 100%; }
.more-filters > summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; color: var(--link); font-weight: 800; font-size: .9rem; }
.more-filters > .filter-row { margin-top: .6rem; }
.results-head { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.results-head h2 { margin: 0; font-size: 1.35rem; }

/* --- Accueil -------------------------------------------------------------------------- */
.dash { align-items: stretch; }
.widget { display: flex; flex-direction: column; }
.mini-list { max-height: none; overflow: visible; }
.widget-more { display: inline-block; margin-top: .5rem; }
.edit-hint { margin: -.3rem 0 .8rem; }
.widget-form { margin: 0 0 1.4rem; }
.widget-form select, .widget-form input { width: 100%; min-width: 0; }
.form-row { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.icon-btn { display: inline-grid; place-items: center; }
.icon-btn .icon { width: 16px; height: 16px; }

/* --- Bibliothèque, listes ----------------------------------------------------------------- */
.page-head { margin-bottom: .4rem; }
.tabs a.is-empty { opacity: .6; }
.tabs .count { font-weight: 800; }
.create-list { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.4rem; }
.create-list input { flex: 1 1 240px; }
.mosaic-empty { display: grid; place-items: center; }
.list-add { margin-bottom: 1.2rem; }
.list-add label { margin-top: 0; }
.suggest-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; }
.suggest-list button {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .35rem .5rem; text-align: left; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--bg-elev); color: var(--text); font: inherit; font-weight: 700;
}
.suggest-list button:hover { background: var(--pink-soft); }
.suggest-list img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 2px solid var(--ink); }
.suggest-list span:nth-child(2) { flex: 1; min-width: 0; }
.suggest-add { color: var(--link); font-weight: 800; white-space: nowrap; }
.card-tools .btn { display: inline-grid; place-items: center; }

/* --- Agenda -------------------------------------------------------------------------- */
.agenda-help { margin: -.4rem 0 1rem; }
.agenda-month h2 { display: flex; align-items: center; gap: .5rem; }
.agenda-item { grid-template-columns: 64px 56px minmax(0, 1fr) auto; padding: .5rem .8rem; }
.agenda-item img { width: 56px; }
.agenda-date { width: 64px; padding: .25rem 0; text-align: center; overflow: hidden; }
.agenda-date strong { font-size: 1.35rem; line-height: 1; }
.agenda-cd { font-size: .68rem; font-weight: 800; white-space: nowrap; }
.agenda-date.is-today { background: var(--butter); }
.agenda-name { overflow-wrap: anywhere; }

/* --- Connexion ------------------------------------------------------------------------ */
.is-public .container.narrow { min-height: 100vh; display: grid; place-items: center; padding-top: 0; padding-bottom: 6vh; }
.is-public .login { width: 100%; }
.public-corner { position: fixed; top: 1rem; right: 1rem; z-index: 5; }

/* --- Tablette ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav a { padding: .4rem .6rem; }
  .top-search input { width: 170px; }
}
@media (max-width: 1100px) {
  .topbar .nav, .topbar .logout { display: none; }
  .topbar { justify-content: space-between; }
  .top-search { flex: 1; max-width: 420px; margin-left: auto; }
  .top-search input { width: 100%; }
  .tabbar {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; z-index: 40;
    left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom));
    background: var(--bg-elev); border: 3px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow-sm);
    padding: .3rem;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .35rem 0; border-radius: 18px;
    color: var(--muted); font-size: .68rem; font-weight: 800; text-decoration: none; min-width: 0;
  }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { background: var(--pink); color: var(--on-pastel); }
  .is-app .container { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
  .game-layout { grid-template-columns: 1fr; }
  .game-side { position: static; }
}

/* --- Téléphone ------------------------------------------------------------------------ */
@media (max-width: 700px) {
  .topbar-wrap { padding: 8px .7rem 8px; }
  .topbar { border-radius: 999px; padding: .35rem .4rem .35rem .8rem; gap: .5rem; }
  .brand { font-size: 1.25rem; }
  .brand span { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
  .container { padding-left: 1rem; padding-right: 1rem; }

  .greeting { flex-wrap: nowrap; gap: .8rem; margin-bottom: 1.4rem; }
  .greeting .mascot { width: 72px; height: 72px; }
  .bubble { flex: 1 1 auto; padding: .9rem 1.1rem; border-radius: 24px; }
  .bubble::before { display: block; left: -12px; width: 18px; height: 18px; }
  .bubble h1 { font-size: 1.3rem; }
  .bubble p { font-size: .92rem; }
  .dash-head h2 { font-size: 1.3rem; }

  .game-hero { grid-template-columns: 1fr; padding: 1rem; border-radius: 28px; }
  .game-cover { max-width: 200px; margin: 0 auto; }
  .game-head h1 { font-size: 1.9rem; text-align: center; }
  .byline, .crumb { text-align: center; justify-content: center; }
  .badges { justify-content: center; }
  .game-hero .facts { grid-template-columns: 1fr 1fr; }
  .site-row { grid-template-columns: 1fr; }
  .site-link { justify-self: start; }
  .older-list li { grid-template-columns: 1fr auto; }
  .older-list li a { grid-column: 1 / -1; }
  .avail-empty { flex-direction: column; text-align: center; }

  .filter-row { display: grid; grid-template-columns: 1fr 1fr; }
  .filter { display: grid; gap: .15rem; }
  .filter select { width: 100%; }
  .more-filters { grid-column: 1 / -1; }
  .search-bar input { font-size: 1rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }

  .agenda-item { grid-template-columns: 58px minmax(0, 1fr); gap: .2rem .8rem; }
  .agenda-item img { display: none; }
  .agenda-date { width: 58px; grid-row: span 2; }
  .agenda-badges { grid-column: 2; justify-content: flex-start; }
  .page-head { gap: .6rem; }
  .tabs { gap: .4rem; }
  .tabs a { padding: .35rem .8rem; font-size: .9rem; }
}

/* Blocs de l'accueil : le contenu ne déborde jamais de la carte. */
.widget > * { min-width: 0; }
.mini-list { width: 100%; }
.widget-head > a { white-space: nowrap; flex: none; }
@media (max-width: 700px) {
  .widget-head h2 { white-space: normal; }
  .dash-head { flex-wrap: nowrap; }
}
.mini-list > li, .card-grid > *, .dlc-list > li { min-width: 0; }

/* ==========================================================================
   Notifications : cloche, bouton « Suivre », page des notifications
   ========================================================================== */
.bell {
  position: relative; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2.5px solid var(--ink); background: var(--lilac-soft); color: var(--text);
}
.bell:hover, .bell[aria-current="page"] { background: var(--lilac); color: var(--on-pastel); text-decoration: none; }
.bell .icon { width: 22px; height: 22px; }
.bell.has-unread .icon { animation: bell-ring 2.4s ease-in-out 1; transform-origin: 50% 10%; }
.bell-count {
  position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; border: 2px solid var(--bg-elev); font: 800 .75rem/18px var(--font); text-align: center;
}
.bell-count[hidden] { display: none; }
@keyframes bell-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .bell.has-unread .icon { animation: none; } }

.follow-form { display: inline-flex; }
.follow-btn { display: inline-flex; align-items: center; gap: .35rem; border: 2px solid var(--ink); background: var(--bg-elev); color: var(--text); }
.follow-btn .icon { width: 17px; height: 17px; }
.follow-btn:hover { background: var(--lilac-soft); }
.follow-btn.is-on { background: var(--lilac); color: var(--on-pastel); }
.follow-btn.is-on:hover { background: var(--rose); }

.notif-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.notif-day { font: 800 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .9rem .25rem .2rem; }
.notif-day:first-child { padding-top: 0; }
.notif a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .5rem; border-radius: 16px; color: var(--text); }
.notif a:hover { background: var(--pink-soft); text-decoration: none; }
.notif.is-new a { background: var(--butter-soft); box-shadow: inset 4px 0 0 var(--pink); }
.notif img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); background: var(--lilac-soft); }
.notif-text { display: grid; gap: .15rem; min-width: 0; }
.notif-top { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.notif-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { white-space: nowrap; }
.pill-notif { flex: none; border: 1.5px solid var(--ink); color: var(--on-pastel); }
.pill-notif.pill-cracked { background: var(--mint); }
.pill-notif.pill-site { background: var(--sky); }
.pill-notif.pill-version { background: var(--lilac); }
.pill-notif.pill-price { background: var(--butter); }
.pill-notif.pill-release { background: var(--peach); }
.notif-follows h2 { display: flex; align-items: center; gap: .5rem; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.follow-list li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.follow-list a { flex: 1; display: flex; align-items: center; gap: .6rem; min-width: 0; color: var(--text); font-weight: 700; }
.follow-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-list img { width: 36px; height: 36px; flex: none; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
@media (max-width: 1000px) {
  .notif-layout { grid-template-columns: minmax(0, 1fr); }
  .bell { width: 40px; height: 40px; }
}
@media (max-width: 700px) {
  .notif a { grid-template-columns: 44px minmax(0, 1fr); row-gap: .15rem; }
  .notif img { width: 44px; height: 44px; }
  .notif-time { grid-column: 2; }
}
.round-btn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 2.5px solid var(--ink); background: var(--bg-elev); color: var(--text);
}
.round-btn:hover { background: var(--rose); color: var(--on-pastel); }
.round-btn .icon { width: 20px; height: 20px; }

/* ==========================================================================
   Menus déroulants : flèche ronde, liste d'options aux couleurs du site
   ========================================================================== */
select {
  appearance: none; -webkit-appearance: none;
  padding: .5rem 2.4rem .5rem .9rem; border-radius: 999px; cursor: pointer;
  background-color: var(--bg-elev);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D2B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 14px;
  box-shadow: 0 3px 0 var(--ink); transition: background-color .15s, transform .1s, box-shadow .1s;
}
select:hover { background-color: var(--pink-soft); }
select:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
:root[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF0FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] select:hover { background-color: #3a2a55; }
select:disabled { opacity: .55; cursor: not-allowed; }
.filter select { padding: .45rem 2.3rem .45rem .85rem; }
option { background: var(--bg-elev); color: var(--text); font-weight: 700; }

/* Navigateurs récents (Chrome, Edge) : la liste qui s'ouvre est stylée elle aussi. */
@supports (appearance: base-select) {
  select { appearance: base-select; display: inline-flex; align-items: center; background-image: none; }
  select::picker-icon {
    content: ''; width: 14px; height: 14px; margin-left: .5rem; transition: rotate .2s;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  select:open::picker-icon { rotate: 180deg; }
  select { padding-right: .9rem; }
  select > button { all: unset; }
  ::picker(select) {
    appearance: base-select;
    border: 2.5px solid var(--ink); border-radius: 18px; padding: .35rem;
    background: var(--bg-elev); color: var(--text); box-shadow: 0 6px 0 var(--ink), 0 14px 30px #3d2b4f33;
    margin-top: .35rem; max-height: min(60vh, 420px);
    opacity: 0; translate: 0 -6px; transition: opacity .15s, translate .15s, overlay .15s allow-discrete, display .15s allow-discrete;
  }
  ::picker(select):popover-open { opacity: 1; translate: 0 0; }
  @starting-style { ::picker(select):popover-open { opacity: 0; translate: 0 -6px; } }
  option {
    display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 12px;
    font-weight: 700; cursor: pointer; background: transparent;
  }
  option:hover, option:focus-visible { background: var(--pink-soft); outline: none; }
  :root[data-theme="dark"] option:hover, :root[data-theme="dark"] option:focus-visible { background: #3a2a55; }
  option:checked { background: var(--lilac); color: var(--on-pastel); }
  option::checkmark { content: '✓'; font-weight: 900; order: 1; margin-left: auto; }
}

/* ==========================================================================
   Barres de défilement : pastille rose arrondie, rail discret
   ========================================================================== */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--pink); border-radius: 999px;
  border: 4px solid transparent; background-clip: padding-box; min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
.mini-list::-webkit-scrollbar, .tile-row::-webkit-scrollbar, .card-row::-webkit-scrollbar, ::picker(select)::-webkit-scrollbar { width: 10px; height: 10px; }
/* Firefox : pas de pseudo-éléments, seulement la couleur. */
@supports not selector(::-webkit-scrollbar) {
  html, .mini-list, .tile-row, .card-row { scrollbar-color: var(--pink) transparent; }
  .mini-list, .tile-row, .card-row { scrollbar-width: thin; }
}

/* ==========================================================================
   Note Metacritic
   ========================================================================== */
.metascore {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .3rem;
  border-radius: 10px; border: 2px solid var(--ink); font: 800 .95rem/1 var(--display); color: #fff;
  font-variant-numeric: tabular-nums;
}
.metascore-good { background: #2f9e44; }
.metascore-mixed { background: #f2b52c; color: #3D2B4F; }
.metascore-bad { background: #e03131; }
.metascore-corner { position: absolute; left: .5rem; bottom: .5rem; z-index: 2; box-shadow: 0 2px 0 var(--ink); }
.metascore-inline { min-width: 1.7rem; height: 1.45rem; font-size: .8rem; border-radius: 8px; margin-right: .4rem; vertical-align: 1px; flex: none; }
.tile-cover { position: relative; }
