/* ===================================
   구룡쟁패 - 새 홈페이지 디자인
   React to Blade 변환
   =================================== */

/* ===================================
   Hero Section
   =================================== */
.hero-new {
    position: relative;
    height: 920px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-new-bg {
    position: absolute;
    inset: 0;
}

.hero-new-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1);
}

.hero-new-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%); */
}

.hero-new-overlay-lr {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.4) 100%); */
}

/* 화염 파티클 */
.fire-particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
}

.fire-particle {
    position: absolute;
    --rise: 900px;
    opacity: 0;
    background: radial-gradient(circle, #ff4500 0%, #ff6b35 18%, #f7931e 38%, #ffd700 65%, rgba(255, 215, 0, 0.35) 82%, transparent 100%);
    border-radius: 50%;
    animation: fireSpread linear infinite;
    filter: blur(1.5px);
    box-shadow:
        0 0 14px rgba(255, 69, 0, 0.95),
        0 0 28px rgba(255, 107, 53, 0.75),
        0 0 48px rgba(247, 147, 30, 0.45);
    will-change: transform, opacity;
}

/* 작고 밝은 잔불·불꽃 */
.fire-particle--ember {
    filter: blur(0.9px);
    background: radial-gradient(circle, #fffef5 0%, #ffe566 22%, #ffb020 48%, #ff6b35 72%, transparent 100%);
    box-shadow:
        0 0 8px rgba(255, 248, 220, 0.95),
        0 0 18px rgba(255, 180, 60, 0.7),
        0 0 28px rgba(255, 100, 40, 0.4);
    animation-name: fireEmber;
}

/* 크고 느린 열기 덩어리 */
.fire-particle--slow {
    filter: blur(2.2px);
    opacity: 0.92;
    background: radial-gradient(circle, #ff5a1f 0%, #e8480f 25%, #c73d0a 45%, #8b2500 70%, transparent 100%);
    box-shadow:
        0 0 24px rgba(255, 90, 31, 0.85),
        0 0 56px rgba(200, 50, 10, 0.35);
    animation-name: fireSpreadSlow;
}

@keyframes fireSpread {
    0% {
        transform: translateX(0) translateY(120px) scale(1) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    22% {
        transform: translateX(calc(var(--random-x) * 0.22)) translateY(calc(var(--rise) * -0.28)) scale(1.05) rotate(140deg);
        opacity: 0.95;
    }
    45% {
        transform: translateX(calc(var(--random-x) * 0.52)) translateY(calc(var(--rise) * -0.52)) scale(0.82) rotate(300deg);
        opacity: 0.78;
    }
    72% {
        transform: translateX(calc(var(--random-x) * 0.85)) translateY(calc(var(--rise) * -0.78)) scale(0.45) rotate(520deg);
        opacity: 0.4;
    }
    100% {
        transform: translateX(var(--random-x)) translateY(calc(var(--rise) * -1)) scale(0.15) rotate(720deg);
        opacity: 0;
    }
}

@keyframes fireEmber {
    0% {
        transform: translateX(0) translateY(90px) scale(1);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    55% {
        transform: translateX(calc(var(--random-x) * 0.75)) translateY(calc(var(--rise) * -0.62)) scale(0.55);
        opacity: 0.85;
    }
    100% {
        transform: translateX(var(--random-x)) translateY(calc(var(--rise) * -1)) scale(0.08);
        opacity: 0;
    }
}

@keyframes fireSpreadSlow {
    0% {
        transform: translateX(0) translateY(140px) scale(1.1) rotate(0deg);
        opacity: 0;
    }
    14% {
        opacity: 0.95;
    }
    40% {
        transform: translateX(calc(var(--random-x) * 0.35)) translateY(calc(var(--rise) * -0.38)) scale(0.95) rotate(120deg);
        opacity: 0.88;
    }
    70% {
        transform: translateX(calc(var(--random-x) * 0.72)) translateY(calc(var(--rise) * -0.72)) scale(0.55) rotate(280deg);
        opacity: 0.45;
    }
    100% {
        transform: translateX(var(--random-x)) translateY(calc(var(--rise) * -1)) scale(0.2) rotate(420deg);
        opacity: 0;
    }
}

/* Hero 텍스트 영역 */
.hero-new-content {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 1320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* 히어로 하단 CTA 버튼 */
.hero-cta-text {
    position: absolute;
    bottom: 216px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    white-space: nowrap;
}
.hero-cta-text .hero-title {
    font-size: 46px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.hero-cta-text .hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero-cta-row {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 76px;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn--outline {
    background: #fdd681;
    border: 2px solid #fdd681;
    color: #1a0e00;
}

.hero-cta-btn--outline:hover {
    background: #f0c55a;
    border-color: #f0c55a;
    color: #1a0e00;
}

.hero-cta-btn--solid {
    background: #fdd681;
    border: 2px solid #fdd681;
    color: #1a0e00;
}

.hero-cta-btn--solid:hover {
    background: #f0c55a;
    border-color: #f0c55a;
    color: #1a0e00;
}

.hero-cta-arrow {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    animation: hero-arrow-bounce 0.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

@keyframes hero-arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.hero-character {
    position: absolute;
    right: -300px;
    top: 0;
    z-index: 0;
}

/* 기본(넓은 데스크톱): .hero-new-content 1320px과 동일 폭 체계 */
.hero-character img {
    width: 1000px;
    height: auto;
    object-fit: contain;
    transform: translateX(-70px) translateY(-15px);
}

.hero-character2 {
    position: absolute;
    right: 0;
    top: 110px;
    z-index: 1;
}

.hero-character2 img {
    width: 780px;
    height: auto;
    object-fit: contain;
    transform: translateX(-420px) translateY(-185px);
}

.hero-text-block {
    flex: 0 0 auto;
    width: 1500px;
    min-width: 0;
    transform: translateY(100px);
    text-align: left;
    position: relative;
    z-index: 1;
    padding-left: 0;
    box-sizing: border-box;
}

.hero-text-block .hero-subtitle {
    font-size: 18px;
    margin-bottom: 0;
    color: #C2C2C2;
}

.hero-text-block .hero-title {
    font-size: 44px;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1;
    color: #f1f1f1;
}

.hero-text-block .hero-description {
    font-size: 16px;
    line-height: 1.5;
    color: #C2C2C2;
    margin-bottom: 10px;
}

.hero-text-block .hero-btn {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 24px;
    background-color: rgba(223, 203, 150, 1);
    background-color: #DFCB96;
    opacity: 0.8;
    color: #1a1a1a;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    min-width: 140px;
    height: 36px;
}

.hero-text-block .hero-btn svg {
    width: 14px;
    height: 14px;
}

.hero-text-block .hero-btn:hover {
    opacity: 1;
}

/* Hero 배너 블록 */
.hero-banner-container {
    position: absolute;
    top: 404px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 1320px;
    height: 500px;
}

.hero-banner-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 100%;
}

/* 메인 배너 슬라이더 */
.hero-main-banner {
    position: relative;
    width: 890px;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.hero-banner-swiper {
    width: 100%;
    height: 100%;
}

.hero-banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 배너 하단 타이틀 리스트 */
.hero-banner-titles {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    overflow: hidden;
    transition: all 0.5s ease;
    max-height: 0;
}

.hero-main-banner:hover .hero-banner-titles {
    max-height: 200px;
}

.hero-banner-titles-inner {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.75);
}

.hero-banner-titles-grid {
    width: 730px;
    margin-left: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.hero-banner-title-btn {
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.6);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    white-space: nowrap;
    text-align: center;
}

.hero-banner-title-btn.active,
.hero-banner-title-btn:hover {
    color: white;
}

/* 배너 인디케이터 */
.hero-banner-indicator {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 20;
    border-radius: 9999px;
    padding: 4px 8px;
    backdrop-filter: blur(8px);
    background-color: rgba(0,0,0,0.45);
}

.hero-banner-nav-btn {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-nav-btn:hover {
    color: white;
}

.hero-banner-nav-btn svg {
    width: 16px;
    height: 16px;
}

.hero-banner-count {
    color: white;
    font-size: 14px;
    padding: 0 8px;
    min-width: 45px;
    text-align: center;
}

.hero-banner-mobile-meta {
    display: none;
}

/* 우측 카드 영역 */
.hero-side-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1025px) {
    .hero-side-mobile-news {
        display: none !important;
    }
}

/* 서브 배너 카드 */
.sub-banner-card {
    position: relative;
    width: 418px;
    height: 113px;
    background-color: #A89D8A;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.sub-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-banner-card:hover::before {
    opacity: 0;
}

.sub-banner-card:hover {
    transform: none;
    box-shadow: none;
}

/* 카드 전체 배경 이미지 */
.sub-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.sub-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 텍스트 영역: 왼쪽은 margin으로 비워 두면 박스가 이미지 옆 열부터 시작(패딩만 쓸 때보다 DevTools상 덜 넓어 보임) */
.sub-banner-content {
    flex: 1;
    min-width: 0;
    margin-left: 160px;
    padding: 16px 20px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.sub-banner-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    margin-bottom: 6px;
    width: fit-content;
}

.sub-banner-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px -20px;
    line-height: 1.2;
}

.sub-banner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 0 -20px;
    line-height: 1.3;
    width: 200px;
    box-sizing: border-box;
}

/* 데스크톱: 위 기본 margin(-20px)보다 뒤에 두어 캐스케이드에서 확실히 적용 */
@media (min-width: 1025px) {
    .sub-banner-title {
        margin: 0 0 4px 20px;
    }

    .sub-banner-desc {
        margin: 0 0 0 20px;
    }
}

/* 우측 화살표 */
.sub-banner-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.sub-banner-card:hover .sub-banner-arrow {
    transform: translateY(-50%) translateX(4px);
}

.sub-banner-arrow svg {
    width: 20px;
    height: 20px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 새소식 카드 */
.news-card-new {
    width: 418px;
    height: 386px;
    background-color: rgb(31, 31, 31);
    padding: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-left: 12px;
    padding-right: 12px;
}

.news-card-header-new h3 {
    color: white;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    margin: 10px 0 0;
}

.news-card-header-new .news-card-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.3s ease;
    line-height: 0;
}

.news-card-header-new .news-card-more-link:hover {
    color: white;
}

.news-card-header-new .news-card-more-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.news-card-header-new button {
    color: #999;
    transition: color 0.3s ease;
    font-size: 32px;
    line-height: 1;
    font-weight: 400;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.news-card-header-new button:hover {
    color: white;
}

.news-card-list-new {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    flex: 1;
}

.news-card-tabs-mobile {
    display: none;
}

.hero-news-pane {
    display: none;
}

.hero-news-pane.active {
    display: flex;
}

.news-card-item-new {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.news-card-item-new:hover {
    background-color: rgba(255,255,255,0.05);
}

.news-card-item-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.news-card-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
}

.news-card-item-title {
    flex: 1;
    min-width: 0;
    color: #d1d1d1;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #dc2626;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.news-card-item-date {
    color: #666;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===================================
   Action Button Section
   =================================== */
.action-section {
    background-color: #fff;
    padding: 40px 0 40px 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.action-btn {
    position: relative;
    overflow: hidden;
    background-color: #3a3a3a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 24px 32px;
    box-shadow: none;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.action-btn:nth-child(1) {
    background-image: url('../images/cnt_banner1.png');
}

.action-btn:nth-child(2) {
    background-image: url('../images/cnt_banner2.png');
}

.action-btn:nth-child(3) {
    background-image: url('../images/cnt_banner3.png');
}

/* 호버: 그림자 강화 대신 우→좌 빛 스윕 */
.action-btn::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 18%,
        rgba(255, 255, 255, 0.12) 38%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.12) 62%,
        rgba(255, 255, 255, 0) 82%,
        transparent 100%
    );
    transform: translateX(200%) skewX(-12deg);
    transition: transform 0.65s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
    z-index: 0;
}

.action-btn:hover::before {
    transform: translateX(-200%) skewX(-12deg);
}

.action-btn > * {
    position: relative;
    z-index: 1;
}

.action-btn svg {
    width: 26px;
    height: 26px;
    color: white;
    flex-shrink: 0;
}

.action-btn-text {
    text-align: left;
}

.action-btn-text h3 {
    color: white;
    font-weight: 500;
    font-size: 18px;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .action-btn::before {
        transition: none;
        transform: none;
        opacity: 0;
    }

    .action-btn:hover::before {
        transform: none;
        opacity: 0;
    }
}

/* ===================================
   Notice Section
   =================================== */
.notice-section {
    background-color: rgb(255, 255, 255);
    padding: 20px 0 50px;
}

.notice-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: stretch;
}


/* 홈: DOM은 공지–액션–자유 순이나, PC·태블릿 그리드는 1행 풀폭 액션 → 2행 공지|자유 */
.notice-grid.notice-grid--with-mid-action > .notice-list-card:first-of-type {
    grid-column: 1;
    grid-row: 2;
}

.notice-grid.notice-grid--with-mid-action > .notice-list-card:last-of-type {
    grid-column: 2;
    grid-row: 2;
}

.notice-grid.notice-grid--with-mid-action > .action-section {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    /* 공통 .action-section 세로 패딩 없음 — 행 간격·세로 여백은 .action-grid에서만 처리 */
    padding: 0;
}

/* 데스크톱(1025+): 버튼 그림자·카드 세로 패딩만 (≤1024 태블릿·모바일 규칙과 분리) */
@media (min-width: 1025px) {
    .notice-list-card {
        padding: 24px 0;
    }

    .notice-grid.notice-grid--with-mid-action > .action-section .action-grid {
        padding-top: 60px;
        padding-bottom: 30px;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        gap: 0 24px;
        box-sizing: border-box;
    }

    .notice-grid.notice-grid--with-mid-action > .action-section .action-btn {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
}

.notice-list-card {
    padding: 10px 0;
    background-color: white;
    min-width: 0;
    overflow: hidden;
}

.notice-list-card--event-banner {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}
.notice-event-banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.notice-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
    min-height: 60px;
}

.notice-list-header h3 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* 탭 스타일 */
.notice-tabs {
    display: flex;
    gap: 22px;
}

.notice-tab {
    color: #999;
    font-size: 24px;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    position: relative;
}

.notice-tab.active {
    color: #1a1a1a;
}

.notice-tab.active::after {
    content: '';
    position: absolute;
    bottom: -20.5px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #1a1a1a;
}

.notice-tab:hover {
    color: #1a1a1a;
}

.notice-more-btn {
    color: #999;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notice-more-btn:hover {
    color: #000;
}

.notice-more-btn svg {
    width: 20px;
    height: 20px;
}

.notice-list-header button {
    color: #999;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.notice-list-header button:hover {
    color: #000;
}

.notice-list-header button svg {
    width: 20px;
    height: 20px;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.notice-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.notice-list-item:hover {
    opacity: 0.7;
}

.notice-list-item-title {
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.notice-list-item-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-badge-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #dc2626;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.notice-list-item-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* action-grid 상단 여백: 1025~1279 / 1280~1599 구간을 끊어 1279만 수정할 때 1280+에 안 닿게 함(값 동일 유지) */
@media (min-width: 1025px) and (max-width: 1279px) {
    .action-grid {
        padding-top: 20px;
    }
}

@media (min-width: 1280px) and (max-width: 1599px) {
    .action-grid {
        padding-top: 20px;
    }
}

/* ===================================
   Game Info Section
   =================================== */
.gameinfo-section {
    background-color: rgb(255, 255, 255);
    padding: 40px 0;
}

.gameinfo-container {
    max-width: 1320px;
    margin: 0 auto;
}

.gameinfo-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

/* 자유게시판 */
.community-card {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.community-content {
    background-color: white;
    padding: 24px;
    padding-right: 24px;
    flex: 1;
}

.community-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
}

.community-header h3 {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
}

.community-header button {
    color: #999;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.community-header button:hover {
    color: #000;
}

.community-header button svg {
    width: 20px;
    height: 20px;
}

/* 뉴스 미리보기 카드 */
.news-preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-preview-content {
    background-color: white;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.news-preview-main {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
}

.news-preview-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: rgba(168, 157, 138, 1);
    border: none;
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    background-color: transparent;
}

/* 본문에 첫 이미지 없음: SVG 플레이스홀더는 잘리지 않게 */
.news-preview-image img.news-preview-image--placeholder {
    object-fit: contain;
    object-position: center;
    padding: 36px 48px;
    box-sizing: border-box;
    opacity: 0.95;
}

.news-preview-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-preview-title {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 6px 0;
    min-height: 20px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

/* 마상 소식 — 제목과 동일 크기, 그레이 + 세로 구분선 (클릭 영역 아님, hover 없음) */
.news-preview-main-label {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    color: #888;
    background: none;
    border: none;
}

.news-preview-main-label::after {
    content: '';
    flex-shrink: 0;
    width: 1px;
    height: 0.9em;
    margin-left: 10px;
    margin-right: 10px;
    align-self: center;
    background-color: #ccc;
}

.news-preview-title-text {
    flex: 1;
    min-width: 0;
    color: #1a1a1a;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-preview-date {
    color: #999;
    font-size: 13px;
}

.news-preview-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background-color: #F5F5F5;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.news-preview-next:hover {
    background-color: #ECECEC;
}

.news-preview-next-label {
    color: #999;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.news-preview-next-title {
    color: #555;
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
}

.news-preview-arrow {
    width: 18px;
    height: 18px;
    color: #999;
    flex-shrink: 0;
}

.news-preview-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: auto;
}

.news-preview-more:hover {
    border-color: #9B8B6F;
    color: #9B8B6F;
}

.news-preview-more svg {
    width: 14px;
    height: 14px;
}

.news-preview-empty {
    color: #999;
    text-align: center;
    padding: 40px 20px;
}

/* 랭킹 카드 */
.ranking-card-new {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ranking-content {
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    height: 100%;
}

.ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
}

.ranking-header h3 {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    line-height: 1;
}

.ranking-header-title {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.ranking-date {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.ranking-header button {
    color: #999;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ranking-header button:hover {
    color: #000;
}

.ranking-header button svg {
    width: 20px;
    height: 20px;
}

.ranking-table {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background-color: #FAFAFA;
    border-radius: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
    height: 100%;
}

.ranking-filter-row {
    background-color: #F8F8F8;
}

.ranking-filter-cell {
    padding: 10px 16px;
}

.ranking-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ranking-select {
    width: 120px;
    height: 34px;
    background-color: white;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.ranking-select:focus {
    border-color: #9B8B6F;
}

.ranking-date-input {
    width: 130px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    background-color: white;
    outline: none;
}

.ranking-date-input:focus {
    border-color: #9B8B6F;
}

.ranking-search-btn {
    padding: 0 18px;
    height: 34px;
    color: white;
    transition: all 0.3s ease;
    background-color: #9B8B6F;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.ranking-search-btn:hover {
    background-color: #8a7a5f;
}

.ranking-header-row {
    background-color: #F0F0F0;
    border-bottom: none;
}

.ranking-header-row th {
    text-align: center;
    padding: 12px 12px;
    color: #555;
    font-size: 15px;
    font-weight: 400;
    border-bottom: 1px solid #E0E0E0;
}

.ranking-header-row th:first-child {
    width: 80px;
}

.ranking-header-row th:nth-child(2) {
    width: 22%;
}

.ranking-header-row th:nth-child(3) {
    width: 20%;
}

.ranking-header-row th:nth-child(4) {
    width: 24%;
}

.ranking-header-row th:nth-child(5) {
    width: auto;
}

.ranking-data-row {
    border-bottom: none;
    background-color: white;
}

.ranking-data-row td {
    padding: 8px 12px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.ranking-data-row:last-child td {
    border-bottom: none;
}

.ranking-rank-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.ranking-rank-icon {
    position: relative;
    width: 32px;
    height: 28px;
    flex-shrink: 0;
    line-height: 0;
}

.ranking-rank-icon svg {
    display: block;
    width: 32px;
    height: 28px;
    flex-shrink: 0;
}

.ranking-rank-icon .ranking-rank-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    pointer-events: none;
}

.ranking-rank-text {
    color: #555;
    font-size: 15px;
    font-weight: 400;
}

.ranking-faction-text {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}

.ranking-faction-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ranking-faction-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 3px;
    line-height: 1.2;
    flex-shrink: 0;
}

.badge-white {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.badge-black {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
}

.ranking-position-text {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}

.ranking-character-text {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
}

/* 부여별호: 직책과 동일 색·타이포 (홈 랭킹 테이블) */
.ranking-content .ranking-table .ranking-title-text,
.ranking-content .ranking-table .ranking-no-title {
    color: #666;
    font-size: 15px;
    font-weight: 400;
}

.ranking-title-image {
    height: 24px;
    width: auto;
    max-width: 120px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

/* 별호 이미지 색상 변형 */
.ranking-title-image.color-1 {
    filter: hue-rotate(0deg) saturate(1.2);
}

.ranking-title-image.color-2 {
    filter: hue-rotate(60deg) saturate(1.1);
}

.ranking-title-image.color-3 {
    filter: hue-rotate(120deg) saturate(1.3);
}

.ranking-title-image.color-4 {
    filter: hue-rotate(180deg) saturate(1.2);
}

.ranking-title-image.color-5 {
    filter: hue-rotate(240deg) saturate(1.1);
}

/* ===================================
   Screenshot Section
   =================================== */
.screenshot-section {
    background-color: #fff;
    padding: 0 0 80px 0;
}

.screenshot-container {
    max-width: 1320px;
    margin: 0 auto;
}

.screenshot-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.screenshot-title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.screenshot-title-area h3 {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
}

.screenshot-title-area button {
    color: #999;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.screenshot-title-area button:hover {
    color: #000;
}

.screenshot-title-area button svg {
    width: 20px;
    height: 20px;
}

.screenshot-divider {
    flex: 1;
    height: 1px;
    background-color: #d1d1d1;
}

.screenshot-nav {
    display: flex;
    gap: 8px;
}

.screenshot-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d1d1;
    transition: border-color 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.screenshot-nav-btn:hover:not(:disabled) {
    border-color: #999;
}

.screenshot-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.screenshot-nav-btn svg {
    width: 16px;
    height: 16px;
    color: #555;
}

.screenshot-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.screenshot-fade-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    width: 24px;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
}

.screenshot-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    width: 24px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent);
}

.screenshot-slider {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-item {
    width: 240px;
    flex-shrink: 0;
    cursor: pointer;
}

.screenshot-thumb {
    position: relative;
    width: 100%;
    height: 135px;
    overflow: hidden;
    margin-bottom: 8px;
    background-color: #f3f3f3;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 2px;
}

.screenshot-info h4 {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.screenshot-info--empty h4 {
    color: #999;
    font-weight: 400;
}

.screenshot-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ===================================
   홈 하단 풀폭 비주얼 (장식)
   =================================== */
.home-bottom-visual {
    position: relative;
    padding: 0;
    height: 380px;
    background-image: url('https://s3.ap-northeast-1.amazonaws.com/web-files-tokyo.masangsoft.com/cdn/public/ND/homepage/main/main_bg_bottom.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-bottom-visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

/* ===================================
   Responsive
   =================================== */
/* 1025px 미만(372·모바일)에는 적용 금지: 좁은 PC/랩톱용 폭만 조정. 모바일은 아래 max-width:1024/768만 본다 */
/*
 * 뷰포트 끊기(ND home-new): **1025px 이상 = 데스크톱**, 이하 = 태블릿·모바일.
 * 예전 (769~1279) 단일 블록은 태블릿 수정이 1025~1279 창까지 따라가므로 분리함.
 */

@media (min-width: 769px) and (max-width: 1024px) {
    .action-grid,
    .notice-grid,
    .gameinfo-container,
    .screenshot-container {
        width: calc(100% - 52px);
        max-width: calc(100% - 52px);
        margin-left: auto;
        margin-right: auto;
    }

    .action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .gameinfo-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 32px;
    }
}

/* ═══ ND 좁은 데스크톱 전용 (1025~1279) — 이 @media만 고치면 ≤1024·≥1280에 직접 영향 없음 ═══ */
@media (min-width: 1025px) and (max-width: 1279px) {
    .hero-new-content,
    .action-grid,
    .notice-grid,
    .gameinfo-container,
    .screenshot-container {
        width: calc(100% - 52px);
        max-width: calc(100% - 52px);
        margin-left: auto;
        margin-right: auto;
    }

    .action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .gameinfo-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 32px;
    }

    .notice-grid.notice-grid--with-mid-action {
        overflow-x: visible;
        row-gap: 20px;
    }

    .notice-grid.notice-grid--with-mid-action > .action-section {
        margin-left: -26px;
        margin-right: -26px;
        width: calc(100% + 52px);
        max-width: none;
        box-sizing: border-box;
    }

    .notice-grid.notice-grid--with-mid-action > .action-section .action-grid {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    /* 히어로 배경 오버레이: .notice-grid와 동일 26px 좌우 인셋(calc(100% - 52px) 중앙 정렬과 동일) */
    .hero-new-bg .hero-new-overlay {
        inset: auto;
        top: 0;
        bottom: 0;
        left: 26px;
        right: 26px;
        width: auto;
    }
}

/* 와이드 데스크톱(1280+): ≤1024 태블릿·1025~1279 좁은 PC와 겹치지 않게 mid-action 행간만 조정 */
@media (min-width: 1280px) {
    .notice-grid.notice-grid--with-mid-action {
        column-gap: 80px;
        row-gap: 24px;
    }

    /* 히어로 배경 오버레이: .notice-grid max-width 1320px 중앙 정렬과 동일 좌우 여백 */
    .hero-new-bg .hero-new-overlay {
        inset: auto;
        top: 0;
        bottom: 0;
        left: max(0px, calc((100% - 1320px) / 2));
        right: max(0px, calc((100% - 1320px) / 2));
        width: auto;
    }
}

/* notice-grid: max-width:1024에서 1열로 두면 769~1024에서 2열(공지|자유)이 깨짐 → 1열·블록 레이아웃은 max-width:768 구간 규칙만 사용 */

/* 랩톱(1201~1279): 1025~1200은 아래 별도 블록 — 데스크형 한 줄 배너 비율 */
@media (min-width: 1201px) and (max-width: 1279px) {
    .hero-banner-container {
        --hero-w: min(1320px, calc(100vw - 52px));
        width: var(--hero-w);
        max-width: var(--hero-w);
        height: calc(var(--hero-w) * 500 / 1320);
        overflow: hidden;
    }

    .hero-banner-grid {
        width: var(--hero-w);
        height: calc(var(--hero-w) * 500 / 1320);
        gap: calc(var(--hero-w) * 12 / 1320);
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .hero-main-banner {
        flex-shrink: 0;
        width: calc(var(--hero-w) * 890 / 1320);
        height: calc(var(--hero-w) * 500 / 1320);
        min-height: 1px;
    }

    .hero-side-cards {
        flex-shrink: 0;
        gap: calc(var(--hero-w) * 12 / 1320);
    }

    .sub-banner-card {
        width: calc(var(--hero-w) * 418 / 1320);
        height: calc(var(--hero-w) * 113 / 1320);
    }

    .sub-banner-content {
        margin-left: calc(var(--hero-w) * 160 / 1320);
        padding: calc(var(--hero-w) * 16 / 1320) calc(var(--hero-w) * 20 / 1320) calc(var(--hero-w) * 16 / 1320) 0;
    }

    .news-card-new {
        width: calc(var(--hero-w) * 418 / 1320);
        height: calc(var(--hero-w) * 386 / 1320);
    }

    .hero-banner-titles-grid {
        width: calc(var(--hero-w) * 730 / 1320);
    }

    .action-section {
        padding: 40px 0 40px 0;
    }

    /* 캐릭터: hero-new-content calc(100% - 52px) 구간 — 배너 min(1320, 100vw-52)와 동일 폭 체계 */
    .hero-character img {
        width: 700px;
        height: auto;
        object-fit: contain;
        transform: translateX(-180px) translateY(5px);
    }

    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gameinfo-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .hero-banner-container {
        --hero-w: min(1320px, calc(100vw - 52px));
        width: var(--hero-w);
        max-width: var(--hero-w);
        height: calc(var(--hero-w) * 500 / 1320);
        overflow: hidden;
    }

    .hero-banner-grid {
        width: var(--hero-w);
        height: calc(var(--hero-w) * 500 / 1320);
        gap: calc(var(--hero-w) * 12 / 1320);
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .hero-main-banner {
        flex-shrink: 0;
        width: calc(var(--hero-w) * 890 / 1320);
        height: calc(var(--hero-w) * 500 / 1320);
        min-height: 1px;
    }

    .hero-side-cards {
        flex-shrink: 0;
        gap: calc(var(--hero-w) * 12 / 1320);
    }

    .sub-banner-card {
        width: calc(var(--hero-w) * 418 / 1320);
        height: calc(var(--hero-w) * 113 / 1320);
    }

    .sub-banner-content {
        margin-left: calc(var(--hero-w) * 160 / 1320);
        padding: calc(var(--hero-w) * 16 / 1320) calc(var(--hero-w) * 20 / 1320) calc(var(--hero-w) * 16 / 1320) 0;
    }

    .news-card-new {
        width: calc(var(--hero-w) * 418 / 1320);
        height: calc(var(--hero-w) * 386 / 1320);
    }

    .hero-banner-titles-grid {
        width: calc(var(--hero-w) * 730 / 1320);
    }

    .action-section {
        padding: 40px 0 40px 0;
    }

    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gameinfo-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .hero-new {
        height: 760px;
    }

    .hero-new-content,
    .hero-banner-container {
        width: 1000px;
        max-width: 1000px;
    }

    .hero-banner-container {
        --hero-w: 1000px;
    }

    /* 캐릭터: 본문 행 1000px 구간과 동일 브레이크(500 = 1000×0.5, 위치는 1201~1279 700px 기준 비율) */
    .hero-character img {
        width: 500px;
        height: auto;
        object-fit: contain;
        transform: translateX(calc(-180px * 500 / 700)) translateY(calc(5px * 500 / 700));
    }

    .notice-grid.notice-grid--with-mid-action > .action-section .action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 1280~1400: 히어로 1200px 고정(1025~1279는 아래 좁은 데스크톱 블록에서 별도 폭) */
@media (min-width: 1280px) and (max-width: 1400px) {
    .hero-new-content {
        width: 1200px;
    }

    .hero-banner-container {
        width: 1200px;
        --hero-w: 1200px;
        height: calc(var(--hero-w) * 500 / 1320);
        overflow: hidden;
    }

    .hero-banner-grid {
        width: var(--hero-w);
        max-width: 100%;
        height: calc(var(--hero-w) * 500 / 1320);
        gap: calc(var(--hero-w) * 12 / 1320);
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .hero-main-banner {
        flex-shrink: 0;
        width: calc(var(--hero-w) * 890 / 1320);
        height: calc(var(--hero-w) * 500 / 1320);
        min-height: 1px;
    }

    .hero-side-cards {
        flex-shrink: 0;
        gap: calc(var(--hero-w) * 12 / 1320);
    }

    .sub-banner-card {
        width: calc(var(--hero-w) * 418 / 1320);
        height: calc(var(--hero-w) * 113 / 1320);
    }

    .sub-banner-content {
        margin-left: calc(var(--hero-w) * 160 / 1320);
        padding: calc(var(--hero-w) * 16 / 1320) calc(var(--hero-w) * 20 / 1320) calc(var(--hero-w) * 16 / 1320) 0;
    }

    .news-card-new {
        width: calc(var(--hero-w) * 418 / 1320);
        height: calc(var(--hero-w) * 386 / 1320);
    }

    .hero-banner-titles-grid {
        width: calc(var(--hero-w) * 730 / 1320);
    }

    /* 캐릭터: hero-new-content·배너 1200px 구간과 동일(--hero-w 1200) */
    .hero-character img {
        width: 600px;
        height: auto;
        object-fit: contain;
        transform: translateX(calc(-180px * 600 / 700)) translateY(calc(5px * 600 / 700));
    }
}

/*
 * ≤1024: 태블릿+폰 공통으로도 적용됨(768·420 이하 포함).
 * 1024 뷰만 손보고 폰(≤768)은 건드리지 않으려면 아래「태블릿 전용」블록에만 추가한다.
 */
@media (max-width: 1024px) {
    /* ── Hero: 절대배치·고정 높이 해제 → 세로 흐름 + 가로 넘침 방지 (모바일과 동일, ~1024px) ── */
    .hero-new {
        height: auto;
        min-height: 56vw;
        /* 고정 헤더: 탑메뉴(--site-top-offset) + 헤더(--header-height). margin-top은 body와 상쇄될 수 있어 padding-top으로 확실히 밀기 */
        margin-top: 0;
        padding-top: calc(var(--site-top-offset, 0px) + var(--header-height, 60px));
        padding-bottom: 0;
        overflow-x: clip;
    }

    /* 모바일 배경: section.hero-new를 기준으로 가득 채움 */
    .hero-new {
        position: relative;
    }

    .hero-new-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-new-bg img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .hero-character {
        display: none;
    }

    /* 모바일 텍스트 블록: 절대배치 해제 → 배경 아래 자연스럽게 흐름 */
    .hero-new-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 24px 20px;
        box-sizing: border-box;
    }

    .hero-cta-text {
        position: absolute;
        bottom: calc(30px + 60px + 20px);
        left: 0;
        right: 0;
        transform: none;
        text-align: center;
        white-space: normal;
        margin-bottom: 0;
    }

    .hero-cta-text .hero-title {
        font-size: 26px;
    }

    .hero-cta-row {
        position: absolute;
        bottom: 30px;
        left: 0;
        right: 0;
        transform: none;
        padding-left: 26px;
        padding-right: 26px;
        justify-content: center;
    }

    .hero-cta-btn {
        width: auto;
        height: 52px;
        padding: 0 24px;
        font-size: 15px;
    }

    .hero-banner-container {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        height: auto;
    }

    .hero-banner-grid {
        flex-direction: column;
        height: auto;
        gap: 0;
    }

    .hero-main-banner {
        width: 100%;
        height: auto;
        aspect-ratio: 890 / 500;
        max-height: none;
        box-shadow: none;
    }

    .hero-banner-swiper {
        position: absolute;
        inset: 0;
        height: auto;
        min-height: 0;
    }

    .hero-main-banner .hero-banner-swiper.swiper,
    .hero-main-banner .hero-banner-swiper .swiper-wrapper {
        height: 100%;
    }

    .hero-banner-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-shadow: none;
    }

    .hero-banner-mobile-meta {
        display: block;
        width: 100%;
        background-color: #2a2a2a;
        color: #fff;
        padding: 20px 16px;
        box-sizing: border-box;
    }

    .hero-banner-mobile-text {
        text-align: center;
    }

    .hero-banner-mobile-title {
        font-size: 18px;
        line-height: 1.35;
        font-weight: 500;
    }

    .hero-banner-mobile-desc {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.35;
        color: rgba(255, 255, 255, 0.72);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 19px;
    }

    .hero-banner-mobile-nav {
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .hero-banner-mobile-dots {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .hero-banner-mobile-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.35);
        padding: 0;
    }

    .hero-banner-mobile-dot.active {
        background-color: #ff4d5e;
    }

    /* 모바일·태블릿: 서브 배너 가로 폭(숨김 해제 후 뷰포트에 맞춤) */
    .hero-banner-grid .sub-banner-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-main-banner,
    .hero-side-mobile-news .news-card-new {
        width: 100%;
        max-width: 100%;
    }

    .hero-side-mobile-news .news-card-new {
        height: auto;
        min-height: 260px;
        max-height: none;
        padding: 30px 16px;
        background-color: #fff;
        box-shadow: none;
    }

    .hero-side-mobile-news .news-card-header-new {
        align-items: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #ddd;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .hero-side-mobile-news .news-card-header-new h3 {
        display: none;
    }

    .hero-side-mobile-news .news-card-tabs-mobile {
        display: inline-flex;
        align-items: center;
        gap: 16px;
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
    }

    .hero-side-mobile-news button.hero-news-tab {
        border: none;
        background: transparent;
        color: #999;
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        transition: color 0.3s ease;
        position: relative;
    }

    .hero-side-mobile-news .hero-news-tab.active {
        color: #1a1a1a;
    }

    .hero-side-mobile-news .hero-news-tab.active::after {
        content: '';
        position: absolute;
        bottom: -17px;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #1a1a1a;
    }

    .hero-side-mobile-news .hero-news-tab:hover {
        color: #1a1a1a;
    }

    .hero-side-mobile-news .news-card-header-new .news-card-more-link {
        color: #999;
    }

    .hero-side-mobile-news .news-card-list-new {
        gap: 16px;
        overflow: visible;
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }

    .hero-side-mobile-news .hero-news-pane.active {
        flex-direction: column;
        gap: 16px;
    }

    .hero-side-mobile-news .news-card-item-new {
        padding: 0;
        border-radius: 0;
    }

    .hero-side-mobile-news .news-card-item-new:hover {
        opacity: 0.7;
        background-color: transparent;
    }

    .hero-side-mobile-news .news-card-item-title {
        color: #1a1a1a;
        font-size: 16px;
        line-height: 1.6;
        min-width: 0;
    }

    .hero-side-mobile-news .news-card-item-date {
        color: #999;
        font-size: 14px;
        display: none;
    }

    .hero-side-mobile-news .news-card-item-left {
        width: fit-content;
        max-width: 100%;
        flex: 0 1 auto;
    }

    /* 모바일: 메인 배너 하단 제목 탭·이전/다음 네비 숨김 (스와이프만 사용) */
    .hero-main-banner .hero-banner-titles,
    .hero-banner-indicator {
        display: none !important;
    }

    /* 모바일·태블릿(≤1024): 데스크톱 전용 히어로 통합 새소식 래퍼 비표시 */
    .hero-side-desktop-news {
        display: none !important;
    }

    .action-grid {
        padding-top: 40px;
        padding-bottom: 10px;
    }

    .notice-grid.notice-grid--with-mid-action > .action-section .action-grid {
        padding-top: 40px;
        padding-bottom: 24px;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        gap: 0 16px;
        box-sizing: border-box;
    }
}

/* ── 태블릿 전용 (769px ~ 1024px): 이 블록만 수정하면 ≤768px 모바일 규칙에 적용되지 않음 ── */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 히어로 내 모바일 새소식 카드: 태블릿에선 본문 notice-section과 중복·겹침 → 비표시 (폰 구간은 유지) */
    .hero-side-mobile-news {
        display: none !important;
    }

    /* 계정 이관 서브배너: 태블릿에선 히어로 폭이 넓어져 중복 느낌·겹침 → 비표시 (폰 구간은 유지) */
    .hero-banner-grid .sub-banner-card {
        display: none !important;
    }

    /*
     * (769~1024) 태블릿에서 .action-grid 폭 규칙이 notice 안 액션에도 적용되면
     * .notice-grid(이미 좌우 인셋) 안에 action-section 대비 action-grid가 다시 좁아지는 이중 여백 발생.
     * 1025~1279는 별도 고특이도 규칙으로 덮어쓰므로, 여기서는 769~1024만 풀폭으로 맞춤.
     */
    .notice-grid.notice-grid--with-mid-action > .action-section .action-grid {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* 히어로 배경 오버레이: 본문 .notice-grid( calc(100% - 52px) )와 동일 좌우 인셋 */
    .hero-new-bg .hero-new-overlay {
        inset: auto;
        top: 0;
        bottom: 0;
        left: 26px;
        right: 26px;
        width: auto;
    }
}

@media (max-width: 768px) {
    /* 본문 섹션 좌우 여백 */
    .action-grid,
    .notice-grid,
    .gameinfo-container,
    .screenshot-container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .action-section {
        padding: 0 0 0;
    }

    .action-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* notice-grid 안 액션: 그리드·카드와 좌우 패딩 중복 방지 */
    .notice-grid > .action-section .action-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 모바일(372px 포함): mid-action 전용 고특이도 규칙이 우선되지 않도록 동일 특이도로 재오버라이드 */
    .notice-grid.notice-grid--with-mid-action > .action-section .action-grid {
        padding-top: 10px;
        padding-bottom: 0px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 16px;
    }

    .action-btn {
        padding: 18px 20px;
        box-shadow: none;
    }

    .action-btn-text h3 {
        font-size: 18px;
    }

    .action-grid .action-btn:nth-child(3) {
        display: none;
    }

    .notice-section {
        padding: 0 0 0;
    }

    .notice-grid {
        gap: 32px;
    }

    .notice-grid {
        display: block;
        gap: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    /* 홈: 모바일에서는 DOM 순서 유지(액션 블록 강제 선행 배치 금지) */
    .notice-grid.notice-grid--with-mid-action {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .notice-grid .notice-list-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        background-color: #fff;
        box-shadow: none;
        box-sizing: border-box;
    }

    .notice-grid .notice-list-card--event-banner {
        margin-bottom: 40px;
    }

    .notice-grid .notice-list-header {
        align-items: center;
        margin-bottom: 24px;
        --notice-header-pb: 16px;
        padding-bottom: var(--notice-header-pb);
        border-bottom: 1px solid #ddd;
        min-height: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .notice-grid .notice-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 16px;
        overflow: visible;
    }

    .notice-grid .notice-list-item {
        width: 100%;
        min-width: 0;
        padding: 0;
        border-radius: 0;
    }

    .notice-grid .notice-list-item-title {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.6;
    }

    .notice-grid .notice-list-item-text {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notice-grid .notice-list-item-date {
        color: #999;
        font-size: 14px;
        display: none;
    }

    .notice-list-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 첫 카드(공지·업데이트·이벤트): 탭·더보기 하단을 패딩 직전에 맞춰 활성 밑줄이 border-bottom과 겹치도록 */
    .notice-grid .notice-list-card:first-of-type .notice-list-header {
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .notice-grid .notice-list-card:first-of-type .notice-tabs {
        flex: 1;
        min-width: 0;
        align-items: center;
    }

    /* 공지 탭 ↔ 자유게시판 h3: 동일 타이포(크기·줄간격·굵기) */
    .notice-grid .notice-list-header h3,
    .notice-grid .notice-tab {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.35;
    }

    /* 활성 탭 강조선: 헤더 padding-bottom + border 두께만큼 내려 #ddd 보더와 동일 높이 */
    .notice-grid .notice-tab.active::after {
        bottom: calc(-1 * (var(--notice-header-pb, 16px) + 1px));
    }

    .gameinfo-section {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .gameinfo-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-preview-card {
        display: none;
    }

    .news-preview-content {
        display: none;
    }

    .ranking-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        margin-top: 10px;
    }

    .ranking-header h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .ranking-date {
        display: block;
        margin-left: 0;
        margin-top: 6px;
    }

    .ranking-header-row th,
    .ranking-data-row td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .ranking-header-row th:nth-child(3),
    .ranking-data-row td:nth-child(3),
    .ranking-header-row th:nth-child(5),
    .ranking-data-row td:nth-child(5) {
        display: none;
    }

    .ranking-table table {
        width: 100%;
        table-layout: fixed;
    }

    .ranking-header-row th:nth-child(1),
    .ranking-data-row td:nth-child(1) {
        width: 56px;
    }

    .ranking-header-row th:nth-child(2),
    .ranking-data-row td:nth-child(2) {
        width: 96px;
    }

    .ranking-header-row th:nth-child(4),
    .ranking-data-row td:nth-child(4) {
        width: auto;
    }

    .ranking-character-text {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .screenshot-section {
        padding-bottom: 40px;
    }

    .screenshot-header {
        flex-wrap: wrap;
        padding: 0;
    }

    .screenshot-title-area h3 {
        font-size: 18px;
    }

    .screenshot-item {
        width: min(200px, 72vw);
    }

    .home-bottom-visual {
        height: 220px;
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 480px) {
    .hero-text-block .hero-title {
        font-size: 22px;
    }

    .screenshot-item {
        width: min(180px, 78vw);
    }
}

@media (max-width: 768px) {
    .notice-grid .notice-list-card {
        padding: 40px 16px 0;
    }

    .notice-grid.notice-grid--with-mid-action > .notice-list-card:last-of-type {
        padding-top: 10px;
    }

    section.hero-new .hero-banner-container .hero-banner-grid > .hero-side-cards {
        display: none !important;
    }
}
