.pic-board {
  width: min(100%, 370px);
  color: #263644;
}
.pic-button {
  box-sizing: border-box;
  min-width: 56px;
  min-height: 56px;
  border: 2px solid #647783;
  border-radius: .6rem;
  background: #fff;
  color: #263644;
  font: inherit;
  cursor: pointer;
}
.pic-button:focus-visible {
  outline: 3px solid #173f72;
  outline-offset: 2px;
}
.pic-button:disabled {
  opacity: 1;
  cursor: default;
}
.pic-board img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}
.pic-pairs {
  display: grid;
  grid-template-columns: 70px minmax(40px, 1fr) 70px;
  align-items: stretch;
}
.pic-stack {
  display: grid;
  grid-template-rows: repeat(3, 68px);
}
.pic-stack button {
  place-self: center;
  display: grid;
  place-items: center;
  width: 100%;
  height: 60px;
}
.pic-stack button[aria-pressed=true] {
  border: 4px double #173f72;
  background: #e3f1fa;
}
.pic-stack button:disabled {
  border: 2px dashed #476658;
}
.pic-pairs svg {
  width: 100%;
  height: 204px;
}
.pic-pairs line {
  stroke: #303e46;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}
.pic-shelves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 14px);
}
.pic-label {
  display: block;
  margin-bottom: .4rem;
  text-align: center;
}
.pic-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(56px, 1fr));
  border: 2px solid #586875;
}
.pic-sample, .pic-shelf button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 59px;
  border: 1px solid #78848e;
  border-radius: 0;
}
.pic-found::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 3px solid #204b65;
  border-radius: 50%;
}
.pic-words {
  display: grid;
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  gap: 3px;
}
.pic-words button {
  position: relative;
  padding: 17px 2px 9px;
  font-size: clamp(1rem, 4.8vw, 1.35rem);
  font-weight: 600;
}
.pic-words .pic-current {
  border: 4px double #254761;
  background: #e3f1fa;
}
.pic-mark, .pic-step {
  position: absolute;
  top: 0;
  left: 3px;
  font-size: .8rem;
}
.pic-step {
  left: auto;
  right: 4px;
}

.pic-scenes {
  width: min(100%, 740px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
  align-items: start;
  gap: 12px;
}
.pic-scene-frame { position: relative; }
.pic-board .pic-scene-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}
.pic-scene-targets { position: absolute; inset: 0; }
.pic-scene-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.pic-scene-spot:focus-visible { outline: 3px dashed #233c52; }
.pic-scene-spot[aria-pressed=true] {
  border: 3px solid #842e24;
  box-shadow: inset 0 0 0 2px white, 0 0 0 2px white;
}
.pic-scene-spot:disabled { opacity: 1; cursor: default; }
