/* [1] 테마 설정 */
:root {
    /* [Luxury Dark Mode] */
    --bg-body: #020617;
    /* Slate 950 - Deepest Black/Blue */
    --bg-card: #0f172a;
    /* Slate 900 */
    --bg-input: #1e293b;
    /* Slate 800 */

    /* Text - High Contrast, Clean */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-sub: #94a3b8;
    /* Slate 400 */

    --border-color: rgba(245, 158, 11, 0.15);
    /* Subtle Amber Border */

    /* [Brand Colors: Luxury Gold] */
    --brand-color: #F59E0B;
    /* Amber 500 - Rich Gold */
    --brand-color-dark: #B45309;
    /* Amber 700 */
    --accent-color: #3B82F6;
    /* Royal Blue */
    --danger: #ef4444;
    --grid-top: 140px;
}

[data-theme="light"] {
    /* [Premium Light Mode - Modern Clean] */
    --bg-body: #f1f5f9;
    /* Slate 100 - Cool Light Gray for contrast with white cards */
    --bg-card: #ffffff;
    /* Pure White */
    --bg-input: #f8fafc;
    /* Slate 50 */

    --text-main: #1e293b;
    /* Slate 800 */
    --text-sub: #64748b;
    /* Slate 500 */

    /* Subtle Separators instead of hard lines */
    --border-color: rgba(203, 213, 225, 0.6);
    /* Slate 300 with opacity */

    /* Brand Colors - Emerald Green (Premium feel) */
    --brand-color: #059669;
    /* Emerald 600 */
    --brand-color-dark: #047857;
    /* Emerald 700 */
    --accent-color: #10b981;
    /* Emerald 500 */

    /* Reset Cass Specifics */
    --cass-bg-page: #f1f5f9;
    --cass-bg-panel: #ffffff;
    --cass-text-primary: #1e293b;

    /* Shadow Variable for use in overrides */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    font-size: 17px;
    /* [TYPO] Increased Base Size */
}

body {
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    /* [TYPO] Thin/Light Weight */
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 90px;
    transition: 0.3s;
    line-height: 1.6;
    /* [TYPO] Better Readability */
    -webkit-tap-highlight-color: transparent;
}


h1,
h2,
h3,
h4,
.btn-master,
.shop-price {
    font-family: 'Pretendard', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* [LOGO RELAUNCH] */
.logo-container {
    display: flex;
    align-items: baseline;
    /* Align text baselines */
    gap: 12px;
    cursor: pointer;
    margin-right: 40px;
    transition: transform 0.2s;
    user-select: none;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-text-kr {
    font-family: 'Pretendard', sans-serif;
    font-size: 34px;
    background: linear-gradient(135deg, #ffffff 30%, var(--brand-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text-en {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    color: var(--brand-color);
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* [2] 레이아웃 */
.sub-page-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .sub-page-container {
        padding: 0 10px;
    }
}

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* Board Titles (Theme Aware) */
.board-header-dynamic {
    /* Tone-on-Tone Dark Green (Cass Theme) - Reverted */
    background: linear-gradient(to right, #064e3b, #047857);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Ensure text readability on both dark green and gold */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.board-header-dynamic * {
    color: #e5e7eb !important;
}

/* Light Mode Override */
html[data-theme="light"] .board-header-dynamic {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    /* Dark Navy */
    background-color: #1e293b !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .board-header-dynamic * {
    color: white !important;
}

/* [Gold Identity Hover] */
.hover-gold-border {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Ensure z-index works */
}

.hover-gold-border:hover {
    border: 1px solid #D4AF37 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-2px);
    z-index: 10;
}

.master-grid {
    display: grid;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--grid-top) 20px 0 20px;
    min-height: calc(100vh - 340px);
    align-items: start;
}

@media (min-width: 1280px) {
    :root {
        --grid-top: 120px;
    }

    .master-grid.dashboard-mode {
        grid-template-columns: 260px 1fr 320px;
    }

    .master-grid:not(.dashboard-mode) {
        grid-template-columns: 260px 1fr;
    }

    .ia-sidebar {
        display: block;
    }
}

@media (max-width: 1279px) {
    .master-grid {
        grid-template-columns: 1fr;
    }

    .ia-sidebar,
    #right-sidebar {
        display: none !important;
    }
}

/* [3] 상단 네비게이션 (PC) */
nav.fixed-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-item-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.gnb-btn {
    background-color: transparent;
    color: var(--text-main);
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    /* Bolder for visibility */
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

[data-theme="light"] .gnb-btn,
[data-theme="light"] #desktop-nav-container span {
    color: #0f172a !important;
    /* Force Deep Blue/Black for Light Mode */
    text-shadow: none;
}

/* .gnb-btn:hover removed to allow style_theme.css override */

.nav-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10001;
}

.nav-item-wrapper:hover .nav-dropdown {
    display: block;
    animation: fadeIn 0.1s ease-out;
}

.nav-drop-link {
    display: block;
    padding: 12px;
    font-size: 15px;
    color: var(--text-main);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-drop-link:hover {
    background: rgba(0, 85, 184, 0.1);
    color: var(--brand-color);
}

/* [4] 모바일 하단바 (PC에서는 절대 안 보임) */
.mobile-bottom-nav {
    display: none;
    /* 기본: 숨김 */
}

/* 768px 이하(모바일)에서만 등장 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75px;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        z-index: 20000;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        align-items: center;
        justify-content: space-around;
        font-family: 'Pretendard', sans-serif;
    }
}

/* [추가] 모바일 메뉴 드로어 스타일 */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 21000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    padding-bottom: 150px;
    /* Safe space */
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.open {
    right: 0;
}

.mb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-sub);
    font-size: 10px;
    cursor: pointer;
    transition: 0.1s;
}

