/* Police Sora hébergée sur le site (licence OFL, voir /fonts/OFL.txt) */
@font-face {
  font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =====================================================================
   TornadePlay — interface « console de salon »
   Fond profond, visuels plein écran, texte fin et blanc, focus = halo blanc.
   ===================================================================== */
:root {
  --void: #04060c;          /* fond : bleu nuit presque noir */
  --deep: #0a1020;          /* panneaux */
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .14);
  --ink: #f4f6fb;
  --mist: #8e98ae;
  --halo: #ffffff;          /* focus télécommande */
  --tint: 40, 80, 200;      /* couleur d'ambiance, prise sur la jaquette du jeu sélectionné */
  --ok: #4fd8a4;
  --warn: #ffc94d;
  --danger: #ff6b6b;
  --r-tile: 14px;
  --r-ui: 999px;
  --font: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--void);
  color: var(--ink);
  font: 300 16px/1.55 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 400; }
strong, b { font-weight: 600; }
.muted { color: var(--mist); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; }

/* Ambiance : un halo de couleur qui suit le jeu sélectionné */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(var(--tint), .35), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(var(--tint), .18), transparent 60%),
    var(--void);
}

/* ---------- Focus télécommande : halo blanc, comme une console ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--halo); outline-offset: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: var(--r-ui);
  border: 0; cursor: pointer; text-decoration: none;
  font: 400 1rem var(--font); letter-spacing: .01em;
  background: var(--ink); color: #05070d;
  transition: transform .18s var(--ease), background .18s;
}
.btn:hover { background: #fff; }
.btn:focus-visible { outline-offset: 5px; transform: scale(1.04); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: wait; }
.btn.ghost { background: rgba(255,255,255,.1); color: var(--ink); }
.btn.ghost:hover { background: var(--glass-2); }
.btn.danger { background: rgba(255, 107, 107, .12); color: var(--danger); }
.btn.sm { min-height: 38px; padding: 0 18px; font-size: .88rem; }
.btn.block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; font-size: 1.1rem;
  transition: background .18s;
}
.icon-btn:hover { background: var(--glass); }

/* ---------- Champs ---------- */
label { display: block; font-size: .85rem; color: var(--mist); margin: 18px 0 8px; font-weight: 400; }
input, textarea, select {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink);
  font: 300 1rem var(--font);
  transition: border-color .18s, background .18s;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--halo); background: rgba(255,255,255,.08); }
select option { background: var(--deep); }
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { padding: 12px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: #fff; }
.hint { font-size: .8rem; color: var(--mist); margin-top: 6px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-ui);
  background: var(--glass); font-size: .78rem; color: var(--mist); white-space: nowrap;
}
.chip.gold { color: var(--warn); }
.chip.green { color: var(--ok); }
.panel { background: var(--glass); border-radius: 22px; padding: 26px; }

/* ---------- Barre du haut ---------- */
#topbar { position: sticky; top: 0; z-index: 20; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(20px, 4vw, 56px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 600; font-size: .95rem; color: #fff;
  background: linear-gradient(140deg, rgba(var(--tint), 1), #7b5cff);
}
.avatar.guest { background: var(--glass-2); color: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 4px; }
.who span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.clock { font-size: 1.05rem; font-weight: 300; padding: 0 6px 0 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .who span:not(.avatar), .clock { display: none; } .topbar-right { gap: 2px; } }

