.picture-game {
  display: grid;
  justify-items: center;
  gap: clamp(.55rem, 3vw, 1rem);
  width: min(100%, 33rem);
  margin-inline: auto;
  color: var(--ink, #271949);
  text-align: center;
}

.picture-game [hidden] {
  display: none;
}

.picture-game__prompt {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: clamp(.2rem, 1.25vw, .65rem);
  padding: clamp(.3rem, 1.8vw, .8rem);
  border: 2px solid var(--soft-line, #d7c6f7);
  border-radius: 1.15rem;
  background: var(--answer-paper, #f9f4ff);
}

.picture-game__tile {
  display: grid;
  width: clamp(4.5rem, 28vw, 7rem);
  aspect-ratio: 1;
  flex: 0 1 auto;
  min-width: 0;
  place-items: center;
  border: 2px solid var(--accent-strong, #361986);
  border-radius: .78rem;
  background: #fff;
  font-size: clamp(2.5rem, 14vw, 4.5rem);
  line-height: 1;
}

.picture-game__prompt--pattern .picture-game__tile {
  width: min(16%, 3.8rem);
  border-width: 1px;
  border-radius: clamp(.25rem, 1.8vw, .65rem);
  font-size: clamp(1.05rem, 5vw, 2.45rem);
}

.picture-game__tile--gap {
  border-style: dashed;
  background: var(--accent-soft, #ece0ff);
  font-weight: 850;
}

.picture-game__tile--gap.picture-game__tile--filled {
  border-style: solid;
  background: #dff3ea;
}

.picture-game__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.35rem, 2vw, .8rem);
  width: min(100%, 25rem);
}

.picture-game__choice,
.picture-game__next {
  display: grid;
  min-width: 0;
  min-height: clamp(4.5rem, 18vw, 6.2rem);
  padding: .3rem;
  place-items: center;
  border: 2px solid var(--accent-strong, #361986);
  border-radius: 1rem;
  color: inherit;
  background: #fff;
  box-shadow: 0 3px 0 var(--soft-line, #d7c6f7);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.picture-game__choice:disabled,
.picture-game__next:disabled {
  cursor: default;
}

.picture-game__choice:not(:disabled):hover {
  background: var(--accent-soft, #ece0ff);
}

.picture-game__choice:focus-visible,
.picture-game__next:focus-visible {
  outline: 3px solid var(--accent-strong, #361986);
  outline-offset: 3px;
}

.picture-game__choice[data-state="retry"] {
  border-style: dashed;
}

.picture-game__choice[data-state="match"] {
  border-width: 4px;
  background: #dff3ea;
}

.picture-game__icon {
  font-size: clamp(1.8rem, 8.5vw, 3.3rem);
  line-height: 1;
}

.picture-game__controls {
  display: grid;
  grid-template-columns: minmax(0, 3rem) minmax(0, 5.2rem);
  justify-content: center;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 3.75rem;
}

.picture-game__feedback {
  display: grid;
  width: 2.8rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  font: 800 1.7rem/1 system-ui, sans-serif;
}

.picture-game__feedback[data-state="retry"] {
  border: 2px dashed #694528;
  color: #694528;
  background: #fff1dc;
}

.picture-game__feedback[data-state="match"] {
  border: 2px solid #18573b;
  color: #18573b;
  background: #dff3ea;
}

.picture-game__next {
  min-height: 3.75rem;
  background: var(--purple, #542dc8);
  color: #fff;
}

.picture-game__next .picture-game__icon {
  font-size: 1.75rem;
}

.picture-game__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
