.frost-memory {
  width: 100%;
  max-width: 500px;
  margin: auto;
}
.frost-memory .story-photo { transform: none; }
.frost-photo { position: relative; }
.frost-surface {
  position: absolute;
  overflow: hidden;
  touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='%23fff' stroke-opacity='.8' stroke-width='2.5'/%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='%233f5054' stroke-width='1'/%3E%3C/svg%3E") 12 12, crosshair;
  z-index: 4;
}
.frost-veil, .frost-hint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s ease;
  pointer-events: none;
}
.frost-hint {
  display: grid;
  place-items: center;
  padding: 12px;
  color: #3f5054;
  font: 400 clamp(12px, 2vw, 16px) var(--serif);
  text-align: center;
  text-shadow: 0 1px 6px #fff, 0 0 14px #fff, 0 0 22px #fff;
}
.frost-memory.is-wiping .frost-hint { opacity: 0; }
.frost-date {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #fff;
  font: italic clamp(15px, 2vw, 23px)/1.2 'Segoe Script', 'Apple Chancery', cursive;
  text-shadow: 0 1px 3px #13232d, 0 0 7px #13232d;
  opacity: 0;
  transition: opacity .7s ease .65s;
  pointer-events: none;
}
.frost-actions {
  display: flex;
  justify-content: flex-end;
  min-height: 28px;
}
.frost-toggle {
  padding: 5px 2px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #776c56;
  font: italic 11px var(--serif);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.frost-toggle:focus-visible { outline: 1px solid #776c56; }
.frost-memory.is-cleared .frost-veil,
.frost-memory.is-cleared .frost-hint { opacity: 0; }
.frost-memory.is-cleared .frost-date { opacity: 1; }
.frost-memory.is-cleared .frost-surface { pointer-events: none; }
.frost-memory:not(.is-cleared) .photo-hotspot,
.frost-memory:not(.is-cleared) .photo-flip-hint { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .frost-veil, .frost-hint, .frost-date { transition: none; }
}