.mb-center-wrapper {
    position: relative;
    top: -25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mb-center-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 85, 184, 0.6);
    border: 5px solid var(--bg-body);
    transition: 0.1s;
}

.mb-center-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-color);
    margin-top: 4px;
    font-family: 'Pretendard', sans-serif;
}

/* [5] 먹튀 리스트 및 검색창 (원본 스타일 복구) */
.muktu-search-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.muktu-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--danger), transparent);
}

.muktu-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.muktu-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    outline: none;
    font-size: 16px;
}

.muktu-input:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.muktu-btn {
    background: var(--danger);
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* 카드 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.scam-card,
.gallery-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.scam-card:hover {
    transform: translateY(-3px);
    border-color: var(--danger);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.scam-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.scam-thumb,
.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scam-info {
    padding: 15px;
    position: relative;
}

.scam-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scam-domain {
    font-size: 12px;
    color: var(--danger);
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.scam-price,
.shop-price {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    text-align: right;
}

.scam-price {
    color: #facc15;
}

.shop-price {
    color: var(--brand-color);
}

/* [6] 기타 스타일 (게시판, 에디터, 위젯) */
.board-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.board-header {
    display: grid;
    grid-template-columns: 50px 1fr 160px 120px;
    column-gap: 20px;
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-sub);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 768px) {
    .board-header {
        grid-template-columns: 35px 1fr 55px 40px;
        text-align: center;
        font-size: 11px;
        /* Smaller font for dense header */
        padding: 10px 5px;
        /* Reduce padding */
        letter-spacing: -0.5px;
        /* Tighten spacing */
    }

    /* Show all columns on mobile now */
    .board-header>div:nth-child(3),
    .board-header>div:nth-child(4) {
        display: block;
    }
}

/* [Responsive Post Row] */
.post-row {
    display: grid;
    grid-template-columns: 50px 1fr 160px 120px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .post-row {
        grid-template-columns: 35px 1fr 55px 40px;
        gap: 2px;
        /* Minimal gap */
        padding: 12px 2px;
        /* Minimal padding */
        align-items: center;
    }
}

.post-row:hover {
    background: rgba(0, 85, 184, 0.05);
}

.post-num {
    font-family: monospace;
    color: var(--text-sub);
    text-align: center;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 768px) {
    .post-num {
        /* Align is handled by grid items-center parent, removing manual padding */
        padding-top: 0;
    }
}

.post-title {
    text-align: center;
    justify-content: center;
    padding-left: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-color);
    background: rgba(0, 85, 184, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.pinned-row {
    background: rgba(0, 85, 184, 0.03);
    border-left: 3px solid var(--brand-color);
}

.editor-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.editor-input-title {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-size: 32px;
    font-family: 'Pretendard', sans-serif;
    color: var(--text-main);
    padding: 20px 0;
    margin-bottom: 30px;
    outline: none;
}

.editor-area {
    min-height: 500px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-block {
    position: relative;
    animation: fadeIn 0.3s;
}

.editor-block textarea {
    width: 100%;
    background: transparent !important;
    color: var(--text-main);
    border: none;
    padding: 0;
    resize: none;
    min-height: 100px;
    height: auto;
    outline: none;
    font-size: 17px;
    line-height: 1.8;
    overflow-y: hidden;
}

.editor-toolbar {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tool-btn {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-sub);
    font-weight: 700;
    transition: 0.2s;
}

.real-ticker-wrapper {
    position: fixed;
    left: 0;
    width: 100%;
    height: 46px !important;
    background: #000;
    z-index: 9000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 1280px) {
    .real-ticker-wrapper {
        top: 70px;
    }
}

@media (max-width: 1279px) {
    .real-ticker-wrapper {
        top: 70px;
    }
}

.hot-keyword-box {
    height: 50px;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.score-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid var(--brand-color);
    color: white;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 85, 184, 0.2);
    transition: 0.2s;
}

.pc-score-body {
    transition: height 0.3s ease-out;
    overflow: hidden;
    height: 400px;
}

.pc-score-body.collapsed {
    height: 0;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite;
    margin-right: 8px;
    box-shadow: 0 0 10px #ef4444;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* [Banner Animations] */
@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    50% {
        left: 100%;
        opacity: 0;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* [Banner Animations - Re-implemented] */
.banner-slot {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    aspect-ratio: 16/9;
    background: #000;
}

/* 1. Flash */
@keyframes flash-effect {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-flash {
    animation: flash-effect 2s infinite;
}

/* 2. Shine (Enhanced) */
.animate-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine-move 3s infinite;
}

@keyframes shine-move {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* 3. Pulse */
@keyframes pulse-gentle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.animate-pulse-gentle img {
    animation: pulse-gentle 3s ease-in-out infinite;
}

/* 4. Glow */
@keyframes border-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
        border-color: rgba(245, 158, 11, 0.8);
    }
}

.animate-glow {
    animation: border-glow 2s infinite alternate;
}

/* 5. Zoom */
@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.animate-zoom img {
    animation: slow-zoom 10s alternate infinite ease-in-out;
}

/* 6. Neon Flicker */
@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
        filter: brightness(1.1);
    }

    20%,
    24%,
    55% {
        opacity: 0.8;
        filter: brightness(0.9);
    }
}

.animate-neon {
    animation: neon-flicker 4s infinite;
    border: 1px solid var(--brand-color);
}

/* 7. Border Beam */
@keyframes border-beam {
    0% {
        border-color: var(--brand-color);
    }

    33% {
        border-color: var(--accent-color);
    }

    66% {
        border-color: #ef4444;
    }

    100% {
        border-color: var(--brand-color);
    }
}

.animate-beam {
    animation: border-beam 4s infinite linear;
    border-width: 2px;
}

/* 8. Shimmer (Opacity) */
@keyframes shimmer-opacity {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        filter: contrast(1.2);
    }
}

.animate-shimmer {
    animation: shimmer-opacity 3s infinite ease-in-out;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shine 3.5s infinite;
    pointer-events: none;
    z-index: 20;
}

/* Subtle Pulse for Premium Feel */
@keyframes softPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1);
    }

    /* Purple-ish pulse */
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

