body{
margin:0;
padding:0;
font-family:-apple-system, BlinkMacSystemFont, sans-serif;
background:#f5f3f1;
}


/* 전체 */

.wrapper{
max-width:420px;
margin:0 auto;
padding:20px;
text-align:center;
height:100vh;
display:flex;
flex-direction:column;
}


/* 제목 */

.title{
margin-top:20px;
margin-bottom:25px;
font-size:22px;
font-weight:600;
}


/* 디자인 선택 */

.design-select{
display:flex;
justify-content:center;
gap:12px;
margin-bottom:20px;
}

.design-select button{
width:60px;
height:60px;
font-size:26px;
border:none;
border-radius:16px;
background:#e9e6e3;
cursor:pointer;
transition:0.15s;
}

.design-select button:active{
transform:scale(0.95);
}


/* 클릭 영역 */

.click-area{
flex:1;
display:flex;
justify-content:center;
align-items:center;
margin-bottom:80px;   
}

#clicker{
width:230px;
transition:0.1s;
}

#clicker:active{
transform:scale(0.93);
}


/* 하단 고정 */

.sound-fixed{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#f5f3f1;
padding:18px 0;
border-top:1px solid #e0ddd9;
}


.sound-select{
display:flex;
justify-content:center;
gap:12px;
}

.sound-select button{
padding:12px 20px;
border:none;
border-radius:14px;
background:#e9e6e3;
font-size:15px;
cursor:pointer;
}


/* 선택 */

.selected{
background:#f4a940 !important;
color:white;
box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.user-info{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
}

.username{
font-weight:bold;
}

.count{
font-size:14px;
}

.ranking-link{
font-size:12px;
}

.rank-item{
padding:10px;
border-bottom:1px solid #eee;
}

.top-nav{
display:flex;
justify-content:space-between;
margin-bottom:10px;
}


.home-btn{
padding:6px 10px;
background:#eee;
border-radius:8px;
text-decoration:none;
color:black;
font-size:14px;
}


.ranking-btn{
padding:6px 10px;
background:#ffd54f;
border-radius:8px;
text-decoration:none;
color:black;
font-size:14px;
}

/* 카드 UI */

.card{
background:white;
border-radius:16px;
padding:16px;
margin-bottom:16px;
box-shadow:0 4px 12px rgba(0,0,0,0.06);
}


.card-title{
font-weight:600;
margin-bottom:12px;
text-align:left;
}


/* 입력 */

.input{
width:100%;
padding:12px;
margin-bottom:10px;
border-radius:12px;
border:none;
background:#e9e6e3;
font-size:14px;
box-sizing:border-box;  
}


/* 버튼 */

.main-btn{
display:block;
width:100%;
padding:12px;
border:none;
border-radius:14px;
background:#f4a940;
color:white;
font-size:15px;
text-decoration:none;
margin-top:8px;
}


.sub-btn{
display:block;
width:100%;
padding:12px;
border:none;
border-radius:14px;
background:#e9e6e3;
color:black;
font-size:14px;
text-decoration:none;
margin-top:12px;
box-sizing:border-box;   /* 이거 추가 */
}


/* 랭킹 */

.rank-item{
display:flex;
justify-content:space-between;
padding:12px 4px;
border-bottom:1px solid #ece9e6;
}


/* 하단 버튼 */

.bottom-btns{
display:flex;
gap:10px;
margin-top:15px;
}

.bottom-btns a{
flex:1;
text-align:center;
}

.rank-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px;
margin-bottom:8px;
background:white;
border-radius:14px;
box-shadow:0 3px 8px rgba(0,0,0,0.05);
}

.top-rank{
font-weight:600;
font-size:16px;
}

.rank-right{
font-size:14px;
color:#666;
}