/* ---------- 照片裁剪 ---------- */
.crop {
  width: min(360px, 100% - 32px);
  padding: 20px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 0 var(--mo);
  color: var(--mo);
}

.crop[open] { display: flex; flex-direction: column; gap: 12px; }
.crop::backdrop { background: rgba(43, 26, 18, .55); }

.crop__title { margin: 0; font-size: 20px; font-weight: 900; text-align: center; }

.crop__canvas {
  width: 100%;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 16px;
  background: #EEE;
  cursor: grab;
  touch-action: none;
}

.crop__canvas:active { cursor: grabbing; }

.crop__zoom { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.crop__zoom input { flex: 1; accent-color: var(--zhu); }

.crop__tip { margin: 0; font-size: 13px; font-weight: 600; text-align: center; opacity: .6; }

.crop__actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- 贵人到 ---------- */
.blessing {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(43, 26, 18, .55);
}

.blessing[hidden] { display: none; }

.blessing__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(380px, 100%);
  padding: 32px 24px 24px;
  border: var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 211, 78, .9), transparent 60%),
    linear-gradient(#FFF8E4, #FFE6AE);
  box-shadow: 0 8px 0 var(--mo);
  text-align: center;
  animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(.6) rotate(-6deg); }
}

.blessing__icon { margin: -8px 0 0; font-size: 56px; line-height: 1; animation: sway 1.2s ease-in-out infinite; }

.blessing__tag {
  margin: 0;
  padding: 4px 12px;
  border: 2px solid var(--mo);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.blessing__title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  color: var(--zhu);
  -webkit-text-stroke: 2px var(--mo);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--huang), 5px 5px 0 var(--mo);
}

.blessing__text { margin: 0 0 8px; font-size: 18px; font-weight: 800; line-height: 1.6; }
