*,
body,
html {
    margin: 0;
    padding: 0
}

.feature,
.func-btn,
.hero__inner {
    text-align: center
}

.btn,
.func-btn {
    text-decoration: none
}

* {
    box-sizing: border-box
}

body {
    font-family: 'Press Start 2P', sans-serif;
    background: #0d0d0d;
    color: #fff;
    line-height: 1.6
}

.btn {
    display: inline-block;
    padding: .9rem 1.6rem;
    border-radius: 10px;
    border: 2px solid #fff;
    font-size: .85rem;
    transition: transform .2s, box-shadow .2s
}

/* 通用按鈕樣式 (如果其他地方有用到) */
.btn--primary {
    background: linear-gradient(45deg, #4f46e5, #6b5df0)
}

.btn--secondary {
    background: linear-gradient(45deg, #e03e2d, #991818)
}

.btn--outline {
    background: 0 0;
    border-color: #4f46e5
}

.btn:hover {
    transform: translateY(-4px) scale(1.05)
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%
}

.hero__logo {
    width: 280px;
    filter: drop-shadow(0 0 10px #4f46e5)
}

.hero__title {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 8px #4f46e5
}

.hero__subtitle {
    margin: 1rem 0 1rem;
    font-size: .9rem;
    max-width: 28rem
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center
}

.features {
    display: grid;
    gap: 2rem;
    margin: 4rem auto
}

@media(min-width: 768px) {
    .hero__title {
        font-size: 2rem
    }

    .features {
        grid-template-columns: repeat(3, 1fr)
    }
}

.feature img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem
}

.feature h3 {
    margin: .5rem 0
}

body,
html {
    overflow-x: hidden;
    height: 100%
}

.hero,
.hero__bg,
.hero__inner,
.hero__mask,
body.site {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box
}

.hero__bg,
.hero__mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none
}

.hero__bg {
    inset: 0;
    object-fit: cover;
    object-fit: cover;
    z-index: 0;
    background: #000;
    transition: opacity .6s
}

#video-intro {
    z-index: 1;
    opacity: 1
}

#video-loop {
    z-index: 2;
    opacity: 0
}

.hero__mask {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .38) 0, rgba(0, 0, 0, .60) 90%);
    z-index: 3
}

.hero__inner {
    position: relative;
    z-index: 10;
    padding-top: 11vh
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 2.6rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto
}

.hero__cta--main {
    width: 100%;
    display: flex;
    justify-content: center
}


.hero__bg--desktop {
    display: none
}

.hero__bg--mobile {
    display: block;
    width: 100%;
    height: auto
}

@media (min-width: 768px) {
    .hero__bg--desktop {
        display: block
    }

    .hero__bg--mobile {
        display: none
    }
}

.game-functions {
    background: #15121d;
    padding: 48px 0 36px
}

.game-functions__container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto
}

.func-btn {
    width: 210px;
    min-height: 188px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(120deg, #232034 70%, #28203a 100%);
    border: 2.5px solid #f9d072;
    border-radius: 22px;
    box-shadow: 0 2px 16px #0a0a1c88, 0 6px 32px #f7cc7b15;
    padding: 32px 18px 20px;
    margin-bottom: 0;
    color: #f6d391;
    transition: box-shadow .15s, border-color .15s, transform .11s;
    cursor: pointer;
    position: relative
}

.func-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px
}

