@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-main: #090d16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);
  --cyan-accent: #06b6d4;
  --blue-accent: #3b82f6;
  --purple-accent: #8b5cf6;
  --emerald-accent: #10b981;
  --rose-accent: #f43f5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
}

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 0.875rem;
  transition: all 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 12px 25px -8px rgba(6, 182, 212, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Nav Tabs */
.nav-tab {
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Game Card Media */
.game-card-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.625rem;
  background-color: #1e293b;
  transition: transform 0.3s ease;
}

.glass-card:hover .game-card-cover {
  transform: scale(1.03);
}

/* Badge Pills */
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pc {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-pcvr {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-quest {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Alphabet Index */
.alpha-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.15s ease;
}

.alpha-btn:hover, .alpha-btn.active {
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
}

/* Modal Animations */
.modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.15);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Code & Extraction Password Box */
.password-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(6, 182, 212, 0.4);
  border-radius: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.75rem 1rem;
}

/* Progress Bars */
.progress-bar-container {
  height: 0.75rem;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.03);
  border-radius: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
  transform: scale(1.01);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.8);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}

/* Dashboard Nav Tabs */
.nav-tab {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
}

.nav-tab:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-tab.active {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 15px -3px rgba(6, 182, 212, 0.25);
}

.tab-content {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Administration : menu latéral ---------- */
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 17rem;
  max-width: 85vw;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.98);
  border-right: 1px solid rgba(51, 65, 85, 0.6);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.admin-sidebar.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .admin-sidebar {
    position: sticky;
    top: 5.25rem;
    z-index: 10;
    flex: 0 0 15rem;
    width: 15rem;
    max-height: calc(100vh - 6.5rem);
    padding: 0 0.25rem 0 0;
    background: transparent;
    border-right: 0;
    transform: none;
    align-self: flex-start;
  }
}

.side-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 0.75rem;
  margin-bottom: 0.35rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.15s ease;
  text-decoration: none;
}

.side-link:hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.6);
}

.side-link.active {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.28);
}

.side-badge {
  margin-left: auto;
  min-width: 1.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  background: #8b5cf6;
}

.side-badge.rose {
  background: #f43f5e;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  color: #cbd5e1;
  cursor: pointer;
}

.cmd-item small {
  color: #64748b;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cmd-item.active,
.cmd-item:hover {
  background: rgba(6, 182, 212, 0.14);
  color: #fff;
}

/* L'état des services de l'en-tête se réduit à un voyant sur les écrans moyens (le détail est sur le tableau de bord) */
@media (max-width: 1535px) {
  .svc-chip:not(#adminDiskChip) > span:last-child {
    display: none;
  }
}
@media (max-width: 1200px) {
  #adminDiskChip > span:last-child {
    display: none;
  }
}


/* =====================================================================================================================
   Accueil public : thème « arcade » (fond sombre, vert acide) — toutes les règles sont portées par body.arcade,
   l'administration et la page de connexion gardent leur apparence.
   ===================================================================================================================== */
body.arcade {
  --lime: #c4f542;
  --lime-ink: #12140a;
  --arc-bg: #0c0c12;
  --arc-surface: #14141c;
  --arc-surface-2: #1b1b26;
  --arc-border: #2a2a38;
  --arc-muted: #8b8ba0;
  --plat-pc: #5b8cff;
  --plat-vr: #b36bff;
  --plat-quest: #ff8a4c;
  background: var(--arc-bg);
  background-image: none;
  color: #f3f3f7;
  padding: 0;
}

.arcade .glass-panel {
  background: var(--arc-surface);
  border: 1px solid var(--arc-border);
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.arcade .glass-panel:hover {
  border-color: var(--arc-border);
  box-shadow: none;
}

.arcade .btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  border: 0;
  box-shadow: none;
}

.arcade .btn-primary:hover {
  background: #d4ff5c;
  box-shadow: none;
  transform: none;
}

.arcade .btn-secondary {
  background: var(--arc-surface-2);
  border: 1px solid var(--arc-border);
  color: #e5e7eb;
}

.arcade .btn-secondary:hover {
  background: #232331;
  border-color: #3a3a4d;
}

