/* merit.css — 11/7 대표: 공덕코인(108 번뇌를 다 녹이면 열림 · 개인 코인으로 내 연못 꾸미기). 흰 바탕 · 또렷한 테두리 */
#pond-chip.merit b{color:#b97d1c!important}
#merit-sheet{position:fixed;inset:0;z-index:95;display:flex;align-items:flex-end;justify-content:center}
#merit-sheet[hidden]{display:none}
#merit-sheet .mr-bg{position:absolute;inset:0;background:rgba(20,16,10,.35);opacity:0;transition:opacity .2s}
#merit-sheet.on .mr-bg{opacity:1}
#merit-sheet .mr-card{position:relative;width:min(440px,100%);max-height:86vh;overflow:auto;background:#fff;border:1.5px solid #e7dcc6;border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-sizing:border-box;transform:translateY(16px);opacity:0;transition:transform .22s,opacity .22s;font:600 13px/1.45 var(--sh-font,"Pretendard",system-ui);color:#2b2a24}
#merit-sheet.on .mr-card{transform:none;opacity:1}
@media (min-width:700px){#merit-sheet{align-items:center}#merit-sheet .mr-card{border-radius:22px}}
#merit-sheet .mr-x{position:absolute;right:10px;top:8px;width:34px;height:34px;border:0;border-radius:50%;background:none;font-size:22px;color:#9a8f84;cursor:pointer}
.mr-hd{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:900}
.mr-big{display:flex;align-items:baseline;gap:6px;margin:10px 0 2px;flex-wrap:wrap}
.mr-big b{font-size:34px;font-weight:900;letter-spacing:-.02em;color:#b97d1c;font-variant-numeric:tabular-nums}
.mr-big span{font-weight:800;color:#8a6a3d}
.mr-big small{margin-left:auto;color:#9a8f84;font-weight:700;font-size:11.5px}
.mr-gauge{height:9px;border-radius:5px;background:#f3ecdc;overflow:hidden;margin-top:6px}
.mr-gauge i{display:block;height:100%;background:linear-gradient(90deg,#f8dd8e,#e2a93a);border-radius:5px;transition:width .4s}
.mr-sub{margin:5px 0 0;font-size:11.5px;color:#8a7a6a;font-weight:700}
.mr-sec{display:flex;align-items:center;justify-content:space-between;margin:16px 0 6px;font-size:12px;font-weight:900;color:#8a6a3d}
.mr-link{border:0;background:#eefcf8;color:#0f8f7f;font:900 12px var(--sh-font,system-ui);padding:6px 10px;border-radius:999px;cursor:pointer}
.mr-lg{display:flex;align-items:center;gap:8px;padding:7px 2px;border-bottom:1px solid #f1ebe0}
.mr-lg span{flex:1;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-lg small{color:#9a8f84;font-size:11px;font-weight:700}
.mr-lg em{font-style:normal;font-weight:900;color:#b97d1c;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.mr-lg em.out{color:#8a7a6a}
.mr-empty{color:#8a7a6a;font-size:12.5px;margin:4px 0}
.mr-shop{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mr-it{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:14px;background:#faf6ee;border:1.5px solid transparent}
.mr-it.own{background:#f2fbf8;border-color:#cdeee4}
.mr-it b{font-weight:900;font-size:13px}
.mr-it small{font-size:11px;color:#8a7a6a;font-weight:700;min-height:30px}
.mr-it button{margin-top:4px;align-self:flex-start;display:inline-flex;align-items:center;gap:4px;border:0;border-radius:999px;padding:6px 11px;font:900 12px var(--sh-font,system-ui);cursor:pointer;background:#fff;color:#5b4f45;box-shadow:inset 0 0 0 1.5px #e3d9c6}
.mr-it button.buy{background:linear-gradient(135deg,#ffe9a8,#f2c14e);color:#5a3b06;box-shadow:none}
.mr-it button.buy.dim{opacity:.55}
.mr-it button.on{background:linear-gradient(135deg,#6EEAC2,#2ADCCA);color:#0b3b35;box-shadow:none}
.mr-ft{margin:14px 0 0;font-size:11.5px;color:#9a8f84;font-weight:600}
.pd-merit{border:0;margin-left:6px;background:#fff3d6;color:#8a5a12;font:900 12px var(--sh-font,system-ui);padding:5px 10px;border-radius:999px;cursor:pointer}
#merit-toast{position:fixed;left:50%;top:calc(38% + env(safe-area-inset-top));z-index:96;transform:translate(-50%,10px);display:flex;align-items:center;gap:10px;max-width:min(340px,88vw);padding:10px 14px;background:#fff;border:1.5px solid #f0d68a;border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.18);font:900 13.5px/1.3 var(--sh-font,"Pretendard",system-ui);color:#3b2e24;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
#merit-toast.on{opacity:1;transform:translate(-50%,0)}
#merit-toast small{display:block;font-size:11.5px;font-weight:700;color:#8a7a6a;margin-top:2px}
/* 11/7 대표: "번뇌가 없어지면 공덕코인을 받을 수 있어요" 눈에 띄게 */
.pd-coin{display:flex;align-items:center;gap:10px;margin:10px 0 4px;padding:10px 12px;border-radius:16px;background:linear-gradient(135deg,#fff8e1,#ffeeb8);border:1.5px solid #f0d68a}
.pd-coin span{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.pd-coin b{font:900 14px/1.3 var(--sh-font,"Pretendard",system-ui);color:#7a4e0a}
.pd-coin small{font:700 11.5px/1.2 var(--sh-font,system-ui);color:#9a7a3a}
.pd-cbar{display:block;height:7px;border-radius:4px;background:#fff;overflow:hidden;box-shadow:inset 0 0 0 1px #f0d68a}
.pd-cbar em{display:block;height:100%;background:linear-gradient(90deg,#6EEAC2,#2ADCCA);border-radius:4px}
#pond-chip .pc-lock{display:inline-flex;margin-left:2px;opacity:.55;filter:grayscale(.35);font-style:normal}
.pd-tcoin{display:flex!important;align-items:center;gap:4px;color:#9a6a12!important;font-weight:800!important}
#pond-hint{all:unset;box-sizing:border-box;position:fixed;z-index:60;width:300px;max-width:calc(100vw - 16px);display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:linear-gradient(135deg,#fff8e1,#ffeeb8);border:1.5px solid #f0d68a;box-shadow:0 8px 20px rgba(122,78,10,.22);cursor:pointer;animation:phIn .45s cubic-bezier(.3,1.5,.5,1);transition:opacity .35s,transform .35s}
#pond-hint::before{content:"";position:absolute;top:-7px;left:var(--ax,50%);width:12px;height:12px;margin-left:-6px;background:#fff8e1;border-left:1.5px solid #f0d68a;border-top:1.5px solid #f0d68a;transform:rotate(45deg)}
#pond-hint span{display:flex;flex-direction:column;gap:2px;min-width:0}
#pond-hint b{font:900 13.5px/1.3 var(--sh-font,"Pretendard",system-ui);color:#7a4e0a}
#pond-hint small{font:700 11.5px/1.2 var(--sh-font,system-ui);color:#9a7a3a}
#pond-hint.out{opacity:0;transform:translateY(-6px)}
@keyframes phIn{from{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:none}}
/* 11/7 대표: 마음 연못 목록을 눌러 바로 미션으로 */
button.pd-tap{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #f0ebe2;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:12px;transition:background .15s}
button.pd-tap:hover,button.pd-tap:active{background:#f2fbf8}
button.pd-tap.done{cursor:default}
button.pd-tap.done:hover{background:none}
.pd-go{flex:none;margin-left:8px;padding:5px 10px;border-radius:999px;background:linear-gradient(135deg,#6EEAC2,#2ADCCA);color:#0b3b35;font:900 11.5px/1 var(--sh-font,"Pretendard",system-ui);font-style:normal;white-space:nowrap}
button.pd-tap.done .pd-go{background:#f1ece2;color:#9a8f84}
@media (max-width:400px){.pd-go{padding:5px 8px;font-size:11px}}
html body #pond-sheet button.pd-tap{grid-template-columns:40px 1fr auto 46px auto!important;column-gap:6px}
html body #pond-sheet button.pd-tap .pd-go{justify-self:end}
@media (max-width:400px){html body #pond-sheet button.pd-tap{grid-template-columns:36px 1fr auto 40px auto!important}html body #pond-sheet button.pd-tap small{font-size:10.5px}}
/* 11/7 대표: 마음 쓰기 → 상대방 이름표를 눌러서. 누를 사람 이름표 반짝임 */
.ent.peer.pd-find .nm{background:#2ADCCA!important;color:#0b3b35!important;padding:4px 10px!important;border-radius:999px!important;text-shadow:none!important;font-weight:900!important;outline:3px solid #6EEAC2;outline-offset:2px;animation:pdFind 1s ease-in-out infinite}
@keyframes pdFind{0%,100%{outline-offset:2px;outline-color:rgba(110,234,194,.9)}50%{outline-offset:6px;outline-color:rgba(110,234,194,.25)}}
@media (prefers-reduced-motion:reduce){.ent.peer.pd-find .nm{animation:none}}/* 11/7 대표: 산사 공양(위시캔들 · 소원연등 · 기왓장 소원쓰기) */
.mr-sm{font-size:11px;font-weight:700;color:#9a8f84}
.mr-of{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:#fff;border:1.5px solid #e9e0cf;margin-bottom:6px}
.mr-of-i{flex:none;width:36px;height:36px;border-radius:50%;background:#fff7e0;display:grid;place-items:center;font-size:19px}
.mr-of-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mr-of-t b{font-weight:900;font-size:13.5px}
.mr-of-t small{font-size:11px;color:#8a7a6a;font-weight:700;line-height:1.35}
.mr-of button,.mr-of-a button{flex:none;display:inline-flex;align-items:center;gap:4px;border:0;border-radius:999px;padding:7px 12px;font:900 12.5px var(--sh-font,system-ui);cursor:pointer;background:#fff;color:#5b4f45;box-shadow:inset 0 0 0 1.5px #e3d9c6}
.mr-of button.buy,.mr-of-a button.buy{background:linear-gradient(135deg,#ffe9a8,#f2c14e);color:#5a3b06;box-shadow:none}
.mr-of button.buy.dim{opacity:.55}
.mr-of-w{padding:12px;border-radius:14px;background:#fffaf0;border:1.5px solid #f0d99a;display:flex;flex-direction:column;gap:6px}
.mr-of-w b{display:flex;align-items:center;gap:6px;font-weight:900;font-size:13.5px}
.mr-of-w textarea{width:100%;box-sizing:border-box;border:1.5px solid #e3d9c6;border-radius:12px;padding:9px 10px;font:700 14px var(--sh-font,system-ui);resize:none;background:#fff;color:#3b2f22}
.mr-of-w textarea:focus{outline:none;border-color:#2ADCCA}
.mr-of-w small{font-size:11px;color:#9a8f84;font-weight:700}
.mr-of-a{display:flex;justify-content:flex-end;gap:6px}
.mr-mine{display:flex;flex-direction:column;gap:4px;margin:2px 2px 0;font-size:11.5px;color:#7a6a58;font-weight:700}
.mr-mine span{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-of-n{display:flex;gap:8px}
.mr-of-n button{flex:1;justify-content:center;display:inline-flex;align-items:center;gap:4px;border:0;border-radius:999px;padding:9px 0;font:900 13.5px var(--sh-font,system-ui);cursor:pointer;background:linear-gradient(135deg,#ffe9a8,#f2c14e);color:#5a3b06}
.mr-of-n button.dim{opacity:.45;cursor:default}

/* 11/8 대표 선택 A안: 마음 연못 화면(염주 108 · 단계 점 8 · 오늘 추천 3) */
html body #pond-sheet .pd-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:34px}
html body #pond-sheet .pd-cc{display:inline-flex;align-items:center;gap:4px;border:1.5px solid #f0d790;background:#fff6dd;border-radius:999px;padding:3px 10px 3px 4px;font:900 13px/1 var(--sh-font,"Pretendard",system-ui);color:#7a4e0a;cursor:pointer;white-space:nowrap}
html body #pond-sheet .pd-msg{margin:8px 0 0;text-align:center;font:700 13px/1.4 var(--sh-font,"Pretendard",system-ui);color:#2d7d6d}
html body #pond-sheet .pd-msg b{font-weight:900;color:#14806e}
html body #pond-sheet .pd-pond{position:relative}
html body #pond-sheet .pd-cnt{position:absolute;right:6px;bottom:6px;background:#fff;border-radius:12px;padding:3px 9px;font:800 11px/1.2 var(--sh-font,system-ui);color:#8a7f73;box-shadow:0 1px 5px rgba(15,23,42,.12)}
html body #pond-sheet .pd-cnt b{font-size:16px;color:#c98a1f;margin-right:1px}
html body #pond-sheet .pd-st8{display:flex;justify-content:space-between;margin:6px 2px 10px}
html body #pond-sheet .pd-st8 span{display:flex;flex-direction:column;align-items:center;gap:4px;font:700 10.5px/1 var(--sh-font,system-ui);color:#aaa093;min-width:0;white-space:nowrap}
html body #pond-sheet .pd-st8 i{display:block;width:12px;height:12px;border-radius:50%;background:#e4ebe8}
html body #pond-sheet .pd-st8 .done{color:#2d7d6d}html body #pond-sheet .pd-st8 .done i{background:#2fb59c}
html body #pond-sheet .pd-st8 .now{color:#14806e;font-weight:900}html body #pond-sheet .pd-st8 .now i{width:16px;height:16px;margin-top:-2px;background:#fff;border:3px solid #2ADCCA;box-sizing:border-box}
html body #pond-sheet .pd-rew{display:flex;align-items:center;gap:7px;background:#fff8e6;border:1px solid #f0dca4;border-radius:12px;padding:7px 10px;font:700 12.5px/1.35 var(--sh-font,system-ui);color:#7a5a1d;margin-bottom:6px}
html body #pond-sheet .pd-rew b{color:#c4781a;font-weight:900}
html body #pond-sheet .pd-all{margin-top:4px}
html body #pond-sheet .pd-all>summary{list-style:none;cursor:pointer;text-align:center;padding:10px 0 8px;font:800 12.5px/1 var(--sh-font,system-ui);color:#7d6f62;border-top:1px solid #f0ebe2}
html body #pond-sheet .pd-all>summary::-webkit-details-marker{display:none}
html body #pond-sheet .pd-all>summary::after{content:' ⌄'}html body #pond-sheet .pd-all[open]>summary::after{content:' ⌃'}
@media (max-width:360px){html body #pond-sheet .pd-st8 span{font-size:9.5px}}

/* 11/8 대표: 공덕 · 마음 연못을 탭 하나 창으로 — 같은 자리·같은 크기, 겹치지 않음 */
.sx-tabs{display:flex;gap:4px;background:#f3efe6;border-radius:999px;padding:4px;margin:0 40px 10px 0}
.sx-tabs>button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:0;border-radius:999px;background:none;font:800 14px/1 var(--sh-font,"Pretendard",system-ui);color:#8a7f73;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.sx-tabs>button.on{background:#fff;color:#3b2f22;box-shadow:0 1px 4px rgba(60,40,20,.14);cursor:default}
.sx-tabs>button b{color:#b97d1c;font-weight:900}
.sx-tabs>button svg,.sx-tabs>button img{flex:none}
html body #merit-sheet{z-index:8800}
html body #merit-sheet .mr-card{width:min(94vw,420px);height:min(88vh,720px);max-height:none;border:2px solid #e3e9e7;border-radius:24px}
html body #pond-sheet .pd-card{height:min(88vh,720px);max-height:none}
@media (min-width:821px) and (pointer:fine){html body #merit-sheet{align-items:center}}
@media (max-width:820px),(pointer:coarse){html body #merit-sheet{align-items:flex-end}html body #merit-sheet .mr-card{width:100%;height:86vh;border-radius:24px 24px 0 0}html body #pond-sheet .pd-card{height:86vh}}
#pond-sheet.sx-now .pd-card,#pond-sheet.sx-now .pd-bg,#merit-sheet.sx-now .mr-card,#merit-sheet.sx-now .mr-bg{transition:none!important}
@media (max-width:360px){.sx-tabs>button{font-size:13px;gap:4px}}

/* 11/8 대표: 공덕 얻을 때 머리 위 코인(슈퍼마리오 코인 블록처럼) */
.ent .mr-pop{position:absolute;bottom:calc(100% + 6px);left:50%;width:0;height:0;pointer-events:none;z-index:9;perspective:200px}
.w3d .ent .mr-pop{bottom:44px}
.ent .mr-pop img{position:absolute;bottom:0;width:38px;height:38px;max-width:none;max-height:none;margin-left:-19px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(60,40,10,.35));opacity:0;animation:mrCoin .78s cubic-bezier(.22,.9,.32,1) both}
.ent .mr-pop b{position:absolute;bottom:52px;left:0;transform:translateX(-50%);font:900 17px/1 var(--sh-font,"Pretendard",system-ui);color:#ffcf3a;text-shadow:-1.5px 0 #7a4e0a,1.5px 0 #7a4e0a,0 -1.5px #7a4e0a,0 2px #7a4e0a,0 0 10px rgba(255,214,90,.9);white-space:nowrap;opacity:0;animation:mrPts 1.2s ease-out .3s both}
.ent .mr-pop .mr-spk{position:absolute;bottom:58px;left:-14px;width:28px;height:28px;opacity:0;background:radial-gradient(circle,#fff 0 2px,transparent 3px) 50% 0/6px 6px no-repeat,radial-gradient(circle,#fff6b0 0 2px,transparent 3px) 0 50%/6px 6px no-repeat,radial-gradient(circle,#fff6b0 0 2px,transparent 3px) 100% 50%/6px 6px no-repeat,radial-gradient(circle,#fff 0 2px,transparent 3px) 50% 100%/6px 6px no-repeat;animation:mrSpk .5s ease-out .5s both}
@keyframes mrCoin{0%{opacity:0;transform:translateY(8px) rotateY(0) scale(.6)}12%{opacity:1}55%{transform:translateY(-58px) rotateY(720deg) scale(1)}78%{opacity:1;transform:translateY(-44px) rotateY(1080deg) scale(1)}100%{opacity:0;transform:translateY(-50px) rotateY(1260deg) scale(.7)}}
@keyframes mrPts{0%{opacity:0;transform:translate(-50%,8px) scale(.7)}25%{opacity:1;transform:translate(-50%,0) scale(1.1)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-26px) scale(1)}}
@keyframes mrSpk{0%{opacity:0;transform:scale(.4)}40%{opacity:1}100%{opacity:0;transform:scale(1.6)}}
@media (prefers-reduced-motion:reduce){.ent .mr-pop img{animation-duration:.01s}.ent .mr-pop b{animation:none;opacity:1}}
.ent .mr-pop b small{font-size:11px;-webkit-text-stroke:0;color:#fff;text-shadow:0 1px 2px #8a5a12}

#pond-chip[hidden],#pond-hint[hidden]{display:none!important}

