/* ============================================== */
/* Royal 스타일 히어로 섹션 (image.png 디자인)    */
/* ============================================== */
.royal-hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(20, 184, 166, 0.18) 0%, rgba(15, 23, 42, 0) 60%),
        linear-gradient(180deg, #0b1a1c 0%, #0a1517 55%, #06100f 100%);
    border: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(212, 175, 55, 0.12);
}
.royal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 80% 10%, rgba(212, 175, 55, 0.18) 0%, rgba(0,0,0,0) 60%),
        radial-gradient(60% 50% at 20% 10%, rgba(255, 122, 24, 0.15) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}
.royal-hero-inner {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}
.royal-hero-banner {
    display: block;
    width: 100%;
    line-height: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
.royal-hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}
.royal-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: calc(100% - 24px);
    max-width: 420px;
}
.royal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    border: 1px solid transparent;
    min-height: 64px;
}
.royal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.royal-btn-dark {
    background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%);
    color: #f5e6a8;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4), inset 0 1px 0 rgba(212, 175, 55, 0.18);
}
.royal-btn-emblem {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 999px;
    padding: 1px 8px;
    line-height: 1.4;
}
.royal-btn-orange {
    background: linear-gradient(180deg, #ff8a3d 0%, #e85d04 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.royal-btn-gold {
    background: linear-gradient(180deg, #f5c84b 0%, #c98e1b 100%);
    color: #2a1a05;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}
.royal-btn-text {
    font-size: 13px;
}

/* ============================================== */
/* 최고의 카지노 / 포럼 섹션 헤더                  */
/* ============================================== */
.royal-section {
    width: calc(100% - 24px);
    max-width: 1200px;
    margin: 0 auto 18px;
}
.royal-section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 4px;
    margin-bottom: 10px;
    border-bottom: 0;
}
.royal-section-head::before,
.royal-section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.55) 100%);
}
.royal-section-head::after {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.55) 0%, rgba(212, 175, 55, 0) 100%);
}
.royal-section-head-board {
    margin-top: 4px;
}
.royal-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: #d4af37;
    background: transparent;
    border: 0;
    flex-shrink: 0;
}
.royal-section-icon svg {
    width: 12px;
    height: 12px;
}
.royal-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.royal-section-title::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'><path d='M12 2l3 7h7l-5.5 4 2 7-6.5-4.5L5.5 20l2-7L2 9h7z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ============================================== */
/* 카지노 카드 그리드                              */
/* ============================================== */
.royal-casino-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.royal-casino-card {
    display: flex;
    flex-direction: column;
    background: #0f171e;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
}
/* 카드 안 요소 순서 강제 고정 */
.royal-casino-card .royal-casino-thumb        { order: 1; }
.royal-casino-card .royal-casino-rating-block { order: 2; display: flex; flex-direction: column; align-items: center; padding: 10px 0 6px; }
.royal-casino-card .royal-casino-more         { order: 3; margin-top: auto; }
/* 묶인 블록 안: Score 위, 별 아래 */
.royal-casino-rating-block .royal-casino-score { margin-bottom: 8px; }
.royal-casino-rating-block .royal-casino-stars { padding: 0; }

.royal-casino-thumb {
    position: relative;
    width: 100%;
    height: 56px;             /* 모든 카드 이미지 동일 높이로 고정 */
    background: #0f171e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 6px;             /* 로고 안쪽 여백 → 시각적으로 작게 */
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .royal-casino-thumb { height: 100px; padding: 14px; }
}

