/* 오만거 (오늘 만든 거) - 모바일 우선.
   모양 규칙: 카드 20px, 입력칸 14px, 버튼·칩은 알약(999px). 강조색은 딸기색 하나. */
:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --ink: #1d1d22;
  --ink-soft: #62626e;
  --ink-mute: #8b8b96;
  --line: #e6e6ec;
  --accent: #ff4f6d;
  --accent-ink: #ffffff;
  --accent-soft: #ffe8ed;
  --danger: #d92d20;
  --shadow: 0 6px 18px rgba(255, 79, 109, 0.10), 0 1px 3px rgba(29, 29, 34, 0.06);
  --memo-1: #fff3b8;
  --memo-2: #d6f5e8;
  --memo-3: #ffe1e8;
  --memo-4: #dcebff;
  --memo-5: #ece4ff;
  --memo-ink: #1d1d22;
  --memo-soft: rgba(29, 29, 34, 0.62);
  --chip: rgba(255, 255, 255, 0.72);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141417;
    --surface: #1e1e23;
    --ink: #f2f2f5;
    --ink-soft: #b4b4bf;
    --ink-mute: #8d8d99;
    --line: #2e2e36;
    --accent: #ff6f86;
    --accent-ink: #1d0a0f;
    --accent-soft: #3a1c24;
    --danger: #ff8a80;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --memo-1: #3a3420;
    --memo-2: #17352b;
    --memo-3: #3a1f27;
    --memo-4: #1b2a40;
    --memo-5: #2a2340;
    --memo-ink: #f2f2f5;
    --memo-soft: rgba(242, 242, 245, 0.7);
    --chip: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 120px; }

/* 상단 */
.nav { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.nav-link { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 8px 4px; }

.hero { margin: 4px 0 22px; }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }

.notice {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 14px;
  padding: 10px 12px; font-size: 13px; color: var(--ink-soft); margin: 0 0 16px;
}

/* 소개 */
.how { background: var(--surface); border-radius: 20px; padding: 18px 16px 6px; margin: 0 0 26px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.how h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.how ol { list-style: none; margin: 0; padding: 0; }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 14px; }
.how-icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.how strong { display: block; font-size: 15px; font-weight: 800; }
.how p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.section-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }

/* 모음 */
.coll { background: var(--accent-soft); border-radius: 20px; padding: 16px; margin: 0 0 18px; }
.coll-badge { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: 12px; font-weight: 800; color: var(--accent); }
.coll h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.coll > p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.coll-rules { margin-top: 12px; background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.coll-rules strong { display: block; font-size: 13px; margin-bottom: 4px; }
.coll-rules ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.coll-rules li + li { margin-top: 4px; }

/* 동의 체크 */
.consent { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.consent strong { display: block; font-size: 15px; }
.consent small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn .ti { font-size: 18px; }
.btn:focus-visible, input:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* 떠 있는 올리기 버튼 */
.fab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 55%, transparent);
}
.fab-bar .btn { pointer-events: auto; min-height: 54px; padding: 0 28px; font-size: 16px; box-shadow: var(--shadow); }

