/* 캡슐 뽑기 화면(G6) + 도감·교환소·기록(G8) — js/screens/gacha.js · js/gacha/*.js. docs/GACHA.md 6절
   움직임은 transform/opacity 만. 색은 구미 찹쌀떡(평면색 + 같은 계열 진한 선). 터치 대상 44px 이상. */
.gc-screen{justify-content:flex-start;align-items:center;gap:8px;padding:10px 10px 10px;overflow:hidden}
.gc-top{max-width:480px;gap:8px}
.gc-top h2{flex:1;text-align:left;font-size:22px;white-space:nowrap;margin:0}
.gc-wal{display:flex;gap:4px;flex:none}
.gc-wal span{background:rgba(255,255,255,.88);border-radius:999px;padding:4px 8px;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.gc-tabs{display:flex;gap:4px;background:rgba(255,255,255,.75);padding:4px;border-radius:999px;width:100%;max-width:480px;flex:none}
.gc-tabs button{flex:1;font-family:inherit;border:0;background:transparent;color:var(--sub);font-size:15px;min-height:44px;border-radius:999px;cursor:pointer}
.gc-tabs button.on{background:#FF6FA5;color:#fff}
.gc-pane{flex:1;min-height:0;width:100%;max-width:480px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:8px;-webkit-overflow-scrolling:touch;padding-bottom:6px}
.gc-pane-pull{overflow-y:auto}
.gc-empty{margin:auto;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;padding:20px}
.gc-empty p{margin:0;font-size:17px}

/* 버튼 */
.gc-btn{font-family:inherit;border:0;border-radius:18px;min-height:44px;padding:8px 12px;font-size:16px;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2;flex:1;min-width:0}
.gc-btn small{font-size:13px;opacity:.95}
.gc-btn.main{background:linear-gradient(180deg,#FF9CBD,#FF6FA5);box-shadow:0 4px 0 #E04482;min-height:54px}
.gc-btn.pri{background:linear-gradient(180deg,#FF9CBD,#FF6FA5);box-shadow:0 4px 0 #E04482}
.gc-btn.sub{background:linear-gradient(180deg,#9CD4FF,#5BB6FF);box-shadow:0 4px 0 #3F95DE}
.gc-btn.ghost{background:#fff;color:var(--pink);box-shadow:0 3px 0 #F3C9DD;flex:none;width:100%}
.gc-btn:active{transform:translateY(3px)}
.gc-btn.off{background:#D9D4E3;box-shadow:0 4px 0 #B9B2C8;color:#fff;opacity:.9}
.gc-btn:disabled{opacity:.55}
.gc-link{font-family:inherit;border:0;background:#fff;color:var(--pink);border-radius:999px;min-height:44px;min-width:44px;padding:0 14px;font-size:14px;cursor:pointer;box-shadow:0 3px 0 #F3C9DD;flex:none}
.gc-row{display:flex;gap:8px;width:100%}
.gc-acts{display:flex;flex-direction:column;gap:8px;flex:none}
.gc-info{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;flex:none}
.gc-info p{margin:0}.gc-line{flex:1;font-size:14px;line-height:1.35;text-align:left}
.gc-line.warn{color:#C2410C}.gc-line.good{color:#1F8A5B}
.gc-info .gc-line small{font-size:13px;color:var(--sub)}
.gc-note{margin:2px 0;font-size:13.5px;color:var(--sub);text-align:center}.gc-note.good{color:#1F8A5B}

/* 기계 고르기 */
.gc-mtabs{display:flex;gap:6px;flex:none}
.gc-mtabs button{flex:1;font-family:inherit;border:0;background:rgba(255,255,255,.8);color:var(--ink);font-size:15px;min-height:44px;border-radius:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 3px 0 #EBDDF3}
.gc-mtabs button.on{background:#fff;box-shadow:inset 0 0 0 3px #FF6FA5,0 3px 0 #F3C9DD;color:#E04482}
.gc-dot{width:12px;height:12px;border-radius:50%;display:inline-block}
.gc-d-jelly{background:#FF9CBD}.gc-d-spark{background:#DCCBFF}.gc-d-duo{background:#FFC06A}

/* 무대 */
.gc-stage{position:relative;flex:1 1 200px;min-height:170px;border-radius:24px;overflow:hidden;background:radial-gradient(circle at 50% 60%,#fff 0,#FFF2F8 55%,#F3E8FF 100%);box-shadow:inset 0 0 0 3px rgba(255,255,255,.8),0 5px 0 rgba(200,170,220,.45)}
.gc-mach{position:absolute;inset:6px 0 4px;display:flex;align-items:flex-end;justify-content:center;transition:opacity .35s}
.gc-mach svg{height:100%;width:auto;max-width:100%;display:block}
.gc-mach.gc-away{opacity:.16}
.gc-layer{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden auto;padding:4px}
.gc-skip{position:absolute;right:8px;bottom:8px;z-index:3;min-height:44px;min-width:44px;padding:0 16px;border-radius:999px;border:0;background:rgba(255,255,255,.92);color:var(--pink);font-family:inherit;font-size:15px;box-shadow:0 3px 0 #F3C9DD;cursor:pointer}
.gc-rim-rare:after,.gc-rim-legend:after{content:"";position:absolute;inset:0;border-radius:24px;pointer-events:none;animation:gc-rim 1.6s ease-out both}
.gc-rim-rare:after{box-shadow:inset 0 0 0 6px #B79BFF,inset 0 0 40px #B79BFF}
.gc-rim-legend:after{box-shadow:inset 0 0 0 6px #FFC845,inset 0 0 50px #FF9CBD}
@keyframes gc-rim{0%{opacity:0}30%{opacity:1}100%{opacity:.35}}

/* 손잡이·기계 움직임 */
.gc-spin .gm-handle,.gc-spin .gm-handle-l,.gc-spin .gm-handle-r{animation:gc-turn .8s linear infinite}
@keyframes gc-turn{to{transform:rotate(360deg)}}
.gm-body{transform-box:fill-box;transform-origin:50% 100%}
.gc-bump .gm-body{animation:gc-bump .38s ease-in-out infinite alternate}
@keyframes gc-bump{0%{transform:scale(1,1)}100%{transform:scale(1.03,.97)}}

/* 단발 */
.gc-one{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.gc-cap{display:inline-block;line-height:0;transform-origin:50% 80%;cursor:pointer}
.gc-cap svg{display:block}
.gc-drop{animation:gc-drop .5s cubic-bezier(.3,1.4,.5,1) both}
@keyframes gc-drop{0%{transform:translateY(90px) scale(.3);opacity:0}55%{opacity:1}100%{transform:none;opacity:1}}
.gc-bounce{animation:gc-bounce .7s ease-in-out infinite}
@keyframes gc-bounce{0%,100%{transform:scale(1,1)}30%{transform:scale(1.12,.88)}60%{transform:scale(.94,1.1) translateY(-8px)}}
.gc-bigshake{animation:gc-big .22s ease-in-out infinite alternate}
@keyframes gc-big{0%{transform:rotate(-12deg) scale(1.1)}100%{transform:rotate(12deg) scale(1.16)}}
.gc-pop{animation:gc-popo .45s ease-out both}
@keyframes gc-popo{0%{transform:scale(1)}50%{transform:scale(1.25)}100%{transform:scale(1.05)}}
.gc-ribbon{position:absolute;top:12%;left:50%;transform:translateX(-50%);background:#FF6FA5;color:#fff;font-style:normal;font-size:14px;padding:2px 14px;border-radius:999px;box-shadow:0 3px 0 #E04482;white-space:nowrap}
.gc-ring{position:absolute;left:50%;top:50%;width:110px;height:110px;margin:-55px 0 0 -55px;border-radius:50%;border:7px solid;border-color:#FF9CBD #FFE27A #A8E6C2 #A9C8FF;animation:gc-ring 1.1s ease-out both;pointer-events:none}
@keyframes gc-ring{0%{transform:scale(.4);opacity:1}100%{transform:scale(2.6);opacity:0}}
.gc-stars,.gc-hearts{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none}
.gc-stars i,.gc-hearts i{position:absolute;left:-7px;top:-7px;width:14px;height:14px;background:#FFE27A;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:gc-star .9s ease-out both}
.gc-hearts i{background:#FF8FB6;clip-path:path('M7 13C-4 6 1 -2 7 3C13 -2 18 6 7 13Z');animation:gc-heart 1.3s ease-out both}
.gc-stars i:nth-child(1){--x:-70px;--y:-50px}.gc-stars i:nth-child(2){--x:70px;--y:-46px}.gc-stars i:nth-child(3){--x:-52px;--y:40px}.gc-stars i:nth-child(4){--x:56px;--y:44px}.gc-stars i:nth-child(5){--x:0;--y:-76px}.gc-stars i:nth-child(6){--x:2px;--y:70px}
.gc-hearts i:nth-child(1){--x:-60px;--y:-70px}.gc-hearts i:nth-child(2){--x:55px;--y:-76px}.gc-hearts i:nth-child(3){--x:-30px;--y:-96px}.gc-hearts i:nth-child(4){--x:28px;--y:-90px}.gc-hearts i:nth-child(5){--x:-78px;--y:-30px}.gc-hearts i:nth-child(6){--x:80px;--y:-34px}.gc-hearts i:nth-child(7){--x:0;--y:-110px}.gc-hearts i:nth-child(8){--x:-8px;--y:-60px}
@keyframes gc-star{0%{transform:translate(0,0) scale(.3);opacity:0}30%{opacity:1}100%{transform:translate(var(--x),var(--y)) scale(1.1);opacity:0}}
@keyframes gc-heart{0%{transform:translate(0,0) scale(.3);opacity:0}25%{opacity:1}100%{transform:translate(var(--x),var(--y)) scale(1.2);opacity:0}}
.gc-low .gc-stars,.gc-low .gc-hearts,.gc-low .gc-ring{display:none}

/* 결과 카드 */
.gc-card{background:#fff;border-radius:22px;padding:10px 18px 12px;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 5px 0 rgba(200,170,220,.5);border:3px solid #E9DCF3;max-width:88%;text-align:center}
.gc-card.gc-g-uncommon{border-color:#A9C8FF}.gc-card.gc-g-rare{border-color:#B79BFF}.gc-card.gc-g-common{border-color:#A8E6C2}
.gc-card.gc-g-legend{border-color:#FFC845;box-shadow:0 0 0 3px #FFE9A8,0 5px 0 rgba(224,169,46,.5)}
.gc-in{animation:gc-cardin .5s cubic-bezier(.3,1.5,.5,1) both}
@keyframes gc-cardin{0%{transform:scale(.4);opacity:0}100%{transform:none;opacity:1}}
.gc-ico{line-height:0;min-height:60px;display:flex;align-items:flex-end;justify-content:center}
.gc-ico svg{max-width:110px;max-height:104px;width:auto;height:auto}
.gc-meta{display:flex;gap:6px;align-items:center}
.gc-nm{font-weight:400;font-size:20px}
.gc-ln{font-size:14px;color:var(--sub)}.gc-ln.is-new{color:#E04482;font-size:16px}.gc-ln.is-up{color:#1F8A5B}
.gc-pity{font-size:12.5px;background:#FF6FA5;color:#fff;border-radius:999px;padding:1px 8px}
.gc-gain{margin-top:6px;font-size:14px;background:rgba(255,255,255,.9);border-radius:999px;padding:3px 12px;color:var(--ink)}
.gc-gd{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12.5px;white-space:nowrap}
.gc-gd.gc-g-common{background:#DDF5E8;color:#1F6B45}.gc-gd.gc-g-uncommon{background:#DCE9FF;color:#2B4F99}.gc-gd.gc-g-rare{background:#EBE0FF;color:#5A39A8}.gc-gd.gc-g-legend{background:#FFE6A8;color:#7A4A00}

/* 10연 */
.gc-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;width:100%;padding:4px 6px}
.gc-cell{position:relative;aspect-ratio:.86;background:rgba(255,255,255,.85);border-radius:14px;border:2px solid #E9DCF3;display:flex;align-items:center;justify-content:center;min-width:0}
.gc-cell.gc-g-common{border-color:#A8E6C2}.gc-cell.gc-g-uncommon{border-color:#A9C8FF}.gc-cell.gc-g-rare{border-color:#B79BFF}.gc-cell.gc-g-legend{border-color:#FFC845;background:#FFF8DC}
.gc-drop-sm{display:inline-block;line-height:0;animation:gc-drop .45s cubic-bezier(.3,1.4,.5,1) both;animation-delay:var(--d,0ms)}
.gc-cell.is-opening{animation:gc-popo .35s ease-out both}
.gc-cell.is-open .gc-ci{animation:gc-cardin .35s cubic-bezier(.3,1.5,.5,1) both}
.gc-ci{line-height:0;display:flex;align-items:center;justify-content:center}.gc-ci svg{max-width:100%;max-height:48px}
.gc-bd{position:absolute;right:-3px;top:-6px;font-style:normal;font-size:11.5px;background:#fff;border-radius:999px;padding:0 6px;color:var(--sub);box-shadow:0 1px 0 #E9DCF3}
.gc-b-new{background:#FF6FA5;color:#fff}.gc-b-up{background:#2BB673;color:#fff}.gc-b-piece{background:#FFE27A;color:#7A4A00}
.gc-sum{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:center;align-items:center;font-size:13.5px;background:rgba(255,255,255,.92);border-radius:16px;padding:6px 12px;margin:4px 6px 0;animation:gc-cardin .4s both}
.gc-sum b{font-weight:400;color:#E04482}
.gc-done .gc-cell{animation:none}

/* 커플 연출 */
.gc-duo{position:absolute;inset:0;pointer-events:none}
.gc-dl,.gc-dr{position:absolute;bottom:34px;width:70px;line-height:0}
.gc-dl{left:8%}.gc-dr{right:8%}
.gc-dl svg,.gc-dr svg{width:100%;height:auto}
.gc-count{position:absolute;left:0;right:0;top:12%;text-align:center;font-weight:400;font-size:34px;color:#E04482}
.gc-count.pop{animation:gc-cardin .35s cubic-bezier(.3,1.6,.5,1) both}
.gc-hold{position:relative;overflow:hidden;min-height:54px}
.gc-hold .gc-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:rgba(255,255,255,.35);transition:width linear 0s}
.gc-hold.holding .gc-fill{width:100%;transition-property:width}
.gc-hold span{position:relative}

/* 움직임 줄이기 · 저사양 */
.gc-rm *,.gc-low .gc-bump .gm-body{animation-duration:.01s!important;animation-iteration-count:1!important}
.gc-low .gc-spin .gm-handle{animation:none}
@media (prefers-reduced-motion:reduce){.gc-spin .gm-handle,.gc-bump .gm-body{animation:none!important}}

/* 도감 */
.gc-albhead{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:16px;padding:8px 14px;font-size:14px}
.gc-albhead b{font-weight:400;font-size:20px;color:#E04482}
.gc-set{background:rgba(255,255,255,.88);border-radius:20px;padding:10px;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 0 #EBDDF3}
.gc-set.is-done{box-shadow:0 0 0 3px #FFC845,0 4px 0 #EBDDF3}
.gc-set header{display:flex;justify-content:space-between;align-items:center}
.gc-set h3{margin:0;font-weight:400;font-size:18px}.gc-set h3 small{font-size:12.5px;color:var(--sub)}
.gc-prog{font-size:14px;color:#E04482}
.gc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.gc-acard{background:#fff;border:2px solid #E9DCF3;border-radius:14px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;min-width:0;min-height:44px}
.gc-acard b{font-weight:400;font-size:13.5px;line-height:1.2;word-break:keep-all}
.gc-acard small{font-size:12px;color:var(--sub);line-height:1.25;word-break:keep-all}
.gc-acard.up1{border-color:#A9C8FF}.gc-acard.up2{border-color:#FFC845;background:#FFFBEA}
.gc-acard.off{background:#F6F1FA;border-style:dashed}
.gc-aico{line-height:0;min-height:44px;display:flex;align-items:flex-end;justify-content:center}.gc-aico svg{max-width:100%;max-height:58px}
.gc-aico.sil svg{filter:brightness(0);opacity:.2}
.gc-star{font-style:normal;color:#E0A92E;letter-spacing:1px}

/* 교환소 */
.gc-pbal{display:flex;justify-content:center;align-items:baseline;gap:8px;background:#fff;border-radius:16px;padding:8px}
.gc-pbal b{font-weight:400;font-size:26px;color:#E04482;font-variant-numeric:tabular-nums}
.gc-exlist{display:flex;flex-direction:column;gap:6px}
.gc-exrow{display:flex;align-items:center;gap:8px;background:#fff;border-radius:16px;padding:6px 8px;border:2px solid #EFE6F6}
.gc-exrow.gc-g-legend{border-color:#FFC845}.gc-exrow.gc-g-rare{border-color:#C9B4FF}
.gc-exrow.is-full{opacity:.7}
.gc-exico{flex:none;width:46px;height:46px;display:flex;align-items:flex-end;justify-content:center;line-height:0}.gc-exico svg{max-width:100%;max-height:46px}
.gc-exinfo{flex:1;min-width:0;display:flex;flex-direction:column;text-align:left}
.gc-exinfo b{font-weight:400;font-size:15px;word-break:keep-all}.gc-exinfo small{font-size:12.5px;color:var(--sub)}.gc-why{color:#C2410C!important}
.gc-btn.exb{flex:none;width:92px;min-height:44px;font-size:14px;border-radius:14px;padding:4px 6px}
.gc-btn.exb.arm{background:#2BB673;box-shadow:0 4px 0 #1F8A5B}
.gc-exseg{margin:6px 0 4px}.gc-exseg button{font-size:14.5px}

/* 기록 */
.gc-hist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.gc-hrow{background:#fff;border-radius:14px;padding:8px 10px}
.gc-hh{display:flex;justify-content:space-between;gap:8px;align-items:baseline;flex-wrap:wrap}
.gc-hh b{font-weight:400;font-size:15px}.gc-hh small{font-size:12.5px;color:var(--sub)}
.gc-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.gc-chip{font-size:12.5px;border-radius:999px;padding:2px 8px;border:1.5px solid #E9DCF3;background:#FAF6FD}
.gc-chip i{font-style:normal;color:#E04482}
.gc-chip.gc-g-common{border-color:#A8E6C2}.gc-chip.gc-g-uncommon{border-color:#A9C8FF}.gc-chip.gc-g-rare{border-color:#B79BFF;background:#F3ECFF}.gc-chip.gc-g-legend{border-color:#FFC845;background:#FFF3C9}