/* 모바일에서 카드 전체 컴팩트하게 */
@media (max-width: 640px) {
    .royal-casino-card .royal-casino-rating-block { padding: 4px 0 2px !important; }
    .royal-casino-score { font-size: 11px !important; padding: 0 !important; }
    .royal-casino-stars { padding: 1px 0 0 !important; gap: 1px !important; }
    .royal-casino-stars .rs-star { font-size: 10px; }
    .royal-casino-more { margin: 4px !important; padding: 4px 6px !important; font-size: 10px !important; gap: 3px !important; }
    .royal-casino-more svg { width: 10px; height: 10px; }
}
.royal-casino-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;      /* 비율 유지하며 가운데 정렬 */
    display: block;
    margin: auto;
}
/* 흑백주사위 로고만 더 크게 표시 (투명 PNG라 안전하게 확대 가능) */
.royal-casino-thumb img[src*="dice-bw-transparent"] {
    transform: scale(2.2);
    transform-origin: center;
}
/* 카드 안 Score 텍스트 */
.royal-casino-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-top: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    line-height: 1;
}
.royal-casino-score .rs-score-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: rgba(212, 175, 55, 0.85);
    text-transform: uppercase;
}
.royal-casino-score .rs-score-num {
    font-size: 16px;
    font-weight: 900;
    color: #ffe9a0;
    letter-spacing: 0.3px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}

/* 카드 안 별점 (장식용 5개) */
.royal-casino-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 0 4px;      /* Score 바로 아래에 붙음 */
}
.royal-casino-stars .rs-star {
    color: #FFD700;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

/* 카드 안 더보기 버튼 (카드 자체 호버 효과는 없음) */
.royal-casino-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(15, 23, 30, 0.7));
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.32);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
.royal-casino-more svg {
    transition: transform 0.18s ease;
}
.royal-casino-more:hover {
    background: linear-gradient(180deg, #f5c84b 0%, #c98e1b 100%);
    border-color: rgba(212, 175, 55, 0.9);
    color: #2a1a05;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(212, 175, 55, 0.35);
}
.royal-casino-more:hover svg {
    transform: translateX(3px);
}
.royal-casino-more:active {
    transform: translateY(0);
    filter: brightness(0.95);
}
/* 제휴카지노 슬라이더 */
.royal-casino-swiper-wrap {
    position: relative;
    padding: 0 36px;
}
.royal-casino-swiper {
    width: 100%;
    overflow: hidden;
}
.royal-casino-swiper .swiper-slide {
    height: auto;
    display: flex;
}
.royal-casino-swiper .swiper-slide .royal-casino-card {
    width: 100%;
}
.royal-casino-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #f5e6a8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
}
.royal-casino-nav:hover {
    background: rgba(212, 175, 55, 0.85);
    border-color: rgba(212, 175, 55, 0.95);
    color: #1a1208;
    transform: translateY(-50%) scale(1.05);
}
.royal-casino-prev { left: 0; }
.royal-casino-next { right: 0; }
.royal-casino-thumb-placeholder {
    color: #d4af37;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}
.royal-casino-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(11, 26, 28, 0.85);
}
.royal-casino-name {
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}
.royal-casino-cta {
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
}
.royal-section-more {
    margin-left: auto;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.18s;
}
.royal-section-more:hover { color: #d4af37; }

.royal-section-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.08));
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
}

/* 먹튀기록 섹션: '더보기 ›' 링크를 헤더 아래 별도 패널로 분리 — h3는 자연스레 가운데 정렬 */
/* 헤더 하단 간격 축소: 다른 royal-section은 영향 없도록 .scam 타이틀이 있는 헤더만 한정 */
.royal-section-head:has(.royal-section-title-scam) {
    padding-bottom: 4px;
    margin-bottom: 0;
}
.royal-section-more-panel {
    display: flex;
    justify-content: flex-end;
    padding: 0 4px 10px;
}
.royal-section-more-panel .royal-section-more {
    margin-left: 0;
    font-size: 13px;
}

