@charset "utf-8";

/* ============================================================
   juso114 — GNU default.css(id 선택자) 충돌 무력화 + 레거시 위젯
   레이아웃·색은 tailwind.css (npm run build) + code.html 팔레트
   ============================================================ */

/* default.css 가 #aside / #container 등 id 로 float·고정폭을 걸어 Tailwind보다 우선함 */
html.dark {
    overflow: hidden;
    height: 100%;
}

/* basic 테마와 동일한 스크롤바 톤 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4B5563; }

#g5_body {
    height: 100vh;
    max-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    background: #060e20 !important;
    color: #dee5ff !important;
}

#g5_body #hd,
#g5_body #wrapper,
#g5_body #ft {
    min-width: 0 !important;
}

#g5_body #wrapper.site-main-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1920px !important;
    float: none !important;
}

#g5_body #container_wr {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

#g5_body .site-sidebar {
    float: none !important;
    width: 320px !important;
    flex: 0 0 320px !important;
    margin: 0 !important;
    height: auto !important;
}

#g5_body .content-viewport #container {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 1.5rem 0 !important;
    position: relative !important;
    box-shadow: none !important;
}

@media (min-width: 1024px) {
    #g5_body .content-viewport #container {
        padding: 2.5rem 0 !important;
    }
}

#g5_body input[type="text"]:focus,
#g5_body input[type="password"]:focus,
#g5_body textarea:focus,
#g5_body select:focus {
    box-shadow: none !important;
}

body,
body *:not(.fa):not(.fab):not(.far):not(.fas):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.material-symbols-outlined),
input, button, select, textarea {
    font-family: Paperlogy, Pretendard, sans-serif !important;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined" !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* default.css / Tailwind 전역 폰트 규칙이 다시 덮어쓰는 케이스 대비 */
#g5_body .material-symbols-outlined {
    font-family: "Material Symbols Outlined" !important;
}

/* ===== Header ===== */
.juso114-codehtml-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 80px;
    background: rgba(6, 14, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(64, 72, 93, 0.10);
}

.juso114-codehtml-header-inner {
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.juso114-codehtml-logo {
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.juso114-codehtml-logo-text {
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
}

.juso114-codehtml-logo-text span {
    color: #3B82F6;
}

.juso114-codehtml-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: flex-end;
}

.juso114-codehtml-links {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
}

.juso114-codehtml-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(222, 229, 255, 0.78);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.juso114-codehtml-nav-link:hover {
    color: #dee5ff;
}

.juso114-codehtml-visit {
    color: #85adff;
}

.juso114-codehtml-popular {
    display: block;
    min-width: 180px;
    max-width: 240px;
    overflow: hidden;
}

/* ===== Search ===== */
.juso114-codehtml-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.juso114-codehtml-search-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: rgba(163, 170, 196, 0.8);
    pointer-events: none;
}

.juso114-codehtml-search-input {
    height: 38px;
    width: 260px;
    border-radius: 9999px;
    padding: 0 44px 0 44px;
    background: rgba(25, 37, 64, 0.55);
    border: 1px solid rgba(64, 72, 93, 0.22);
    color: #dee5ff;
    outline: none;
    font-size: 14px;
}

.juso114-codehtml-search-input::placeholder {
    color: rgba(163, 170, 196, 0.55);
}

.juso114-codehtml-search-btn {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    border-radius: 9999px;
    color: #85adff;
    cursor: pointer;
}

.juso114-codehtml-search-btn span {
    font-size: 20px;
    line-height: 34px;
}

@media (max-width: 768px) {
    .juso114-codehtml-links { gap: 12px; }
    .juso114-codehtml-search-input { width: 180px; }
}

/* ===== Layout (Tailwind + GNU 보정) ===== */
.content-viewport {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 40px;
}

/* 모바일: 내부 컨테이너 스크롤을 풀어 window 스크롤로 복귀 (pull-to-refresh 허용) */
@media (max-width: 1023px) {
    html.dark {
        overflow-y: auto;
        height: auto;
    }
    #g5_body {
        height: auto;
        max-height: none;
    }
    .content-viewport {
        overflow-y: visible;
    }
}

/* ===== Sidebar blocks ===== */
.juso114-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.juso114-sidebar-widget {
    background: rgba(20, 31, 56, 0.6);
    border: 1px solid rgba(64, 72, 93, 0.25);
    border-radius: 14px;
    padding: 14px;
}
.juso114-sidebar-ad {
    padding: 10px;
}
.juso114-sidebar-ad-link img {
    width: 100%;
    border-radius: 12px;
    display: block;
}
.juso114-sidebar-brand h3 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.juso114-sidebar-brand h3 span {
    color: #3B82F6;
}
.juso114-sidebar-brand p {
    margin: 8px 0 0;
    color: rgba(222, 229, 255, 0.72);
    font-weight: 700;
}
.juso114-sidebar-widget h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}
.juso114-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.juso114-chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 9999px;
    background: rgba(35, 52, 87, 0.9);
    color: #dde7ff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.juso114-chip:hover {
    background: rgba(59, 130, 246, 0.28);
}

@keyframes jus114-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

