.store-systems,
.store-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 14px;
  margin-block: 12px 24px;
}

.store-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 9px 9px 12px;
  border-radius: 12px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.store-tile:hover {
  border-color: var(--accent);
}

.store-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.store-tile strong {
  font-size: 1rem;
  line-height: 1.25;
}

.store-tile small {
  margin-top: auto;
  color: var(--muted);
}

.store-tile-picture {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #24313c;
}

.store-system .store-tile-picture {
  height: 70px;
}

.store-game .store-tile-picture {
  aspect-ratio: 1;
}

.store-tile-picture img {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
}

.store-tile-picture img.store-tile-logo {
  width: 76%;
  height: 62%;
}

.store-credits {
  margin-top: 24px;
  font-size: .8rem;
}

.store-detail-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
}

.store-detail-logo {
  display: block;
  box-sizing: border-box;
  width: min(100%, 252px);
  height: clamp(66px, 12vh, 96px);
  padding: 10px 14px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f8;
}

.store-edition {
  margin-block: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.store-edition p {
  margin: 0 0 6px;
}

.store-edition-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
}

.store-media-overview {
  margin-block: 14px;
}

.store-media-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin-block: 8px 12px;
  list-style: none;
}

.store-media-status li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .85rem;
}

.store-media-status .present {
  background: #e7f4ed;
  color: #22553e;
}

.store-media-status .missing {
  background: #fff3d7;
  color: #614515;
}

.store-missing-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.store-missing-search label {
  flex: 1 0 min(100%, 250px);
}

.store-missing-editor label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block: 8px;
}

.store-missing-editor button[data-control-write] {
  margin: 8px 8px 8px 0;
}

.store-description {
  white-space: pre-line;
}

.store-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 14px;
}

.store-facts dt {
  color: var(--muted);
}

.store-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.store-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin-block: 12px;
}

.store-gallery figure {
  min-width: 0;
  margin: 0;
}

.store-gallery img {
  display: block;
  width: 100%;
  height: clamp(100px, 22vh, 180px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f8;
}

.store-gallery figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
}

.store-video {
  display: block;
  width: 100%;
  max-height: 50vh;
  background: #182d39;
  border-radius: 8px;
}