/* 먹튀사이트 최근기록 타이틀: 좌우 경광등 이미지 */
.royal-section-title-scam {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.royal-section-title-scam .royal-title-img {
    height: 1.6em;
    width: auto;
    display: block;
}
.royal-scam-title-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.royal-scam-title-link:hover { color: #ef4444; }
/* 이 타이틀은 끝에 별 아이콘(::after) 표시하지 않음 — 우측 이미지가 이미 그 자리 차지 */
.royal-section-title-scam::after {
    content: none !important;
}

/* ============================================== */
/* 게시판 2x2 그리드 (공지/이벤트 / 자유/홍보)      */
/* 기존 .boards-container (3열)을 덮어쓰기 위해 결합 셀렉터 사용 */
/* ============================================== */
.boards-container.royal-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 768px) {
    .boards-container.royal-board-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
/* 4개 보드는 모두 항상 보이게 (모바일 탭 분기 규칙 무시) */
.boards-container.royal-board-grid .board-box { display: block !important; }
/* 모바일에서도 각 게시판 헤더(제목·더보기) 항상 표시 (기존 탭 모드용 숨김 규칙 복구) */
.boards-container.royal-board-grid .board-box .board-header { display: flex !important; }

/* ============================================== */
/* 최근 먹튀기록 카드 (디자인 카드)                 */
/* ============================================== */
.royal-scam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.royal-scam-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.10) 0%, rgba(15, 23, 42, 0.85) 60%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    overflow: hidden;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.royal-scam-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 50% at 100% 0%, rgba(239, 68, 68, 0.18) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}
.royal-scam-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.22);
}
.royal-scam-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ef4444, #b91c1c);
}
.royal-scam-emblem {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(15, 23, 42, 0.5));
    border: 1px solid rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    align-self: center;
}
.royal-scam-emblem-letter {
    font-size: 24px;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.royal-scam-emblem-warn {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #b91c1c;
    border: 2px solid #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.royal-scam-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    z-index: 1;
}
.royal-scam-top {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}
.royal-scam-site {
    font-size: 12px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.royal-scam-tag {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ef4444, #991b1b);
    padding: 2px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    flex-shrink: 0;
}
.royal-scam-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.royal-scam-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(239, 68, 68, 0.22);
    font-size: 11px;
}
.royal-scam-damage {
    color: #fca5a5;
    font-weight: 800;
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(239, 68, 68, 0.3);
}
.royal-scam-damage-empty {
    color: rgba(148, 163, 184, 0.7);
    font-weight: 500;
    font-style: italic;
    font-size: 11px;
}
.royal-scam-meta {
    color: rgba(148, 163, 184, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
    max-width: 50%;
}
@media (max-width: 480px) {
    .royal-scam-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
    .royal-scam-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* ============================================== */
/* 미리보기 카드 그리드 (최근 먹튀기록 등)         */
/* ============================================== */
.royal-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.royal-post-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.06), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.royal-post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.55);
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.15);
}
.royal-post-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a2332, #0f172a);
    overflow: hidden;
}
.royal-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.royal-post-thumb-icon {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(20, 184, 166, 0.4);
}
.royal-post-thumb.no-thumb .royal-post-thumb-icon { display: flex; }
.royal-post-thumb.no-thumb img { display: none; }
.royal-post-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.royal-post-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.royal-post-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.royal-post-summary {
    margin: 0;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.85);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.royal-post-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.8);
}
.royal-post-author { font-weight: 600; color: #cbd5e1; }
.royal-post-stats { font-size: 10px; }

/* 먹튀기록 variant — 빨간 톤 + 먹튀확정 뱃지 + 피해금액 강조 */
.royal-post-card-scam {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.7));
    border-color: rgba(239, 68, 68, 0.25);
}
.royal-post-card-scam:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.18);
}
.royal-post-card-scam .royal-post-thumb-icon {
    color: rgba(239, 68, 68, 0.45);
}
.royal-post-badge-scam {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.royal-scam-site-tag {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.3px;
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.royal-scam-damage-inline {
    color: #fca5a5;
    font-weight: 800;
    font-size: 11px;
    text-shadow: 0 1px 3px rgba(239, 68, 68, 0.25);
}

/* ============================================== */
/* 카지노법정 (먹튀제보 카드)                       */
/* ============================================== */
.royal-court-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.royal-court-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.06), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-left: 3px solid rgba(239, 68, 68, 0.7);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.royal-court-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.18);
}
.royal-court-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(203, 213, 225, 0.7);
}
.royal-court-author { font-weight: 600; color: #cbd5e1; }
.royal-court-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.royal-court-site {
    font-size: 11px;
    color: #d4af37;
    font-weight: 600;
}
.royal-court-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(239, 68, 68, 0.2);
    font-size: 12px;
}
.royal-court-damage {
    color: #fca5a5;
    font-weight: 700;
}
.royal-court-damage-empty {
    color: rgba(148, 163, 184, 0.7);
    font-weight: 500;
    font-style: italic;
}
.royal-court-cta {
    color: #d4af37;
    font-weight: 700;
    font-size: 11px;
}

