@font-face {
  font-family: Anybody;
  src: url("/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --ink: #1d1a3a;
  --card: #f4f8ff;
  --red: #ff6f61;
  --red-tint: #ffc9c2;
  --cyan: #45cfdd;
  --cyan-tint: #b9eff4;
  --sun: #ffd62e;
  --line: 5px solid var(--ink);
}

* {
  box-sizing: border-box;
  margin: 0;
}

main {
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card);
  color: var(--ink);
  font: 500 1.0625rem/1.45 Anybody, "Trebuchet MS", sans-serif;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 5px solid var(--sun);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ink);
}

h1:focus {
  outline: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem clamp(1rem, 3vw, 2.2rem) 0;
}

.title {
  font-weight: 850;
  font-stretch: 130%;
}

.sound {
  border: 0;
  background: none;
  padding: 0.4rem 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.round {
  height: calc(100dvh - 3.5rem);
  min-height: 34rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.6rem, 1.6vh, 1.1rem);
  padding: 0.4rem clamp(0.7rem, 3vw, 2.2rem) 1.1rem;
}

.question {
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  font-weight: 850;
  font-stretch: 118%;
}

.glasses {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(0.8rem, 2.4vw, 2.2rem);
  min-height: 0;
}

.lens {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.7rem;
  justify-items: center;
  min-height: 0;
  padding: clamp(0.8rem, 2.4vh, 1.6rem);
  border: var(--line);
  transition: background-color 0.35s;
}

.lens.left {
  background: var(--red-tint);
  border-radius: 3rem 1.6rem 9rem 3rem;
  --glass: var(--red);
}

.lens.right {
  background: var(--cyan-tint);
  border-radius: 1.6rem 3rem 3rem 9rem;
  --glass: var(--cyan);
}

.artwork {
  width: 100%;
  height: 100%;
  min-height: 0;
  font-family: Anybody, "Trebuchet MS", sans-serif;
}

.pick {
  min-width: 9rem;
  padding: 0.6rem 1.5rem 0.7rem;
  border: 4px solid var(--ink);
  border-radius: 99rem;
  background: #fff;
  font-weight: 800;
  font-stretch: 112%;
}

.pick:hover:enabled {
  background: var(--sun);
}

.pick:disabled {
  opacity: 0.45;
  cursor: default;
}

.lens:not(.listening) .pick::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.verdict {
  padding: 0.75rem 0 0.85rem;
  font-weight: 850;
  font-stretch: 125%;
}

.lens.real {
  background: #fff;
}

.lens.fake {
  background: var(--glass);
}

.lens.fake .artwork,
.lens.fake .photo,
.lens.fake .clip {
  filter: grayscale(1) contrast(0.8);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.clip {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
}

.photo {
  width: min(100%, 36rem);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: var(--line);
  border-radius: 1.4rem;
  background: #fff;
}

.photo img,
.pictured img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 22%;
}

.photo figcaption {
  padding: 0.35rem 0.8rem 0.5rem;
  border-top: var(--line);
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.25rem, 2.7vw, 2.3rem);
  line-height: 1.1;
  font-weight: 850;
}

.pictured {
  position: relative;
  width: min(100%, 36rem);
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
}

.pictured img {
  border: var(--line);
  border-radius: 1.4rem;
}

.pictured .play {
  grid-area: 1 / 1;
  place-self: end;
  width: clamp(4.4rem, 13vh, 7rem);
  margin: 0.8rem;
}

.pictured img {
  grid-area: 1 / 1;
}

.portrait {
  width: min(100%, 23rem);
}

.credit {
  color: inherit;
  font-size: 0.82rem;
}

.play {
  width: clamp(6rem, 22vh, 11rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--glass);
}

.play svg {
  width: 52%;
}

.play:hover {
  background: var(--sun);
}

.spoken {
  min-height: 3.6em;
  max-width: 24rem;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.25;
  font-weight: 700;
}

.reel {
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  width: clamp(5rem, 8vw, 7.4rem);
  translate: -50% 0;
  transition: rotate 0.5s cubic-bezier(0.3, 1.5, 0.6, 1);
}

.below {
  min-height: 5.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem 2.4rem;
}

.hint {
  text-align: center;
}

.hint button {
  border: 0;
  background: none;
  padding: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.answer {
  max-width: 44rem;
}

.answer strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 850;
  font-stretch: 112%;
}

.next {
  flex: none;
  padding: 0.85rem 1.9rem 0.95rem;
  border: 4px solid var(--ink);
  border-radius: 99rem;
  background: var(--sun);
  font-weight: 850;
  font-stretch: 112%;
}

.next:hover {
  background: #fff;
}

.end {
  max-width: 68rem;
  margin: auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.2rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.end h1 {
  text-wrap: balance;
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: 0.95;
  font-weight: 900;
  font-stretch: 140%;
  text-shadow: -0.045em 0 var(--red), 0.045em 0 var(--cyan);
}

.end .next {
  margin: 1.5rem 0 1rem;
}

.end textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 3px solid var(--ink);
  border-radius: 0.8rem;
  font: inherit;
}

.score-note {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.standing {
  font-size: 1.2rem;
  font-weight: 800;
}

.recap {
  list-style: none;
  padding: 0;
}

.recap li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
  padding: 0.75rem 0;
}

.recap svg {
  width: 2.2rem;
}

.recap strong {
  display: block;
  font-weight: 800;
}

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

.credits {
  padding: 1.5rem clamp(1rem, 4vw, 2.2rem) 3rem;
}

.credits ul {
  margin-top: 1rem;
}

a {
  color: inherit;
}

@media (max-width: 46rem) {
  .glasses {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.7rem;
  }

  .lens {
    padding: 0.7rem 0.8rem;
    gap: 0.4rem;
  }

  .lens.left {
    border-radius: 2.4rem 2.4rem 5rem 1.4rem;
  }

  .lens.right {
    border-radius: 1.4rem 5rem 2.4rem 2.4rem;
  }

  .reel {
    left: auto;
    right: -0.2rem;
    bottom: 50%;
    width: 4.4rem;
    translate: 0 50%;
  }

  .pick {
    padding: 0.35rem 1.2rem 0.45rem;
  }

  .verdict {
    padding: 0.4rem 0;
  }

  .clip {
    gap: 0.4rem;
  }

  .play {
    width: clamp(4.4rem, 13vh, 7rem);
  }

  .spoken {
    min-height: 2.6em;
  }

  .photo,
  .pictured {
    width: 100%;
    grid-template-columns: 44% minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .photo figcaption {
    display: grid;
    place-content: center;
    border-top: 0;
    border-left: var(--line);
  }

  .pictured {
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 0.8rem;
  }

  .pictured img {
    grid-area: 1 / 1 / 3 / 2;
  }

  .pictured .play {
    grid-area: 1 / 2;
    place-self: center;
    width: 4.2rem;
    margin: 0;
  }

  .pictured .spoken {
    grid-area: 2 / 2;
    align-self: center;
    min-height: 0;
    font-size: 0.95rem;
  }

  .below {
    min-height: 8.6rem;
    flex-direction: column;
    gap: 0.6rem;
  }

  .answer {
    font-size: 0.97rem;
    line-height: 1.35;
    text-align: center;
  }

  .answer strong {
    font-size: 1.12rem;
  }

  .next {
    padding: 0.55rem 1.6rem 0.65rem;
  }

  .end {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
    transition-duration: 0.01s !important;
  }
}
