/* FUNZI 피아노 놀이터 - 화면 범위를 벗어나지 않는 모바일 우선 디자인 */
.pa-app{--ink:#413552;--violet:#8867bc;--pink:#ff8da8;--muted:#8f829a;--border:#f0e8f7;max-width:980px;margin:0 auto;padding:18px 16px 65px;color:var(--ink);font-family:system-ui,'Pretendard','Noto Sans KR',sans-serif;box-sizing:border-box}
.pa-app *{box-sizing:border-box}.pa-app [hidden]{display:none!important}.pa-app button{font:inherit;cursor:pointer}.pa-app a{text-decoration:none}.pa-topbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px;gap:10px}.pa-back,.pa-smallbtn{border:1px solid #eadff2;border-radius:999px;padding:9px 14px;color:#695681;background:#fff;font-weight:800;font-size:13px}.pa-pill{background:#ffedf4;color:#c0658c;border-radius:20px;padding:8px 12px;font-size:12px;font-weight:800}
.pa-hero{background:linear-gradient(145deg,#fff2f8 0%,#f5efff 62%,#e8f6ff 100%);border:1px solid #f5e5f2;border-radius:30px;padding:30px 28px;position:relative;overflow:hidden}.pa-hero-visual{font-size:72px;float:right;position:relative;filter:drop-shadow(0 7px 0 #e9d9f9)}.pa-hero-visual span{position:absolute;right:-12px;top:-12px;font-size:30px;color:#ed9a89}.pa-eyebrow{letter-spacing:2px;font-size:11px;font-weight:900;color:#b58bc4}.pa-hero h1{font-size:clamp(28px,5vw,43px);margin:8px 0 12px;letter-spacing:-1px}.pa-hero h1 span{color:var(--pink)}.pa-hero>p:not(.pa-eyebrow){line-height:1.75;font-size:15px;color:#776887}.pa-progress-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin-top:20px}.pa-progress-row span{color:#a68db1}.pa-progress{height:11px;background:#fff;border-radius:99px;overflow:hidden;margin-top:9px;border:1px solid #eee3f5}.pa-progress>div{height:100%;width:0;background:linear-gradient(90deg,#ff9bb5,#a38bef);border-radius:99px;transition:width .3s}.pa-subheading{font-size:21px;margin:29px 0 14px;letter-spacing:-.5px}.pa-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.pa-card{border:1px solid #ece6f2;text-align:left;border-radius:22px;background:#fff;padding:20px;min-width:0;box-shadow:0 6px 20px rgba(103,74,125,.06);transition:transform .2s}.pa-card:hover{transform:translateY(-3px)}.pa-card:focus-visible,.pa-key:focus-visible{outline:3px solid #b88dea;outline-offset:2px}.pa-card-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;background:#fff0f5;border-radius:18px;font-size:32px;margin-bottom:15px}.pa-card:nth-child(3n+2) .pa-card-icon{background:#eef0ff}.pa-card:nth-child(3n+3) .pa-card-icon{background:#e9f9f0}.pa-card h3{font-size:17px;margin:0 0 6px}.pa-card p{font-size:12px;color:#96899f;line-height:1.6;margin:0 0 14px;min-height:38px}.pa-card-tag{font-size:12px;color:#8865bf;font-weight:900}.pa-card.is-done .pa-card-tag{color:#37a584}.pa-home-note{text-align:center;font-size:12px;line-height:1.8;color:#93859d;margin-top:23px}
.pa-play{max-width:750px;margin:0 auto}.pa-play-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.pa-playtitle{display:flex;align-items:center;gap:7px;font-size:17px}.pa-playtitle span{font-size:23px}.pa-step{font-size:13px;color:#8a73a0;font-weight:900}.pa-progress-small{margin:15px 0 18px;background:#f0ebf6}.pa-question{position:relative;background:linear-gradient(135deg,#fdf3fb,#f0f1ff);border-radius:25px;padding:20px 18px 22px;text-align:center;min-height:190px;border:1px solid #f1e8f7}.pa-character{position:absolute;right:14px;top:6px;color:#ddc2ee;font-size:46px;opacity:.55}.pa-instruction{font-size:14px;font-weight:700;line-height:1.65;margin:0;color:#77658a}.pa-target{font-size:clamp(21px,5vw,31px);font-weight:900;min-height:44px;margin:12px auto;color:#5c4a79;word-break:keep-all}.pa-feedback{font-size:13px;font-weight:750;color:#887399;min-height:22px;margin-top:6px}.pa-feedback.ok{color:#21977c}.pa-feedback.no{color:#d3698c}.pa-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:16px 0}.pa-primary,.pa-outline{border:0;border-radius:15px;padding:14px 18px;min-height:48px;font-weight:900;font-size:14px}.pa-primary{background:linear-gradient(135deg,#a98aeb,#8965c9);color:#fff}.pa-outline{background:white;color:#735d91;border:1px solid #ddcfea}.pa-actions button{flex:1 1 155px;max-width:280px}.pa-actions button:disabled{opacity:.45;cursor:not-allowed}.pa-staff-wrap{margin:12px auto 0;max-width:300px;background:#fff;border-radius:13px;padding:9px}.pa-staff-wrap svg{width:100%;height:auto;display:block}.pa-piano-area{background:#fff;border:1px solid #eee8f6;border-radius:23px;padding:14px;box-shadow:0 9px 26px rgba(110,81,132,.07)}.pa-piano-title{display:flex;justify-content:space-between;gap:6px;font-size:13px;font-weight:900;margin:0 2px 12px}.pa-piano-title span+span{font-weight:500;font-size:11px;color:#a194ac}.pa-keyboard{position:relative;display:flex;width:100%;height:clamp(160px,34vw,240px);background:#f3eaf9;border-radius:15px;padding:5px;user-select:none;-webkit-user-select:none;touch-action:none}.pa-key{position:relative;touch-action:none;border:1px solid #d8cfe4;border-bottom:6px solid #d8cfe4;background:linear-gradient(#fff,#fff9fd);border-radius:0 0 10px 10px;min-width:0;flex:1;color:#84708f;display:flex;align-items:flex-end;justify-content:center;padding:0 0 12px;font-size:12px;font-weight:900}.pa-key:first-child{border-radius:7px 0 10px 10px}.pa-key:last-child{border-radius:0 7px 10px 10px}.pa-key.is-active{background:#f3c6e6;border-bottom-color:#d98dbf}.pa-black-key{position:absolute;top:5px;height:58%;width:7.5%;border:1px solid #231e32;border-bottom:5px solid #211a2f;border-radius:0 0 8px 8px;background:linear-gradient(#514563,#272132);color:#fff;z-index:2;padding:0 0 7px;font-size:9px;display:flex;align-items:flex-end;justify-content:center;touch-action:none}.pa-black-key.is-active{background:#a77bd6;border-bottom-color:#654593}.pa-bottom-tip{text-align:center;font-size:11px;line-height:1.6;color:#988ca0}.pa-finish{max-width:480px;margin:30px auto;text-align:center;padding:42px 24px;border-radius:28px;background:linear-gradient(140deg,#ffeff6,#eff0ff)}.pa-finish-art{font-size:60px}.pa-finish h2{font-size:30px;color:#67518c}.pa-finish p{line-height:1.8;color:#85738e}.pa-finish button{display:block;margin:12px auto;width:100%;max-width:300px}.pa-app .pa-rhythm-pulse{font-size:36px;color:#e18bb7}.pa-app .pa-rhythm-pulse.is-on{color:#8363c3;transform:scale(1.15)}
@media(max-width:720px){.pa-app{padding:12px 12px 35px}.pa-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pa-card{padding:13px;border-radius:17px}.pa-card-icon{width:48px;height:48px;font-size:27px;border-radius:14px;margin-bottom:10px}.pa-card h3{font-size:14px}.pa-card p{font-size:11px;min-height:44px}.pa-hero{padding:23px 19px;border-radius:22px}.pa-hero-visual{font-size:55px}.pa-subheading{font-size:18px}.pa-question{padding:16px 12px;min-height:166px}.pa-keyboard{height:clamp(170px,48vw,215px)}.pa-key{font-size:10px;padding-bottom:10px}.pa-playtitle{font-size:14px}.pa-play-header .pa-smallbtn{padding:8px 10px}.pa-piano-area{padding:9px}.pa-actions{gap:7px}.pa-actions button{font-size:13px;min-height:43px;padding:10px 12px;flex-basis:120px}}
@media(max-width:365px){.pa-app{padding-left:8px;padding-right:8px}.pa-pill{font-size:10px}.pa-hero-visual{font-size:44px}.pa-hero h1{font-size:26px}.pa-card{padding:10px}.pa-keyboard{height:160px}.pa-key{font-size:9px}.pa-question{min-height:155px}}
@media(prefers-reduced-motion:reduce){.pa-app *{transition:none!important}}
