/* Photo-to-illustration comparison and its landmark hunt. */
.rc {
  margin: 0;
}
.rc-stage {
  position: relative;
}
.rc-frame {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: #0b2928;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.rc-photo,
.rc-drawn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.rc-drawn {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split));
}
/* The native slider covers the picture for keyboard and assistive technology; pointer input goes to the frame. */
.rc-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.rc-grip {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 4px;
  translate: -50% 0;
  background: #fff5df;
  box-shadow: 0 0 0 1px #0b292840, 0 0 18px #0b292866;
  pointer-events: none;
  transition: opacity 0.25s;
}
.rc-grip i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #ffc83d;
  box-shadow:
    0 0 0 4px #fff5df,
    0 6px 14px #0b292870;
  transition: scale 0.15s;
}
/* Two chevrons pointing apart: drag either way. */
.rc-grip i::before,
.rc-grip i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: solid #0f2e2d;
  border-width: 0 0 3.5px 3.5px;
  translate: 0 -50%;
}
.rc-grip i::before {
  left: 13px;
  rotate: 45deg;
}
.rc-grip i::after {
  right: 13px;
  rotate: -135deg;
}
.rc.is-dragging .rc-grip i {
  scale: 1.1;
}
.rc-range:focus-visible ~ .rc-grip i {
  outline: 3px solid #fff5df;
  outline-offset: 5px;
}
.rc-tag {
  position: absolute;
  z-index: 1;
  top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0b2928d9;
  color: #fff5df;
  font-weight: 850;
  font-size: 0.86rem;
  pointer-events: none;
  transition: opacity 0.2s;
}
.rc-tag-photo {
  left: 12px;
}
.rc-tag-drawn {
  right: 12px;
  background: #ffc83d;
  color: #0f2e2d;
}
.rc.photo-gone .rc-tag-photo,
.rc.drawn-gone .rc-tag-drawn,
.rc.is-playing .rc-tag,
.rc.is-playing .rc-grip {
  opacity: 0;
}
.rc.is-playing .rc-frame {
  cursor: pointer;
}
/* Play sits on the picture's edge: a raised button that presses down. */
.rc-start {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 0;
  translate: 0 50%;
  gap: 12px;
  padding: 0 22px 0 8px;
  min-height: 56px;
  box-shadow:
    0 5px 0 var(--sun-edge, #c9921d),
    0 12px 22px #0b292866;
}
.rc-start:active {
  translate: 0 calc(50% + 4px);
  box-shadow:
    0 1px 0 var(--sun-edge, #c9921d),
    0 4px 10px #0b292866;
}
.rc-start-icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #0f2e2d;
}
.rc-start-icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #ffc83d;
}
.rc-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: 40px 20px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #fff5dfcc;
}
.rc-about summary {
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.rc-about p {
  margin-top: 6px;
  max-width: 52ch;
}

/* Landmarks stay hidden until found; the buttons are a labelled alternative to searching by eye. */
.rc-spots {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.rc-spots[hidden] {
  display: none;
}
.rc-spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max(48px, 11%);
  aspect-ratio: 1;
  translate: -50% -50%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.rc-spot:focus-visible {
  outline: 3px dashed #fff5df;
  outline-offset: 0;
  background: #fff5df2e;
}
.rc-spot span {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff5df;
  color: #0f2e2d;
  font-weight: 900;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.rc-spot.is-found {
  box-shadow:
    0 0 0 4px #fff3af,
    0 0 0 8px #f07f2acc;
  background: #fff5a826;
}
.rc-spot.is-found span {
  opacity: 1;
}
.rc-miss {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 3px solid #fff5df;
  pointer-events: none;
  opacity: 0;
}
.rc-play {
  margin: 16px 20px 0;
}
.rc-play:not(.is-playing) {
  margin-top: 0;
}
.rc-start[hidden],
.rc-hunt[hidden] {
  display: none;
}
.rc-clue {
  font-weight: 1000;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.rc-clue:focus {
  outline: 0;
}
.rc-count {
  margin-top: 6px;
  font-weight: 750;
  color: #fff5dfb3;
}
.rc-hunt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}
.rc-hunt-actions button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid #fff5df66;
  background: transparent;
  color: #fff5df;
  font: inherit;
  font-weight: 850;
}
.rc-hunt-actions button[hidden] {
  display: none;
}
.rc-play.is-done .rc-again {
  background: #fff5df;
  color: #0f2e2d;
  border-color: #fff5df;
}

/* A clinic's private preview. */
.pk-hero .lead {
  margin-top: 4px;
  max-width: 44ch;
  color: #fff5df;
  font-weight: 700;
}
.pk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
}
.pk-play {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 850;
  color: #fff5df;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.pk-check {
  padding: clamp(36px, 6vw, 72px) max(20px, 6vw);
}
.pk-check h2,
.pk-enquire h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.pk-check ul {
  margin: 18px 0;
  padding-left: 1.2em;
  max-width: 46rem;
  line-height: 1.5;
}
.pk-check p {
  max-width: 46rem;
  margin: 10px 0;
  line-height: 1.5;
  color: #fff5dfd9;
}
.lr-brand .fine {
  color: inherit;
  opacity: 0.78;
  font-weight: 650;
  line-height: 1.45;
}
.pk-enquire {
  padding: clamp(36px, 6vw, 80px) max(20px, 6vw);
  background: var(--paper);
  color: var(--ink);
  scroll-margin-top: 0;
}
.pk-enquire:focus {
  outline: 0;
}
.pk-enquire form {
  max-width: 40rem;
  margin-top: 16px;
}
.pk-official {
  display: grid;
  gap: 0 16px;
}
.pk-enquire input[readonly] {
  background: #f3ead2;
  border-style: dashed;
  color: #2a4846;
  font-weight: 800;
}
.pk-enquire .optional {
  font-weight: 650;
  color: #4b6461;
}
.pk-enquire .fine {
  color: #3b5552;
}
.pk-status {
  min-height: 1.4em;
  margin: 8px 0;
  font-weight: 800;
  color: #8a3a1d;
}
.pk-sent {
  max-width: 40rem;
}
.pk-sent:focus {
  outline: 0;
}
.pk-sent p {
  margin-top: 10px;
  font-size: 1.1rem;
}

@media (min-width: 640px) {
  .pk-official {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .rc-frame {
    border-radius: 24px;
    box-shadow: 0 22px 50px #0007;
  }
  .rc-credit,
  .rc-play {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .rc-spot.is-found {
    animation: rc-found 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  .rc-spot.is-found span {
    animation: rc-label 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s backwards;
  }
  .rc-miss {
    animation: rc-miss 0.5s ease-out;
  }
  .rc-play.is-done .rc-clue {
    animation: rc-label 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  @keyframes rc-found {
    from {
      scale: 0.5;
      box-shadow:
        0 0 0 0 #fff3af,
        0 0 0 0 #f07f2a;
    }
  }
  @keyframes rc-label {
    from {
      opacity: 0;
      scale: 0.6;
    }
  }
  @keyframes rc-miss {
    from {
      opacity: 0.9;
      scale: 0.3;
    }
    to {
      opacity: 0;
      scale: 1.4;
    }
  }
}
