.cg-go{
    width:100%;
    max-width:920px;
    margin-left:auto;
    margin-right:auto;
    border:1px solid #e6e6e6;
    background:#fff;
    padding:16px;
    box-sizing:border-box;
}

.cg-go__noscript{
    padding:12px;
    border:1px solid #f0d1d1;
    background:#fff5f5;
    color:#8a1f1f;
    margin-bottom:12px;
    font-size:14px;
}

.cg-go__tabs{
    display:flex;
    gap:8px;
    margin-bottom:12px;
}

.cg-go__tab{
    appearance:none;
    border:1px solid #d9d9d9;
    background:#fff;
    color:#111;
    padding:10px 12px;
    cursor:pointer;
    font-weight:700;
    font-size:14px;
}

.cg-go__tab.is-active{
    border-color:#111;
}

.cg-go__panel{ display:none; }
.cg-go__panel.is-active{ display:block; }

.cg-go__controls{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:flex-end;
    margin-bottom:12px;
}

.cg-go__controls--stack{
    flex-direction:column;
    align-items:stretch;
}

.cg-go__row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:flex-end;
}

.cg-go__row--space{
    justify-content:space-between;
    align-items:center;
}

.cg-go__field{
    display:flex;
    flex-direction:column;
    gap:6px;
    min-width:140px;
}

.cg-go__field--grow{
    flex:1 1 260px;
}

.cg-go__field--full{
    flex:1 1 100%;
    min-width:0;
}

.cg-go__label{
    font-size:12px;
    color:#333;
    font-weight:700;
}

.cg-go__input,
.cg-go__select{
    width:100%;
    padding:10px 10px;
    border:1px solid #d9d9d9;
    background:#fff;
    color:#111;
    font-size:14px;
    box-sizing:border-box;
}

.cg-go__btn{
    width:100%;
    padding:10px 12px;
    border:1px solid #111;
    background:#111;
    color:#fff;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}

.cg-go__btn--alt{
    border:1px solid #111;
    background:#fff;
    color:#111;
}

.cg-go__btn:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.cg-go__status{
    font-size:14px;
    font-weight:800;
    color:#111;
    padding:10px 0;
}

.cg-go__hint{
    font-size:12px;
    color:#666;
    min-height:0;
    line-height:1.2;
    margin-top:2px;
}

.cg-go__boardwrap{
    overflow:hidden;
    width:100%;
    border:1px solid #e6e6e6;
    background:#f6f6f6;
    padding:12px;
    box-sizing:border-box;
}

.cg-go__localactions{
    margin-top:10px;
}

.cg-go__board{
    display:block;
    width:100%;
    aspect-ratio: 1 / 1;
    height:auto;
    background:#f2d8a7;
    touch-action:manipulation;
}

.cg-go__rooms{
    border:1px solid #e6e6e6;
    background:#fff;
}

.cg-go__room{
    display:flex;
    gap:10px;
    justify-content:space-between;
    align-items:center;
    padding:10px 12px;
    border-top:1px solid #efefef;
}

.cg-go__room:first-child{
    border-top:none;
}

.cg-go__roominfo{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}

.cg-go__roomtitle{
    font-weight:900;
    color:#111;
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.cg-go__roommeta{
    font-size:12px;
    color:#555;
}

.cg-go__roomactions{
    display:flex;
    gap:8px;
    align-items:center;
}

.cg-go__roombtn{
    appearance:none;
    border:1px solid #111;
    background:#fff;
    color:#111;
    padding:8px 10px;
    cursor:pointer;
    font-weight:800;
    font-size:13px;
}

.cg-go__match.is-hidden{
    display:none;
}

.cg-go__matchbar{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin:10px 0;
}

.cg-go__matchinfo{
    font-size:14px;
    font-weight:900;
    color:#111;
    width:100%;
    text-align:center;
}

.cg-go__matchactions{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
    width:100%;
    min-width:0;
}

.is-hidden{ display:none !important; }

@media (max-width: 640px){
    .cg-go{ padding:12px; }
    .cg-go__btn[data-online-applynick]{ margin-bottom:12px; }

    .cg-go__btn[data-online-createroom]{ margin-bottom:10px; }
    .cg-go__tabs{ gap:6px; }
    .cg-go__tab{ flex:1; text-align:center; }

    /* 모바일에서 온라인 입력 영역 여백 축소 */
    .cg-go__controls{ gap:6px; margin-bottom:8px; }
    .cg-go__row{ flex-direction:column; align-items:stretch; gap:6px; }
    .cg-go__field{ min-width:0; gap:4px; }
    .cg-go__field--grow{ flex: 0 1 auto; }
    .cg-go__hint{ margin-top:0; line-height:1.15; }
    .cg-go__status{ padding:4px 0; line-height:1.2; }

    /* 닉네임 적용 버튼 아래는 약간의 간격 유지 */
    .cg-go__btn[data-online-applynick]{ margin-bottom:10px; }
}

/* Visually hidden but accessible */
.cg-go__visually-hidden{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

.cg-go__matchtitle{
    font-size:15px;
    font-weight:900;
    margin-bottom:6px;
    color:#111;
}

.cg-go__matchline{
    font-size:14px;
    font-weight:900;
    color:#111;
    line-height:1.25;
    text-align:center;
}
.cg-go__matchline--sub{
    font-size:13px;
    font-weight:800;
    color:#222;
    margin-top:4px;

    text-align:center;
}

.cg-go__matchfooter{
    display:flex;
    gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}
.cg-go__matchfooter .cg-go__btn{
    flex:1 1 180px;
    min-width:140px;
}
@media (max-width: 640px){
    .cg-go__matchfooter{
        flex-direction:column;
        gap:8px;
    }
    .cg-go__matchfooter .cg-go__btn{
        width:100%;
        flex:0 0 auto;
        min-width:0;
    }
}

.cg-go__btn[data-online-ready]{ width:100%; }
