:root{color-scheme:light;--ink: #4d355c;--muted: #8d7396;--rose: #ff7aa2;--rose-deep: #f2558d;--sky: #6c93ff;--line: #f3d5e4;--card: rgba(255, 255, 255, .94);--shadow: 0 12px 30px rgba(196, 130, 160, .14);font-family:Pretendard,Apple SD Gothic Neo,Noto Sans KR,sans-serif;color:var(--ink);background:radial-gradient(900px 480px at 0% -10%,#ffe4f2 0%,transparent 55%),radial-gradient(800px 460px at 110% 0%,#e7e4ff 0%,transparent 52%),radial-gradient(700px 420px at 50% 120%,#fff1d6 0%,transparent 46%),#fff6fb}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{min-height:100dvh;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}button,a{font:inherit;color:inherit}button{cursor:pointer}img{-webkit-touch-callout:none}#app{min-height:100dvh;max-width:520px;margin:0 auto;position:relative}h1,h2,.display{font-family:Jua,Pretendard,sans-serif;font-weight:400;letter-spacing:-.02em;margin:0}h1{font-size:52px;line-height:1}h2{font-size:32px;line-height:1.2}p{margin:0}button:focus-visible,a:focus-visible{outline:3px solid #ff8ab4;outline-offset:2px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}.topbar.slim{padding:4px 12px 0}.top-actions{display:flex;gap:6px}.brand{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.04em}.vr{display:inline-grid;place-items:center;min-width:36px;height:28px;padding:0 8px;border-radius:999px;background:linear-gradient(180deg,#ff9bbb,#ff6f9b);color:#fff;font-family:Jua,sans-serif;letter-spacing:0}.vr.sm{min-width:32px;height:32px}.icon-btn,.text-btn{border:0;background:#fff;border-radius:999px;padding:8px 12px;box-shadow:0 6px 16px #be8caa1f;font-weight:700;font-size:13px}.text-btn{color:var(--rose-deep)}.title-screen,.page{min-height:100dvh;display:flex;flex-direction:column;gap:16px;padding:calc(16px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom))}.hero{margin-top:12px}.hero-faces{display:flex;margin-bottom:12px}.hero-faces .face{width:84px;height:84px}.hero-faces .face+.face{margin-left:-18px}.lede{color:var(--muted);line-height:1.5;font-size:15px}.stack{display:flex;flex-direction:column;gap:10px;margin-top:auto}.btn{border:0;border-radius:18px;padding:15px 16px;background:#fff;box-shadow:var(--shadow);font-weight:800;font-size:16px}.btn.primary{background:linear-gradient(180deg,#ff9bbb,#ff6f9b);color:#fff}.btn.ghost{background:transparent;box-shadow:none;color:var(--muted)}.btn.slim{margin:18px auto 8px}.btn.skill{display:flex;flex-direction:column;gap:2px;background:linear-gradient(180deg,#fff,#fff4f8);border:1.5px solid #ffd0e2}.btn.skill small,.char small{color:var(--muted);font-weight:600;font-size:12px}.btn:active{transform:translateY(1px)}.banner{display:flex;align-items:center;gap:10px;text-decoration:none;background:#fff;border-radius:18px;padding:10px 12px;box-shadow:var(--shadow)}.banner-copy{display:flex;flex-direction:column;flex:1}.banner-copy small{color:var(--muted)}.go{color:var(--rose-deep);font-weight:800;font-size:13px}.choice{text-align:left;border:0;background:#fff;border-radius:20px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px}.choice span{color:var(--muted);font-size:14px}.choice.selected,.char.selected{box-shadow:0 0 0 2px var(--rose),var(--shadow)}.select-screen{height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}.select-screen .topbar{padding:10px 16px 0}.scroll{flex:1;overflow:auto;padding:8px 16px 12px}.roster{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.char{border:0;background:var(--card);border-radius:18px;padding:10px 6px 12px;box-shadow:0 8px 18px #be8caa1a;display:flex;flex-direction:column;align-items:center;gap:4px}.char strong{font-size:13px}.char.blocked{opacity:.4}.char .face,.mystery{width:72px;height:72px}.mystery{display:grid;place-items:center;border-radius:50%;background:#ffe8f1;color:#e7a0bb;font-family:Jua,sans-serif;font-size:28px}.dock{padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#fff6fb 18%);display:flex;flex-direction:column;gap:10px}.dock.plain{background:transparent}.dock-copy{display:flex;gap:10px;align-items:center;background:#fff;border-radius:18px;padding:8px 10px;box-shadow:var(--shadow)}.dock-copy .face{width:48px;height:48px;flex:none}.dock-copy span{display:block;color:var(--muted);font-size:12px;line-height:1.4}.step{color:var(--muted);font-size:13px;font-weight:700}.face{position:relative;width:100%;height:100%;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 2px #fff,0 0 0 4px #ffd0e2;flex:none}.face.p1{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--rose)}.face.p2{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--sky)}.face.plain{box-shadow:0 0 0 2px #fff,0 0 0 3px #ffd5e6}.face img{position:absolute;width:263.1579%;height:263.1579%;left:-81.5789%;top:-14.4737%;max-width:none;pointer-events:none}.letter{display:grid;place-items:center;height:100%;font-family:Jua,sans-serif;font-size:22px}.game-screen{min-height:100dvh;display:flex;flex-direction:column;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.versus{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center;padding:4px 12px 0}.who{display:flex;align-items:center;gap:8px;min-width:0}.who.right{justify-content:flex-end;text-align:right}.who .face{width:42px;height:42px}.who strong,.who span{display:block}.who strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}.who span{color:var(--muted);font-size:11px}.who.on .face{box-shadow:0 0 0 2px #fff,0 0 0 4px #ffb020}.vs{font-family:Jua,sans-serif;color:#d7a8be;font-size:14px}.turn{text-align:center;font-weight:800;margin:6px 12px 0;min-height:22px}.board-area{flex:1;display:grid;place-items:center;padding:6px 10px 8px;min-height:0}.board{width:min(100%,max(180px,calc(100dvh - 248px)),640px);aspect-ratio:1;display:grid;grid-template-columns:repeat(13,1fr);background:#fffafc;border-radius:20px;padding:5px;box-shadow:inset 0 0 0 1px #ffd6e7,0 14px 34px #d696b429;touch-action:manipulation}.board.mini{width:min(100%,360px);margin:4px auto 8px}.cell{position:relative;aspect-ratio:1;padding:0;border:0;background-color:transparent;background-image:linear-gradient(var(--line),var(--line)),linear-gradient(var(--line),var(--line));background-size:1px calc(100% - 4px),calc(100% - 4px) 1px;background-position:center,center;background-repeat:no-repeat}.cell.hot{background-color:#ffd0e6;box-shadow:inset 0 0 0 2px #ff7aa2}.cell.hot .stone{transform:scale(1.06)}.cell.selected{background-color:#ffd0e4}.cell.win{background-color:#fff3b0}.stone{position:absolute;inset:8%;border-radius:50%;box-shadow:0 1px 2px #50283c29}.stone .face{width:100%;height:100%;box-shadow:0 0 0 1.5px var(--ring, var(--rose))}.stone.p1{--ring: var(--rose)}.stone.p2{--ring: var(--sky)}.stone.last{filter:drop-shadow(0 0 2px #ffb703)}.stone.ghost{opacity:.55}.seal{position:absolute;inset:16%;border-radius:50%;display:grid;place-items:center;background:repeating-linear-gradient(135deg,#ffe4f0,#ffe4f0 3px,#ffd0e3 3px 6px);color:#c43b74;font-size:10px;box-shadow:inset 0 0 0 1.5px #ff9ec2}.coach{display:flex;gap:8px;align-items:center;padding:0 12px 8px}.coach p{flex:1;font-size:14px;font-weight:700}.coach .btn{flex:none}.coach.idle{flex-direction:column;align-items:stretch}.used{text-align:center;color:var(--muted);font-weight:700}.gate{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;background:radial-gradient(500px 280px at 50% 20%,#ffe4f2,transparent 70%),#fff6fb}.gate .face{width:120px;height:120px}.toast{position:fixed;left:50%;top:46%;transform:translate(-50%);z-index:40;pointer-events:none;max-width:min(92vw,420px);background:#4d355c;color:#fff;border-radius:999px;padding:12px 16px;font-weight:700;font-size:14px;text-align:center;box-shadow:0 10px 24px #461e3c33}.result-screen{position:relative;overflow:hidden}.result-faces{display:flex;justify-content:center;align-items:center;gap:18px;text-align:center}.result-faces .face{width:72px;height:72px;margin:0 auto 6px}.result-faces span{font-family:Jua,sans-serif;color:#d7a8be}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:12%;width:8px;height:8px;border-radius:50%;background:var(--rose);animation:float .9s ease-out both}.confetti i:nth-child(3n){background:var(--sky)}.confetti i:nth-child(3n+1){background:#ffd166}.confetti i:nth-child(1){left:8%}.confetti i:nth-child(2){left:18%;animation-delay:40ms}.confetti i:nth-child(3){left:28%}.confetti i:nth-child(4){left:40%;animation-delay:80ms}.confetti i:nth-child(5){left:52%}.confetti i:nth-child(6){left:63%;animation-delay:30ms}.confetti i:nth-child(7){left:74%}.confetti i:nth-child(8){left:84%;animation-delay:70ms}.confetti i:nth-child(9){left:12%;top:22%}.confetti i:nth-child(10){left:48%;top:8%}.confetti i:nth-child(11){left:70%;top:18%}.confetti i:nth-child(12){left:90%;top:28%}@keyframes float{0%{transform:translateY(12px) scale(.6);opacity:0}to{transform:translateY(-28px) scale(1);opacity:1}}.meter{height:8px;border-radius:999px;background:#ffe3ef;margin-top:10px;overflow:hidden}.meter span{display:block;height:100%;background:linear-gradient(90deg,#ffb0cb,#ff7aa2)}.modal{position:fixed;inset:0;z-index:30;background:#4d355c47;display:grid;align-items:end;padding:16px}.sheet{background:#fff;border-radius:28px 28px 22px 22px;padding:22px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;max-height:min(86dvh,640px);overflow:auto}.sheet.detail{align-items:center;text-align:center}.sheet.detail .face{width:120px;height:120px}.help{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;line-height:1.45}.pill{background:#fff0f6;color:var(--rose-deep);border-radius:999px;padding:4px 10px;font-weight:800;font-size:13px}.count{font-family:Jua,sans-serif;font-size:22px}.row{display:flex;gap:8px}.row .btn{flex:1}@media(min-width:720px){.modal{align-items:center}.sheet{border-radius:28px;max-width:440px;margin:0 auto;width:100%}.roster{grid-template-columns:repeat(4,1fr)}}@media(max-width:360px){h1{font-size:44px}.who strong{max-width:78px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
