*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;background:#0c0b16;overscroll-behavior:none;touch-action:manipulation;position:fixed;top:0;right:0;bottom:0;left:0}body{font-family:Malgun Gothic,Apple SD Gothic Neo,Noto Sans KR,sans-serif;color:#fff;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button{font-family:inherit;color:inherit;cursor:pointer;border:0;touch-action:manipulation}.emoji{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}[hidden]{display:none!important}#app{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:14px;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#stage-wrap{position:relative;flex:none}#stage{position:absolute;left:0;top:0;width:720px;height:1280px;transform-origin:0 0;overflow:hidden;background:#171a2b}#battle{display:block;width:720px;height:700px}#loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#171a2b;font-size:38px;font-weight:900;z-index:50}.btn{font-size:30px;font-weight:900;padding:0 36px;height:104px;border-radius:24px;background:#343a66;border:4px solid #0e0f1c;box-shadow:0 7px #0e0f1c}.btn.primary{background:linear-gradient(#ffe27a,#ff9d2e);color:#2a1608}.btn:active{transform:translateY(5px);box-shadow:0 2px #0e0f1c}#panel{position:absolute;left:0;top:700px;width:720px;height:580px;padding:16px;background:linear-gradient(#2b2f4d,#1a1c30);border-top:5px solid #0e0f1c;display:flex;flex-direction:column;gap:14px}.stats{display:flex;gap:8px}.stat{flex:1;background:#14162a;border-radius:14px;padding:8px 4px;text-align:center;font-weight:900;font-size:26px;border:2px solid #0b0c18;white-space:nowrap}.stat.wide{flex:1.5}.stat small{display:block;font-size:18px;font-weight:700;color:#9aa0c8}.slots{display:flex;gap:12px;flex:1}.slot{flex:1;background:linear-gradient(#3a4070,#2b2f55);border:4px solid #0e0f1c;border-radius:22px;padding:14px 8px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:inset 0 2px #ffffff1f,0 6px #0e0f1c;position:relative}.slot:active{transform:translateY(3px)}.slot.stunned{filter:grayscale(.8) brightness(.8)}.slot-icon{width:160px;height:160px;border-radius:28px;position:relative;overflow:hidden;flex:none;background:radial-gradient(circle at 35% 25%,#ffe9a6,#f0a63a 70%);border:4px solid #0e0f1c;font-size:90px;line-height:150px;text-align:center;box-shadow:inset 0 -9px #0000002e}.slot-icon.empty{background:#1b1d33;box-shadow:inset 0 4px 10px #00000080}.cd-fill{position:absolute;left:0;top:0;width:100%;background:#0e0c22b8;border-bottom:4px solid rgba(255,255,255,.75);pointer-events:none}.cd-text{position:absolute;right:8px;bottom:4px;font-size:30px;line-height:36px;font-weight:900;text-shadow:0 0 4px #000,0 2px 0 #000,2px 0 0 #000,-2px 0 0 #000,0 -2px 0 #000;pointer-events:none}.slot.fire .slot-icon{animation:fire .34s cubic-bezier(.2,1.6,.4,1)}.slot.fire{animation:glow .34s ease-out}@keyframes fire{0%{transform:scale(1.32) rotate(-6deg);filter:brightness(2.4)}to{transform:scale(1);filter:brightness(1)}}@keyframes glow{0%{box-shadow:0 0 0 6px #fff7c2,0 0 40px 14px #ffb62e}to{box-shadow:inset 0 2px #ffffff1f,0 6px #0e0f1c}}.slot.cdr .slot-icon{animation:cdr .3s ease-out}@keyframes cdr{0%{transform:scale(1.12);box-shadow:0 0 0 5px #7de3ff,0 0 26px 8px #37b8ff}to{transform:scale(1)}}.slot.gain{animation:gain .7s ease-out}@keyframes gain{0%{transform:scale(1.1);box-shadow:0 0 0 7px #d9ff6a,0 0 46px 16px #9dff4a}to{transform:scale(1)}}.cdr-pop{position:absolute;top:10px;left:50%;font-weight:900;font-size:30px;color:#7de3ff;pointer-events:none;text-shadow:0 2px 0 #000,2px 0 0 #000,-2px 0 0 #000,0 -2px 0 #000;animation:cdrpop .7s ease-out forwards;z-index:3}@keyframes cdrpop{0%{transform:translate(-50%,10px) scale(1.5);opacity:1}to{transform:translate(-50%,-40px) scale(1);opacity:0}}.slot-name{font-size:26px;font-weight:900;white-space:nowrap}.slot-name.empty{color:#7d83ad}.slot-info{font-size:20px;font-weight:700;color:#b9c0ee;text-align:center;line-height:26px;min-height:52px;word-break:keep-all}.slot-info b{color:#ffd76a}.sockets{display:flex;gap:8px;margin-top:auto}.socket{width:60px;height:60px;border-radius:50%;background:#171930;border:3px solid #0e0f1c;font-size:30px;line-height:54px;text-align:center;box-shadow:inset 0 3px 6px #00000080}.socket.filled{background:radial-gradient(circle at 35% 25%,#9be8ff,#3a7de0 75%);box-shadow:inset 0 -4px #0003}#sheet-layer{position:absolute;left:0;top:0;width:720px;height:1280px;background:#08081473;z-index:20;display:flex;align-items:flex-end}.sheet{width:100%;max-height:1000px;background:#262a48;border-top:5px solid #0e0f1c;border-radius:32px 32px 0 0;padding:22px 18px 26px;display:flex;flex-direction:column;gap:14px;animation:sheet .18s ease-out}@keyframes sheet{0%{transform:translateY(80px);opacity:0}}.sheet-head{display:flex;align-items:center;gap:14px;min-height:76px}.sheet-head .titles{flex:1;min-width:0}.sheet-title{font-size:32px;font-weight:900}.sheet-sub{font-size:22px;font-weight:700;color:#b9c0ee}.sheet-head .icon{font-size:54px;flex:none}.pill{flex:none;height:76px;padding:0 26px;border-radius:20px;background:#14162a;font-size:24px;font-weight:800;border:3px solid #0e0f1c}.pill:active,.card:active,.pick:active{transform:scale(.97)}.cards{display:flex;flex-direction:column;gap:12px}.card{display:flex;align-items:center;gap:18px;text-align:left;background:linear-gradient(#3d4478,#313763);border:4px solid #0e0f1c;border-radius:22px;padding:14px 18px;min-height:124px;box-shadow:0 6px #0e0f1c}.card-icon{flex:none;width:92px;height:92px;border-radius:22px;font-size:54px;line-height:86px;text-align:center;background:radial-gradient(circle at 35% 25%,#ffe9a6,#f0a63a 70%);border:3px solid #0e0f1c}.card-icon.gem{border-radius:50%;background:radial-gradient(circle at 35% 25%,#9be8ff,#3a7de0 75%)}.card-body{display:flex;flex-direction:column;gap:4px;min-width:0}.card-body b{font-size:28px;font-weight:900}.card-body span{font-size:22px;font-weight:600;color:#d3d8fb;line-height:1.3}.card.static{box-shadow:none;background:#1d2040;min-height:0}.card.static:active{transform:none}.card.small{min-height:0;padding:10px 14px;gap:14px}.card.small .card-icon{width:64px;height:64px;font-size:36px;line-height:58px;border-radius:16px}.card.small .card-icon.gem{border-radius:50%}.card.small .card-body b{font-size:24px}.card.small .card-body span{font-size:20px}.ghost{background:none;font-size:24px;font-weight:800;color:#9aa0c8;height:80px;text-decoration:underline}.note{font-size:22px;font-weight:700;color:#b9c0ee;text-align:center;padding:6px 0}.picks{display:flex;gap:12px}.pick{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;background:linear-gradient(#3a4070,#2b2f55);border:4px solid #0e0f1c;border-radius:22px;box-shadow:0 6px #0e0f1c}.pick .slot-icon{width:120px;height:120px;font-size:66px;line-height:110px;border-radius:24px}.pick .name{font-size:24px;font-weight:900;white-space:nowrap}.pick .socket{width:46px;height:46px;font-size:22px;line-height:40px}.pick .sockets{margin-top:0;gap:6px}.pick .label{font-size:22px;font-weight:900;padding:8px 14px;border-radius:14px;background:#d9ff6a;color:#1c2606;white-space:nowrap;margin-top:4px}.pick.swap .label{background:#ffb347;color:#2a1608}.pick:disabled{opacity:.4;box-shadow:none}.pick:disabled .label{background:#555a85;color:#d3d8fb}#defeat{position:absolute;left:0;top:0;width:720px;height:1280px;background:#14040ad1;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:18px;padding:0 40px 120px;animation:sheet .3s ease-out}.defeat-title{font-size:120px;font-weight:900;color:#ff5d6c;text-shadow:0 8px 0 #000;margin-bottom:auto;margin-top:300px}.defeat-sub{font-size:30px;font-weight:800;margin-bottom:30px}.defeat-actions{display:flex;flex-direction:column;gap:18px;width:100%}#select{position:absolute;left:0;top:0;width:720px;height:1280px;z-index:40;padding:60px 24px 40px;background:linear-gradient(#1012288c,#101228eb 55%),url(../assets/props/bg0.png) center top / cover,#171a2b;display:flex;flex-direction:column;gap:20px}.logo{text-align:center;font-size:78px;font-weight:900;letter-spacing:4px;color:#ffe27a;text-shadow:0 7px 0 #0e0f1c,0 0 30px rgba(255,180,60,.5)}.logo small{display:block;font-size:26px;letter-spacing:0;color:#fff;text-shadow:0 3px 0 #0e0f1c;margin-top:6px}.heroes{display:flex;gap:12px;margin-top:10px}.hero-card{flex:1;background:linear-gradient(#3a4070,#2b2f55);border:4px solid #0e0f1c;border-radius:24px;padding:8px 4px 14px;display:flex;flex-direction:column;align-items:center;box-shadow:0 6px #0e0f1c;transition:transform .12s}.hero-card canvas{width:200px;height:220px;display:block}.hero-card .name{font-size:32px;font-weight:900}.hero-card .traits{font-size:20px;font-weight:700;color:#b9c0ee}.hero-card.selected{background:linear-gradient(#6a5a2c,#4a3d1c);border-color:#ffe27a;transform:translateY(-12px) scale(1.04);box-shadow:0 0 0 4px #ffe27a,0 0 40px 6px #ffc85073}.detail{flex:1;background:#14162ae0;border:4px solid #0e0f1c;border-radius:24px;padding:20px 22px;display:flex;flex-direction:column;gap:14px;min-height:0}.detail .desc{font-size:26px;font-weight:700;line-height:1.35}.detail h5{margin:4px 0 -6px;font-size:20px;font-weight:800;color:#9aa0c8;letter-spacing:1px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{background:#2f3460;border-radius:14px;padding:8px 14px;font-size:22px;font-weight:800;white-space:nowrap}.chip.own{background:#5b4a1c;color:#ffe9a6}.chip small{font-size:18px;color:#b9c0ee;font-weight:700}#start{width:100%;height:120px;font-size:40px;flex:none}#cheats{width:250px;flex:none;max-height:96%;overflow-y:auto;background:#1a1c30;border:2px solid #33385e;border-radius:12px;padding:10px;font-size:13px;display:flex;flex-direction:column;gap:8px;touch-action:pan-y;overscroll-behavior:contain}#cheats small{color:#7d83ad;font-weight:400}#cheats h4{margin:4px 0 0;font-size:12px;color:#9aa0c8;letter-spacing:1px}#cheats .row{display:flex;flex-wrap:wrap;gap:5px}#cheats button{flex:1 1 auto;background:#2f3460;border-radius:7px;padding:8px;font-size:13px;font-weight:700;white-space:nowrap}#cheats button:hover{background:#3d4480}#cheats button.on{background:#d99a1c;color:#1a1206}#cheats .meter{background:#111224;border-radius:7px;padding:7px 9px;font-weight:700;line-height:1.6}#cheats .meter b{color:#ffd76a}#cheat-fab{position:fixed;right:calc(8px + env(safe-area-inset-right));top:calc(8px + env(safe-area-inset-top));z-index:110;width:44px;height:44px;border-radius:50%;background:#1a1c30d9;border:2px solid #33385e;font-size:20px}@media (max-width: 760px){#cheats{position:fixed;z-index:100;left:8px;right:8px;top:calc(60px + env(safe-area-inset-top));bottom:8px;width:auto;max-height:none;font-size:15px;background:#1a1c30f5}#cheats button{padding:12px 10px;font-size:15px}}.npc{display:flex;align-items:center;gap:16px}.npc .titles{flex:1;min-width:0}.npc-face{flex:none;width:104px;height:104px;border-radius:50%;font-size:60px;line-height:96px;text-align:center;background:radial-gradient(circle at 35% 25%,color-mix(in srgb,var(--c) 55%,#fff),var(--c) 75%);border:4px solid #0e0f1c;box-shadow:0 5px #0e0f1c}.speech{position:relative;background:#f4f1e6;color:#2a2236;border:4px solid #0e0f1c;border-radius:22px;padding:18px 22px;font-size:27px;font-weight:800;line-height:1.4;word-break:keep-all;margin-top:8px;animation:speech .28s cubic-bezier(.2,1.5,.4,1)}.speech:before{content:"";position:absolute;left:40px;top:-20px;border:14px solid transparent;border-bottom-color:#0e0f1c}.speech:after{content:"";position:absolute;left:44px;top:-12px;border:10px solid transparent;border-bottom-color:#f4f1e6}@keyframes speech{0%{transform:scale(.85);opacity:0}}.sheet .btn{width:100%}.result.win .npc-face{animation:npcwin .6s ease-out}@keyframes npcwin{30%{transform:translateY(-14px) rotate(-8deg) scale(1.1)}}.gains{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.gain-chip{background:#14162a;border:3px solid #ffd23a;border-radius:18px;padding:12px 20px;font-size:26px;font-weight:800;animation:chip .4s cubic-bezier(.2,1.7,.4,1) both}.gain-chip b{color:#ffe14a}.gain-chip.bad{border-color:#ff5a5a}.gain-chip.bad b{color:#ff8a8a}@keyframes chip{0%{transform:scale(.3);opacity:0}}.purse{flex:none;font-size:30px;font-weight:900;color:#ffe14a;background:#14162a;border-radius:18px;padding:10px 18px;border:3px solid #0e0f1c}.purse.spent{animation:spent .4s ease-out}@keyframes spent{0%{transform:scale(1.3);color:#fff}}.shop-item .card-body{flex:1}.price{flex:none;font-size:26px;font-weight:900;color:#ffe14a;background:#14162a;border-radius:16px;padding:10px 14px}.shop-item:disabled{filter:grayscale(.85) brightness(.7);box-shadow:none}.shop-item.sold .price{color:#9aa0c8}.shop-item.gain{animation:gain .7s ease-out}.stat.bump{animation:bump .45s cubic-bezier(.2,1.6,.4,1)}@keyframes bump{0%{transform:scale(1.35);background:#6a5a10}}#minigame{position:absolute;left:0;top:0;width:720px;height:1280px;z-index:25;touch-action:none;transition:opacity .3s ease-out}
