:root {
    --bg-main: #000000;
    --tgm-yellow: #eef043;
    --text-white: #ffffff;
    --text-muted: #888888;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- 背景 --- */
.bg-static {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: url('TGM.png'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    background-color: rgba(0, 0, 0, 0.85); 
    background-blend-mode: darken;
}

/* --- 主內容 --- */
.content-frame {
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
}

/* --- 文字 --- */
.pre-title {
    font-family: var(--font-heading);
    color: var(--tgm-yellow);
    font-size: 1rem;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0.9;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 5.5rem; 
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 30px;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    padding: 0 10px;
}

.highlight {
    color: var(--tgm-yellow);
}

.title-separator {
    width: 60px;
    height: 4px;
    background: var(--tgm-yellow);
    margin: 0 auto 35px;
    box-shadow: 0 0 10px var(--tgm-yellow);
}

.sub-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d1d1d1;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.status-bar {
    margin-bottom: 45px;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0,0,0,0.4);
    padding: 12px 25px;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
}

.status-icon {
    color: var(--tgm-yellow);
    text-shadow: 0 0 10px rgba(238, 240, 67, 0.5);
}

/* --- 按鈕 --- */
.cta-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    flex-wrap: wrap;
}

/* --- 按鈕--- */
.btn {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    position: relative;
    
    width: 260px;
    max-width: 100%;
    height: 56px; 
    padding: 2px;
    
    clip-path: polygon(
        15px 0, 
        100% 0, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        0 100%, 
        0 15px
    );
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #000000;
    gap: 10px;
    transition: all 0.3s ease;
    clip-path: polygon(
        15px 0, 
        100% 0, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        0 100%, 
        0 15px
    );
}

/* --- Discord 按鈕  --- */
.btn-discord {
    background-color: var(--tgm-yellow); 
    color: var(--tgm-yellow); 
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(238, 240, 67, 0.6);
    color: #000000; 
}

.btn-discord:hover .btn-content {
    background-color: var(--tgm-yellow); 
}

/* --- Instagram 按鈕 --- */
.btn-instagram {
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 15px rgba(220, 39, 67, 0.5));
}

.btn-instagram:hover .btn-content {
    background-color: rgba(255, 255, 255, 0.1); 
}

.fixed-footer {
    position: absolute;
    bottom: 30px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 3px;
    width: 100%;
    text-align: center;
}

/* 
   RWD
 */

/* 1. 平板與小筆電 (1024px 以下) */
@media (max-width: 1024px) {
    .main-title {
        font-size: 4.5rem; 
    }
    .cta-container {
        gap: 20px;
    }
}

/* 2. 手機版 (768px 以下) */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100dvh; 
        overflow-y: auto; 
        padding-bottom: 80px; 
    }

    .content-frame {
        padding: 40px 20px;
        margin-top: 5vh; 
    }

    .pre-title {
        font-size: 0.85rem;
    }

    /* 手機版字體調整 */
    .main-title {
        font-size: 3.5rem; 
        line-height: 1;
        margin-bottom: 25px;
    }
    
    .sub-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .fixed-footer {
        position: relative;
        bottom: auto;
        margin-top: 40px;
        width: 100%;
    }
}

/* 3. 橫向模式或小螢幕 (高度 < 500px) */
@media (max-height: 500px) {
    .content-frame {
        padding-top: 20px;
        margin-top: 0;
    }
    .main-title {
        font-size: 2.5rem; 
        margin-bottom: 10px;
    }
    .sub-description {
        display: none; 
    }
    .status-bar {
        margin-bottom: 20px;
    }
}