.arcade .gradient-text {
  background: none;
  -webkit-text-fill-color: var(--lime);
  color: var(--lime);
}

.arcade .modal-overlay {
  background: rgba(6, 6, 10, 0.82);
}

.arcade .modal-content {
  background: #12121a;
  border: 1px solid var(--arc-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

.arcade .badge-pc { background: rgba(91, 140, 255, 0.15); color: #8fb0ff; border-color: rgba(91, 140, 255, 0.4); }
.arcade .badge-pcvr { background: rgba(179, 107, 255, 0.15); color: #cfa3ff; border-color: rgba(179, 107, 255, 0.4); }
.arcade .badge-quest { background: rgba(255, 138, 76, 0.15); color: #ffae85; border-color: rgba(255, 138, 76, 0.4); }

.arcade .alpha-btn {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.75rem;
  background: var(--arc-surface-2);
  border-color: var(--arc-border);
}

.arcade .alpha-btn:hover,
.arcade .alpha-btn.active {
  color: var(--lime-ink);
  background: var(--lime);
  border-color: var(--lime);
}

/* ---------- En-tête ---------- */
.arcade-header {
  background: rgba(12, 12, 18, 0.94);
  border-bottom: 1px solid #1d1d29;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.arcade-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--lime);
  color: var(--lime-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--arc-border);
  background: var(--arc-surface-2);
  color: #e5e7eb;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.icon-btn:hover { background: #232331; border-color: #3a3a4d; }

.search-box input {
  width: 100%;
  height: 2.5rem;
  padding: 0 4.5rem 0 2.5rem;
  background: var(--arc-surface);
  border: 1px solid var(--arc-border);
  border-radius: 999px;
  color: #f3f3f7;
  font-size: 0.875rem;
}

.search-box input::placeholder { color: var(--arc-muted); }
.search-box input:focus { outline: none; border-color: var(--lime); }

.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--arc-muted);
  border: 1px solid var(--arc-border);
  border-radius: 0.3rem;
  padding: 0.05rem 0.4rem;
  background: var(--arc-surface-2);
}

.popover-panel {
  background: #12121a;
  border: 1px solid var(--arc-border);
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}

/* ---------- Pastilles de plateforme, puces, vues ---------- */
.arcade .nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--arc-border);
  background: transparent;
  box-shadow: none;
  color: var(--arc-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.arcade .nav-tab:hover { color: #f3f3f7; background: var(--arc-surface-2); }
.arcade .nav-tab.active { color: var(--lime); border-color: var(--lime); background: rgba(196, 245, 66, 0.07); box-shadow: none; }
.tab-count { font-size: 0.68rem; opacity: 0.7; font-weight: 500; }

.seg {
  display: inline-flex;
  background: var(--arc-surface);
  border: 1px solid var(--arc-border);
  border-radius: 0.75rem;
  padding: 0.2rem;
  gap: 0.1rem;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: var(--arc-muted);
  cursor: pointer;
}

.seg-btn:hover { color: #f3f3f7; }
.seg-btn.on { background: var(--lime); color: var(--lime-ink); }

.ctl-select {
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  background: var(--arc-surface);
  border: 1px solid var(--arc-border);
  color: #e5e7eb;
  font-size: 0.8rem;
}

.ctl-select:focus { outline: none; border-color: var(--lime); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--arc-border);
  background: transparent;
  color: #b4b4c6;
  font-size: 0.78rem;
  cursor: pointer;
}

.chip:hover { color: #f3f3f7; border-color: #3a3a4d; }
.chip.on { color: var(--lime); border-color: var(--lime); background: rgba(196, 245, 66, 0.08); }
.chip small { color: var(--arc-muted); font-size: 0.68rem; }

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--arc-border);
  background: var(--arc-surface);
  font-size: 0.75rem;
}

.fchip .k { color: var(--arc-muted); }
.fchip button { color: var(--arc-muted); display: inline-flex; padding: 0.15rem; border-radius: 999px; cursor: pointer; }
.fchip button:hover { color: #fff; background: var(--arc-surface-2); }

.text-lime { color: var(--lime); }

/* ---------- Affiches ---------- */
.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--arc-surface);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: transform 0.18s ease, outline-color 0.18s ease;
  isolation: isolate;
}

.poster:hover,
.poster:focus-visible,
.poster.kbd-focus { outline-color: var(--lime); transform: translateY(-2px); }

.poster-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--arc-bg);
}

.poster-media .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  opacity: 0.45;
  transform: scale(1.25);
  pointer-events: none;
}

