.page-main { background: #fff; }

.section-promotion {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #0b0b0b;
}
.promo-track { height: 100%; }
.promo-slide {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    opacity: 0;
    transition: opacity .6s ease;
}
.promo-slide.is-on { opacity: 1; z-index: 1; }
.promo-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.25) 100%);
}
.promo-caption {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    bottom: 72px;
    z-index: 2;
    color: #fff;
    max-width: 560px;
}
.promo-kicker {
    font-size: 12px;
    letter-spacing: 0.28em;
    color: var(--gold);
    margin-bottom: 10px;
}
.promo-caption h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}
.promo-caption p { font-size: 16px; opacity: .9; }
.promo-nav {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}
.promo-dots { display: flex; gap: 8px; }
.promo-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.4);
}
.promo-dots .is-on { background: var(--gold); }
.promo-prev, .promo-next {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.4);
    background: transparent;
    position: relative;
}
.promo-prev::before, .promo-next::before {
    content: "";
    position: absolute;
    top: 12px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}
.promo-prev::before { left: 14px; transform: rotate(-45deg); }
.promo-next::before { left: 10px; transform: rotate(135deg); }

.section-shortcut {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 16px 12px;
}
.shortcut-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
.shortcut-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    font-size: 13px;
    color: #444;
}
.sc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    position: relative;
}
.sc-icon::before, .sc-icon::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px solid var(--gold);
}
.sc-play::before { clip-path: polygon(30% 20%, 80% 50%, 30% 80%); background: var(--gold); border: 0; inset: 16px 18px; }
.sc-command::before { inset: 20px 30px 20px 18px; border-right: 0; border-top: 0; transform: rotate(-135deg); left: 22px; right: auto; width: 10px; height: 10px; }
.sc-command::after { inset: auto 16px 20px 30px; height: 0; border-width: 2px 0 0; }
.sc-notice::before { border-radius: 2px; }
.sc-guide::before { border-radius: 50%; inset: 16px; }
.sc-rank::before { clip-path: polygon(50% 12%, 90% 88%, 10% 88%); background: var(--gold); border: 0; }
.sc-shop::before { inset: 20px; }
.sc-siege::before { transform: rotate(45deg); inset: 18px; }
.sc-support::before { border-radius: 50% 50% 50% 0; transform: rotate(-30deg); inset: 16px 18px; }
.shortcut-list a:hover { color: var(--gold-deep); }

