/* ui.css — 버튼·칩·탭 한 벌 (설계_인트로영상·날개·버튼 C, 2026-11-15).
   각 페이지 CSS 맨 뒤에 한 줄로 읽는다. 누르는 것은 모두 44px 이상.
   움직이는 속성은 translate · scale 낱 속성만 (transform 으로 기울인 다른 것과 부딪히지 않게). */
:root{
  --btn-top:#D43660; --btn-bot:#C22A53; --btn-top-h:#DB456D; --btn-bot-h:#C93260;
  --btn-glow:rgba(255,122,147,.42); --btn-line:#E7CFC3; --btn-ink:#2F2522;
  --ring:#2E6BD8; --ui-ease:cubic-bezier(.16,1,.3,1);
}

/* 바탕 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border:0;border-radius:999px;
  font-weight:700;font-size:calc(15.5px * var(--fs,1));line-height:1.2;letter-spacing:-.015em;text-decoration:none;white-space:nowrap;cursor:pointer;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:translate .18s var(--ui-ease),scale .18s var(--ui-ease),box-shadow .2s,background-color .2s}
.btn:hover{translate:0 -1px;transform:none}
.btn:active{translate:0 1px;scale:.985;transform:none}
.btn.big{min-height:56px;padding:0 26px;font-size:calc(17px * var(--fs,1))}
.btn.sm{min-height:44px;padding:0 16px;font-size:calc(14.5px * var(--fs,1))}
.btn svg,.btn .ico{flex:0 0 auto;width:1.2em;height:1.2em}
.btn.social .sicon{width:22px;height:22px}
.btn>span[aria-hidden]{display:inline-block;transition:translate .2s var(--ui-ease)}
.btn:hover>span[aria-hidden]{translate:2px 0}

/* 초점: 버튼 모양을 그대로 따라가는 테두리 (모서리 모양을 바꾸지 않음) */
.btn:focus-visible,.chip:focus-visible,.mh-chip:focus-visible,.mn-big:focus-visible,.bigbtn:focus-visible,.back:focus-visible,.intro-skip:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
.btn:focus-visible{border-radius:999px}
.btn.social:focus-visible{border-radius:14px}
.chip:focus-visible,.mh-chip:focus-visible,.mn-big:focus-visible,.bigbtn:focus-visible,.intro-skip:focus-visible{border-radius:999px}

