.board .inspect-eye {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 4px;
  vertical-align: middle;
  margin-inline: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #c6ab78;
  cursor: pointer;
}
.inspect-eye:hover, .inspect-eye:focus-visible {
  border-color: #8d7246;
  background: #262018;
  color: #ffe3a8;
}
.inspect-eye svg { width: 20px; height: 20px; }
.inspect-dialog {
  box-sizing: border-box;
  width: min(660px, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
  overflow: auto;
  padding: clamp(8px, 2vw, 18px);
  color: #e8dfcf;
  border: 4px ridge #76684e;
  background: #201f1d;
  box-shadow: inset 0 0 0 2px #111, 0 12px 50px #000;
}
.inspect-dialog::backdrop { background: #070604d9; }
.inspect-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inspect-header h2 {
  margin: 0;
  font: 500 clamp(1.35rem, 4vw, 1.95rem)/1.1 Grenze, Georgia, serif;
  color: #e3cb9b;
}
.inspect-header button, .inspect-weapon-tabs button {
  cursor: pointer;
  color: #aaa99e;
  background: linear-gradient(#272a27, #111210);
  border: 1px solid #6c5a36;
}
.inspect-header button { width: 30px; height: 30px; font-size: 20px; }
.inspect-status { margin: 6px 0 12px; color: #d1c4ad; font-size: .85rem; }
.inspect-grid {
  display: grid;
  grid-template-columns: 2fr 1.05fr 2fr 1.05fr 2fr;
  grid-template-rows: 1.25fr .55fr 1.55fr .75fr 1.05fr;
  aspect-ratio: 1.42;
  gap: clamp(4px, 1vw, 10px);
  padding: clamp(7px, 2vw, 17px);
  border: 4px ridge #5c5445;
  background-color: #343431;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.11' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.34' filter='url(%23s)' d='M0 0h192v192H0z'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 52% 24%, #514d46, #1c1c1a 82%);
  box-shadow: inset 0 0 24px #000;
}
.inspect-grid[hidden], .inspect-tooltip[hidden] { display: none; }
.inspect-weapon { grid-area: 1 / 1 / 4 / 2; }
.inspect-head { grid-area: 1 / 3 / 3 / 4; }
.inspect-amulet { grid-area: 2 / 4 / 4 / 5; height: 53%; }
.inspect-offhand { grid-area: 1 / 5 / 4 / 6; }
.inspect-body { grid-area: 3 / 3 / 5 / 4; }
.inspect-gloves { grid-area: 4 / 1 / 6 / 2; }
.inspect-right-ring { grid-area: 5 / 2; }
.inspect-belt { grid-area: 5 / 3; }
.inspect-left-ring { grid-area: 5 / 4; }
.inspect-feet { grid-area: 4 / 5 / 6 / 6; }
.inspect-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 2px;
  border: 3px ridge #615132;
  background: #0d0c0a;
  box-shadow: 0 0 0 1px #0b0a09, 0 2px 4px #000b;
}
.inspect-weapon-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.inspect-weapon-tabs button {
  position: relative;
  padding: 0;
  font: 500 clamp(.85rem, 3vw, 1.3rem)/1.2 Grenze, Georgia, serif;
}
.inspect-weapon-tabs button[aria-pressed="true"] {
  color: #fff4d8;
  background: linear-gradient(#424943, #212722);
}
.inspect-weapon-tabs button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: calc(50% - 3px);
  bottom: -3px;
  transform: rotate(45deg);
  background: #73c1de;
  border: 1px solid #264a60;
}
.inspect-slot {
  flex: 1;
  min-height: 0;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--inspect-quality, #e1dacf);
  background: radial-gradient(ellipse, #25231e, #11100e 74%, #090908);
}
.inspect-slot[data-quality=""] { color: #8d8372; }
.inspect-slot svg {
  width: 60%;
  height: 58%;
  fill: #181610;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linejoin: round;
  filter: drop-shadow(1px 2px 2px black);
}
.inspect-picture {
  width: 94%;
  height: 78%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(1px 2px 3px #000);
}
.inspect-picture[hidden], .inspect-has-picture svg, .inspect-has-picture .inspect-caption { display: none; }
.inspect-caption {
  width: 100%;
  text-align: center;
  font: 500 clamp(.65rem, 2vw, .95rem)/1 Grenze, Georgia, serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspect-slot[tabindex="0"]:hover, .inspect-slot:focus-visible {
  background: radial-gradient(ellipse, #39332a, #13120f 78%);
  outline: 1px solid #ae8e52;
  outline-offset: -1px;
}
.inspect-tooltip {
  position: fixed;
  z-index: 1;
  box-sizing: border-box;
  width: max-content;
  max-width: min(400px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  padding: 9px 13px;
  border: 2px ridge #7a6b4b;
  background: #080807f7;
  box-shadow: 0 4px 14px #000d;
  color: #f0ece4;
  text-align: center;
  font: 500 clamp(.9rem, 2vw, 1.06rem)/1.18 Grenze, Georgia, serif;
  pointer-events: none;
}
.inspect-name { display: block; color: var(--inspect-quality, #fff5df); font-size: 1.18em; }
.inspect-stat { color: #a4a9ff; }
.inspect-corruption { color: #ff5555; }
.inspect-sockets { color: #f0e6d2; font-weight: 600; }
.inspect-dialog [data-quality="magic"] { --inspect-quality: #a4a9ff; }
.inspect-dialog [data-quality="set"] { --inspect-quality: #91da78; }
.inspect-dialog [data-quality="rare"] { --inspect-quality: #f7e489; }
.inspect-dialog [data-quality="unique"], .inspect-dialog [data-quality="runeword"] { --inspect-quality: #d8b87b; }
.inspect-dialog [data-quality="crafted"] { --inspect-quality: #ffa45e; }