.wrap-section-portal {
    background: var(--bg);
    max-width: none;
    padding: 28px 0 36px;
    margin-top: 12px;
}
.portal-bundle {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 20px;
}
.section-notice, .section-topcard article {
    background: #fff;
}
.section-notice { padding: 22px 26px 10px; }
.section-notice header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 4px;
}
/* 탭은 제목 아래 한 줄 (좁은 칸에서 글자 단위 줄바꿈 방지) */
.section-notice header .notice-tabs {
    order: 3;
    flex-basis: 100%;
    gap: 0;
    border-bottom: 1px solid var(--line);
}
.section-notice header .notice-tabs li { flex: 1; }
.section-notice header .notice-tabs button {
    width: 100%;
    padding: 8px 0 10px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.section-notice header .notice-tabs .is-on button { color: var(--ink); border-bottom-color: var(--ink); }
.section-notice h2 { font-size: 18px; }
.notice-tabs { display: flex; gap: 10px; font-size: 13px; }
.notice-tabs button {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 0;
}
.notice-tabs .is-on button { color: var(--ink); font-weight: 700; }
.section-notice .more { margin-left: auto; white-space: nowrap; }
.notice-list { display: none; }
.notice-list.is-on { display: block; }
.notice-list a {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.notice-list em {
    font-style: normal;
    color: var(--gold-deep);
    font-size: 12px;
    min-width: 52px;
}
.notice-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list time { flex: none; color: var(--muted); font-size: 12px; }
.notice-list .news-badge {
    flex: none;
    min-width: 52px;
    padding: 2px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 2px;
}
.news-badge-notice { background: #e03131; }
.news-badge-update { background: #1c7ed6; }
.news-badge-event { background: #f08c00; }
.notice-list a { align-items: center; }
.notice-list em { flex: none; min-width: 0; }
.notice-list .is-pinned span { font-weight: 700; }
.section-topcard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.section-topcard .thumb { height: 148px; background: #111 center/cover no-repeat; }
.section-topcard a { display: block; padding-bottom: 16px; }
.section-topcard .kicker {
    padding: 14px 14px 0;
    font-size: 12px;
    color: var(--gold-deep);
}
.section-topcard h3 { padding: 6px 14px 0; font-size: 16px; }
.section-topcard .desc {
    padding: 8px 14px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.wrap-section-special { max-width: var(--max); margin: 28px auto; padding: 0 16px; }
.special-banner {
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    background: #111 center/cover no-repeat;
    color: #fff;
    padding: 28px;
    position: relative;
}
.special-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 70%);
}
.special-banner > div { position: relative; z-index: 1; }
.special-banner .kicker { letter-spacing: .2em; font-size: 12px; color: var(--gold); }
.special-banner h2 { font-size: 26px; margin: 8px 0; }

.wrap-section-article {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 36px;
}
.wrap-section-article section header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.wrap-section-article h2 { font-size: 18px; }
.wrap-section-article li + li { margin-top: 12px; }
.wrap-section-article a { display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; }
.wrap-section-article .thumb {
    grid-row: span 2;
    height: 64px;
    background: #111 center/cover no-repeat;
}
.wrap-section-article strong { font-size: 14px; }
.wrap-section-article time { font-size: 12px; color: var(--muted); }

.wrap-section-siege {
    background: #f7f4ef;
    padding: 36px 0;
}
.section-siege {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}
.section-siege > header h2 { font-size: 22px; margin-bottom: 12px; }
.siege-subject { color: #724418; margin-bottom: 12px; }
.siege { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.siege-map {
    position: relative;
    min-height: 284px;
    background: #2a2118 center/cover no-repeat;
    border: 1px solid #d8c4a8;
}
.siege-util {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.siege-util select {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.siege-castle {
    position: absolute;
    background: rgba(20,12,8,.78);
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    border: 1px solid var(--gold);
}
.siege-castle strong { color: var(--gold); margin-right: 4px; }
.siege-castle-kent { left: 18%; top: 42%; }
.siege-castle-orc { left: 44%; top: 18%; }
.siege-castle-giran { right: 16%; top: 48%; }
.siege-content {
    background: #fff;
    border: 1px solid #e6dccf;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.siege-content dl {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.siege-content dt { font-weight: 700; }
.siege-content .btn-more {
    margin-top: auto;
    align-self: flex-end;
    border: 1px solid var(--ink);
    padding: 8px 14px;
    font-size: 13px;
}

.wrap-section-nshop { padding: 36px 16px; }
.section-nshop header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-nshop ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.section-nshop a { display: block; border: 1px solid var(--line); }
.section-nshop .thumb { height: 160px; background: #111 center/cover no-repeat; }
.section-nshop strong, .section-nshop em { display: block; padding: 0 12px; }
.section-nshop strong { padding-top: 12px; }
.section-nshop em { font-style: normal; color: var(--gold-deep); padding-bottom: 14px; }

.wrap-section-etcservice { padding-bottom: 48px; }
.section-etcservice ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.section-etcservice a {
    display: inline-block;
    border: 1px solid var(--line);
    padding: 10px 16px;
    font-size: 13px;
    background: #fff;
}

@media (max-width: 1100px) {
    .portal-bundle { grid-template-columns: 400px minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .section-promotion { height: 360px; }
    .promo-caption h2 { font-size: 24px; }
    .shortcut-list { grid-template-columns: repeat(4, 1fr); }
    .portal-bundle, .wrap-section-article, .siege, .section-nshop ul { grid-template-columns: minmax(0, 1fr); }
    .section-topcard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .section-promotion { height: 280px; }
    .promo-caption { bottom: 56px; }
}

/* 그리드/플렉스 자식이 내용 폭 때문에 화면 밖으로 늘어나지 않게 */
.portal-bundle > *, .section-topcard > *, .wrap-section-article > *, .siege > *, .section-nshop li { min-width: 0; }