/* ===== Container title ===== */
.juso114-container-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ===== Footer ===== */
.juso114-codehtml-footer {
    margin-top: auto;
    background: rgba(20, 31, 56, 0.55);
    border-top: 1px solid rgba(64, 72, 93, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 40px 16px 28px;
}

.juso114-codehtml-footer-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    gap: 26px;
    align-items: flex-start;
    justify-content: space-between;
}

.juso114-codehtml-footer-brand {
    min-width: 240px;
}

.juso114-codehtml-footer-logo {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
}

.juso114-codehtml-footer-logo-accent {
    color: #3B82F6;
}

.juso114-codehtml-footer-desc {
    margin-top: 10px;
    color: rgba(222, 229, 255, 0.7);
    line-height: 1.6;
    max-width: 380px;
}

.juso114-codehtml-footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.juso114-codehtml-footer-col {
    min-width: 180px;
}

.juso114-codehtml-footer-col h5 {
    color: rgba(222, 229, 255, 0.92);
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.juso114-codehtml-footer-col a {
    display: block;
    color: rgba(222, 229, 255, 0.65);
    text-decoration: none;
    font-weight: 700;
    margin: 8px 0;
}

.juso114-codehtml-footer-col a:hover {
    color: #dee5ff;
}

.juso114-codehtml-footer-bottom {
    max-width: 1920px;
    margin: 26px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(64, 72, 93, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: rgba(222, 229, 255, 0.55);
    font-weight: 800;
    font-size: 12px;
}

.juso114-codehtml-footer-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #3B82F6;
    display: inline-block;
    margin-right: 8px;
    animation: jus114-pulse 1.4s ease-in-out infinite;
}

.juso114-codehtml-footer-status {
    display: inline-flex;
    align-items: center;
}

/* ===== Back to top ===== */
.juso114-top-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #262626;
    border: 1px solid rgba(64, 72, 93, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.juso114-top-btn:not(.is-hidden) {
    opacity: 1;
    pointer-events: auto;
}

.juso114-top-btn:hover {
    transform: translateY(-2px);
}

.juso114-top-btn .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
}

.juso114-popular-dropdown {
    position: absolute;
    background-color: #1a212b;
    top: 64px;
    width: 191px;    
    border-radius: 5px;
    min-height: 100px;
    height: auto;
    padding: 10px;    
    border: 1px solid #303a48;
    display: none;
    z-index: 120;
}
.juso114-popular-dropdown-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}
.juso114-popular-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.juso114-popular-dropdown-content .rank {
    color: #F59E0B;
    font-weight: 700;
    min-width: 1.2em;
    flex-shrink: 0;
}
.juso114-popular-dropdown-content .word {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sans-serif {
	font-family: sans-serif !important;
}
@media (max-width: 1024px) {
    #juso114-logo {
        background-size: 150px auto !important;
        background-position: left -13px !important;
    }
}

/* SNS 바로가기: basic 톤(#aecef1 계열) 유지, 레이아웃(722px·그리드) 동일 — 도크/원형 아이콘 변형 */
.sns-shortcut-dock .sns-shortcut-shell.glass-card {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 26, 42, 0.96) 0%, rgba(8, 14, 24, 0.94) 100%);
    border-color: rgba(122, 149, 191, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 36px rgba(0, 0, 0, 0.32);
}
.sns-shortcut-dock .sns-shortcut-shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(174, 206, 241, 0.35),
        rgba(133, 173, 255, 0.55),
        rgba(174, 206, 241, 0.35),
        transparent
    );
    pointer-events: none;
}
.sns-shortcut-dock .sns-shortcut-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(133, 173, 255, 0.12), transparent 55%);
    opacity: 0.9;
}
.sns-shortcut-grid--dock {
    position: relative;
    z-index: 1;
    margin: 2px;
}
.sns-shortcut-dock .sns-shortcut-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0.18) 100%);
    border: 1px solid rgba(133, 173, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.sns-shortcut-dock .sns-shortcut-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(174, 206, 241, 0.55);
    box-shadow:
        0 0 0 2px rgba(133, 173, 255, 0.12),
        0 10px 22px rgba(0, 0, 0, 0.35);
    background: radial-gradient(circle at 32% 28%, rgba(174, 206, 241, 0.14), rgba(133, 173, 255, 0.06) 50%, rgba(0, 0, 0, 0.12) 100%);
}
.sns-shortcut-dock .sns-shortcut-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}
.sns-shortcut-dock .sns-shortcut-fa i {
    font-size: 22px;
    color: #aecef1;
}

