/* The weekly puzzle. Five colours only: #C83D6B #FF6B7D #FFC2CE #FFF5F1 #EADFF1,
   with the site's neutral text on top. */

[data-puzzle], [data-puzzle] * { box-sizing: border-box; }
[data-puzzle] { direction: rtl; text-align: right; }
[data-puzzle] [hidden] { display: none !important; }

.pz-head { margin: .5rem 0 .9rem; }
.pz-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #C83D6B; margin: 0 0 .2rem; }
.pz-title { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.25; color: #2d2f2f; margin: 0 0 .4rem; }
.pz-how { color: #6b5a5f; margin: 0; font-size: .95rem; }

.pz-progress { font-weight: 800; font-size: 1.05rem; color: #C83D6B; margin: 0 0 .6rem; font-variant-numeric: tabular-nums; }

/* The picture and the layer the marks sit on. Pinch to zoom stays available;
   only the double tap zoom is switched off, because it would eat taps. */
.pz-figure {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #FFC2CE;
  background: #EADFF1;
  touch-action: manipulation;
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pz-img { display: block; width: 100%; height: auto; }
.pz-layer { position: absolute; inset: 0; pointer-events: none; }

.pz-mark {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pz-mark.found {
  border: 3px solid #C83D6B;
  box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #fff;
  animation: pz-pop .28s ease-out;
}
.pz-mark.missed { border: 3px dashed #FF6B7D; box-shadow: 0 0 0 2px #fff; }
.pz-mark.spotted { border: 3px dashed #C83D6B; box-shadow: 0 0 0 2px #fff; }
.pz-mark.pulse { animation: pz-pulse .7s ease-out; }
.pz-mark.check { border: 2px dashed #fff; box-shadow: 0 0 0 2px #C83D6B; }

.pz-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #C83D6B;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .05rem .45rem;
  border-radius: 99px;
  white-space: nowrap;
}

.pz-miss {
  position: absolute;
  width: 2.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9);
  transform: translate(-50%, -50%) scale(.4);
  opacity: .9;
  animation: pz-miss .6s ease-out forwards;
}

@keyframes pz-pop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes pz-pulse { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.18); } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes pz-miss { to { transform: translate(-50%, -50%) scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pz-mark, .pz-miss { animation: none !important; } }

.pz-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }
.pz-chip {
  font-size: .88rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid #FFC2CE;
  color: #C83D6B;
  border-radius: 99px;
  padding: .2rem .8rem;
}
button.pz-chip { font-family: inherit; cursor: pointer; }
button.pz-chip:focus-visible { outline: 3px solid #C83D6B; outline-offset: 2px; }
.pz-chip.given { background: #FFF5F1; border-style: dashed; }
.pz-chip.empty { background: #EADFF1; border-color: #EADFF1; color: #8a7a88; }
.pz-chip.missed { background: #FFF5F1; border: 1px dashed #FF6B7D; color: #2d2f2f; }

/* The panel under the picture: first the guess, then the name itself. */
.pz-panel {
  position: relative;
  overflow: hidden;
  margin-top: .8rem;
  background: #fff;
  border: 1px solid #FFC2CE;
  border-radius: 1.1rem;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 6px 20px rgba(200, 61, 107, .10);
  animation: pz-rise .2s ease-out;
}
@keyframes pz-rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.pz-x {
  position: absolute; top: .35rem; left: .45rem;
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; color: #7a6268;
  font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%;
}
.pz-x:focus-visible { outline: 3px solid #C83D6B; }
.pz-ask { font-weight: 800; font-size: 1.05rem; margin: 0 0 .1rem 2.4rem; }
.pz-count { color: #6b5a5f; font-size: .88rem; margin: 0 0 .7rem; }

.pz-guess { display: block; }
.pz-boxwrap { position: relative; }
.pz-boxes { display: flex; gap: .35rem; direction: rtl; flex-wrap: wrap; }
.pz-box {
  width: 2.6rem; height: 2.9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; font-weight: 800; color: #2d2f2f;
  background: #FFF5F1; border: 2px solid #FFC2CE; border-radius: .6rem;
}
.pz-box.extra { border-style: dashed; }
.pz-box.hint { background: #EADFF1; border-color: #EADFF1; color: #C83D6B; }
.pz-boxwrap.focus .pz-box.caret { border-color: #C83D6B; }
.pz-typerow { display: flex; gap: .5rem; width: 100%; margin-top: .6rem; }
.pz-input {
  flex: 1; min-width: 0; min-height: 2.9rem;
  font: inherit; font-size: 16px; direction: rtl;
  color: #2d2f2f; background: #fff;
  border: 2px solid #FFC2CE; border-radius: .7rem; padding: .5rem .8rem;
}
.pz-input:focus { outline: none; border-color: #C83D6B; }
.pz-input::placeholder { color: #a8939a; }
.pz-boxwrap.shake { animation: pz-shake .35s ease-in-out; }
@keyframes pz-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pz-check {
  font: inherit; font-weight: 800;
  background: #C83D6B; color: #fff; border: 0; border-radius: 99px;
  padding: .6rem 1.4rem; min-height: 2.9rem; cursor: pointer;
}
.pz-check:hover { background: #FF6B7D; }
.pz-check:focus-visible, .pz-give:focus-visible { outline: 3px solid #2d2f2f; outline-offset: 2px; }
.pz-clue {
  margin: .7rem 0 0; padding: .55rem .75rem;
  background: #FFF5F1; border-inline-start: 3px solid #FF6B7D; border-radius: .6rem;
  font-weight: 500; line-height: 1.5;
}
.pz-msg { min-height: 1.3em; margin: .55rem 0 0; font-weight: 700; color: #C83D6B; font-size: .92rem; }
.pz-help { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.pz-give {
  font: inherit; font-weight: 700;
  background: transparent; color: #6b5a5f; border: 1.5px dashed #FFC2CE; border-radius: 99px;
  padding: .45rem 1.2rem; cursor: pointer;
}

/* The name card, built like the app's own: the name on a coloured header,
   then what it means. */
.pz-panel.is-card { padding: 0; }
.pz-nc-top {
  background: linear-gradient(135deg, #C83D6B 0%, #FF6B7D 100%);
  color: #fff;
  padding: 1rem 1.25rem .9rem;
}
/* The app's own header colours, one per gender, so the card reads the same
   as it does there. */
.pz-nc-top.gender-female { background: linear-gradient(135deg, #a9294b 0%, #e05a7a 100%); }
.pz-nc-top.gender-male { background: linear-gradient(135deg, #0b6096 0%, #1a8fd1 100%); }
.pz-nc-top.gender-both,
.pz-nc-top.gender-unisex { background: linear-gradient(135deg, #1e7e3e 0%, #3ab86a 100%); }
.pz-nc-kicker { margin: 0 0 .15rem; font-size: .85rem; font-weight: 800; color: #FFF5F1; }
.pz-nc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pz-nc-name { margin: 0; font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.pz-nc-badge {
  margin-top: .45rem;
  padding: .25rem .6rem; border-radius: 99px;
  background: rgba(255, 255, 255, .2); font-size: .875rem; font-weight: 500; white-space: nowrap;
}
.pz-nc-en { margin: .15rem 0 0; font-size: .875rem; letter-spacing: .06em; color: rgba(255, 255, 255, .9); }
.pz-nc-body { background: #FFF5F1; padding: .85rem 1.25rem 1.1rem; }
.pz-nc-meaning {
  margin: 0 0 .5rem; padding: .5rem .75rem;
  background: #fff; border-radius: .625rem; border-inline-start: 3px solid #C83D6B;
  font-weight: 700; line-height: 1.5;
}
.pz-nc-desc { margin: 0; color: #6b5a5f; line-height: 1.5; }
.pz-timer {
  position: absolute; bottom: 0; right: 0; height: 3px; width: 100%;
  background: #C83D6B; transform-origin: right; animation: pz-timer linear forwards;
}
@keyframes pz-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.pz-on {
  display: block; width: calc(100% - 2.5rem); margin: 0 1.25rem 1.1rem;
  font: inherit; font-weight: 800; font-size: 1.05rem;
  background: #C83D6B; color: #fff; border: 0; border-radius: 99px;
  padding: .8rem 1rem; min-height: 3rem; cursor: pointer;
}
.pz-on:hover { background: #FF6B7D; }
.pz-on:focus-visible { outline: 3px solid #2d2f2f; outline-offset: 2px; }
.pz-panel.is-card { background: #FFF5F1; }
@media (prefers-reduced-motion: reduce) { .pz-panel, .pz-boxwrap.shake { animation: none !important; } }

.pz-done {
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 1rem;
  min-height: 2.75rem;
  background: transparent;
  color: #6b5a5f;
  border: 0;
  padding: .5rem 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.pz-done:hover { color: #C83D6B; }
.pz-confirm {
  margin-top: 1rem; padding: .8rem 1rem;
  background: #fff; border: 1px solid #FFC2CE; border-radius: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.pz-confirm-text { flex: 1 0 100%; margin: 0 0 .2rem; font-weight: 700; }
.pz-confirm-yes, .pz-confirm-no {
  font: inherit; font-weight: 700; min-height: 2.75rem;
  border-radius: 99px; padding: .5rem 1.3rem; cursor: pointer;
}
.pz-confirm-yes { background: transparent; color: #6b5a5f; border: 1.5px solid #FFC2CE; }
.pz-confirm-no { background: #C83D6B; color: #fff; border: 0; }
.pz-confirm-yes:focus-visible, .pz-confirm-no:focus-visible { outline: 3px solid #2d2f2f; outline-offset: 2px; }
.pz-done:focus-visible { outline: 3px solid #C83D6B; outline-offset: 2px; }

.pz-end {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid #FFC2CE;
  border-radius: 1.1rem;
  padding: 1.2rem 1.25rem;
}
.pz-end-title { font-size: 1.3rem; font-weight: 800; color: #2d2f2f; margin: 0 0 .3rem; }
.pz-end-note { color: #6b5a5f; margin: .3rem 0 0; }

.pz-share-open {
  display: block; width: 100%; margin-top: 1rem; min-height: 2.75rem;
  font: inherit; font-weight: 800; color: #C83D6B; background: #fff;
  border: 1.5px solid #C83D6B; border-radius: 99px; padding: .6rem 1rem; cursor: pointer;
}
.pz-share-open:hover { background: #FFF5F1; }
.pz-share-open:focus-visible { outline: 3px solid #C83D6B; outline-offset: 2px; }
.pz-share {
  margin-top: 1rem;
  background: #FFF5F1;
  border: 1px solid #FFC2CE;
  border-radius: .9rem;
  padding: .9rem;
}
.pz-share-prompt { font-weight: 700; margin: 0 0 .5rem; }
.pz-share-text {
  display: block;
  width: 100%;
  font: inherit;
  font-size: .95rem;
  line-height: 1.5;
  color: #2d2f2f;
  background: #fff;
  border: 1px dashed #FF6B7D;
  border-radius: .6rem;
  padding: .55rem .7rem;
  resize: vertical;
  margin-bottom: .7rem;
}
.pz-share-go {
  display: block;
  text-align: center;
  background: #C83D6B;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 99px;
  padding: .75rem 1rem;
}
.pz-share-go:hover { background: #FF6B7D; }
.pz-share-go:focus-visible { outline: 3px solid #2d2f2f; outline-offset: 2px; }
.pz-share-copied { min-height: 1.2em; margin: .4rem 0 0; font-size: .85rem; font-weight: 700; color: #C83D6B; text-align: center; }
.pz-share-hint { margin: .1rem 0 0; font-size: .8rem; color: #7a6268; text-align: center; }

.pz-nextpz { margin-top: 1rem; }
.pz-end .pz-done { display: block; }
.pz-more {
  display: inline-block;
  margin-top: 1rem;
  color: #C83D6B;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