.animate-pulse-slow {
    animation: softPulse 4s infinite ease-in-out;
}

/* Fixed broken block */

.scam-detail-header {
    padding: 15px 20px;
    background: var(--danger);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.scam-detail-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.scam-detail-content {
    padding: 25px;
}

#game-iframe {
    background: var(--bg-card);
    border-radius: 16px;
}

/* 닫기 버튼: 화면 최상위 고정 */
.game-close-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 999999;
    border: 3px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* [8] 댓글 등 */
.comment-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.comment-row {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

/* [9] 푸터 스타일 */
.site-footer {
    background: #0f172a;
    /* Darker than card */
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 40px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 280px;
}

.footer-links-group {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.f-link-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f-head {
    font-weight: 800;
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 4px;
}

.f-link-col a {
    color: var(--text-sub);
    font-size: 13px;
    transition: 0.2s;
}

.f-link-col a:hover {
    color: var(--brand-color);
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.copyright {
    color: var(--text-sub);
    font-size: 12px;
    font-family: monospace;
}

.disclaimer-box {
    background: rgba(0, 85, 184, 0.05);
    border: 1px solid rgba(42, 193, 188, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-sub);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 600px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 100px;
        /* 모바일 하단바 공간 확보 */
    }

    .footer-links-group {
        gap: 30px;
        width: 100%;
        justify-content: space-between;
        /* Spread columns on mobile */
    }

    .f-link-col {
        min-width: 80px;
    }
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #334155;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.comment-body {
    flex: 1;
}

.reply-box {
    margin-top: 12px;
    display: none;
}

.reply-list {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
}

.btn-master {
    background: var(--brand-color);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 85, 184, 0.4);
    transition: 0.2s;
    cursor: pointer;
}

.animate-fade {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* [추가] 먹튀 검색 스캐너 및 결과 카드 스타일 복구 */


/* SEARCH RESULTS - POLISHED & CLEAN */
.wanted-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wanted-card:hover {
    border-color: var(--brand-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(145deg, var(--bg-input), rgba(42, 193, 188, 0.05));
}

.wanted-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Vertically center content */
}

/* Left: Info Area */
.wanted-info-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    /* Remove top padding since centered */
}

/* Right: Image Area - FIXED 16:9 RATIO */
.wanted-img-area {
    width: 480px;
    /* Much larger width */
    aspect-ratio: 16 / 9 !important;
    /* Enforce strict 16:9 */
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wanted-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wanted-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.wanted-header h3 {
    margin: 8px 0 0 0;
    font-size: 22px;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.wanted-badge {
    background: var(--danger);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

.wanted-info-row {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.wanted-label {
    width: 80px;
    color: var(--text-sub);
    font-weight: 600;
    flex-shrink: 0;
}

.wanted-value {
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
    white-space: normal;
    word-break: break-all;
    text-align: left;
}

/* WATERMARK STYLE - LOGO STAMP */
.watermarked::after {
    content: "";
    /* Empty content for image background */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 60%;
    /* Adjust size relative to card */
    height: 60%;
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.25;
    /* Subtle watermark */
    z-index: 5;
    pointer-events: none;
    border: none;
    /* Remove border */
    filter: grayscale(100%) brightness(200%) drop-shadow(0 0 5px rgba(42, 193, 188, 0.8));
    /* Make it ghost-white/minty glow */
}

/* Ensure watermark scales for different box sizes */
.wanted-img-area.watermarked::after,
.scam-detail-img-box.watermarked::after {
    width: 50%;
    height: 50%;
    opacity: 0.3;
}

/* SCAM DETAIL MODAL IMPROVEMENTS - NO SCROLL, SIDE-BY-SIDE */
.scam-detail-modal {
    background: var(--bg-card);
    width: 95%;
    /* Wider to fit side-by-side */
    max-width: 900px;
    /* Big enough for PC */
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Safety limit */
    animation: zoomIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scam-detail-header {
    padding: 15px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    flex-shrink: 0;
}

/* Side-by-Side Body Layout */
.scam-detail-body {
    display: flex;
    padding: 0;
    overflow: hidden;
    /* No scroll! */
    flex: 1;
    align-items: stretch;
    /* Match height */
}

/* Left: Image (55%) */
.scam-detail-img-box {
    width: 55%;
    background: #000;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
    /* Image will cover this area, ratio handled by flex sizing, but we act like 16:9 mostly */
}

.scam-detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image without cropping */
    background: #000;
}

/* Right: Content (45%) */
.scam-detail-content {
    width: 45%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertical */
    overflow-y: auto;
    /* Fallback if content extremely long */
}

.total-damage {
    text-align: center;
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.total-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 4px;
    font-weight: 600;
}

.total-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
    font-family: 'Pretendard', sans-serif;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Detail Info Rows in Modal */
.detail-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-label {
    width: 80px;
    color: var(--text-sub);
    font-weight: bold;
}

.detail-val {
    flex: 1;
    color: var(--text-main);
}

/* LIST VIEW THUMBNAIL FIXED - 100% Fit */
.scam-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9 !important;
    /* Force 16:9 */
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--border-color);
}

.scam-thumb,
.gallery-thumb {
    width: 100%;
    height: 100% !important;
    /* Force Height fill */
    object-fit: cover !important;
    /* Crop to fill */
}

/* Responsive: Stack on Mobile */
@media (max-width: 768px) {
    .scam-detail-body {
        flex-direction: column;
        overflow-y: auto !important;
        /* Allow scroll on mobile */
    }

    .scam-detail-img-box {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .scam-detail-content {
        width: 100%;
        height: auto;
        padding: 20px;
        display: block;
    }
}

/* Apply watermark to list view thumbs too if class added */
.scam-thumb-box.watermarked::after {
    font-size: 20px;
    padding: 5px 15px;
    border-width: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .wanted-grid {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .wanted-img-area {
        width: 100%;
        margin-bottom: 0;
        aspect-ratio: 16/9 !important;
    }

    .wanted-info-area {
        width: 100%;
    }

    .watermarked::after {
        font-size: 18px !important;
        padding: 5px 15px;
    }
}

@media (max-width: 480px) {
    .wanted-stamp {
        font-size: 24px;
    }
}

/* [Vote Buttons Enhanced] */
.vote-btn-group {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.vote-btn span:first-child {
    font-size: 36px;
    margin-bottom: 5px;
    transition: 0.2s;
}

.vote-btn span:last-child {
    font-size: 14px;
    font-weight: 800;
}

.vote-btn.up:hover {
    border-color: var(--brand-color);
    background: rgba(0, 85, 184, 0.1);
    transform: translateY(-5px) scale(1.05);
}

.vote-btn.up:hover span:first-child {
    color: var(--brand-color);
}

.vote-btn.down:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-5px) scale(1.05);
}

.vote-btn.down:hover span:first-child {
    color: var(--danger);
}

/* [Comment Reply Button] */
.comment-btn {
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-sub);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.2s;
    background: var(--bg-input);
}

.comment-btn:hover {
    background: var(--brand-color);
    color: white !important;
    border-color: var(--brand-color);
}

/* [Ranking Widgets] */
.rank-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.rank-tab {
    display: flex;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 4px;
}

.rank-tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-sub);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.rank-tab-btn.active {
    background: var(--brand-color);
    color: white;
    box-shadow: 0 2px 8px rgba(42, 193, 188, 0.4);
}

.rank-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.timer-bar {
    height: 3px;
    background: var(--brand-color);
    width: 0%;
    margin-top: 15px;
    border-radius: 2px;
}

/* [Hot Issue Items] */
.hot-keyword-item {
    height: 50px;
    display: flex;
    align-items: center;
    font-family: 'Pretendard';
    font-size: 14px;
    color: var(--text-main);
    width: 100%;
}

.hot-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

/* [Pagination Styles] */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-sub);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--border-color);
}