/* 채운 버튼: 위는 밝고 아래는 진한 분홍 + 윗빛 한 줄 + 분홍 빛 그림자 (흰 글자 대비 4.67:1 이상) */
.btn.primary{color:#fff;background:linear-gradient(180deg,var(--btn-top),var(--btn-bot));text-shadow:0 1px 0 rgba(120,20,50,.25);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -2px 0 rgba(120,20,50,.18),0 1px 2px rgba(150,40,70,.25),0 10px 24px var(--btn-glow)}
.btn.primary:hover{background:linear-gradient(180deg,var(--btn-top-h),var(--btn-bot-h));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 0 -2px 0 rgba(120,20,50,.18),0 2px 4px rgba(150,40,70,.25),0 16px 32px var(--btn-glow)}
.btn.primary:active{box-shadow:inset 0 2px 5px rgba(120,20,50,.32),0 1px 2px rgba(150,40,70,.2),0 4px 10px var(--btn-glow)}

/* 테두리 버튼: 흰 유리 + 얇은 테두리 + 옅은 그림자 */
.btn.line{color:var(--btn-ink);background:linear-gradient(180deg,#fff,#FFF9F5);
  box-shadow:inset 0 0 0 1.5px var(--btn-line),inset 0 1px 0 #fff,0 1px 2px rgba(90,50,40,.06),0 6px 16px rgba(90,50,40,.08)}
.btn.line:hover{box-shadow:inset 0 0 0 2px #E8607D,inset 0 1px 0 #fff,0 2px 4px rgba(90,50,40,.06),0 10px 22px rgba(232,96,125,.16)}
.btn.line:active{background:#FFF1EC;box-shadow:inset 0 0 0 2px #E8607D,inset 0 2px 4px rgba(90,50,40,.1)}

/* 어두운 버튼(목소리 고르기 등): 새까맣지 않은 코코아색 */
.btn.dark,.btn.voice{color:#fff;background:linear-gradient(180deg,#4A3A35,#33282A);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 20px rgba(47,37,34,.22)}
.btn.voice.on{background:linear-gradient(180deg,#6A5650,#4E3F3A)}
.btn.dark:active,.btn.voice:active{box-shadow:inset 0 2px 5px rgba(0,0,0,.35)}
.btn.danger{color:#fff;background:linear-gradient(180deg,#C03A57,#A82B46);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 18px rgba(168,43,70,.22)}

/* 아직 못 누름: 글자가 읽히는 회분홍 (흐리게 하지 않음) */
.btn[disabled],.btn[aria-disabled=true],.btn.primary[disabled],.btn.dark[disabled]{background:#F1E3DE;color:#7E6B64;text-shadow:none;box-shadow:inset 0 0 0 1.5px #E6D3CB;cursor:not-allowed;translate:none;scale:none;opacity:1}

/* 카카오 · 구글 · 애플 · 토스: 색은 각 회사 규칙 그대로, 깊이와 눌림만 */
.btn.social{border-radius:14px;gap:10px;min-height:56px;font-size:17px}
.btn.social.kakao,.btn.soc-k{background:#FEE500;color:rgba(0,0,0,.85);border:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 0 rgba(150,120,0,.14),0 8px 18px rgba(200,170,0,.2)}
.btn.social.kakao:active,.btn.soc-k:active{background:#F2DA00;box-shadow:inset 0 2px 5px rgba(120,100,0,.28)}
.btn.social.google,.btn.soc-g{background:#fff;color:#1F1F1F;border:0;box-shadow:inset 0 0 0 1.5px #D5D8DC,0 1px 2px rgba(0,0,0,.05),0 6px 16px rgba(60,64,67,.08)}
.btn.social.google:hover,.btn.soc-g:hover{box-shadow:inset 0 0 0 1.5px #B9BEC4,0 2px 4px rgba(0,0,0,.05),0 10px 22px rgba(60,64,67,.12)}
.btn.social.google:active,.btn.soc-g:active{background:#F6F7F8;box-shadow:inset 0 0 0 1.5px #B9BEC4,inset 0 2px 4px rgba(60,64,67,.14)}
.btn.social.apple,.btn.soc-a{background:#000;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 18px rgba(0,0,0,.2)}
.btn.social.apple:active,.btn.soc-a:active{background:#1C1C1E}
.btn.social.toss:active{background:#1B64DA}
.btn.social[disabled]{opacity:.7}

/* 칩: 고른 칩은 분홍 물든 알약 (검정 아님) */
.chip,.mh-chip{min-height:44px;border-radius:999px;background:linear-gradient(180deg,#fff,#FFF9F5);color:#5B4740;border:0;
  box-shadow:inset 0 0 0 1.5px #EFDDD4,0 1px 2px rgba(90,50,40,.05);transition:box-shadow .2s,background-color .2s,scale .15s}
.chip:not(.static):hover,.mh-chip:hover{box-shadow:inset 0 0 0 1.5px #E8A9B8,0 3px 8px rgba(232,96,125,.12)}
.chip:not(.static):active,.mh-chip:active{scale:.96}
.chip.on,.chip[aria-pressed=true],.mh-chip.is-on,.mh-chip[aria-pressed=true]{background:linear-gradient(180deg,#FFE9EE,#FFD9E2);color:#8E2443;
  box-shadow:inset 0 0 0 1.5px #F0A3B5,inset 0 1px 0 rgba(255,255,255,.8),0 3px 8px rgba(232,96,125,.18)}
.rx-chip span.on{background:linear-gradient(180deg,#FFE9EE,#FFD9E2);color:#8E2443;box-shadow:inset 0 0 0 1px #F0A3B5}

/* 켜고 끄는 둥근 버튼 (글씨 크게 «가가») */
.mn-big,.bigbtn{min-width:44px;min-height:44px;border:0;border-radius:999px;background:linear-gradient(180deg,#fff,#FFF7F2);color:var(--btn-ink);
  box-shadow:inset 0 0 0 1.5px rgba(231,207,195,.9),0 1px 2px rgba(90,50,40,.06),0 6px 14px rgba(90,50,40,.08);cursor:pointer;transition:scale .15s,box-shadow .2s}
.mn-big:active,.bigbtn:active{scale:.94}
.mn-big[aria-pressed=true],.bigbtn[aria-pressed=true]{background:linear-gradient(180deg,#FFE9EE,#FFD9E2);color:#8E2443;box-shadow:inset 0 0 0 1.5px #F0A3B5,0 3px 8px rgba(232,96,125,.18)}

/* 노래 버튼의 동그란 재생 단추 */
.mh-song{box-shadow:inset 0 0 0 1px #EFDDD4,0 1px 2px rgba(90,50,40,.05);border:0}
.mh-song-ico{background:linear-gradient(180deg,#FFC9D5,#FFAEC0);color:#7A2B3D;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.mh-song.is-on .mh-song-ico{background:linear-gradient(180deg,var(--btn-top),var(--btn-bot));color:#fff}

/* 메인 «미리보기 메뉴 설명» 줄 (PC) */
.pv-guide button{transition:background-color .2s,box-shadow .2s,translate .2s}
.pv-guide button:hover{translate:2px 0}
.pv-guide button.is-on{box-shadow:inset 3px 0 0 #E8607D,0 1px 2px rgba(42,33,30,.05),0 10px 26px rgba(42,33,30,.09)}

/* 체크 상자: 26px 둥근 네모, 분홍 체크 */
input[type=checkbox]{appearance:none;-webkit-appearance:none;padding:0;border:0;box-sizing:border-box;flex:0 0 auto;width:26px;height:26px;margin:0;border-radius:8px;background:#fff;
  box-shadow:inset 0 0 0 2px #D9C3B8;cursor:pointer;display:inline-grid;place-content:center;transition:box-shadow .15s,background-color .15s}
input[type=checkbox]::after{content:"";width:13px;height:8px;border-left:3px solid #fff;border-bottom:3px solid #fff;rotate:-45deg;translate:0 -2px;scale:0;transition:scale .18s cubic-bezier(.34,1.56,.64,1)}
input[type=checkbox]:checked{background:var(--btn-bot);box-shadow:inset 0 0 0 2px var(--btn-bot)}
input[type=checkbox]:checked::after{scale:1}
input[type=checkbox]:disabled{background:#F4ECE8;box-shadow:inset 0 0 0 2px #E6D8D1;cursor:not-allowed}
input[type=checkbox]:checked:disabled{background:#D9A9B6;box-shadow:inset 0 0 0 2px #D9A9B6}
input[type=checkbox]:focus-visible{outline:3px solid var(--ring);outline-offset:3px;border-radius:8px}

/* 움직임 줄이기: 눌림·떠오름 없이 색만 바뀜 */
@media (prefers-reduced-motion:reduce){.btn,.chip,.mh-chip,.mn-big,.bigbtn{transition:none;translate:none!important;scale:none!important}}