/* ============================================== */
/* 스캠리포트 + 아이템샵 CTA                       */
/* ============================================== */
.royal-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 18px;
}
.royal-cta-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    min-height: 96px;
}
.royal-cta-card:hover { transform: translateY(-2px); filter: brightness(1.08); }
.royal-cta-scam {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.85));
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.18);
}
.royal-cta-shop {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.85));
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.18);
}
.royal-cta-emblem {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.royal-cta-scam .royal-cta-emblem {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.royal-cta-shop .royal-cta-emblem {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(20, 184, 166, 0.1));
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.45);
}
.royal-cta-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.royal-cta-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}
.royal-cta-desc {
    margin: 0;
    font-size: 11px;
    color: rgba(203, 213, 225, 0.75);
    line-height: 1.35;
}
.royal-cta-action {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
}

/* 모바일 (좁은 화면) */
@media (max-width: 480px) {
    .royal-post-grid, .royal-court-grid { grid-template-columns: 1fr; }
    .royal-cta-row { grid-template-columns: 1fr; }
    .royal-casino-swiper-wrap { padding: 0 28px; }
    .royal-casino-nav { width: 28px; height: 28px; }
}

/* PC에서는 카드 4열 */
@media (min-width: 768px) {
    .royal-hero-inner { padding: 0; }
    .royal-hero-banner { margin-bottom: 0; }
    .royal-hero-actions { max-width: 560px; width: calc(100% - 32px); }
    .royal-casino-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .royal-post-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .royal-court-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* SEO 메인 헤딩 - 스크린리더 접근 가능, 시각적으로 숨김 */
.seo-main-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 메인 컨텐츠 영역 */
.index-content {
    background: var(--bg-primary);
    padding: var(--spacing-md) 0 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 메인 히어로 이미지 */
.hero-banner {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    line-height: 0;
}
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

/* 홍보 배너 - 가로형 슬라이더 */
.promo-swiper-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    padding: 0 36px; /* 좌우 화살표 공간 */
}
.promo-swiper {
    width: 100%;
    overflow: hidden;
}
.promo-swiper .swiper-slide {
    aspect-ratio: 2 / 1; /* 가로 2 : 세로 1 (가로형 띠) */
    height: auto;
}
.promo-slide-card {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    background: rgba(255,255,255,0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.promo-slide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.15);
}
.promo-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 좌/우 화살표 */
.promo-swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(20, 184, 166, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
}
.promo-swiper-nav:hover {
    background: rgba(20, 184, 166, 0.85);
    border-color: rgba(20, 184, 166, 0.9);
    transform: translateY(-50%) scale(1.05);
}
.promo-swiper-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.promo-swiper-prev { left: 0; }
.promo-swiper-next { right: 0; }

/* (구) 홍보 배너 - 사용 안 됨, 보존만 */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 10px;
}

.promo-banner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s;
    height: 80px;
}

.banner-gif {
    padding: 0;
    overflow: hidden;
    background: none;
    height: 80px;
    transition: transform 0.2s;
    border: 1px solid var(--border-dark);
}
.banner-placeholder {
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    height: 80px;
    cursor: default;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0.03));
    border: 1px solid var(--border-dark);
}
.banner-gif-img {
    width: 100%;
    height: 80px;
    object-fit: fill;
    border-radius: 0;
    display: block;
}
.promo-banner:hover {
    transform: scale(1.02);
}

.banner-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.1));
    border-radius: 12px;
    color: var(--accent-primary, #14b8a6);
    flex-shrink: 0;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.banner-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.banner-arrow {
    font-size: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .promo-swiper-wrapper {
        padding: 0 28px;
    }
    .promo-swiper-nav {
        width: 26px;
        height: 26px;
    }
    .promo-swiper-nav svg {
        width: 16px;
        height: 16px;
    }

    .promo-banners {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner {
        height: 50px;
    }

    .banner-gif {
        height: 50px;
    }

    .banner-placeholder {
        height: 50px;
    }

    .banner-gif-img {
        height: 50px;
        object-fit: fill;
    }
}

/* 바로가기 메뉴 */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.quick-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0.03));
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.quick-menu-item:hover {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(20, 184, 166, 0.08));
    border-color: rgba(20, 184, 166, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.quick-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.08));
    border-radius: 10px;
    color: var(--accent-primary, #14b8a6);
    flex-shrink: 0;
}

