/* 우편함(js/mail.js): 위쪽 바 편지 아이콘 · 목록 · 한 통 */
.mail-topbtn { position: relative; }
.mail-topbtn[hidden] { display: none; }
.mail-dot { position: absolute; right: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: #E2452B; box-shadow: 0 0 0 2px var(--dark, #151515); }
.mail-dot[hidden] { display: none; }
/* 로비 오른쪽 둥근 버튼(모양은 .lb-ev, 빨간 점은 .lb-dot: css/lobby.css) */
.lb-mail[hidden] { display: none; }
.lb-mail .lb-dot { top: 2px; right: 2px; }
.lb-mail .lb-dot[hidden] { display: none; }
/* 목록 */
.mail-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.mail-it { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mail-it.new { border-color: color-mix(in srgb, #E2452B 45%, var(--line)); }
.mail-tag { white-space: nowrap; font: 800 11px var(--body); color: #fff; padding: 3px 7px; border-radius: 4px; }
.mail-tag.gift { background: #B8862B; }
.mail-tag.notice { background: #5C6B7A; }
.mail-tt { display: grid; gap: 2px; min-width: 0; }
.mail-tt b { font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.mail-tt small { color: var(--muted); font-size: 12px; }
/* 빈 우편함(사장님 11/10: 우편이 없어도 늘 보이게) — 흐린 봉투 + 한 줄 */
.mail-empty { display: grid; justify-items: center; gap: 6px; margin: 8px 0 14px; padding: 26px 14px 22px; border-radius: 12px; border: 1px dashed var(--line); text-align: center; }
.mail-empty-ico .lb-ico { width: 44px; height: 44px; image-rendering: pixelated; opacity: .55; filter: grayscale(.4); }
.mail-empty b { font-weight: 800; }
.mail-empty small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.mail-new { width: 8px; height: 8px; border-radius: 50%; background: #E2452B; }
/* 한 통 */
.mail-body { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); line-height: 1.6; }
.mail-body p { margin: 0 0 6px; }
.mail-body p:last-child { margin: 0; }
.mail-tiles { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mail-tile { width: 84px; display: grid; justify-items: center; gap: 5px; }
.mail-tile-box { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--gc, var(--line)); background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--gc) 14%, var(--card)), color-mix(in srgb, var(--gc) 30%, var(--card))); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--gc) 35%, transparent); overflow: hidden; }
.mail-tile-n { max-width: 84px; font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.mail-qty { position: absolute; right: 5px; bottom: 3px; font: 800 12px var(--body); font-style: normal; color: #FFF6DE; text-shadow: 1px 0 0 #2A211E, -1px 0 0 #2A211E, 0 1px 0 #2A211E, 0 -1px 0 #2A211E; }
.mail-coin { width: 46px; height: 46px; image-rendering: pixelated; margin-bottom: 6px; }
.mail-th { width: 72px; height: 72px; image-rendering: pixelated; }
.mail-stamp { position: relative; width: 58px; height: 58px; margin-bottom: 6px; transform: rotate(-12deg); }
.mail-stamp > i { position: absolute; inset: 0; -webkit-mask: var(--stamp) center / contain no-repeat; mask: var(--stamp) center / contain no-repeat; }
.mail-tile.got .mail-tile-box > :not(.mail-check), .mail-tile.own .mail-tile-box > :not(.mail-own) { opacity: .38; filter: grayscale(.6); }
.mail-tile.got .mail-tile-n, .mail-tile.own .mail-tile-n { color: var(--muted); }
.mail-check { position: absolute; inset: 0; display: grid; place-items: center; color: #2F8F4E; }
.mail-check svg { width: 38px; height: 38px; padding: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #2F8F4E; }
.mail-own { position: absolute; left: 4px; top: 4px; font: 800 10px var(--body); color: #fff; background: #5C6B7A; padding: 2px 5px; border-radius: 4px; }
.mail-one .note { margin: 4px 0 0; }
.choices .btn .mail-ico, .choices .btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