.page-btn:hover {
    background: rgba(0, 85, 184, 0.1);
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.page-btn.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    box-shadow: 0 4px 10px rgba(42, 193, 188, 0.3);
}

/* [Mobile Navigation] */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.mb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-sub);
    cursor: pointer;
    flex: 1;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
    /* For ripple effect containment if added */
}

.mb-item .material-symbols-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

/* Active/Click Feedback */
.mb-item:active {
    color: var(--brand-color);
    transform: scale(0.9);
    background: rgba(0, 85, 184, 0.05);
    /* Subtle highlight */
}

/* Center Write Button */
.mb-center-wrapper {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: auto;
    cursor: pointer;
    z-index: 10000;
}

.mb-center-btn {
    width: 54px;
    height: 54px;
    background: var(--brand-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 85, 184, 0.4);
    margin-bottom: 2px;
    transition: transform 0.1s;
    border: 3px solid var(--bg-body);
}

.mb-center-btn:active {
    transform: scale(0.95);
    background: #004494;
    /* Darker shade on press */
}

.mb-center-label {
    font-size: 10px;
    font-weight: bold;
    color: var(--text-main);
    margin-top: 2px;
}

/* [Mobile Menu Drawer] - Right Side */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    /* Changed from left: 0 */
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 10001;
    transform: translateX(100%);
    /* Changed from -100% */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-color);
    /* Changed border-right to border-left */
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    /* Shadow to left */
}