.poster-media .main { position: relative; width: 100%; height: 100%; object-fit: cover; }
.poster-media .main.wide { height: auto; max-height: 100%; object-fit: contain; }

.poster-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}

.poster-top .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.88);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.pill[data-p="PC"] { color: var(--plat-pc); }
.pill[data-p="PC VR"] { color: var(--plat-vr); }
.pill[data-p="Quest VR"] { color: var(--plat-quest); }
.pill-new { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.pill-upd { background: #2a1b40; color: #cfa3ff; border-color: #6a3fb0; }
.pill-ver { color: #cbd5e1; }

.poster-fav {
  pointer-events: auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.88);
  border: 1px solid var(--arc-border);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.poster-fav:hover { color: #fb7185; border-color: #fb7185; }
.poster-fav.on { color: #fb7185; border-color: rgba(251, 113, 133, 0.5); }
.poster-fav.on svg { fill: #fb7185; }

.poster-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.5rem 0.65rem 0.55rem;
  background: rgba(12, 12, 18, 0.88);
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.poster-foot .t { font-weight: 700; font-size: 0.82rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-foot .m { font-size: 0.68rem; color: var(--arc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-foot .info { min-width: 0; flex: 1; }

.poster-dl {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.poster:hover .poster-dl,
.poster:focus-within .poster-dl,
.poster.kbd-focus .poster-dl,
.row-game:hover .poster-dl,
.row-game:focus-within .poster-dl { opacity: 1; transform: none; }

@media (hover: none) {
  .poster-dl { opacity: 1; transform: none; }
}

.tick { color: var(--lime); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--u, 30px);
}

.bento > .poster { aspect-ratio: auto; }
.bt-feat { grid-area: 1 / 1 / span 6 / span 2; }
.bt-p1 { grid-area: 1 / 3 / span 6 / span 1; }
.bt-p2 { grid-area: 1 / 4 / span 6 / span 1; }
.bt-p3 { grid-area: 7 / 1 / span 6 / span 1; }
.bt-p4 { grid-area: 7 / 2 / span 6 / span 1; }
.bt-u1 { grid-area: 7 / 3 / span 3 / span 1; }
.bt-u2 { grid-area: 10 / 3 / span 3 / span 1; }
.bt-p5 { grid-area: 7 / 4 / span 6 / span 1; }

@media (max-width: 639px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-feat { grid-area: 1 / 1 / span 4 / span 2; }
  .bt-p1 { grid-area: 5 / 1 / span 6 / span 1; }
  .bt-p2 { grid-area: 5 / 2 / span 6 / span 1; }
  .bt-p3 { grid-area: 11 / 1 / span 6 / span 1; }
  .bt-p4 { grid-area: 11 / 2 / span 6 / span 1; }
  .bt-u1 { grid-area: 17 / 1 / span 3 / span 1; }
  .bt-u2 { grid-area: 17 / 2 / span 3 / span 1; }
  .bt-p5 { display: none; }
}

.bt-feat {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--arc-surface);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.18s ease;
}

.bt-feat:hover, .bt-feat:focus-visible { outline-color: var(--lime); }
.bt-feat .banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bt-feat .shade { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.8rem; background: rgba(12, 12, 18, 0.88); display: flex; align-items: flex-end; gap: 0.8rem; }
.bt-feat .mini { flex: none; width: 3.4rem; aspect-ratio: 2 / 3; border-radius: 0.5rem; overflow: hidden; margin-top: -3.9rem; border: 2px solid var(--arc-bg); background: var(--arc-surface); }
.bt-feat .mini img { width: 100%; height: 100%; object-fit: cover; }
.bt-feat .corner { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.bt-feat .side-cover { position: absolute; right: 0; top: 0; bottom: 3.8rem; width: 45%; object-fit: contain; }

.bt-util {
  background: var(--arc-surface);
  border: 1px solid var(--arc-border);
  border-radius: 14px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.bt-util:hover { border-color: var(--lime); }
.bt-util .ic { color: var(--lime); }
.bt-util .t { font-weight: 700; font-size: 0.85rem; }
.bt-util .s { font-size: 0.7rem; color: var(--arc-muted); }

/* ---------- Vues du catalogue ---------- */
.view-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 12px; }
.view-list { display: flex; flex-direction: column; border-top: 1px solid var(--arc-border); }
.view-table { overflow-x: auto; }

.row-game {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--arc-border);
  cursor: pointer;
}

.row-game:hover, .row-game.kbd-focus { background: var(--arc-surface); }
.row-game .thumb { width: 2.6rem; aspect-ratio: 2 / 3; border-radius: 0.4rem; overflow: hidden; background: var(--arc-surface-2); }
.row-game .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-game .cols { display: none; align-items: center; gap: 1.2rem; font-size: 0.75rem; color: var(--arc-muted); }
.row-game .acts { display: flex; align-items: center; gap: 0.4rem; }
.row-game .poster-dl { opacity: 1; transform: none; width: 1.9rem; height: 1.9rem; }
.row-game .poster-fav { background: transparent; }

@media (min-width: 768px) {
  .row-game { grid-template-columns: 2.6rem minmax(0, 1fr) auto auto; }
  .row-game .cols { display: flex; }
}

.tbl { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tbl th { text-align: left; font-size: 0.7rem; font-weight: 700; color: var(--arc-muted); padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--arc-border); white-space: nowrap; position: sticky; top: 0; background: var(--arc-bg); }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: #f3f3f7; }
.tbl th.sorted { color: var(--lime); }
.tbl td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #1d1d29; white-space: nowrap; }
.tbl td.t { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tbl tr.rw { cursor: pointer; }
.tbl tr.rw:hover td, .tbl tr.rw.kbd-focus td { background: var(--arc-surface); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Divers ---------- */
.help-table td { padding: 0.3rem 0.5rem 0.3rem 0; vertical-align: top; font-size: 0.8rem; }
.help-table td:first-child { white-space: nowrap; }
.syntax-ex { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--lime); background: var(--arc-surface-2); border: 1px dashed var(--arc-border); border-radius: 999px; padding: 0.15rem 0.6rem; cursor: pointer; }
.syntax-ex:hover { border-style: solid; }

/* Tableau : le bouton de téléchargement est toujours visible (pas de survol sur mobile, lecture rapide) */
.arcade .tbl .poster-dl { opacity: 1; transform: none; width: 1.7rem; height: 1.7rem; }
.arcade #savedViews:empty { display: none; }

/* ---------- Fiche du jeu : jeux similaires ; demandes : bouton de soutien ---------- */
.arcade .similar-card { flex: none; width: 6.5rem; display: flex; flex-direction: column; gap: 0.3rem; text-align: left; cursor: pointer; }
.arcade .similar-cover { display: block; aspect-ratio: 2 / 3; border-radius: 0.7rem; overflow: hidden; background: var(--arc-surface-2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.15s ease; }
.arcade .similar-cover img { width: 100%; height: 100%; object-fit: cover; }
.arcade .similar-card:hover .similar-cover, .arcade .similar-card:focus-visible .similar-cover { outline-color: var(--lime); }
.arcade .similar-title { font-size: 0.72rem; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.arcade .similar-meta { font-size: 0.65rem; color: var(--arc-muted); }

.arcade .req-vote { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 2.5rem; padding: 0.2rem 0; border-radius: 0.6rem; border: 1px solid var(--arc-border); background: var(--arc-surface-2); color: #cbd5e1; font-size: 0.7rem; font-weight: 700; line-height: 1.1; cursor: pointer; }
.arcade .req-vote:hover { border-color: var(--lime); color: #fff; }
.arcade .req-vote.on { background: rgba(196, 245, 66, 0.12); border-color: var(--lime); color: var(--lime); }