.uxc_banner {
    width: 100%;
}
.uxc_banner .banner_list {
    display: grid;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.uxc_banner .banner_list.grid-col-1 { grid-template-columns: 1fr; }
.uxc_banner .banner_list.grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.uxc_banner .banner_list.grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.uxc_banner .banner_list.grid-col-4 { grid-template-columns: repeat(4, 1fr); }
.uxc_banner .banner_list.grid-col-5 { grid-template-columns: repeat(5, 1fr); }
.uxc_banner .banner_list.grid-col-6 { grid-template-columns: repeat(6, 1fr); }

.uxc_banner .banner_list.grid-col-flex {
    display: flex;
    flex-wrap: wrap;
}
.uxc_banner .banner_list.grid-col-flex .banner_item {
    flex: 0 0 calc((100% - (var(--columns, 6) - 1) * 15px) / var(--columns, 6));
    margin-right: 15px;
    margin-bottom: 15px;
}
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(6n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(7n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(8n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(9n),
.uxc_banner .banner_list.grid-col-flex .banner_item:nth-child(10n) {
    margin-right: 0;
}

.uxc_banner .banner_item {
    position: relative;
    overflow: hidden;
}
.uxc_banner .banner_link {
    display: block;
    width: 100%;
}
.uxc_banner .banner_item .banner_img {
    width: 100%;
    height: 90px;
    max-height: 90px;
    object-fit: fill;
    display: block;
}
.uxc_banner .banner_item .banner_img_1 {
    width: 100%;
    height: 80px;
    object-fit: fill;
    display: block;
}
.uxc_banner .banner_item .banner_img_2 {
    width: 100%;
    height: 58px;
    max-height: 58px;
    object-fit: fill;
    display: block;
}
.uxc_banner .banner_item_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px dashed var(--board-gray-300, #436283);
    border-radius: 4px;
}
.uxc_banner .banner_empty_text {
    color: var(--board-gray-500, #999);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 1200px) {
    .uxc_banner .banner_list.grid-col-6 { grid-template-columns: repeat(4, 1fr); }
    .uxc_banner .banner_list.grid-col-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .uxc_banner .banner_list.grid-col-6,
    .uxc_banner .banner_list.grid-col-5,
    .uxc_banner .banner_list.grid-col-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .uxc_banner .banner_list.grid-col-6,
    .uxc_banner .banner_list.grid-col-5,
    .uxc_banner .banner_list.grid-col-4,
    .uxc_banner .banner_list.grid-col-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
    .uxc_banner .banner_list:not(.banner_list-mobile-2) { grid-template-columns: 1fr !important; }
    .uxc_banner .banner_list.banner_list-mobile-2 { grid-template-columns: repeat(2, 1fr); }
    .uxc_banner .banner_list.grid-col-flex .banner_item {
        flex: 0 0 100%;
        margin-right: 0;
    }
}
@media (max-width: 767px) {
    .main_banner.uxc_banner { display: none; }
    .mobile_main_banner.uxc_banner { display: block; }
}
@media (min-width: 768px) {
    .main_banner.uxc_banner { display: block; }
    .mobile_main_banner.uxc_banner { display: none; }
}

/* board-grid-subnav (basic 원본 패턴) */
.board-grid-subnav {
    display: block;
    position: sticky;
    top: 4rem;
    z-index: 9;
    background: #1b252f;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(55 55 57 / 80%);
    /*margin-bottom: 1rem;*/
}
@media (min-width: 768px) {
    .board-grid-subnav { display: block; top: 5rem; }
}
@media (max-width: 1280px) {
    .board-grid-subnav-inner {
        justify-content: flex-start !important;
        gap: 0.5rem 1.5rem !important;
        scrollbar-width: auto !important;
        -ms-overflow-style: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        cursor: grab;
        user-select: none;
    }
    .board-grid-subnav-inner.is-dragging { cursor: grabbing; }
    .board-grid-subnav-inner::-webkit-scrollbar {
        display: block !important;
        height: 3px;
    }
    .board-grid-subnav-inner::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }
}
.board-grid-subnav-inner {
    display: flex;
    flex-wrap: nowrap;
    /*align-items: center;*/
    justify-content: center;
    gap: 0.5rem 2rem;
    /*padding: 0 1rem;*/
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.board-grid-subnav-inner::-webkit-scrollbar { display: none; }
.board-grid-subnav-home {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #acb6c5;
    background: rgba(55, 65, 81, 0.6);
    border-radius: 2px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.board-grid-subnav-home:hover {
    color: #fff;
    background: rgba(75, 85, 99, 0.8);
}
.board-grid-subnav-tab {
    flex-shrink: 0;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.board-grid-subnav-tab:hover { color: #cbd5e1; }
.board-grid-subnav-tab.active { color: #60a5fa; }
.board-grid-subnav-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
/* 텔레그램 안내 - 심플 버튼 */
.coupon-button-wrapper {
	padding: 0 10px;    
    width: 100%;
}
.telegram-button-wrapper {
    display: block;
}
.coupon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    width: 100%;
    background: #1f2937;
    color: #e5e7eb;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    height: 60px;
    font-weight: 500;
    border: 1px solid #4b5563;
}
.coupon-button i {
    font-size: 16px;
}
.telegram-button {
    background: linear-gradient(180deg, rgb(25 43 71 / 96%) 0%, rgba(8, 14, 24, 0.94) 100%);
    /* background: #059f04; */
    color: #ffffff;
    border-color: #206079;
}
/* 제휴업체 전체보기 버튼 (녹색 계열, 동일 크기) */
.partner-button {
    background: #0d9b41;
    color: #ecfdf5;
    border-color: #39c76d;
}


