/* Encyclopédie des objets (client/js/objets.js). Tailles en multiples de 8, comme le reste de l'interface. */
.ob-box { max-width: 1180px; margin: auto; }
.ob-tot { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-right: 8px; }
.ob-tot .ob-bar { width: 160px; }
.ob-ctrl { gap: 4px; margin: 8px 0; flex-wrap: wrap; }
.ob-cols { align-items: flex-start; gap: 8px; flex-wrap: nowrap; }
.ob-side { width: 232px; flex: none; display: flex; flex-direction: column; gap: 3px; max-height: 66vh; overflow: auto; }
.ob-side-t { font-size: 16px; margin: 4px 0 0 4px; }
.ob-right { width: 300px; max-height: none; min-height: 320px; }
.ob-main { max-height: 64vh; overflow: auto; padding-right: 4px; min-width: 0; }
.ob-zone { display: grid; grid-template-columns: 1fr 40px; grid-template-rows: auto 8px; gap: 2px 6px; align-items: center; text-align: left;
  background: rgba(10, 16, 40, .7); border: 2px solid rgba(255, 255, 255, .12); border-left: 6px solid var(--zc); color: #e8f0ff;
  padding: 3px 8px; cursor: pointer; font: inherit; font-size: 16px; line-height: 1; border-radius: 4px; }
.ob-zone:hover, .ob-zone:focus-visible { border-color: var(--zc); }
.ob-zone.on { background: rgba(40, 56, 110, .85); border-color: var(--zc); }
.ob-zone .ob-bar { grid-column: 1; }
.ob-zone .ob-pc { grid-row: 1 / span 2; grid-column: 2; text-align: right; color: var(--zc); }
.ob-bar { display: block; height: 8px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; }
.ob-banner { display: flex; justify-content: space-between; align-items: center; padding: 16px; margin-bottom: 8px; border: 2px solid var(--zc);
  border-radius: 4px; background: rgba(8, 12, 30, .8); background-size: auto, 96px 48px; image-rendering: pixelated; font-size: 24px; color: var(--zc);
  text-shadow: 0 2px 0 #000; }
.ob-banner span { font-size: 16px; color: #e8f0ff; }
.ob-h { margin: 0 0 4px; }
.ob-sec { margin-bottom: 8px; }
.ob-sec-t { font-size: 16px; margin: 4px 0; text-shadow: 0 1px 0 #000; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.ob-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; cursor: pointer;
  background: rgba(10, 16, 40, .75); border: 2px solid rgba(255, 255, 255, .14); border-radius: 4px; color: #e8f0ff; font: inherit; font-size: 16px; }
.ob-card img { width: 48px; height: 48px; image-rendering: pixelated; }
.ob-card .ob-nm { text-align: center; line-height: 1; min-height: 32px; display: flex; align-items: center; }
.ob-card .ob-n { position: absolute; top: 4px; right: 6px; color: #ffd35c; }
.ob-card.r-peu { border-color: rgba(127, 196, 255, .55); }
.ob-card.r-rare { border-color: rgba(215, 155, 255, .6); }
.ob-card.r-tres { border-color: rgba(255, 211, 92, .7); }
.ob-card.r-leg { border-color: rgba(255, 138, 92, .85); box-shadow: 0 0 8px rgba(255, 138, 92, .35) inset; }
.ob-card:hover, .ob-card:focus-visible, .ob-card.sel { background: rgba(40, 56, 110, .9); border-color: #fff; }
.ob-card.inconnu img, .ob-det.inconnu .ob-big img { filter: brightness(0); opacity: .55; }
.ob-card.inconnu .ob-nm { color: #8a93b0; }
.ob-det { text-align: center; }
.ob-big img { width: 96px; height: 96px; image-rendering: pixelated; }
.ob-det.r-leg .ob-big img:not([style]) { filter: drop-shadow(0 0 6px rgba(255, 138, 92, .8)); }
.ob-det.inconnu.r-leg .ob-big img { filter: brightness(0); }
.ob-rar { font-size: 16px; }
.ob-ou { text-align: left; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 6px; margin-top: 6px; font-size: 16px; }
.ob-zones { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.ob-zbtn { border-left: 4px solid var(--zc) !important; }
.ob-cons { grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); }
.ob-cons-c { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; background: rgba(10, 16, 40, .7); border: 2px solid rgba(255, 255, 255, .12); border-radius: 4px; font-size: 16px; }
.ob-cons-c img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
@media (max-width: 900px) {
  .ob-cols { flex-wrap: wrap; }
  .ob-side { width: 100%; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .ob-zone { width: calc(33.3% - 3px); padding: 2px 6px; }
  .ob-side-t { display: none; }
  .ob-main { max-height: none; }
  .ob-right { width: 100%; }
}