.quick-menu-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .quick-menu {
        gap: 6px;
    }
    .quick-menu-item {
        padding: 10px 6px;
        gap: 6px;
    }
    .quick-menu-icon {
        width: 30px;
        height: 30px;
    }
    .quick-menu-icon svg {
        width: 16px;
        height: 16px;
    }
    .quick-menu-label {
        font-size: 12px;
    }
}

/* 공지사항 행 스타일 */
.notice-row {
    background: var(--bg-tertiary);
}

.notice-row a {
    color: var(--text-primary);
}

/* 공지/이벤트 뱃지는 글로벌 style.css 의 .notice-badge / .notice-badge.badge-event 사용 (전역 통일) */

/* 게시판 컨테이너 — PC에서는 3열 가로 배치 */
.boards-container {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* PC에서는 각 게시판의 하단 margin 제거 (gap이 대체) */
.boards-container .board-box {
    margin-bottom: 0;
}

/* 모바일 전용 탭 네비게이션 (PC에선 숨김) */
.board-tabs {
    display: none;
}

@media (max-width: 768px) {
    .boards-container {
        display: flex;
        flex-direction: column;
    }

    .board-tabs {
        display: flex;
        gap: 0;
        margin: 0;
        background: var(--bg-secondary);
        border: 1px solid var(--border-dark);
        border-bottom: none;
        border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
        padding: 0;
        overflow: hidden;
    }
    .board-tab {
        flex: 1;
        padding: 12px 8px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        position: relative;
        transition: color 0.2s;
    }
    .board-tab[aria-selected="true"] {
        color: var(--accent-primary, #14b8a6);
        font-weight: 700;
        font-size: 15px;
    }
    .board-tab[aria-selected="true"]::after {
        content: '';
        position: absolute;
        left: 12%;
        right: 12%;
        bottom: 0;
        height: 2px;
        background: var(--accent-primary, #14b8a6);
        border-radius: 2px;
    }

    /* 탭 콘텐츠: 선택된 것만 표시, 탭과 간격 없이 붙임 */
    .boards-container .board-box {
        display: none;
    }
    .boards-container .board-box.is-active {
        display: block;
        margin-top: 0;
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    /* 모바일 탭 모드에서는 각 게시판 헤더(제목·더보기) 숨김 — 탭이 제목 역할 */
    .boards-container .board-box .board-header {
        display: none;
    }
    /* 단, 상하 분할 박스(공지+이벤트)의 두 번째 헤더는 구분 용도로 모바일에도 표시 */
    .boards-container .board-split .board-header.board-header-secondary {
        display: flex;
    }
}

/* 게시판 고정 크기 */
.board-fixed {
    width: 100%;
    margin-bottom: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* 상하 분할 박스(공지+이벤트)의 두 번째 헤더(이벤트) 구분 강조 */
.board-split .board-header-secondary {
    border-top: 6px solid rgba(20, 184, 166, 0.28);
    margin-top: 0;
    padding: 8px var(--spacing-md);
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .board-split .board-header-secondary {
        border-top-width: 8px;
        padding: 6px var(--spacing-md);
    }
}

.board-list-fixed {
    height: auto;
    overflow-y: visible;
}

.board-list-fixed li {
    height: 35px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .board-list-fixed li {
        height: 34px;
    }
    .board-list-fixed .empty-row {
        height: 34px;
    }
}

.board-list-fixed li a {
    width: 100%;
}

.board-list-fixed .empty-row {
    height: 35px;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* 댓글 수 표시 */
.comment-count {
    color: var(--accent-blue);
    font-size: 12px;
    margin-left: 5px;
    font-weight: 500;
}

/* 새글 N 표시 */
.new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    animation: newBadgePulse 1.5s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(255, 71, 87, 0.4);
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}