.mobile-menu-drawer.open {
    transform: translateX(0);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

/* [8] Jackpot Banner Styles */
.jackpot-display-wrapper {
    position: relative;
    padding: 3px;
    background: linear-gradient(90deg, #fcd34d, #b45309, #fcd34d);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    margin-bottom: 24px;
    animation: gold-shimmer 2s infinite linear;
}

@keyframes gold-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.jackpot-display-inner {
    background: url('https://www.transparenttextures.com/patterns/black-scales.png'), linear-gradient(180deg, #450a0a 0%, #7f1d1d 50%, #450a0a 100%);
    border-radius: 17px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jackpot-display-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
}

.jackpot-label-sm {
    font-family: 'Pretendard', sans-serif;
    color: #fca5a5;
    font-size: 16px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.jackpot-amount-lg {
    font-family: 'Black Han Sans', sans-serif;
    /* Fallback to bold font */
    font-size: 48px;
    background: linear-gradient(180deg, #fffbeb 0%, #fcd34d 50%, #b45309 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 0px rgba(0, 0, 0, 0.5));
    line-height: 1;
    z-index: 1;
    letter-spacing: -1px;
}

.jackpot-decoration {
    position: absolute;
    font-size: 60px;
    opacity: 0.1;
    color: white;
    z-index: 0;
}

.jackpot-decoration.left {
    left: 20px;
    transform: rotate(-15deg);
}

.jackpot-decoration.right {
    right: 20px;
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .jackpot-amount-lg {
        font-size: 36px;
    }

    .jackpot-decoration {
        font-size: 40px;
    }
}

/* [9] Redesigned Jackpot Banner (User Feedback) */
.jackpot-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    width: 100%;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.jp-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 215, 0, 0.3);
    padding-right: 15px;
}

.jp-label-text {
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    color: #ffd700;
    /* Gold */
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.jp-center {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jp-amount-box {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 56px;
    background: linear-gradient(to bottom, #fff 0%, #ffd700 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: pulse-gold 1.5s infinite alternate;
}

.jp-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 215, 0, 0.3);
    padding-left: 15px;
}

.jp-count-label {
    font-size: 12px;
    color: #fbbf24;
    margin-bottom: 2px;
}

.jp-count-val {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    color: white;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    }

    100% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
}

@media (max-width: 768px) {
    .jackpot-grid-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .jp-left,
    .jp-right {
        border: none;
        padding: 0;
        text-align: center;
    }

    .jp-label-text {
        font-size: 16px;
        display: inline-block;
    }

    .jp-amount-box {
        font-size: 42px;
    }
}


/* [10] Billboard Style Jackpot (User Feedback) */
.jackpot-billboard-wrapper {
    position: relative;
    background: #000;
    border: 4px solid #b45309;
    /* Bronze/Gold frame */
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.5);
    /* Orange Glow */
    height: 140px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.billboard-content {
    position: absolute;
    width: 100%;
    text-align: center;
    animation-duration: 5s;
    /* Slightly faster (5s) */
    animation-iteration-count: 3;
    /* Stop after 3 cycles */
    animation-fill-mode: forwards;
    /* Freeze at last frame */
    opacity: 0;
    /* Hidden by default */
}

/* Cycle 1: Info Text (0% ~ 45% Visible) */
.billboard-slide-1 {
    animation-name: billboard-cycle-1;
}

/* Cycle 2: Amount (50% ~ 100% - Ends Visible) */
.billboard-slide-2 {
    animation-name: billboard-cycle-2;
}

@keyframes billboard-cycle-1 {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    5%,
    45% {
        opacity: 1;
        transform: scale(1);
    }

    50%,
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes billboard-cycle-2 {

    0%,
    45% {
        opacity: 0;
        transform: scale(0.9);
    }

    50% {
        opacity: 0;
        transform: scale(0.9);
    }

    55% {
        opacity: 1;
        transform: scale(1);
    }

    95% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

    /* Stay Visible */
}

.billboard-text-lg {
    font-family: 'Pretendard', sans-serif;
    font-size: 42px;
    color: #ffd700;
    /* Gold */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    letter-spacing: 2px;
}

.billboard-text-xl {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 64px;
    color: #ef4444;
    /* Bright Red for Amount */
    text-shadow: 2px 2px 0px #fff, 0 0 20px rgba(239, 68, 68, 0.8);
    letter-spacing: -2px;
}

.billboard-sub {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .jackpot-billboard-wrapper {
        height: 110px;
    }

    .billboard-text-lg {
        font-size: 28px;
    }

    .billboard-text-xl {
        font-size: 40px;
    }

    .billboard-sub {
        font-size: 14px;
    }
}

/* [Navigation Buttons Request] */
/* Force white text for top menu buttons for better visibility */
/* Force white text for top menu buttons for better visibility */
.gnb-btn {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: normal;
    /* User requested normal weight */
    color: #ffffff !important;
    /* Force White */
    padding: 6px 15px;
    /* Adjusted padding instead of height: 100% */
    margin: 4px 0;
    /* Add margin to prevent full height stretch */
    border-radius: 8px;
    /* Always rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Shadow for contrast on any bg */
}

/* [Jackpot Celebration Effects] */
#money-rain-container {
    position: fixed;



    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2147483647;
    /* Max Safe Integer */
    display: none;
    overflow: hidden;
}

.money-item {
    position: absolute;
    top: -50px;
    animation: moneyFall linear forwards;
    opacity: 0;
}

@keyframes moneyFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.jackpot-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    /* Higher than money rain */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s;
}

.jackpot-content {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #fff;
    max-width: 90vw;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* [LIGHT MODE PREMIUM OVERRIDES] */
/* Apply Premium Card Style (No Border, Soft Shadow) in Light Mode */
[data-theme="light"] .board-container,
[data-theme="light"] .post-card,
[data-theme="light"] .widget-card,
[data-theme="light"] .bg-\[var\(--bg-card\)\] {
    border: none !important;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

[data-theme="light"] .post-card:hover,
[data-theme="light"] .widget-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    background-color: #ffffff !important;
}

/* Header/Nav in Light Mode */
[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .text-white {
    color: #1e293b !important;
    /* Force dark text on Light Header */
}

/* Exception: Buttons that SHOULD be white text (like Primary Buttons) */
[data-theme="light"] .btn-master,
[data-theme="light"] .btn-primary,
[data-theme="light"] button[class*="bg-[var(--brand-color)]"] {
    color: #ffffff !important;
}

/* Input Fields - Clean & Soft */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--brand-color) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Sidebar Widgets */
[data-theme="light"] aside .bg-\[var\(--bg-card\)\] {
    border: none !important;
    box-shadow: var(--card-shadow);
}

/* [PREMIUM AD FRAME] - High-End Gold Border Effect */
.premium-ad-frame {
    position: relative;
    border-radius: 12px;
    /* Slight rounded corners */
    /* Double border effect using box-shadow for depth without layout shift */
    box-shadow:
        0 0 0 1px #854d0e,
        /* Inner dark gold ring */
        0 0 0 3px #facc15,
        /* Main gold band */
        0 0 15px rgba(250, 204, 21, 0.4),
        /* Outer gold glow */
        0 10px 30px rgba(0, 0, 0, 0.5) !important;
    /* Drop shadow */
    transition: all 0.3s ease;
    overflow: hidden;
    /* Ensure content stays inside */
    z-index: 10;
    /* Boost z-index just in case */
}

/* Shine overlay for the frame */
.premium-ad-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Inner highlight */
    pointer-events: none;
    z-index: 2;
}

/* Hover Effect: Intensify Glow */
.premium-ad-frame:hover {
    box-shadow:
        0 0 0 1px #a16207,
        0 0 0 3px #fcd34d,
        0 0 25px rgba(250, 204, 21, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* Metallic Texture Overlay (Subtle) */
.premium-ad-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 3;
}

/* [PREMIUM BANNER ANIMATION POOL] */

/* 1. Flash Effect (Camera Flash) */
@keyframes ad-flash {

    0%,
    90% {
        filter: brightness(1);
    }

    92% {
        filter: brightness(2.5);
    }

    94% {
        filter: brightness(1);
    }

    96% {
        filter: brightness(2);
    }

    100% {
        filter: brightness(1);
    }
}

.ad-effect-flash {
    animation: ad-flash 2s infinite;
}

/* 2. Shimmer Effect (Gold Sweep) */
@keyframes ad-shimmer {
    0% {
        mask-position: -150%;
        -webkit-mask-position: -150%;
    }

    100% {
        mask-position: 150%;
        -webkit-mask-position: 150%;
    }
}

/* Use pseudo-element based sweep for wider compatibility */
.ad-effect-shimmer {
    position: relative;
    overflow: hidden;
}

.ad-effect-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: ad-sweep 2.5s infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes ad-sweep {

    0%,
    70% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* 3. Gold Rotate Glow (Breathing Border + Shadow) */
@keyframes ad-rotate-glow {
    0% {
        box-shadow: 0 0 0 1px #854d0e, 0 0 0 3px #facc15, 0 0 15px rgba(250, 204, 21, 0.4);
    }

    50% {
        box-shadow: 0 0 0 1px #854d0e, 0 0 0 3px #ffff00, 0 0 30px rgba(250, 204, 21, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 0 1px #854d0e, 0 0 0 3px #facc15, 0 0 15px rgba(250, 204, 21, 0.4);
    }
}

.ad-effect-glow {
    animation: ad-rotate-glow 2.5s infinite ease-in-out;
}

/* 4. Zoom Pulse (Heartbeat Effect) */
@keyframes ad-zoom-pulse {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1.02);
    }

    45% {
        transform: scale(1.12);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.ad-effect-zoom>img {
    animation: ad-zoom-pulse 2.5s infinite ease-in-out;
    transform-origin: center center;
}

/* 5. Neon Flicker (Retro Sign) */
@keyframes ad-neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
        opacity: 1;
    }

    20%,
    24%,
    55% {
        filter: brightness(0.5) drop-shadow(0 0 0 transparent);
        opacity: 0.8;
    }

    22% {
        filter: brightness(1.5) drop-shadow(0 0 10px #facc15);
        opacity: 1;
    }
}

.ad-effect-neon {
    animation: ad-neon-flicker 2s infinite;
}

/* 6. Border Beam (Chase) */
@keyframes ad-beam-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ad-effect-beam {
    overflow: hidden;
    /* integrated clip */
}

.ad-effect-beam::after {
    content: '';
    position: absolute;
    inset: -50%;
    /* Large enough to cover rotation */
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(255, 255, 255, 0.8) 85%, #facc15 100%);
    top: -50%;
    left: -50%;
    z-index: 20;
    /* Above content? No, needs to be border only. */
    /* Better approach for border beam without masking content: 
       Use a separate mask or minimal approach. 
       Let's use a simpler 'glowing border' animation for 'Beam' to avoid layout complexity with overlay */
    animation: ad-beam-spin 2s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* 7. Galaxy Sparkle (Milky Way) */
@keyframes ad-twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.ad-effect-galaxy::before,
.ad-effect-galaxy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 250px 250px, 150px 150px, 100px 100px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: ad-twinkle 3s infinite alternate;
    z-index: 20;
}

.ad-effect-galaxy::after {
    background-position: 70px 30px, 120px 150px, 20px 90px;
    animation-delay: 1.5s;
    /* Stagger twinkle */
}

/* [Premium Banner Animations] */
@keyframes flash {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.5);
    }
}

.animate-flash {
    animation: flash 3s infinite;
}

@keyframes shine {
    0% {
        mask-position: -50%;
        -webkit-mask-position: -50%;
    }

    100% {
        mask-position: 150%;
        -webkit-mask-position: 150%;
    }
}

.animate-shine {
    position: relative;
    overflow: hidden;
}

.animate-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shine-move 4s infinite;
}