/* 메모 보드 (2열 메이슨리) */
.board { columns: 2; column-gap: 12px; }
@media (max-width: 359px) { .board { columns: 1; } }
.memo {
  break-inside: avoid; margin: 0 0 12px; position: relative;
  background: var(--memo-1); color: var(--memo-ink);
  border-radius: 20px; padding: 26px 14px 12px;
  box-shadow: var(--shadow);
}
.memo:nth-child(5n+2) { background: var(--memo-2); }
.memo:nth-child(5n+3) { background: var(--memo-3); }
.memo:nth-child(5n+4) { background: var(--memo-4); }
.memo:nth-child(5n+5) { background: var(--memo-5); }
.memo::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
/* 카드 얼굴: 대표 그림 또는 번지 문패 (11/24) */
.face {
  display: block; position: relative; margin: 0 0 10px; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) inset;
}
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face .bunji {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgba(20, 20, 26, 0.78); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: -0.01em;
}
.face.plate {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(160deg, hsl(var(--h, 340) 55% 62%), hsl(calc(var(--h, 340) + 30) 50% 42%)); color: #fff; text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.9); outline: 1px solid rgba(0, 0, 0, 0.12);
}
.face.plate .plate-no { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.face.plate .plate-unit { font-size: 12px; font-weight: 700; opacity: 0.75; }
.face.plate .plate-name {
  margin-top: 6px; max-width: 86%; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.18);
  font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-face { max-width: 420px; margin: 0 auto 14px; }
.me-face.plate .plate-no { font-size: 56px; }
.who { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--memo-soft); min-width: 0; }
.avatar {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--chip);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--memo-ink);
}
.who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.gift {
  display: block; margin: 0 0 10px; padding: 8px 10px; border-radius: 14px;
  background: var(--chip); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere;
}
.gift .label { display: block; font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.memo .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.memo .actions .btn { flex: 1 0 100%; min-height: 38px; padding: 0 10px; font-size: 13px; }
.icon-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--chip); color: var(--memo-ink); font: inherit; font-size: 12px; font-weight: 700;
}
.icon-btn .ti { font-size: 18px; }
.icon-btn.heart[aria-pressed="true"] { color: var(--accent); }
.icon-btn.heart.pop .ti { animation: pop 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.tag { flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; background: var(--chip); font-size: 10px; font-weight: 700; }

/* 들어올 때 살짝 */
@media (prefers-reduced-motion: no-preference) {
  /* 투명도는 건드리지 않는다: 애니메이션이 멈춰도 카드는 항상 보이게 */
  .memo { animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1); animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .icon-btn.heart.pop .ti { animation: none; } }

/* 비었을 때 / 불러오는 중 */
.empty { column-span: all; background: var(--surface); border-radius: 20px; padding: 28px 18px; text-align: center; box-shadow: var(--shadow); }
.empty .big { font-size: 34px; display: block; margin-bottom: 6px; }
.empty p { margin: 0 0 4px; font-weight: 700; }
.empty small { color: var(--ink-soft); }
.skeleton { break-inside: avoid; margin: 0 0 12px; height: 150px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.skeleton:nth-child(2) { height: 190px; }
.skeleton:nth-child(3) { height: 170px; }

/* 올리기 폼 */
.form { display: grid; gap: 14px; }
.group { background: var(--surface); border-radius: 20px; padding: 18px 16px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.group.gift-group { background: var(--accent-soft); }
.group-title { margin: 0; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.group-title .ti { font-size: 20px; color: var(--accent); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--ink-soft); margin: 0; }
.field input {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; margin: 0; }
.err:empty { display: none; }
.form-foot { font-size: 13px; color: var(--ink-soft); margin: 2px 4px 0; }

/* 완료 */
.done { text-align: center; padding-top: 8px; }
.done .big { font-size: 48px; display: block; }
.done h2 { margin: 6px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.done > p { margin: 0 auto 16px; color: var(--ink-soft); max-width: 34ch; }
.share-card { text-align: left; background: var(--memo-1); color: var(--memo-ink); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); white-space: pre-wrap; font-size: 15px; margin-bottom: 14px; }
.share-actions { display: grid; gap: 8px; }
.share-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.group > .hint { font-size: 13px; color: var(--ink-soft); }

/* 툼카드 안내 */
.promo {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line);
}
.promo > .ti:first-child { font-size: 24px; color: var(--accent); flex: 0 0 auto; }
.promo > .ti:last-child { font-size: 18px; color: var(--ink-mute); flex: 0 0 auto; margin-left: auto; }
.promo span { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.promo strong { display: block; font-size: 14px; color: var(--ink); }
.done-promo { margin-top: 14px; text-align: left; }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.foot { margin-top: 28px; font-size: 12px; color: var(--ink-mute); text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 8px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 카드 전체를 누르면 구경하기 (제목 링크를 카드 크기로 늘림), 버튼은 그 위에 */
.memo h2 .card-link { color: inherit; text-decoration: none; }
.memo h2 .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.memo .gift, .memo .actions { position: relative; z-index: 1; }
.memo .card-link:focus-visible { outline: none; }
.memo:has(.card-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 게시한 뒤 팁 */
.tip { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 13px; color: var(--ink-soft); }
.tip .ti { font-size: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.tip strong { color: var(--ink); }
.done > .tip { max-width: none; margin: 0 0 14px; }

/* 선물 칸: 내가 만든 것만 */
.own-only { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.own-only .ti { font-size: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.own-only strong { color: var(--ink); }
.own-only a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.gift-group .promo + .promo { margin-top: -6px; }

/* 만든 거 영수증 */
.rc-preview { margin: 0 0 16px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #ffe8ed; }
.rc-preview canvas { display: block; width: 100%; height: auto; }
.rc-form { margin-bottom: 14px; }
.rc-label { margin: 0; font-weight: 700; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 14px; font-weight: 600;
}
.chip[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rc-actions { margin-bottom: 14px; }
.hero-cta { margin-top: 14px; }
.hero-cta .btn { min-height: 42px; font-size: 14px; }

/* 한 바퀴 정리 (v8) */
.rc-hero { margin-bottom: 12px; }
.rc-hero h1 { font-size: 26px; }
.rc-preview { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; margin: 0 -16px 14px; border-radius: 0 0 20px 20px; }
.rc-preview canvas { width: auto; max-width: 100%; max-height: 44vh; }
.rc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-more { display: flex; gap: 8px; justify-content: center; }
.rc-form .group { gap: 12px; }
.rc-strip {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 22px;
  border-radius: 20px; background: var(--accent-soft); color: var(--ink);
}
.rc-strip-icon { font-size: 28px; flex: 0 0 auto; }
.rc-strip span:not(.rc-strip-icon) { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.rc-strip strong { display: block; font-size: 15px; color: var(--ink); }
.rc-strip .ti { margin-left: auto; color: var(--ink-mute); font-size: 18px; }
details.gift-group summary { list-style: none; cursor: pointer; }
details.gift-group summary::-webkit-details-marker { display: none; }
details.gift-group summary small { font-weight: 600; font-size: 12px; color: var(--ink-mute); }
details.gift-group summary .more { margin-left: auto; color: var(--ink-mute); font-size: 18px; transition: transform 0.2s; }
details.gift-group[open] summary .more { transform: rotate(180deg); }
details.gift-group:not([open]) { padding-top: 16px; padding-bottom: 16px; }
.done h2 { font-size: 26px; }
.done-receipt { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); margin: 0 0 14px; }
.done > .tip { margin: 14px 0 0; }
details.gift-group:not([open]) { gap: 0; }

/* 주소만 게시된 곳 */
.field label .opt { font-weight: 600; font-size: 12px; color: var(--accent); margin-left: 4px; }
.bare { margin-top: 26px; }
.bare-hint { margin: -6px 0 12px; font-size: 13px; color: var(--ink-mute); }
.bare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bare-list a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.bare-list .ti { font-size: 16px; color: var(--ink-mute); }

/* 이렇게 해 (메인) */
.steps { background: var(--accent-soft); border-radius: 20px; padding: 18px 16px 14px; margin: 0 0 24px; }
.steps h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.steps ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.steps strong { display: block; font-size: 15px; font-weight: 800; }
.steps li p { margin: 1px 0 0; font-size: 13px; color: var(--ink-soft); }
.steps-btn { width: 100%; min-height: 52px; font-size: 16px; }
.steps-sub { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* 육하원칙 */
.w5 dl { margin: 0 0 12px; display: grid; gap: 8px; }
.w5 dl > div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: baseline; }
.w5 dt { font-size: 13px; font-weight: 800; color: var(--accent); }
.w5 dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.w5 dd strong { color: var(--ink); }
.w5-free { margin: 0 0 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.w5 dd { word-break: keep-all; }
.nw { white-space: nowrap; }
.w5 dd a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tag.follow { background: var(--accent); color: #fff; }
.board-hint { margin: -6px 0 12px; font-size: 13px; color: var(--ink-soft); word-break: keep-all; }
.board-hint a { color: var(--accent); font-weight: 700; }

/* PC: 메인 판을 넓게 */
@media (min-width: 960px) {
  .wrap.wide { max-width: 1180px; padding: 24px 32px 120px; }
  .wrap.wide .top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; margin-bottom: 36px; }
  .wrap.wide .top .steps { margin: 0; }
  .wrap.wide .hero h1 { font-size: 46px; line-height: 1.2; }
  .wrap.wide .board { columns: 3; column-gap: 16px; }
  .wrap.wide .section-title { font-size: 22px; }
}
@media (min-width: 1240px) {
  .wrap.wide .board { columns: 4; }
}

/* 하트 뒤 "너도 게시해 볼래?" */
.nudge {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30;
  width: min(360px, calc(100% - 32px)); transform: translate(-50%, 16px); opacity: 0;
  background: var(--surface); color: var(--ink); border-radius: 20px; padding: 18px 18px 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: opacity .2s, transform .2s;
}
.nudge.show { opacity: 1; transform: translate(-50%, 0); }
.nudge-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.nudge-body { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); word-break: keep-all; line-height: 1.5; }
.nudge .btn { width: 100%; min-height: 46px; }
.nudge-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-mute); font-size: 18px; cursor: pointer; }

/* 카드 아래 "내 거 내리기" */
.memo .takedown { position: relative; z-index: 1; display: block; margin-top: 8px; font-size: 11px; color: var(--ink-mute); text-align: right; text-decoration: none; }
.memo .takedown:hover { text-decoration: underline; }
.consent strong, .consent small { word-break: keep-all; }

/* 지난 판 */
.past { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.past summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink-soft); list-style: none; }
.past summary::-webkit-details-marker { display: none; }
.past summary small { font-weight: 500; color: var(--ink-mute); font-size: 12px; margin-left: 4px; }
.past-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.past-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: 12px; font-size: 14px; }
.past-list a { color: var(--ink); text-decoration: none; word-break: keep-all; }
.past-list a:hover { text-decoration: underline; }
.past-meta { flex: 0 0 auto; color: var(--ink-mute); font-size: 12px; }
.past-empty { color: var(--ink-mute); justify-content: center !important; }

/* 숨은 열두 달 찾기 (도장 판) */
.hunts { display: grid; gap: 6px; margin: 0 0 12px; align-items: start; }
@media (min-width: 760px) { .hunts { grid-template-columns: 1fr 1fr; } }
.hunts:empty { display: none; }
.hunt { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.hunt[open] { border-radius: 16px; padding: 10px 14px 12px; }
.hunt.done { border-color: var(--accent); background: var(--accent-soft); }
.hunt-head { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13px; }
.hunt-head::-webkit-details-marker { display: none; }
.hunt-head .ti { margin-left: auto; color: var(--ink-mute); transition: transform .15s; }
.hunt[open] .hunt-head .ti { transform: rotate(180deg); }
.hunt-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hunt-name { margin: 0; font-size: 13px; }
.hunt-count { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.hunt-desc { margin: 8px 0 10px; font-size: 13px; color: var(--ink-soft); word-break: keep-all; line-height: 1.5; }
.hunt-cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hunt-cells li { text-align: center; font-size: 12px; font-weight: 700; padding: 6px 0; border-radius: 999px; border: 1.5px dashed var(--line); color: var(--ink-mute); }
.hunt-cells li.on { border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.hunt .btn { margin-top: 10px; width: 100%; }
.tag.stamp { background: var(--surface); border: 1px dashed var(--accent); color: var(--accent); }
.tag.stamp.done { background: var(--accent); color: var(--accent-ink); border-style: solid; }
.coupon { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.coupon-in { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.coupon canvas { width: 100%; height: auto; display: block; border-radius: 12px; margin: 8px 0 12px; }
.coupon-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.coupon-in > .btn { width: 100%; min-height: 46px; }
.hunt-cells li a { display: block; color: inherit; text-decoration: none; }
.hunt-cells li.on a::after { content: " ↓"; font-size: 10px; }

/* 내 오만거 페이지 */
.memo .who a.name { color: inherit; text-decoration: none; }
.memo .who a.name:hover { text-decoration: underline; }
.me-hero { text-align: center; margin-bottom: 14px; }
.me-handle { margin: 0; font-weight: 800; color: var(--accent); }
.me-hero h1 { margin: 4px 0; }
.me-sub { margin: 0; color: var(--ink-soft); font-size: 14px; }
.me-receipt { position: static; margin: 0 0 12px; border-radius: 20px; }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 6px; }
.me-tip { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; word-break: keep-all; }
.me-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.me-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.me-list li a { color: var(--ink); font-weight: 700; text-decoration: none; word-break: keep-all; }
.me-claim { background: var(--accent-soft); border-radius: 16px; padding: 14px; font-size: 14px; color: var(--ink); word-break: keep-all; }
.me-claim p { margin: 0 0 10px; line-height: 1.5; }
.my-no { background: var(--accent-soft); border-radius: 16px; padding: 14px; margin: 0 0 14px; text-align: center; }
.my-no-label { margin: 0; font-size: 13px; color: var(--ink-soft); }
.my-no-label strong { color: var(--accent); }
.my-no-url { margin: 4px 0 10px; font-size: 18px; font-weight: 800; word-break: break-all; }
.my-no-hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); word-break: keep-all; }
.receipt-card { margin: 10px 0 0; text-align: center; }
.receipt-card .btn { width: 100%; }
.gift-faq { display: grid; gap: 4px; margin: 4px 0 2px; }
.gift-faq details { background: var(--surface); border-radius: 12px; padding: 8px 12px; }
.gift-faq summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.gift-faq p { margin: 6px 0 2px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; word-break: keep-all; }
.follow-cta { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--accent); color: var(--ink); text-decoration: none; font-size: 14px; word-break: keep-all; }
.follow-cta > i:first-child { font-size: 22px; color: var(--accent); }
.follow-cta span { flex: 1; line-height: 1.45; }
.follow-cta > i:last-child { color: var(--ink-mute); }
.me-tip + .follow-cta { margin: -10px 0 22px; }
.done .follow-cta { text-align: left; }
.done .receipt-card { margin-top: 10px; }
.done .receipt-card .btn { display: flex; width: 100%; justify-content: center; }

/* 내 간판 (번호 페이지) */
.sign-box { margin: 0 0 12px; text-align: center; }
.sign-title { font-size: 1.15rem; margin: 0 0 10px; }
.sign-title span { font-weight: 500; color: var(--soft, #6b6b76); font-size: .9rem; }
.sign-tabs, .sign-opts { justify-content: center; }
.sign-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 10px; }
.sign-opts[hidden] { display: none; }
.sign-colors { display: flex; gap: 8px; }
.sign-color { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; padding: 0; }
.sign-color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink, #1d1d22); }
.sign-color:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sign-share { display: flex; gap: 10px; align-items: flex-start; background: #fff4cc; color: #3d3200; border-radius: 14px; padding: 12px 14px; margin: 8px 0 10px; font-size: .92rem; line-height: 1.5; text-align: left; }
.sign-share[hidden] { display: none; }
.sign-share .ti { font-size: 1.3rem; margin-top: 1px; }
.me-receipt canvas { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; }
.me-receipt { display: flex; justify-content: center; }
.me-go { display: inline-flex; margin-top: 14px; font-size: 1.05rem; padding: 14px 22px; max-width: 100%; }
.me-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-go[hidden] { display: none; }

/* 구경 수 · 같이 게시된 이웃 (품앗이) — 이웃은 작게, 주인공은 크게 (11/23 대표님) */
.me-views { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.me-views[hidden], .nb[hidden] { display: none; }
.nb { margin: 4px 0 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.nb-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--ink-mute); word-break: keep-all; }
.nb-title span { font-weight: 500; }
.nb-list { display: grid; gap: 2px; }
.nb-card { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 4px 2px; text-decoration: none; color: var(--ink-soft); font-size: 12px; }
.nb-card:hover .nb-name { color: var(--ink); text-decoration: underline; }
.nb-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.nb-no { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.nb-name { flex: 0 1 auto; min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-desc { display: none; }
.nb-meta { flex: 0 0 auto; font-size: 11px; color: var(--ink-mute); }

.sign-share strong, .sign-share .ti { color: #3d3200; }

/* 판 첫 상자: 한 줄 + 버튼, 자세한 건 접기 (11/23 대표님: 들어오는 사람마다 다 보니 너무 길다) */
.w5-one { margin: 0 0 10px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); word-break: keep-all; }
.w5-one strong { display: inline; font-size: inherit; color: var(--accent); }
.w5-more { margin-top: 10px; }
.w5-more summary { display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; list-style: none; font-size: 13px; color: var(--ink-soft); }
.w5-more summary::-webkit-details-marker { display: none; }
.w5-more[open] summary .ti { transform: rotate(180deg); }
.w5-more dl { margin: 12px 0 8px; }

/* 내 소식 (다시 찾아오게) */
.my-news { background: var(--surface); border: 1.5px solid var(--accent); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 4px; }
.my-news[hidden] { display: none; }
.news-title { margin: 0 0 2px; font-size: 14px; font-weight: 800; }
.news-line { color: var(--ink); text-decoration: none; font-size: 14px; }
.news-line strong { color: var(--accent); margin-right: 2px; }
.news-line:hover { text-decoration: underline; }
.news-givers { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); word-break: keep-all; }
.news-givers a { color: var(--accent); font-weight: 700; text-decoration: none; }
.news-hint { color: var(--ink-mute); }
.news-empty { margin: 0; font-size: 13px; color: var(--ink-soft); }
.givers { margin: 4px 0 10px; }
.givers[hidden], .me-mine[hidden] { display: none; }
.givers-list { margin: 0; font-size: 13px; word-break: keep-all; }
.givers-list a { color: var(--accent); font-weight: 700; text-decoration: none; }
.me-mine { text-align: center; margin: 0 0 14px; }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--ink-soft); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.omg-rcard { max-width: 420px; margin: 0 auto 8px; }
.omg-rcard:empty { display: none; }
/* 영수증 툼카드 단추: 어두운 화면에서도 보이게 */
#omg-rcard .rc-go, .omg-rcard a.rc-go { background: var(--accent, #E8455C); color: #fff; }
/* 번호 페이지 줄이기 (11/24): 영수증 툼카드가 있으면 겹치는 것 숨김 */
.slim-row { display: flex; gap: 8px; justify-content: center; margin: 4px auto 18px; }
.me-slim #me-sub, .me-slim #me-views, .me-slim .me-tip, .me-slim #me-list-title, .me-slim #me-list,
.me-slim #givers, .me-slim .follow-cta, .me-slim .me-actions, .me-slim #sign-share,
.me-slim #omg-rcard .rc-dz { display: none !important; }
.me-slim:not(.show-sign) #sign-box, .me-slim:not(.show-sign) #me-receipt-box { display: none !important; }
.me-slim.show-sign .me-actions { display: flex !important; }
/* 얼굴 사진이 잘려 보임(11/24 대표님) → 사진은 제 비율 그대로 다 보이게, 문패는 낮게 */
.face { aspect-ratio: auto; }
.face img { height: auto; max-height: 220px; object-fit: contain; background: #fff; }
.face.plate { aspect-ratio: 16 / 9; }
.face.plate .plate-no { font-size: 30px; }
.face.plate .plate-name { margin-top: 3px; font-size: 11px; }
.me-face.plate .plate-no { font-size: 44px; }
/* 꾸민 번지 (11/24) */
.tag.deco { background: linear-gradient(90deg, #ffd36e, #ff8fb1); color: #3a1a24; border: 0; font-weight: 800; }
.deco-peek { display: block; max-width: 352px; margin: 10px auto 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.7); color: #a8304a; font-weight: 800; font-size: 14px; text-align: center; text-decoration: none; }
/* 펀딩 고정 칸 (11/24) */
.board-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.board-top .memo { margin: 0; }
.board-top .memo:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 359px) { .board-top { grid-template-columns: 1fr; } }
.tag.fund { background: #ff4f6d; color: #fff; border: 0; font-weight: 800; }
.who { flex-wrap: wrap; }
/* 툼카드 샘플 칸 (11/24) */
.deco-strip { margin: 0 0 14px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #fff3d6, #ffe0ea); color: #3a1a24; }
.deco-title { margin: 0 0 10px; font-size: 14px; }
.deco-title span { font-size: 12px; opacity: 0.75; }
.deco-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.deco-item { min-width: 0; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.deco-pic { position: relative; display: block; }
.deco-item img, .deco-ph { width: 100%; aspect-ratio: 720 / 378; height: auto; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.deco-ph { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: #e8455c; }
.deco-nm { font-size: 13px; font-weight: 800; line-height: 1.2; }
.deco-no { font-size: 11px; opacity: 0.6; }
.deco-btn { display: flex; justify-content: center; margin-top: 12px; min-height: 42px; background: #e8455c; color: #fff; }
.done-deco { margin: 16px 0; text-align: left; }
/* 맨 앞 '이렇게 만들어 봐' (11/25) — 게시하기 상자 안 */
.steps .deco-strip { margin: 14px 0 0; text-align: left; }
.steps .deco-row { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 640px) {
  .steps .deco-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .steps .deco-item:nth-child(n+4) { display: none; }
  .steps .deco-nm { font-size: 12px; }
}
.board-more { display: flex; margin: 4px auto 24px; min-height: 44px; padding: 0 22px; }

/* 샘플 카드는 눌러 보는 것임을 보이게 (11/25 대표님: 무엇을 눌러야 샘플이 보이는지 몰라 분홍 단추만 누름) */
.deco-go { position: absolute; right: 6px; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(20,20,26,0.82); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.3; }
.deco-item:hover img, .deco-item:active img { transform: scale(1.03); transition: transform .15s; }
.deco-item img { transition: transform .15s; }
.deco-btn { background: transparent; color: #a8304a; border: 2px solid #e8455c; font-weight: 800; }
.steps .deco-btn { min-height: 40px; font-size: 13px; }
@media (max-width: 640px) { .deco-go { font-size: 10px; padding: 2px 6px; } }

/* 11/25: 개발자가 만든 것 보기 (눈에 안 띄게 작게) */
.dev-link { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.dev-link:hover { text-decoration: underline; }
.dev-back { margin: 0 0 12px; font-size: 14px; }
.dev-back a { color: var(--accent); font-weight: 700; text-decoration: none; }
.board-top .memo:only-child { grid-column: 1 / -1; }

/* 응원 스티커 (11/25) */
.stickers { margin: 4px 0 12px; }
.stickers[hidden] { display: none; }
.sticker-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sticker { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.14)); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.sticker:hover { border-color: var(--accent); }
.sticker-e { font-size: 24px; line-height: 1; }
.sticker-t { font-size: 11px; opacity: .75; word-break: keep-all; }
.sticker b { font-size: 13px; }

/* 오만거 샵 (11/25): 판 탭 · 종류 선택 */
.board-tabs { display: flex; gap: 8px; margin: 0 0 10px; }
.board-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.14)); color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.board-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.kind-field { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind-opt { display: block; cursor: pointer; }
.kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-opt span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.14)); font-weight: 700; font-size: 14px; }
.kind-opt small { font-weight: 500; font-size: 11px; opacity: .7; }
.kind-opt input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.kind-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 11/25 QC 반영 */
.deco-peek { display: block; max-width: 352px; margin: 10px auto 0; padding: 10px 12px; border-radius: 14px; background: var(--accent); color: #fff !important; font-weight: 800; font-size: 14px; text-align: center; text-decoration: none; }
.hint-box { margin: -6px 0 12px; }
.hint-box summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.hint-box .board-hint { margin: 6px 0 0; }
.bare-who { font-size: 12px; opacity: .7; }
