/* 11-24 h_ 결과 카드 모양(틀 · 칸 · 등급 연출) — 게임(proto3.html)과 메인 도감(index.html)이 같이 씀. 예전엔 proto3 안에 있었음 */
.fcw{position:absolute;left:0;top:0;width:300px;height:456px;transform-origin:0 0;transform:scale(var(--k,1))}
.fcw .cwin{position:absolute;border-radius:10px}
.fcw .crib,.fcw .cnm,.fcw .cemb,.fcw .csig,.fcw .ctag{position:absolute;display:flex;align-items:center;justify-content:center;font-family:var(--disp);white-space:nowrap}
.fcw .crib{font-size:30px;color:#fff;-webkit-text-stroke:5px var(--ink);paint-order:stroke fill}
.fcw .cnm{font-size:24px;color:var(--ink)}
.fcw.g4 .cnm,.fcw.g5 .cnm{color:#2a1a08}
.fcw .cseg i{position:absolute;border-radius:3px;box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.45)}
.fcw .cemb{font-size:34px;color:#fff;-webkit-text-stroke:6px var(--ink);paint-order:stroke fill}
.fcw .csig{font-size:19px;color:var(--ink);transform:rotate(-3deg)}
.fcw .ctag{font-size:15px;letter-spacing:-1px;color:var(--ink)}
/* 11-20 카드 정의(그림 · 연출만, docs/카드정의_그림연출_20261120.md 1절) — 등급이 오를수록 세지는 연출. 틀 그림이 바뀌어도 그대로 덮어 씀
   1도 멈춤 · 2도 틀 안쪽을 도는 시안 빛 + 모서리 스파크 · 3도 핑크/옐로 뒤 빛 + 튀어나가는 별 · 금박 머핀이 창 위로 + 프리즘 빛 띠 + 짧은 글리치 · 홀로 오로라 빛 + 깨진 조각이 흩어짐 */
@property --ga{syntax:'<angle>';inherits:false;initial-value:0deg}
.fcw .gfx{position:absolute;inset:0;pointer-events:none;z-index:4}
.gfx .ring{position:absolute;inset:1.6%;border-radius:4.5%;padding:7px;background:conic-gradient(from var(--ga),transparent 0 52%,var(--rc,#5ff6ff) 76%,#fff 84%,var(--rc,#5ff6ff) 89%,transparent 97%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:gRing2 2.4s linear infinite;filter:drop-shadow(0 0 8px var(--rc,#5ff6ff)) drop-shadow(0 0 3px #fff)}
@keyframes gRing2{to{--ga:360deg}}
.gfx .sp{position:absolute;width:34px;height:34px;margin:-17px;background:radial-gradient(circle,#fff 0 12%,transparent 13%),conic-gradient(from 45deg,transparent 0 10%,#fff27a 12% 13%,transparent 15% 35%,#fff27a 37% 38%,transparent 40% 60%,#fff27a 62% 63%,transparent 65% 85%,#fff27a 87% 88%,transparent 90%);opacity:0;animation:gSp 1.7s ease-out infinite}
@keyframes gSp{0%,62%{opacity:0;transform:scale(.3) rotate(0)}70%{opacity:1;transform:scale(1.15) rotate(25deg)}100%{opacity:0;transform:scale(.6) rotate(60deg)}}
.fcw.g3{animation:gGlow3 1.6s ease-in-out infinite alternate}
@keyframes gGlow3{0%{filter:drop-shadow(0 0 10px rgba(255,60,170,.75))}100%{filter:drop-shadow(0 0 22px rgba(255,230,40,.85))}}
.gfx .st{position:absolute;width:40px;height:40px;margin:-20px;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);background:var(--sc,#ffe14a);opacity:0;animation:gSt 2.2s cubic-bezier(.2,.8,.3,1) infinite}
@keyframes gSt{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1) rotate(160deg)}}
.fcw.g4 .cwin{overflow:visible!important}
.fcw.g4 .cwin img{transform:translateY(-7%) scale(1.12);filter:drop-shadow(0 10px 10px rgba(0,0,0,.45))}
.gfx .prism{position:absolute;inset:0;border-radius:4.5%;overflow:hidden}
.gfx .prism::before{content:'';position:absolute;top:-20%;bottom:-20%;width:42%;left:-60%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,80,200,.35),rgba(255,240,90,.45),rgba(90,255,220,.4),rgba(120,140,255,.35),transparent);mix-blend-mode:screen;animation:gPrism 3.2s ease-in-out infinite}
@keyframes gPrism{0%,20%{left:-60%}75%,100%{left:125%}}
.fcw.g4 > img:first-child{animation:gGlitch 4.6s steps(1) infinite}
@keyframes gGlitch{0%,90%,100%{transform:none;filter:none}91%{transform:translateX(5px);filter:hue-rotate(60deg) saturate(1.6)}92.5%{transform:translateX(-4px);filter:hue-rotate(-40deg) brightness(1.15)}94%{transform:none;filter:none}}   /* 11-21 틀을 잘라 내면 카드가 사라진 듯 보여 흔들림 · 색만 */
.fcw.g5{animation:gAur 3s linear infinite}
@keyframes gAur{0%{filter:drop-shadow(0 0 16px rgba(120,255,240,.85))}33%{filter:drop-shadow(0 0 22px rgba(255,110,230,.85))}66%{filter:drop-shadow(0 0 18px rgba(160,255,120,.85))}100%{filter:drop-shadow(0 0 16px rgba(120,255,240,.85))}}
.gfx .sh{position:absolute;width:var(--w,40px);height:var(--h,26px);margin:calc(var(--h,26px) / -2) calc(var(--w,40px) / -2);clip-path:polygon(0 30%,62% 0,100% 58%,34% 100%);background:linear-gradient(135deg,#fff,#9ff 30%,#f8c 60%,#ffe 100%);box-shadow:inset 0 0 0 2px rgba(0,0,0,.4);opacity:0;animation:gSh 2.8s cubic-bezier(.15,.7,.3,1) infinite}
@keyframes gSh{0%{opacity:0;transform:translate(0,0) rotate(0)}10%{opacity:1}75%{opacity:.9}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r,200deg))}}
.gfx .em{position:absolute;width:7px;height:7px;margin:-3px;border-radius:50%;background:#ffb347;box-shadow:0 0 8px 2px #ff7a1e;opacity:0;animation:gSh 2.1s ease-out infinite}
.fcw .ctag.wide{border-radius:6px;background:#f3ead6;box-shadow:inset 0 0 0 2px rgba(0,0,0,.35);font-size:16px;letter-spacing:-.5px}
.fcw .ckind{position:absolute;z-index:6;left:4%;top:13%;padding:2px 9px 1px;border-radius:6px;transform:rotate(-6deg);font-family:var(--disp);font-size:calc(17px * var(--k,1));white-space:nowrap;box-shadow:0 0 0 2px var(--ink)}
.fcw .ckind.sweet{background:#ff7ab8;color:#fff}.fcw .ckind.deco{background:#fff;color:#c4206e;box-shadow:0 0 0 2px var(--ink),0 0 12px #ffd6ea}

/* 11-24 h_ 사람 조합 이름 띠 — 그림 오른쪽 위에 기울여(종류 띠 .ckind는 왼쪽 위) */
.fcw .cpc{position:absolute;z-index:6;right:4%;top:13%;max-width:62%;padding:2px 9px 1px;border-radius:6px;transform:rotate(5deg);font-family:var(--disp);font-size:calc(17px * var(--k,1));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#ffd23a;color:#16141a;box-shadow:0 0 0 2px var(--ink,#16141a),0 0 10px rgba(255,210,58,.6)}