@keyframes shine-move {
    0% {
        transform: skewX(-20deg) translateX(-150%);
    }

    20% {
        transform: skewX(-20deg) translateX(150%);
    }

    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

@keyframes pulse-gentle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.animate-pulse-gentle {
    animation: pulse-gentle 4s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.2);
        border-color: rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
        border-color: rgba(245, 158, 11, 0.8);
    }
}

.animate-glow {
    animation: glow 3s infinite alternate;
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.animate-zoom img {
    animation: zoom 10s linear infinite alternate;
}

@keyframes neon {

    0%,
    100% {
        box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
        border-color: #3b82f6;
    }

    50% {
        box-shadow: 0 0 5px #3b82f6, 0 0 10px #3b82f6;
        border-color: #1d4ed8;
    }
}

.animate-neon {
    animation: neon 2s infinite alternate;
}

@keyframes beam {
    0% {
        border-color: var(--brand-color);
    }

    25% {
        border-color: var(--accent-color);
    }

    50% {
        border-color: #ec4899;
    }

    75% {
        border-color: #eab308;
    }

    100% {
        border-color: var(--brand-color);
    }
}

.animate-beam {
    animation: beam 5s linear infinite;
    transition: border-color 0.5s;
}

@keyframes shimmer {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.animate-shimmer {
    animation: shimmer 3s ease-in-out infinite;
}

/* [Balloon Toast Styling] */
.balloon-toast {
    background: var(--brand-color);
    /* Gold/Brand Color */
    color: #ffffff;
    /* White text for better contrast on Deep Gold */
    padding: 8px 16px;
    border-radius: 20px;
    /* Rounded pill default */
    position: fixed !important;
    z-index: 99999 !important;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Desktop Size Increase */
@media (min-width: 768px) {
    .balloon-toast {
        font-size: 1.1rem;
        /* Larger font */
        padding: 10px 24px;
        /* Larger padding */
        gap: 8px;
        border-radius: 30px;
    }

    /* Adjust Knot size for desktop */
    .balloon-toast::after {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid var(--brand-color);
        bottom: -9px;
    }
}

/* The Knot (Triangle) */
.balloon-toast::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--brand-color);
}

/* The String (Optional, but adds realism) */
.balloon-toast::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes bounce-short {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-short {
    animation: bounce-short 1s;
}

@keyframes float-up {
    0% {
        transform: translate(-50%, 0) scale(0.8);
        opacity: 0;
    }

    10% {
        transform: translate(-50%, -20px) scale(1);
        /* Start higher */
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -100px) scale(1);
        /* Fly high */
        opacity: 0;
    }
}

.animate-float-up {
    animation: float-up 2s ease-out forwards;
}


/* [Sub Layout for Boards] */
.sub-page-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* [New Banner Animations Requests] */

/* 1. Heartbeat (Two-Geun Two-Geun) */
@keyframes heartbeat-throb {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.05);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(1);
    }
}

