* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #080808;
    color: #eeeeee;
    font-family: Arial, "Noto Sans KR", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 6, 6, 0.94);
    border-bottom: 1px solid rgba(200, 157, 70, 0.45);
    backdrop-filter: blur(10px);
}

.nav-inner {
    width: min(1180px, 92%);
    min-height: 68px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    color: #e0bd6d;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 26px;
}

.nav-menu a {
    color: #dddddd;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.nav-menu a:hover {
    color: #e6c878;
}

.hero {
    position: relative;
    min-height: 720px;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.25), #080808 96%),
        url("images/background.png") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 15%, rgba(0, 0, 0, 0.62) 80%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.78));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, 90%);
    padding: 60px 0;
}

.logo {
    width: min(270px, 62vw);
    display: block;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 18px rgba(213, 172, 76, 0.45));
}

.hero-small,
.section-label {
    margin: 0 0 12px;
    color: #c9a85c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}

.title {
    margin: 0;
    color: #f2d791;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.15;
    letter-spacing: 4px;
    text-shadow:
        0 0 14px rgba(229, 190, 99, 0.32),
        3px 3px 10px rgba(0, 0, 0, 0.9);
}

.subtitle {
    margin: 20px auto 28px;
    color: #dddddd;
    font-size: 18px;
    text-shadow: 2px 2px 5px #000000;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.button {
    min-width: 190px;
    padding: 16px 26px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    transition: 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.download-button {
    background: linear-gradient(180deg, #e0c277, #a87828);
    color: #111111;
    border-color: #e3c878;
}

.download-button:hover {
    box-shadow: 0 8px 28px rgba(193, 145, 53, 0.35);
}

.discord-button {
    background: #5865f2;
    color: #ffffff;
    border-color: #7b85ff;
}

.discord-button:hover {
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.35);
}

.link-notice {
    margin-top: 17px;
    color: #aaaaaa;
    font-size: 13px;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
    padding: 25px 0 80px;
}

.section-box,
.download-section {
    margin-top: 34px;
    padding: 42px;
    background: rgba(15, 15, 15, 0.91);
    border: 1px solid rgba(180, 137, 55, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(7px);
}

.section-box h2,
.download-section h2 {
    margin: 0 0 24px;
    color: #ebcd83;
    font-size: 32px;
}

.section-box p {
    color: #d4d4d4;
}

.highlight-text {
    margin-top: 24px;
    padding: 15px 18px;
    color: #f0d58c !important;
    background: rgba(186, 140, 50, 0.12);
    border-left: 3px solid #c89c45;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(214, 174, 91, 0.26);
    border-radius: 9px;
    text-align: center;
}

.info-card span {
    display: block;
    color: #aaaaaa;
    font-size: 14px;
}

.info-card strong {
    display: block;
    margin-top: 7px;
    color: #edce7c;
    font-size: 26px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(214, 174, 91, 0.24);
    border-radius: 9px;
}

.feature-number {
    color: #c99d48;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.feature-card h3 {
    margin: 10px 0;
    color: #f0d795;
    font-size: 21px;
}

.feature-card p {
    margin-bottom: 0;
    color: #bfbfbf;
}

.clan-content {
    padding-left: 18px;
    border-left: 2px solid #a98035;
}

.download-section {
    text-align: center;
    background:
        linear-gradient(rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.92)),
        url("images/background.png") center 60% / cover no-repeat;
}

.download-section p {
    color: #cccccc;
}

footer {
    padding: 36px 20px;
    background: #050505;
    border-top: 1px solid rgba(180, 137, 55, 0.3);
    text-align: center;
}

footer p {
    margin: 0;
    color: #d8b96c;
    font-weight: 800;
    letter-spacing: 3px;
}

footer span {
    display: block;
    margin-top: 8px;
    color: #777777;
    font-size: 13px;
}

@media (max-width: 820px) {
    .nav-inner {
        padding: 12px 0;
        flex-direction: column;
    }

    .nav-menu {
        margin-top: 10px;
        gap: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .hero {
        min-height: 650px;
    }

    .info-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-box,
    .download-section {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 42px 0;
    }

    .hero-small,
    .section-label {
        letter-spacing: 2px;
    }

    .title {
        font-size: 39px;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 15px;
    }

    .button {
        width: 100%;
    }

    .section-box h2,
    .download-section h2 {
        font-size: 27px;
    }
}
.open-event{
    margin-top:35px;
    text-align:center;
}

.open-date{
    font-size:58px;
    font-weight:900;
    color:#FFD700;
    text-shadow:0 0 10px #FFD700;
    margin-bottom:12px;
}

.open-wait{
    font-size:34px;
    color:#fff;
    font-weight:700;
    margin-bottom:8px;
}

.open-time{
    font-size:42px;
    color:#ffb400;
    font-weight:900;
    text-shadow:0 0 10px #ffb400;
}

@media (max-width:768px){
    .open-date{font-size:34px;}
    .open-wait{font-size:22px;}
    .open-time{font-size:28px;}
}
body {
    background-color: #070707;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
        url("bg-pattern.png");
    background-repeat: repeat;
    background-size: 700px auto;
    background-position: center top;
    background-attachment: fixed;
}

/* 내용 상자가 배경과 자연스럽게 구분되도록 설정 */
.section-box,
.download-section {
    background: rgba(7, 7, 7, 0.88);
    backdrop-filter: blur(2px);
}

/* 첫 화면에도 같은 패턴 적용 */
.hero {
    background-color: #070707;
    background-image:
        radial-gradient(
            circle at center,
            rgba(105, 72, 15, 0.12) 0%,
            rgba(0, 0, 0, 0.55) 55%,
            rgba(0, 0, 0, 0.88) 100%
        ),
        url("bg-pattern.png");
    background-repeat: no-repeat, repeat;
    background-size: cover, 700px auto;
    background-position: center, center top;
}
/* =========================================
   크라운 서버 오픈 안내 팝업
========================================= */

body.popup-open {
    overflow: hidden;
}

.crown-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.crown-popup-overlay.show {
    visibility: visible;
    opacity: 1;
}

.crown-popup {
    position: relative;

    width: 100%;
    max-width: 520px;

    padding: 45px 35px 32px;

    text-align: center;

    color: #f5f0e6;

    background:
        linear-gradient(
            rgba(8, 8, 8, 0.90),
            rgba(8, 8, 8, 0.96)
        ),
        url("bg-pattern.png");

    background-size: auto, 600px auto;
    background-position: center;
    background-repeat: repeat;

    border: 1px solid rgba(218, 168, 65, 0.75);
    border-radius: 8px;

    box-shadow:
        0 0 0 1px rgba(255, 215, 120, 0.12) inset,
        0 0 35px rgba(191, 128, 21, 0.28),
        0 25px 70px rgba(0, 0, 0, 0.85);

    transform: translateY(25px) scale(0.94);
    transition: transform 0.35s ease;
}

.crown-popup-overlay.show .crown-popup {
    transform: translateY(0) scale(1);
}

.crown-popup::before,
.crown-popup::after {
    content: "";
    position: absolute;

    width: 70px;
    height: 70px;

    border-color: #b98326;
    pointer-events: none;
}

.crown-popup::before {
    top: 10px;
    left: 10px;

    border-top: 2px solid;
    border-left: 2px solid;
}

.crown-popup::after {
    right: 10px;
    bottom: 10px;

    border-right: 2px solid;
    border-bottom: 2px solid;
}

.popup-x {
    position: absolute;
    top: 10px;
    right: 15px;

    border: 0;
    background: transparent;

    color: #d4ad63;
    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

.popup-x:hover {
    color: #ffffff;
}

.popup-crown {
    margin-bottom: 4px;

    font-size: 48px;

    filter: drop-shadow(0 0 10px rgba(255, 191, 45, 0.7));
}

.crown-popup h2 {
    margin: 0;

    color: #e7c174;
    font-size: 34px;
    letter-spacing: 3px;

    text-shadow:
        0 0 8px rgba(231, 193, 116, 0.35);
}

.popup-line {
    width: 75%;
    height: 1px;

    margin: 20px auto;

    background: linear-gradient(
        90deg,
        transparent,
        #c49135,
        transparent
    );
}

.popup-open-title {
    margin: 0 0 18px;

    color: #ffc21c;
    font-size: 32px;
    font-weight: 900;

    text-shadow:
        0 0 10px rgba(255, 177, 0, 0.65);
}

.popup-wait {
    margin: 7px 0;

    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
}

.popup-time {
    margin: 5px 0 25px;

    color: #ffbd19;
    font-size: 27px;
    font-weight: 900;

    text-shadow:
        0 0 9px rgba(255, 180, 0, 0.55);
}

.popup-discord {
    display: block;

    width: 100%;
    max-width: 310px;

    margin: 0 auto 25px;
    padding: 14px 20px;

    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;

    background: linear-gradient(
        180deg,
        #26304a,
        #111724
    );

    border: 1px solid #69789e;
    border-radius: 5px;

    box-shadow:
        0 0 16px rgba(81, 101, 157, 0.2);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.popup-discord:hover {
    transform: translateY(-2px);
    filter: brightness(1.18);
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-buttons button {
    min-width: 145px;
    padding: 11px 15px;

    color: #e8d7b5;
    font-size: 14px;
    font-weight: 700;

    background: rgba(15, 15, 15, 0.92);

    border: 1px solid rgba(184, 135, 47, 0.65);
    border-radius: 4px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.popup-buttons button:hover {
    color: #ffffff;
    background: rgba(135, 91, 20, 0.72);
}

@media (max-width: 600px) {
    .crown-popup {
        padding: 38px 18px 24px;
    }

    .popup-crown {
        font-size: 39px;
    }

    .crown-popup h2 {
        font-size: 27px;
    }

    .popup-open-title {
        font-size: 25px;
    }

    .popup-wait {
        font-size: 17px;
    }

    .popup-time {
        font-size: 22px;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .popup-buttons button {
        width: 100%;
    }
}
