/* A small nautical chart case for the lighthouse lens and its three pieces. */
.inventory {
  position: relative;
  overflow: hidden;
  padding: 20px 16px 18px;
  border: 1px solid #bda97e;
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 0 13px, #ae8b4c14 13px 14px, transparent 14px calc(100% - 14px), #ae8b4c14 calc(100% - 14px) calc(100% - 13px), transparent calc(100% - 13px)),
    linear-gradient(155deg, #fffaf0 0%, #f6efdc 55%, #e4efe7 100%);
  box-shadow: 0 3px 0 #b59b6a55, 0 12px 28px #28544c16, inset 0 0 0 3px #fffaf07a;
}
.inventory::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 0 13px;
  border-radius: 99px;
  background: linear-gradient(90deg, #bd8d37, #e7cf8e 68%, #a8772f);
  box-shadow: 0 1px 0 #fff8df;
}
.inventory h3 {
  color: #174b4e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.025em;
  margin: 0 0 .6rem;
}
.inventory #inventory-copy { color: #395d58; font-size: .85rem; line-height: 1.5; }
.inventory-list { margin-top: 12px; }
.collection-lens {
  max-width: 190px;
  margin: 10px auto 7px;
  border-radius: 50%;
  filter: drop-shadow(0 5px 5px #45372248);
}
.collection-lens::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -1;
  border: 1px solid #d1bb83;
  border-radius: 50%;
  background: radial-gradient(circle, #f9e6aa 58%, #f6ead0 66%, #c4ab77 67%, #fff7e2 69%, #efe3c7 72%);
  box-shadow: 0 2px 0 #aa90604a, inset 0 0 0 4px #fff8e9;
}
.collection-lens__sockets { background: radial-gradient(circle at 40% 30%, #506d67, #243f3d 80%); }
.collection-lens__empty-symbol { color: #d2ddcc; text-shadow: 0 1px 2px #122e2b; }
.inventory .collection-count {
  margin: 14px 0 14px;
  color: #28574f;
  font-size: .8rem;
  line-height: 1.35;
  letter-spacing: .015em;
}
.collection-slots { gap: 7px; }
.collection-slots .piece-slot {
  position: relative;
  min-width: 0;
  min-height: 59px;
  padding: 8px;
  gap: 9px;
  border: 1px solid #c4cbb7;
  border-radius: 11px;
  background: #f9faf1df;
  box-shadow: inset 0 1px 0 #ffffffd9, 0 2px 0 #b9b6942e;
}
.collection-slots .piece-slot--empty { color: #315c53; }
.collection-slots .piece-slot--found {
  border-color: #c19a50;
  background: linear-gradient(110deg, #fff9e6, #fffdf5 72%);
  box-shadow: inset 3px 0 #c69b4e, inset 0 1px #fff, 0 2px 0 #c4a66d55;
}
.collection-slots .piece-slot__symbol {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border: 1px solid #b6c9b8;
  background: #e5efe5;
  color: #496f62;
  box-shadow: inset 0 1px 2px #ffffffc9;
}
.collection-slots .piece-slot--found.collection-slot--sun .piece-slot__symbol { background: #fae5a1; color: #80560c; border-color: #d4ae58; }
.collection-slots .piece-slot--found.collection-slot--moon .piece-slot__symbol { background: #d8ebee; color: #275b70; border-color: #9abec5; }
.collection-slots .piece-slot--found.collection-slot--star .piece-slot__symbol { background: #f5dfcc; color: #824e2e; border-color: #d1ad90; }
.collection-slots .piece-slot__label { color: #214c4a; font-size: .82rem; line-height: 1.2; }
.collection-slots .piece-slot__place { color: #4d6c61; font-size: .72rem; line-height: 1.3; }
.collection-slots .piece-slot--found .piece-slot__place { color: #1d6a4b; }
@media (max-width: 720px) {
  .inventory { padding: 16px; grid-template-columns: 120px minmax(0,1fr); column-gap: 18px; }
  .inventory::before { display: none; }
  .inventory h3 { margin: 3px 0 .45rem; font-size: 1.15rem; }
  .inventory #inventory-copy { font-size: .82rem; }
  .collection-lens { width: 112px; max-width: 100%; margin: 7px 0 0; }
  .inventory .collection-count { margin: 8px 0 0; text-align: left; }
  .collection-slots { margin-top: 16px; gap: 7px; }
  .collection-slots .piece-slot { flex-direction: column; min-height: 100px; padding: 9px 5px; gap: 5px; text-align: center; }
  .collection-slots .piece-slot--found { box-shadow: inset 0 3px #c69b4e, inset 0 1px #fff, 0 2px 0 #c4a66d55; }
  .collection-slots .piece-slot__label { font-size: .76rem; }
  .collection-slots .piece-slot__place { font-size: .67rem; }
}
@media (max-width: 360px) {
  .inventory { padding: 14px; grid-template-columns: 92px minmax(0,1fr); column-gap: 12px; }
  .collection-lens { width: 86px; }
  .inventory h3 { font-size: 1rem; }
  .inventory #inventory-copy { font-size: .78rem; }
  .inventory .collection-count { font-size: .76rem; }
  .collection-slots .piece-slot__label { font-size: .67rem; letter-spacing: -.015em; }
}
