/* uinvited — 사진 맞추기 창 & 사진 고르는 자리 */

.cropper { z-index: 120; padding: 0; }
.cropper__box {
  width: 100%; max-width: 560px; max-height: 100%;
  background: var(--surface); border-radius: var(--radius);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@media (max-width: 600px) {
  .cropper { align-items: stretch; }
  .cropper__box { max-width: none; border-radius: 0; height: 100%; }
}

.cropper__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.cropper__head strong { flex: 1; font-size: 15px; }
.cropper__x {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}

.cropper__stage {
  flex: 1; min-height: 260px; height: 46vh;
  background:
    repeating-conic-gradient(#dcd7cd 0% 25%, #ece8e0 0% 50%) 50% / 18px 18px;
  overflow: hidden;
}
[data-theme="ink"] .cropper__stage, [data-theme="midnight"] .cropper__stage, [data-theme="neon"] .cropper__stage {
  background: repeating-conic-gradient(#2a2a2a 0% 25%, #333 0% 50%) 50% / 18px 18px;
}
.cropper__canvas { display: block; touch-action: none; cursor: grab; }

.cropper__hint {
  margin: 0; padding: 10px 16px; font-size: 12.5px; color: var(--ink-3);
  border-bottom: 1px solid var(--line); line-height: 1.6;
}
.cropper__hint b { color: var(--ink-2); }

.cropper__row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
}
.cropper__label { font-size: 12px; font-weight: 700; color: var(--ink-3); flex: none; width: 32px; }
.cropper__chips { display: flex; gap: 5px; flex-wrap: wrap; }
.cropper__chips button {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer;
}
.cropper__chips button.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.cropper__zoom { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cropper__zoom button {
  min-width: 32px; height: 30px; padding: 0 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--radius-sm); font-size: 13px;
}
.cropper__zoom span {
  font-size: 12.5px; color: var(--ink-2); min-width: 44px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.cropper__foot {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.cropper__foot .btn { flex: 1; }

/* ---------- 만들기 화면의 사진 자리 ---------- */

.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg); padding: 22px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--surface); }
.dropzone__icon { font-size: 24px; margin-bottom: 6px; }
.dropzone__title { font-size: 14px; font-weight: 600; margin: 0 0 3px; }
.dropzone__hint { font-size: 12px; color: var(--ink-3); margin: 0; }

.shot {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg);
}
.shot img { width: 100%; display: block; }
.shot__bar {
  display: flex; gap: 6px; padding: 8px;
  border-top: 1px solid var(--line); background: var(--surface);
}
.shot__bar .btn { flex: 1; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shots .shot img { aspect-ratio: 1; object-fit: cover; }
.shots .shot__bar { padding: 5px; gap: 4px; }
.shots .shot__bar button {
  flex: 1; min-width: 0; padding: 5px 2px; font-size: 11.5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 4px; cursor: pointer;
}
.shots .shot__bar button:hover { border-color: var(--ink-3); }

.shot__flag {
  position: absolute; top: 6px; left: 6px;
  font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: rgba(20,16,12,.72); color: #fff;
}
.shot__flag--local { background: #8a6314; }

.photo-note {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin-top: 10px;
}
.photo-note strong { color: var(--ink); }
