/* /mbcard 회원증 카드 공통 스타일 (정식 규격 CR-80 세로: 54 x 85.6 mm → 342 x 542) */
.stage{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 12px 120px;min-height:100vh;min-height:100dvh}
.deco{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.deco>*{position:absolute}
.wm{left:50%;top:50%;width:720px;height:720px;transform:translate(-50%,-50%);animation:nbSpin 120s linear infinite}.wm img{width:100%;height:100%}
.ring{left:50%;top:50%;width:560px;height:560px;border-radius:50%;border:2px solid;opacity:0;animation:nbRing 7s ease-out infinite}
.dot{border-radius:50%;opacity:0;animation:nbRise 8s ease-in infinite}
.tw{opacity:0;animation:nbTw 4s ease-in-out infinite}
.orbA,.orbB{left:calc(50% - 125px);width:250px;height:110px;border-radius:50%}
.orbA{top:20px;background:radial-gradient(closest-side,rgba(215,16,42,.08),rgba(215,16,42,0));animation:nbOrbA 14s ease-in-out infinite}
.orbB{bottom:20px;background:radial-gradient(closest-side,rgba(35,42,140,.08),rgba(35,42,140,0));animation:nbOrbB 16s ease-in-out infinite}
@keyframes nbSpin{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes nbRing{0%{transform:translate(-50%,-50%) scale(.55);opacity:0}15%{opacity:1}100%{transform:translate(-50%,-50%) scale(1.5);opacity:0}}
@keyframes nbRise{0%{transform:translateY(0) scale(.6);opacity:0}20%{opacity:1}100%{transform:translateY(-130px) scale(1);opacity:0}}
@keyframes nbTw{0%,100%{transform:scale(.4) rotate(0);opacity:0}50%{transform:scale(1) rotate(90deg);opacity:1}}
@keyframes nbOrbA{0%,100%{transform:translate(-60px,0) scale(1)}50%{transform:translate(70px,14px) scale(1.15)}}
@keyframes nbOrbB{0%,100%{transform:translate(60px,0) scale(1.1)}50%{transform:translate(-70px,-14px) scale(.95)}}
@keyframes nbFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes nbShine{0%,62%{transform:translateX(-160%) rotate(20deg)}100%{transform:translateX(320%) rotate(20deg)}}
.fit{position:relative;z-index:2;width:342px;height:542px;transform-origin:center top}
.cardBtn{position:absolute;inset:0;border:0;padding:0;background:none;cursor:pointer;font:inherit;color:#111827;text-align:start;touch-action:none;transition:transform .45s cubic-bezier(.2,.8,.2,1);-webkit-tap-highlight-color:transparent}
.float{position:absolute;inset:0;perspective:1400px;animation:nbFloat 5s ease-in-out infinite}
.flipIn{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.3,.7,.2,1)}
.face{position:absolute;inset:0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 16px 40px rgba(17,24,39,.28),0 2px 6px rgba(17,24,39,.12);backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex}
.shineBox{position:absolute;inset:0;overflow:hidden;pointer-events:none}.shine{position:absolute;top:-20%;left:0;width:34%;height:140%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.35),rgba(255,255,255,0));animation:nbShine 6s ease-in-out infinite}
.pphoto{background:#E6EAF0;display:flex;align-items:center;justify-content:center;overflow:hidden}.pphoto img{width:100%;height:100%;object-fit:cover}
.fa{flex-direction:column}
.fa .hd{color:#fff;padding:16px 16px 14px;display:flex;flex-direction:column;align-items:center;gap:3px}
.fa .hd b{font-size:48px;font-weight:900;letter-spacing:14px;line-height:1.05;padding-left:14px}.fa .hd span{font-size:13px;font-weight:700;letter-spacing:4px}
.fa .md{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.fa .pphoto{width:148px;height:185px;margin-bottom:6px}
.fa .nm{font-size:30px;font-weight:900;letter-spacing:8px;padding-left:8px;line-height:1.2;max-width:310px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fa .num{font-size:19px;font-weight:800;letter-spacing:2px}
.fa .ft{border-top:5px solid;padding:8px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:4px}
.fa .ft img{width:86px;height:80px;object-fit:contain}.fa .ft div{font-size:21px;font-weight:900;line-height:1.25;text-align:center;letter-spacing:-.5px}
.fb .lt{flex:1;padding:20px 14px 14px 18px;display:flex;flex-direction:column;gap:3px;min-width:0}
.fb .lt>b{font-size:44px;font-weight:900;letter-spacing:8px;line-height:1.05}.fb .lt>span.e{font-size:12px;font-weight:700;letter-spacing:3px}
.fb .pf{width:152px;height:190px;margin-top:10px;border:2px solid;padding:4px;box-sizing:border-box}.fb .pphoto{width:100%;height:100%}
.fb .nm{margin-top:8px;font-size:26px;font-weight:900;letter-spacing:5px;border-bottom:2px solid;padding-bottom:2px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fb .num{margin-top:4px;font-size:20px;font-weight:800;border-bottom:2px solid;padding-bottom:2px}
.fb .k{font-size:11px;font-weight:600;letter-spacing:1px;color:#4B5563}
.fb .lt img{align-self:flex-end;width:104px;height:97px;object-fit:contain;margin-top:auto}
.fb .bandV{width:58px;flex:none;color:#fff;display:flex;align-items:center;justify-content:center}
.fb .bandV div{writing-mode:vertical-rl;text-orientation:sideways;white-space:nowrap;font-size:25px;font-weight:900}
.bk{flex-direction:column}
.bk .hd{color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.bk .hd b{font-size:18px;font-weight:900;letter-spacing:2px;white-space:nowrap}.bk .hd span{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk .bd{flex:1;padding:8px 16px 0;display:flex;flex-direction:column;gap:8px;min-height:0}
.bk dl{margin:0}.bk dl div{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid #E3E7ED}.bk dl div:last-child{border-bottom:0}
.bk dt{width:52px;flex:none;font-size:12px;color:#4B5563}.bk dd{margin:0;font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bk h4{margin:0 0 6px;font-size:13px;font-weight:800}
.cfees{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.cfee{border:1.5px dashed #B8C1CE;border-radius:10px;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#111827}
.cfee small{font-size:10px;font-weight:500;color:#4B5563}
.cfee.paid{border-style:solid;color:#fff}.cfee.paid small{color:#fff}
.valid{background:#F3F5F9;border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:1px}
.valid span{font-size:12px;color:#4B5563}.valid b{font-size:17px;font-weight:900}.valid small{font-size:11px;color:#4B5563}
.qrrow{flex:1;display:flex;align-items:center;justify-content:center;gap:16px;min-height:0}
.qrbox{width:115px;height:115px;flex:none;padding:5px;background:#fff;border:1px solid #E3E7ED;border-radius:8px;box-sizing:content-box}.qrbox svg{width:100%;height:100%;display:block}
.qrtx{display:flex;flex-direction:column;gap:6px}.qrtx b{font-size:16px;font-weight:900}.qrtx span{font-size:12px;line-height:1.5;color:#4B5563}
.bk .ft{border-top:1px solid #E3E7ED;padding:8px 12px 10px;display:flex;align-items:center;justify-content:center;gap:6px}
.bk .ft img{width:32px;height:30px;object-fit:contain}.bk .ft span{font-size:13px;font-weight:900;letter-spacing:-.4px;white-space:nowrap}
.ctrl{position:absolute;left:0;right:0;bottom:calc(14px + env(safe-area-inset-bottom));z-index:3;display:flex;flex-direction:column;align-items:center;gap:6px}
.ctrl div{display:flex;gap:10px}
.ctrl button{width:44px;height:44px;border-radius:22px;border:1px solid rgba(17,24,39,.12);background:rgba(255,255,255,.85);color:#374151;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.ctrl span{font-size:12px;font-weight:600;color:#6B7280}
@media(prefers-reduced-motion:reduce){.wm,.ring,.dot,.tw,.orbA,.orbB,.float,.shine{animation:none}.ring,.dot,.tw,.shine{display:none}.cardBtn,.flipIn{transition:none}}