/* =====================================================================
   ACCUEIL — « Qui joue ? »
   ===================================================================== */
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; text-align: center; overflow: hidden; }
.welcome-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .02em; margin-bottom: 7vh; }
.welcome-brand .brand-mark { width: 34px; height: 34px; }
.welcome h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 6vh; }
.profiles { display: flex; gap: clamp(28px, 6vw, 72px); justify-content: center; flex-wrap: wrap; }
.profile {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  background: none; border: 0; color: var(--ink); cursor: pointer; font: 300 1.05rem var(--font); padding: 0;
}
.profile .disc {
  width: clamp(110px, 14vw, 168px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 200;
  background: var(--glass); transition: transform .25s var(--ease);
}
.profile .disc svg { width: 46%; height: 46%; }
.profile.guest .disc { background: linear-gradient(140deg, #2f6bff, #7b5cff); }
.profile:hover .disc { transform: scale(1.05); }
.profile:focus-visible { outline: none; }
.profile:focus-visible .disc { transform: scale(1.1); box-shadow: 0 0 0 4px var(--void), 0 0 0 7px var(--halo); }
.profile small { color: var(--mist); font-size: .82rem; margin-top: -10px; }

.sheet {
  width: min(440px, 100%); margin: 6vh auto 0; text-align: left;
  animation: rise .5s var(--ease);
}
.sheet[hidden] { display: none; }
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,.05); padding: 4px; border-radius: var(--r-ui); margin-bottom: 6px; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--mist); padding: 11px; border-radius: var(--r-ui); font: 400 .95rem var(--font); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #05070d; }
.msg { margin: 14px 0 0; font-size: .9rem; min-height: 1.3em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.linkish { background: none; border: 0; color: var(--mist); font: 300 .88rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   HUB — rangée de jaquettes + visuel plein écran du jeu sélectionné
   ===================================================================== */
.hub { min-height: 100vh; position: relative; overflow: hidden; }
.hub #topbar { position: absolute; inset: 0 0 auto; }

.backdrop { position: fixed; inset: 0; z-index: 0; }
.backdrop img {
  position: absolute; top: 0; right: 0; width: min(74vw, 1500px); height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease-out; will-change: opacity;
}
.backdrop img.on { opacity: 1; }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,6,12,1) 0%, rgba(4,6,12,1) 26%, rgba(4,6,12,.72) 44%, rgba(4,6,12,.1) 72%, rgba(4,6,12,.25) 100%),
    linear-gradient(0deg, rgba(4,6,12,1) 0%, rgba(4,6,12,.55) 38%, rgba(4,6,12,.05) 70%, rgba(4,6,12,.6) 100%);
}

.hub-stage { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; padding: 96px clamp(20px, 4vw, 56px) 48px; }

.shelf { display: flex; gap: 18px; align-items: flex-start; overflow-x: auto; padding: 18px 8px 40px; margin: 0 -8px; scrollbar-width: none; scroll-padding-inline: 8px; }
.shelf::-webkit-scrollbar { display: none; }
.shelf { --w: clamp(180px, 16vw, 250px); --zoom: 1.28; }
.tile {
  position: relative; flex: none; width: var(--w); text-decoration: none; color: var(--ink);
  transition: transform .28s var(--ease);
  animation: fade .5s ease-out both; animation-delay: calc(var(--i, 0) * 50ms);
}
.tile .art {
  aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; background: linear-gradient(140deg, #1d2a55, #4b2e83);
  display: grid; place-items: center; font-size: 2.4rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
  transform-origin: 0 0; transition: transform .28s var(--ease);
}
.tile .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .name {
  position: absolute; left: 0; top: calc(100% + 12px); width: 200%;
  font-size: .95rem; font-weight: 400; white-space: nowrap; opacity: 0;
  transition: opacity .2s, transform .28s var(--ease);
}
.tile .lock { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,6,12,.75); font-size: .8rem; z-index: 1; }
/* La jaquette choisie grossit, les suivantes se décalent pour lui faire de la place */
.tile.sel { z-index: 2; }
.tile.sel .art { transform: scale(var(--zoom)); box-shadow: 0 0 0 3px var(--void), 0 0 0 6px var(--halo); }
.tile.sel ~ .tile { transform: translateX(calc(var(--w) * (var(--zoom) - 1))); }
.tile.sel .name { opacity: 1; transform: translateY(calc(var(--w) * .625 * (var(--zoom) - 1))); }
.tile:focus-visible { outline: none; }
.tile.locked .art img { filter: saturate(.4) brightness(.6); }
.shelf { padding-bottom: calc(40px + var(--w) * .625 * (var(--zoom) - 1)); padding-right: calc(var(--w) * (var(--zoom) - 1) + 8px); }

