/* 우정길 「축의금 얼마 낼까」: 봉투 연출 · 조사 줄 · 금액 막대. 가게 틀은 app/room.css, 입력·결과 두 칸은 svc.css
   지폐는 화폐 도안을 본뜨지 않는다(색 띠·숫자만). 색은 가게 색 var(--accent) 와 밤 토큰(#0b1422·#f3f1e8·#8b97ad) */

/* 봉투: 뒤판 → 지폐 → 앞판 순서로 겹친다. 지폐는 위에서 내려와 앞판 뒤로 들어간다 */
.gf-env-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0 6px; }
.gf-env { position: relative; width: min(100%, 300px); aspect-ratio: 300 / 190; margin-top: 56px; }
.gf-back { position: absolute; inset: 0; border-radius: 6px; background: #e9e4d3; }
.gf-bills { position: absolute; left: 12%; right: 12%; top: -18%; height: 70%; }
.gf-bill { position: absolute; left: 0; right: 0; top: 0; height: 100%; border-radius: 3px; background: #f3f1e8; border: 1px solid rgba(11,20,34,.25);
  box-shadow: 0 2px 6px rgba(0,0,0,.25); translate: var(--x) calc(var(--i) * 3px); display: flex; align-items: flex-start; justify-content: flex-end; padding: 6px 10px;
  animation: gf-drop .55s cubic-bezier(.3,.7,.3,1) both; animation-delay: calc(.25s + var(--i) * .38s); }
.gf-bill::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22%; border-radius: 3px 0 0 3px; }
.gf-b5::before { background: #e8a93c; }
.gf-b1::before { background: #5fae74; }
.gf-bill b { font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: 17px; color: #0b1422; letter-spacing: .04em; }
.gf-front { position: absolute; left: 0; right: 0; bottom: 0; height: 74%; border-radius: 0 0 6px 6px; background: #f6f2e4; border-top: 1px solid rgba(11,20,34,.12);
  box-shadow: 0 -2px 8px rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #0b1422; }
.gf-mark { font-family: "Black Han Sans", sans-serif; font-size: 26px; letter-spacing: .3em; padding-left: .3em; color: #b4382d; }
.gf-from { font-size: 14px; color: #3a4357; }
.gf-say { font-size: 13px; color: #8b97ad; }
@keyframes gf-drop {
  from { transform: translateY(-160px); opacity: 0; }
  40% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

/* 조사 줄: 조사마다 방식(설문 응답·실제 송금)과 연도를 맨 위에 */
.gf-row { border-top: 1px solid rgba(243,241,232,.14); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.gf-tag { font-size: 12.5px; color: #8b97ad; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gf-kind { border: 1px solid rgba(243,241,232,.35); color: #f3f1e8; border-radius: 999px; padding: 1px 9px; font-size: 12px; white-space: nowrap; }
.gf-kind.real { border-color: var(--accent); color: var(--accent); }
.gf-title { font-size: 16px; font-weight: 700; color: #f3f1e8; word-break: keep-all; }
.gf-top { font-size: 14px; color: #c9cdd6; line-height: 1.5; word-break: keep-all; }
.gf-top b { color: var(--accent); font-size: 16px; }

/* 금액 막대: 금액 이름 · 막대 · 비율 */
.gf-bars { list-style: none; display: grid; gap: 7px; margin-top: 2px; }
.gf-bars li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr) 3.6em; align-items: center; gap: 10px; font-size: 13.5px; color: #c9cdd6; }
.gf-amt { white-space: nowrap; }
.gf-track { height: 12px; border-radius: 6px; background: rgba(243,241,232,.08); overflow: hidden; }
.gf-track i { display: block; height: 100%; border-radius: 6px; background: #5d6880; }
.gf-bars li.top .gf-track i { background: var(--accent); }
.gf-bars li.top { color: #f3f1e8; font-weight: 700; }
.gf-bars li.etc .gf-track i { background: repeating-linear-gradient(135deg, rgba(139,151,173,.45) 0 4px, transparent 4px 8px); }
.gf-bars li.etc { color: #8b97ad; }
.gf-bars b { text-align: right; font-weight: inherit; font-variant-numeric: tabular-nums; }
.gf-etc { font-size: 12px; color: #8b97ad; }
.gf-notes { list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: #a9b2c3; line-height: 1.6; word-break: keep-all; }
.gf-notes li::before { content: "· "; color: #8b97ad; }

@media (max-width: 420px) {
  .gf-bars li { grid-template-columns: 6.2em minmax(0, 1fr) 3.4em; gap: 8px; font-size: 13px; }
  .gf-mark { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .gf-bill { animation: none; } }