.animate-heartbeat img {
    animation: heartbeat-throb 1.5s infinite ease-in-out;
    transform-origin: center center;
}

/* 2. Earthquake (Vibration) */
/* 2. Earthquake (Vibration) - Limit to 1s */
@keyframes earthquake-shake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-3px, 3px);
    }

    50% {
        transform: translate(3px, -3px);
    }

    75% {
        transform: translate(-3px, -3px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.animate-earthquake img {
    /* 0.1s duration * 10 iterations = 1.0s Total Shaking */
    animation: earthquake-shake 0.1s linear 10;
}

/* 3. Strong Flash (Flashlight) - Consecutive 2 times */
@keyframes camera-flash {
    0% {
        filter: brightness(1);
    }

    5% {
        filter: brightness(3) contrast(1.2);
    }

    10% {
        filter: brightness(1);
    }

    15% {
        filter: brightness(3) contrast(1.2);
    }

    20% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1);
    }
}

.animate-strong-flash img {
    animation: camera-flash 2s infinite;
    /* Loop every 2s */
}

/* 4. Starfall (Falling Stars) */
@keyframes starry-night {
    0% {
        filter: brightness(1);
    }

    25% {
        filter: brightness(1.1) drop-shadow(0 0 2px white);
    }

    50% {
        filter: brightness(1.3) drop-shadow(0 0 5px white);
    }

    75% {
        filter: brightness(1.1) drop-shadow(0 0 2px white);
    }

    100% {
        filter: brightness(1);
    }
}

