.ambiguity-reference {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 7px;
  border: 1px solid #d3dce8;
  border-radius: 4px;
  background: #f3f6fb;
  color: #344c70;
  font-size: 12px;
  font-weight: 600;
}
.ambiguity-reference img { width: 76px; height: 76px; object-fit: cover; border-radius: 3px; }
.ambiguity-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ambiguity-tile {
  position: relative;
  display: grid;
  grid-column: span 2;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c8d0da;
  border-radius: 3px;
  background: #e7e9e8;
  touch-action: manipulation;
}
.ambiguity-photos-five .ambiguity-tile:nth-child(4) { grid-column: 2 / span 2; }
.ambiguity-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ambiguity-tile:hover { border-color: var(--blue); }
.ambiguity-tile[aria-pressed="true"]::after {
  position: absolute;
  inset: 0;
  border: 3px solid var(--blue);
  border-radius: 2px;
  background: #2454c41c;
  content: "";
  pointer-events: none;
}
.ambiguity-check {
  position: absolute;
  z-index: 1;
  right: 4px;
  bottom: 4px;
  display: none;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid white;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.ambiguity-tile[aria-pressed="true"] .ambiguity-check { display: grid; }
.ambiguity-phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 52%;
  height: 85%;
  padding: 4px;
  overflow: hidden;
  rotate: -10deg;
  border: 1px solid #505961;
  border-radius: 8px;
  background: #22272d;
  box-shadow: 3px 4px 8px #29313b59;
}
.ambiguity-phone::after {
  position: absolute;
  inset: 4px 4px 50% 4px;
  border-radius: 4px;
  background: linear-gradient(127deg, #fff3, #fff0 60%);
  content: "";
}
.ambiguity-phone img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }

.ambiguity-squares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 262px);
  margin-inline: auto;
}
.ambiguity-squares button {
  aspect-ratio: 1;
  border: 1px solid #9aabc2;
  border-radius: 3px;
  background: #f6f8fc;
  touch-action: manipulation;
}
.ambiguity-squares button:disabled { border-color: #c7ccd2; background: #cfd4da; }
.ambiguity-squares button:hover:not(:disabled) { border-color: var(--blue); background: #edf3ff; }
.ambiguity-squares button[aria-pressed="true"]:not(:disabled) {
  border-color: var(--blue);
  background: #dae7ff;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.ambiguity-mirror-scene {
  display: grid;
  place-items: center;
  min-height: 171px;
  padding: 20px;
  border: 1px solid #d5d4cb;
  border-radius: 4px;
  background: repeating-linear-gradient(0deg, #ddd9cd 0 33px, #d0ccbe 33px 34px);
}
.ambiguity-mirror {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 254px);
  min-height: 111px;
  border: 5px solid #695f51;
  border-radius: 12px;
  background: linear-gradient(126deg, #73868e, #c2d0d2 45%, #93a5ac 80%);
  box-shadow: inset 0 0 0 2px #e5eef080, 0 4px 10px #332d2740;
}
.ambiguity-mirror::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(132deg, transparent 20%, #fff4 40% 46%, transparent 57%),
    linear-gradient(10deg, #39546026, transparent 48%);
  content: "";
  pointer-events: none;
}
.ambiguity-mirror span {
  padding: 3px 13px;
  transform: scaleX(-1) rotate(-4deg);
  background: #ede7d4;
  box-shadow: 0 2px 4px #27231f42;
  color: #222c34;
  font: 700 clamp(34px, 11cqw, 50px)/1.15 "Courier New", monospace;
  letter-spacing: .12em;
}
.ambiguity-mirror-form { display: grid; gap: 5px; margin-top: 12px; }
.ambiguity-mirror-form label { color: var(--muted); font-size: 12px; }
.ambiguity-mirror-form input {
  width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #a6b2c3;
  border-radius: 3px;
  font: 16px/1.2 "Courier New", monospace;
}
