@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont;
    background: #f3f4f6;
    color: #111827;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    min-width: 1380px;
    position: relative;
}

/* 공통 래퍼 */
.content-inner {
    width: 1320px;
    margin: 0 auto;
}

/* =========================
   HEADER
   ========================= */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    backdrop-filter: blur(14px);

    overflow: visible;       /* 메가메뉴가 아래로 튀어나오도록 */
    min-width: 1320px;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.18), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* 로고 */

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

.logo-mark {
    font-size: 16px;
    color: #6366f1;
}

.logo-text {
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}

/* =========================
   GNB 상단 메뉴
   ========================= */

.gnb {
    /* 메가패널은 header 기준으로 position 잡을 거라 별도 position 필요 없음 */
}

.gnb-list {
    list-style: none;
    display: flex;
    gap: 24px;
}

.gnb-list > li > a {
    position: relative;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.gnb-list > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #f97316);
    transition: width .2s ease-out;
}

.gnb-list > li > a:hover {
    color: #111827;
}

.gnb-list > li > a:hover::after {
    width: 100%;
}

/* =========================
   메가메뉴 (한 번에 쫙)
   ========================= */

/* 헤더 위에 마우스가 올라가 있으면 메가메뉴 표시
   (메가메뉴 자체도 header 안에 있으므로 아래로 내려도 유지됨) */
.main-header:hover .mega-panel {
    display: block;
}

.mega-panel {
    position: absolute;   /* header 기준으로 절대 위치 */
    left: 0;
    right: 0;
    top: 76px;            /* 헤더 높이만큼 아래(바로 밑에 붙도록) */

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    padding: 22px 0 28px;
    display: none;
    z-index: 950;
}

/* 안쪽 내용: 새소식/게임정보/가이드/커뮤니티/고객센터 5열 */
.mega-inner {
    width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 48px;
}

/* 각 열 */
.mega-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mega-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-col li a {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
}

.mega-col li a:hover {
    color: #111827;
}

/* =========================
   HEADER ACTIONS
   ========================= */

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login,
.btn-game-start {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-login:hover {
    background: #f3f4f6;
}

.btn-game-start {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1, #f97316);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}

.btn-game-start:hover {
    filter: brightness(1.05);
}