.hero { margin-top: auto; max-width: 640px; padding-bottom: 2vh; }
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); font-weight: 200; letter-spacing: -.025em; line-height: 1.02; margin: 0 0 18px; }
.hero-desc { font-size: clamp(1rem, 1.3vw, 1.2rem); color: #c9d0de; max-width: 52ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 190px; }
.hero-note { color: var(--warn); font-size: .92rem; }
.hero-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.empty { padding: 18vh 0; max-width: 520px; }
.empty h1 { font-weight: 200; }

@media (max-width: 720px) {
  .hub-stage { padding-top: 84px; }
  .backdrop::after { background: linear-gradient(0deg, rgba(4,6,12,1) 20%, rgba(4,6,12,.55) 60%, rgba(4,6,12,.7) 100%); }
  .shelf { --w: 150px; }
  .backdrop img { width: 100%; height: 62%; }
  .backdrop img.on { opacity: .45; }
  .hero-actions .btn { flex: 1; }
}

/* =====================================================================
   LECTEUR DE JEU
   ===================================================================== */
.player { position: fixed; inset: 0; display: flex; flex-direction: column; background: #000; }
.player-bar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--void); }
.player-bar .title { flex: 1; font-weight: 400; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mist); }
.player iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.player iframe:focus-visible { outline: none; }
.center-msg { flex: 1; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--mist); background: var(--void); }
.center-msg a { color: var(--ink); }
.loader { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--glass-2); border-top-color: var(--ink); animation: spin 1s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   ADMINISTRATION
   ===================================================================== */
.admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.admin-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: var(--glass); border-radius: 18px; padding: 10px 12px; }
.admin-item .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: linear-gradient(140deg, #1d2a55, #4b2e83); }
.admin-item .meta { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.admin-item .meta strong { font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item .meta .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 680px) {
  .admin-item { grid-template-columns: 52px 1fr; }
  .admin-item .thumb { width: 52px; height: 52px; }
  .admin-item .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
dialog {
  border: 0; border-radius: 26px; background: var(--deep); color: var(--ink); padding: 0;
  width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
dialog[open] { animation: rise .35s var(--ease); }
dialog::backdrop { background: rgba(4,6,12,.7); }
dialog form { padding: 28px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.qr { background: #fff; padding: 14px; border-radius: 18px; display: inline-block; }

#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--deep); padding: 14px 22px; border-radius: var(--r-ui);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  z-index: 100; max-width: calc(100vw - 32px); font-size: .95rem;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { color: var(--danger); }
#toast.ok { color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[hidden] { display: none !important; }

/* ---------- J'aime / Je n'aime pas ---------- */
.votes { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.vote {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: var(--r-ui);
  border: 0; background: rgba(255,255,255,.1); color: var(--ink); font: 400 .95rem var(--font); cursor: pointer;
  transition: background .15s, transform .15s var(--ease);
}
.vote span { font-variant-numeric: tabular-nums; min-width: 1ch; }
.vote:hover { background: rgba(255,255,255,.16); }
.vote:focus-visible { outline-offset: 4px; transform: scale(1.06); }
.vote.on { background: rgba(255,255,255,.22); }
.vote.on svg { fill: currentColor; }
.vote-score { color: var(--mist); font-size: .88rem; margin-left: 6px; }
.votes.compact .vote { height: 38px; padding: 0 12px; font-size: .85rem; }
.votes.compact .vote svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .votes { margin-left: 0; } .vote-score { width: 100%; margin: 4px 0 0; } }

/* =====================================================================
   MODE LÉGER (télés peu puissantes, détecté automatiquement)
   Mêmes écrans, sans les effets qui coûtent : animations d'entrée,
   fondus, ombres, dégradés multiples.
   ===================================================================== */
.lite .tile, .lite .hero-swap, .lite .sheet, .lite dialog[open] { animation: none; }
.lite .backdrop img { transition: none; will-change: auto; }
.lite .ambient { background: radial-gradient(1000px 600px at 85% -10%, rgba(var(--tint), .28), transparent 60%), var(--void); }
.lite .tile .art, .lite .profile .disc { box-shadow: none; }
.lite .tile.sel .art { box-shadow: 0 0 0 3px var(--void), 0 0 0 6px var(--halo); }
.lite .tile, .lite .tile .art, .lite .tile .name, .lite .btn, .lite .vote { transition-duration: .12s; }

/* =====================================================================
   HUB — flèches du carrousel (souris) et tuile « Tous les jeux »
   ===================================================================== */
.shelf-wrap { position: relative; }
.shelf-arrow {
  position: absolute; top: 18px; z-index: 3; width: 48px; height: 48px; margin-top: calc(var(--w, 200px) * .3125 - 24px);
  border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(4,6,12,.72); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  opacity: 0; transition: opacity .2s, background .15s;
}
.shelf-wrap .shelf-arrow { --w: clamp(180px, 16vw, 250px); }
.shelf-arrow.prev { left: -6px; }
.shelf-arrow.next { right: -6px; }
.shelf-arrow:hover { background: rgba(255,255,255,.2); }
.shelf-arrow.off { visibility: hidden; }
/* Visibles seulement avec une souris, au survol du carrousel */
@media (hover: hover) and (pointer: fine) {
  .shelf-wrap:hover .shelf-arrow { opacity: 1; }
}
@media (max-width: 720px) { .shelf-arrow { display: none; } }

.tile-all .art {
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--mist);
}
.tile-all .art svg { width: 34px; height: 34px; color: var(--ink); }
.hero-actions .btn svg { width: 18px; height: 18px; }

/* =====================================================================
   PAGE « TOUS LES JEUX »
   ===================================================================== */
.lib { max-width: 1400px; padding-top: 8px; }
.lib-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.lib-head h1 { font-weight: 200; margin: 0; display: flex; align-items: baseline; gap: 14px; }
.lib-count { font-size: 1rem; color: var(--mist); font-weight: 300; font-variant-numeric: tabular-nums; }
.lib-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.search {
  flex: 1 1 340px; max-width: 560px; display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 0 20px; height: 56px; border-radius: var(--r-ui); background: rgba(255,255,255,.08); color: var(--mist);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); cursor: text;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--halo); color: var(--ink); }
.search input { flex: 1; border: 0; background: transparent; padding: 0; height: 100%; font-size: 1.05rem; color: var(--ink); border-radius: 0; }
.search input:focus-visible { outline: none; background: transparent; }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.sort {
  height: 44px; padding: 0 18px; border-radius: var(--r-ui); border: 0; cursor: pointer;
  background: transparent; color: var(--mist); font: 400 .92rem var(--font);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.sort:hover { color: var(--ink); }
.sort.on { background: var(--ink); color: #05070d; box-shadow: none; }
.sort:focus-visible { outline-offset: 4px; }

.lib-grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); border-radius: var(--r-tile); }
.card .art {
  aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(140deg, #1d2a55, #4b2e83); box-shadow: 0 8px 18px rgba(0,0,0,.4);
  transition: transform .2s var(--ease);
}
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 2px; }
.card-body strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body .muted { font-size: .82rem; white-space: nowrap; }
.card.locked .art img { filter: saturate(.4) brightness(.6); }
.card:hover .art { transform: translateY(-3px); }
.card:focus-visible { outline: none; }
.card:focus-visible .art { transform: scale(1.04); box-shadow: 0 0 0 3px var(--void), 0 0 0 6px var(--halo); }
.lib-empty { grid-column: 1 / -1; padding: 8vh 0; color: var(--mist); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
@media (max-width: 560px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .card-body { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.lite .card .art { box-shadow: none; }
.lite .card:focus-visible .art { box-shadow: 0 0 0 3px var(--void), 0 0 0 6px var(--halo); }