.animate-starfall img {
    animation: starry-night 1.5s infinite alternate;
}

/* [3D Banner Transitions] */
.banner-perspective {
    perspective: 1200px;
    overflow: hidden;
}

.banner-slide-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    transform-origin: center center;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.banner-slide-3d.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    pointer-events: auto;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.banner-slide-3d.prev {
    opacity: 0;
    transform: translateX(-80%) scale(0.8) rotateY(25deg);
    z-index: 10;
}

.banner-slide-3d.next {
    opacity: 0;
    transform: translateX(80%) scale(0.8) rotateY(-25deg);
    z-index: 10;
}

/* [Random Geometric Slice Transitions] */
.slice-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    perspective: 1200px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.slice-strip {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    overflow: hidden;
    background-color: #000;
}

.slice-strip.vertical {
    height: 100%;
    top: 0;
    transform-origin: left center;
}

.slice-strip.horizontal {
    width: 100%;
    left: 0;
    transform-origin: top center;
}

.slice-strip.flipped-v {
    transform: rotateY(-90deg);
    opacity: 0;
}

.slice-strip.flipped-h {
    transform: rotateX(-90deg);
    opacity: 0;
}

/* Utility for animation */
.anim-active {
    pointer-events: none;
    z-index: 50;
}

/* [True Triangular Prism Effect] */
.prism-container {
    overflow: visible !important;
    perspective: 3000px;
    transform-style: preserve-3d;
}

.prism-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.2, 1);
    top: 0;
    bottom: 0;
}

.prism-face {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    backface-visibility: hidden;
    background-size: cover;
    background-repeat: no-repeat;
}