/* The link stays still while its paper face moves. */
.places-entry {
  position: fixed;
  z-index: 4;
  top: calc(var(--safe-top) + 82px);
  left: calc(var(--safe-left) + 28px);
  display: block;
  width: clamp(205px, 17vw, 220px);
  text-decoration: none;
}
.places-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  aspect-ratio: 1.08;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-1deg);
}
.places-new {
  padding: 2px 6px;
  background: var(--accent);
  color: var(--paper-light);
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}
.places-invite { font-size: clamp(32px, 2.65vw, 38px); line-height: .9; text-wrap: balance; }
.places-clues { color: var(--muted); font-size: 19px; line-height: 1; }
.places-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  padding-top: 7px;
  border-top: 1px dashed var(--muted);
  color: var(--accent);
  font-size: clamp(17px, 1.32vw, 19px);
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .places-card { animation: places-wiggle 5s ease-in-out .7s infinite; }
}
@keyframes places-wiggle {
  0%, 12%, 100% { transform: rotate(-1deg); }
  3% { transform: translateX(-3px) rotate(-2deg); }
  6% { transform: translateX(3px) rotate(1deg); }
  9% { transform: translateX(-1.5px) rotate(-1.5deg); }
}
.places-entry:hover .places-card, .places-entry:focus .places-card {
  animation: none;
  transform: none;
  border-color: var(--accent);
}

/* Where the title needs the full row, put the invitation above it. */
@media (max-width: 1119px) {
  .places-entry {
    position: relative;
    inset: auto;
    width: min(420px, calc(100% - 36px));
    margin: 12px 18px 14px;
  }
  .places-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 10px;
    aspect-ratio: auto;
    padding: 9px 12px;
  }
  .places-new { justify-self: start; }
  .places-invite { font-size: clamp(22px, 6vw, 27px); line-height: 1; }
  .places-clues { display: none; }
  .places-cta { grid-column: 1 / -1; padding-top: 5px; font-size: 20px; }
  .home-page .workspace { height: calc(var(--app-height) - 220px); }
}