.func-btn__icon img,
.func-btn__icon svg {
    width: 56px;
    height: 56px;
    display: block;
    filter: drop-shadow(0 3px 8px #ffb70055) drop-shadow(0 0 10px #fff6a599)
}

.func-btn__title {
    font-size: 1.13em;
    font-weight: 700;
    margin-bottom: .3em;
    color: #ffe6bb;
    letter-spacing: 1px;
    text-shadow: 0 2px 0 #583d0c, 0 0 6px #ffde7f55
}

.func-btn__desc {
    font-size: .99em;
    color: #ffe6bbcc;
    text-shadow: 0 1px 0 #1e1c1b;
    line-height: 1.5
}

.func-btn:focus,
.func-btn:hover {
    box-shadow: 0 8px 28px #ffc65166, 0 0 18px #fff3;
    border-color: #fff3c1;
    background: linear-gradient(115deg, #3b2612 35%, #e5a13d 110%);
    color: #fff6dc;
    transform: scale(1.045) translateY(-3px);
    z-index: 2
}

@media (max-width: 1200px) {
    .func-btn {
        width: 30vw;
        min-width: 168px;
        max-width: 270px
    }
}

@media (max-width: 900px) {
    .game-functions__container {
        gap: 1.2rem
    }

    .func-btn {
        width: 43vw;
        min-width: 140px
    }
}

@media (max-width: 600px) {
    .game-functions__container {
        flex-direction: column;
        align-items: center;
        gap: .8rem
    }

    .func-btn {
        width: 92vw;
        max-width: 99vw
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2em
}

.gamex123-link img {
    height: 68px;
    width: auto;
    display: block;
    border-radius: 9px;
    box-shadow: 0 2px 14px #ffecad44;
    transition: box-shadow .18s, transform .15s
}

.gamex123-link img:hover {
    box-shadow: 0 6px 24px #ffd70088, 0 0 10px #fff0;
    transform: scale(1.07)
}

@media (max-width: 700px) {
    .gamex123-link img {
        width: 100%;
        max-width: 95%;
        height: auto;
    }
}

.footer {
    width: 100%;
    padding: 30px 0 16px;
    background: 0 0;
    text-align: center;
}

.footer h1 {
    display: inline-block;
    font-size: 2.4em;
    font-family: 'Noto Sans TC', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.13em;
    margin: 0 auto 18px auto;
    padding: 0.08em 0.55em;
    background: linear-gradient(95deg, #fffbe1 0%, #ffe2a0 32%, #ffd047 60%, #caa658 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1.5px 3.5px #2d222288, 0 0 14px #ffd047a5, 0 0 30px #eec55344, 0 0 1px #fffbe188;
    filter: brightness(1.15);
    transition: color 0.17s, text-shadow 0.19s;
}

/* =========================================
   [修改重點] 3. 伺服器標籤：HUD 玻璃質感
   ========================================= */
.server-badge {
    /* 深黑透明底 + 磨砂效果 */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* 螢光綠科技感邊框 */
    border: 1px solid #5ce6a8;
    color: #5ce6a8;
    text-shadow: 0 0 8px rgba(92, 230, 168, 0.6);

    /* 方形圓角 */
    border-radius: 4px;

    /* 外發光 */
    box-shadow: 0 0 15px rgba(92, 230, 168, 0.2), inset 0 0 10px rgba(92, 230, 168, 0.1);

    transition: background 0.25s, box-shadow 0.25s;
}

.badge-upcoming {
    background: rgba(40, 30, 0, 0.8);
    color: #ffd700;
    border: 1px solid #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: bold;
    padding: 8px 28px;
    border-radius: 4px;
    /* 統一圓角 */
    font-size: 1.07em;
    letter-spacing: 1px;
}

.badge-upcoming::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.4) 55%, rgba(255, 215, 0, 0.1) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}

/* 線上狀態：強化螢光綠 */
.badge-online {
    background: rgba(0, 30, 10, 0.8);
    color: #00ff6a;
    border: 1px solid #00ff6a;
    font-weight: bold;
    padding: 8px 28px;
    border-radius: 4px;
    font-size: 1.07em;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 106, 0.3);
}

.server-badge-area span {
    font-size: 1.07em;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    /* 統一圓角 */
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .server-badge-area span {
        font-size: 0.75em;
        /* 稍微調大一點點，不然在手機上太小 */
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



/* =========================================
   [CSS 優化版] 1. 按鈕基礎架構 (修復對齊)
   ========================================= */
.hero__cta-main-btn,
.hero__cta--download .btn--secondary {
    display: inline-flex !important;
    /* 強制水平排列 */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
    position: relative;
    box-sizing: border-box;
    /* 這裡稍微把內距調小一點，讓按鈕不要那麼肥大 */
    padding: 0.8em 1.2em;
    border-radius: 6px !important;
    /* 稍微圓一點的魔法水晶感 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* 關鍵：背景模糊 (毛玻璃效果) */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 確保 ICON 大小與位置正確 */
.hero__cta-main-btn svg,
.hero__cta--download .btn--secondary svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    /*讓 icon 發光*/
}

/* =========================================
   [CSS 優化版] 2. 主按鈕：黃金聖光 (半透明玻璃)
   ========================================= */
.hero__cta-main-btn {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;

    /* 半透明黑底 + 金色漸層罩色 */
    background: linear-gradient(180deg,
            rgba(255, 215, 0, 0.15) 0%,
            rgba(20, 10, 0, 0.6) 60%,
            rgba(0, 0, 0, 0.8) 100%);

    /* 纖細的發光邊框 */
    border: 1px solid rgba(255, 223, 128, 0.4) !important;
    border-bottom: 1px solid rgba(255, 223, 128, 0.6) !important;

    /* 文字：亮金色 + 發光 */
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);

    /* 外部光暈 */
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        /* 深色陰影 */
        inset 0 0 15px rgba(255, 215, 0, 0.1);
    /* 內部金光 */
}

.hero__cta-main-btn:hover {
    transform: translateY(-2px);
    /* 滑鼠移上去變亮，透明度降低 */
    background: linear-gradient(180deg,
            rgba(255, 215, 0, 0.25) 0%,
            rgba(40, 20, 0, 0.7) 100%);
    border-color: #ffe066 !important;
    box-shadow:
        0 0 20px rgba(255, 200, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
    color: #fff !important;
    /* 懸停時文字變白亮 */
}

/* 主按鈕 ICON 調整為亮金色 */
.hero__cta-main-btn svg path,
.hero__cta-main-btn svg rect,
.hero__cta-main-btn svg ellipse {
    stroke: #ffd700;
    fill: transparent;
    /* 鏤空比較有科技魔法感 */
    stroke-width: 2px;
}


/* =========================================
   [CSS 修正版] 3. 下載按鈕：寒冰幽魂 (同寬版)
   ========================================= */
.hero__cta--download .btn--secondary {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;

    /* 半透明黑底 + 藍色漸層罩色 */
    background: linear-gradient(180deg,
            rgba(50, 150, 255, 0.15) 0%,
            rgba(0, 20, 40, 0.6) 60%,
            rgba(0, 0, 0, 0.8) 100%);

    /* 纖細的冰藍邊框 */
    border: 1px solid rgba(100, 200, 255, 0.3) !important;
    border-bottom: 1px solid rgba(100, 200, 255, 0.5) !important;

    /* 文字：冰藍色 */
    color: #aaddff !important;
    text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(0, 150, 255, 0.1);
}

.hero__cta--download .btn--secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg,
            rgba(50, 150, 255, 0.25) 0%,
            rgba(0, 30, 60, 0.7) 100%);
    border-color: #88ccff !important;
    box-shadow:
        0 0 15px rgba(0, 150, 255, 0.4),
        inset 0 0 15px rgba(0, 150, 255, 0.2);
    color: #fff !important;
}

/* 下載按鈕 ICON 調整為亮藍色 */
.hero__cta--download .btn--secondary svg rect {
    stroke: #88ccff;
    fill: transparent;
    stroke-width: 1.5px;
}

/* =========================================
   [新增] 頁尾文字連結樣式
   ========================================= */
.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 手機版空間不足時自動換行 */
    gap: 0.5rem 0.8rem; /* 上下 0.5rem, 左右 0.8rem 間距 */
    margin: 10px auto 25px auto; /* 與上下元素的距離 */
    font-size: 0.85rem;
    font-family: sans-serif; /* 這種法律條款建議用易讀的無襯線體，不一定要用 Press Start 2P */
    letter-spacing: 1px;
}

.footer-nav a {
    color: #aaaaaa; /* 預設淺灰 */
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.footer-nav a:hover {
    color: #ffffff; /* 懸停變白 */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); /* 增加微發光效果 */
}

/* 分隔線樣式 */
.footer-nav .sep {
    color: #444; /* 深灰色分隔線，降低視覺干擾 */
    font-size: 0.8em;
    cursor: default;
    user-select: none;
}

/* 手機版微調 */
@media (max-width: 600px) {
    .footer-nav {
        width: 90%;
        gap: 0.5rem 0.6rem;
    }
}