@font-face{font-family:'RoundRelationship';src:url('/fonts/RoundRelationship.woff2') format('woff2');font-display:swap}
@font-face{font-family:'YunMinguk';src:url('/fonts/YunMinguk.woff2') format('woff2');font-display:swap}
@font-face{font-family:'Shinbi7';src:url('/fonts/Shinbi7.woff2') format('woff2');font-display:swap}
@font-face{font-family:'NotGothicButGoding';src:url('/fonts/NotGothicButGoding.woff2') format('woff2');font-display:swap}
*{box-sizing:border-box}
body{margin:0;background:#2F3346}
a{color:#F6F0E2}a:hover{color:#FFFFFF}
button{font:inherit;cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:2px solid #B8435E;outline-offset:2px}
[hidden]{display:none!important}
.gd{font-family:'NotGothicButGoding',cursive;font-weight:400}
.gd-b{font-weight:700;-webkit-text-stroke:.6px currentColor}
.washi{position:absolute;height:22px;opacity:.85}
.stk{filter:drop-shadow(0 2px 2px rgba(60,40,20,.25))}
.page{background-color:#F6F0E2;background-image:linear-gradient(rgba(140,110,70,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(140,110,70,.07) 1px,transparent 1px);background-size:22px 22px}

/* 색인 탭 */
.tab{width:64px;min-height:64px;padding:8px 4px;border:0;border-radius:14px 0 0 14px;font-size:13px;line-height:1.3;box-shadow:inset 0 0 0 2px rgba(0,0,0,.15);background:#4D4060;color:#E9E2D2}
.tab[aria-pressed="true"]{background:#B8435E;color:#FFFFFF;width:72px}

/* 카드 그림(색) 영역 */
.art{aspect-ratio:5/4;border-radius:8px}
.art-none{background:repeating-linear-gradient(45deg,#EFE5D0 0 8px,#F7F0E0 8px 16px)}

/* 목소리 카드 */
.card{display:flex;flex-direction:column;padding:12px 10px;border-radius:18px;background:#FBF7EC;border:2px solid #D8C7A6;box-shadow:0 3px 0 #E2D5BB}
.card.selected{border-color:#5E9A5A;box-shadow:0 0 0 4px #DCEBD6}
.card-top{display:flex;justify-content:space-between;align-items:center;padding:0 4px 8px}
.card-no{font-size:16px;color:#8A5A2B}
.card-lang{padding:0 9px;border-radius:999px;background:#EFE5D0;color:#5A3E22;font-size:16px}
.card-photo{background:#FFFFFF;padding:6px;border-radius:12px;box-shadow:0 1px 3px rgba(90,60,30,.18)}
.card-gender{padding:10px 4px;text-align:center;font-size:23px;color:#5A3E22}
.btn-play{min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:12px;font-size:18px;border:2px solid #C9B48F;background:#FFFFFF;color:#5A3E22}
.btn-play.playing{border-color:#8A5A2B;background:#8A5A2B;color:#FFFFFF}
.btn-play.loading{opacity:.7}
.btn-pick{margin-top:8px;min-height:44px;border:0;border-radius:12px;background:#B8435E;color:#FFFFFF;font-size:18px}
.picked{position:relative;margin-top:8px}
.picked-under{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#E7BFC9;color:#8A2E4A;font-size:18px}
.memo{position:absolute;left:50%;top:3px;transform:translateX(-50%) rotate(-3deg);width:88%;padding:7px 0 5px;background:#FFF1A6;box-shadow:0 3px 6px rgba(90,60,30,.25);text-align:center;font-family:'Shinbi7',cursive;font-size:21px;line-height:1.2;color:#6B4A1E}
.memo::before{content:'';position:absolute;top:-8px;left:50%;width:38px;height:14px;margin-left:-19px;background:rgba(140,182,236,.6);transform:rotate(3deg)}

/* 로그인 */
.login-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border-radius:12px;background:#5865F2;color:#FFFFFF;text-decoration:none;font-size:17px}
.login-btn:hover{color:#FFFFFF;background:#4752C4}

/* 알림 */
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:10;max-width:calc(100% - 32px);padding:10px 18px;border-radius:12px;background:#4A3424;color:#FFF6E6;font-family:'YunMinguk',sans-serif;font-size:15px;opacity:0;pointer-events:none;transition:opacity .2s}
#toast.show{opacity:1}

@media (max-width:560px){
  .tab{width:52px;min-height:56px;font-size:12px}
  .tab[aria-pressed="true"]{width:58px}
}
