﻿:root {
    --c1: #282B42;
    --c2: #522B90;
    --c3: #5468A1;
    --c4: #918DC3;
    --c5: #B3B8D8;
    --c6: #f1eeff;
    --c7: #ff751f; /* Example additional color */
    --c8: #FF4655; /* Example additional color */
    --c9: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--c1);
    color: var(--c5);
    font-family: 'Segoe UI', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
}

/* ── NAV ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(40, 43, 66, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(145, 141, 195, 0.15);
    transition: background 0.3s;
}

.nav-container {
    width: 100%;
    padding: 0 3rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--c5);
    flex-shrink: 0;
}
.nav-logo span { color: var(--c4); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--c5);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.5;
    transition: background 0.2s;
}
.nav-links a em {
    font-style: normal;
    font-size: 0.6rem;
    color: var(--c4);
    letter-spacing: 1.5px;
}
.nav-links a:hover { background: var(--c3); }

.btn-nav {
    background: var(--c2);
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.2s;
}
.btn-nav:hover { background: var(--c3); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--c5);
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: auto;
}

/* ── HERO ── */
#hero {
    height: 220vh;
    position: relative;
}

.hero-bg {
    position: fixed;
    inset: 0;
    background-color: var(--c1);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    /* HERO_BG */background-image: url('../img/1x/BG.webp'), radial-gradient(ellipse at 70% 45%, rgba(82,43,144,0.45) 0%, transparent 55%), radial-gradient(ellipse at 15% 80%, rgba(84,104,161,0.3) 0%, transparent 45%);
}

.hero-overlay {
    position: fixed;
    inset: 0;
    background: var(--c1);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}


.hero-content {
    position: absolute;
    top: 120vh;
    left: 0; right: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    opacity: 0;
}

.hero-label {
    font-size: 1.5rem;
    letter-spacing: 6px;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0.85;
}

.hero-title-img {
    max-width: min(600px, 82vw);
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 24px rgba(145, 141, 195, 0.35));
}

.hero-title {
    font-size: clamp(4.5rem, 13vw, 10rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.hero-title span { color: #d6d0f0; }

.hero-date {
    font-size: 1rem;
    color: #e8e8ff;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-desc {
    color: rgba(255,255,255,0.82);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-valo {
    display: inline-block;
    background: var(--c8);
    color: #fff;
    padding: 0.85rem 2.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 1rem;
}
.btn-valo:hover { 
    opacity: 0.75;
    transform: translateY(-2px); }

.btn-sf6 {
    display: inline-block;
    background: var(--c7);
    color: #fff;
    padding: 0.85rem 2.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 1rem;
}
.btn-sf6:hover { 
    opacity: 0.75;
    transform: translateY(-2px); }

/* ── HERO FADE (固定於 viewport 底部，背景圖漸層消失效果) ── */
.hero-fade {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    height: 38vh;
    background: linear-gradient(to bottom, transparent, var(--c1));
    z-index: 4;
    pointer-events: none;
}

/* ── GAME CARDS ── */
.game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.hero-cards {
    margin: 1.5rem 0 2rem;
}

.game-card {
    padding: 2.2rem 1.8rem;
    text-align: center;
}

.gc-red  { --gc-color: #FF4655; }
.gc-orange { --gc-color: #ff751f; }

.gc-game {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--gc-color);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}
.gc-format {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c5);
    margin-bottom: 1rem;
}
.gc-year {
    font-size: clamp(2.2rem, 5.5vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 1.4rem;
    letter-spacing: -1px;
}
.gc-date {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 1.4rem;
    letter-spacing: -1px;
}
.gc-day {
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 1.4rem;
    letter-spacing: 1px;
}
.gc-amp {
    font-size: 0.45em;
    color: var(--gc-color);
    vertical-align: middle;
    margin: 0 0.15em;
}
.gc-desc {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c5);
    line-height: 2;
    margin-bottom: 2rem;

}

/* ── SECTIONS ── */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 10;
    background: var(--c1);
}
.section-alt {
    background: var(--c1);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.sec-en {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--c3);
    margin-bottom: 0.4rem;
}
.sec-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c6);
    margin-bottom: 1rem;
}
.sec-line {
    width: 48px;
    height: 2px;
    background: var(--c2);
    margin: 0 auto;
}

/* ── OVERVIEW ── */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.info-card {
    background: rgba(82, 43, 144, 0.14);
    border: 1px solid rgba(145, 141, 195, 0.18);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
}
.info-label {
    font-size: 0.7rem;
    color: var(--c4);
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}
.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c5);
}
.overview-desc {
    text-align: center;
    color: var(--c4);
    font-size: 0.93rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ── ORGANIZER ── */
.org-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
}
.org-logo-box {
    min-width: 110px;
    padding: 1.4rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--c4);
    border: 2px solid rgba(145, 141, 195, 0.25);
    border-radius: 8px;
}
.org-img {
    max-width: min(300px, 30vw);
    width: 100%;
    height: auto;
    border: 3px solid var(--c4);
    border-radius: 12px;
    filter: drop-shadow(0 4px 24px rgba(145, 141, 195, 0.35));
    flex-shrink: 0;
}
.org-info h3 { color: var(--c6); font-size: 2rem; margin-bottom: 0.8rem; }
.org-info p { color: var(--c5); font-size: 1rem; line-height: 1.8; font-weight: 500; }


/* ── PRIZES ── */
.prize-img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border: 3px solid var(--c4);
    border-radius: 12px;
    filter: drop-shadow(0 4px 24px rgba(145, 141, 195, 0.35));
    flex-shrink: 0;
    margin-bottom: 2rem;
}

/*.prize-img {
    width: 100%;
    height: auto;
    display: block;

    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    transition: opacity 0.8s ease-in-out;

    border: 3px solid var(--c4);
    border-radius: 12px;
}*/

.slideshow {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 所有圖片疊在一起 */
.slide {
    width: 100%;
    height: auto;
    display: block;

    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    transition: opacity 0.8s ease-in-out;

    border: 3px solid var(--c4);
    border-radius: 12px;
}

/* 第一張圖片決定容器高度 */
.slide:first-child {
    position: relative;
}

/* 目前顯示的圖片 */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* 左右箭頭 */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: white;

    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 圓點 */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 10;

    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* ── GOODS ── */
.goods-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(82, 43, 144, 0.1);
    border: 1px solid rgba(145, 141, 195, 0.18);
    border-radius: 8px;
    padding: 2rem;
}
.goods-logo-box {
    min-width: 110px;
    padding: 1.4rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--c4);
    border: 2px solid rgba(145, 141, 195, 0.25);
    border-radius: 8px;
}
.goods-img {
    max-width: min(200px, 82vw);
    width: 100%;
    filter: drop-shadow(0 4px 24px rgba(145, 141, 195, 0.35));
}
.goods-info h3 { text-align: center; color: var(--c5); font-size: 1.2rem; }
.goods-info p { text-align: center; color: var(--c4); font-size: 0.9rem;  }

.btn-goods {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 0.85rem 2.4rem;
    background-color: var(--c2);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.15s;
}

.btn-goods:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

.goods-top-img {
    display: block;
    margin: 4rem auto 1rem;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(145, 141, 195, 0.35));
}

.goods-detail-img {
    max-width: 900px;
    display: block;
    margin: 0 auto 2rem;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(145, 141, 195, 0.35));
    border: 3px solid var(--c4);
    border-radius: 12px;
}

/* ── channel BUTTON ── */

.btn-yt, .btn-twitch, .btn-x, .btn-dc {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-yt:hover, .btn-twitch:hover, .btn-x:hover, .btn-dc:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

.sns-img {
    max-width: min(35px, 82vw);
    width: 100%;
    height: auto;
    margin-right: 1.5rem;
}

/* ── SCHEDULE ── */
.table-wrap { overflow-x: auto; }
.sched-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.sched-table th {
    background: rgba(82, 43, 144, 0.28);
    color: var(--c4);
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.sched-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(145, 141, 195, 0.1);
    color: var(--c5);
}
.sched-table tr:hover td { background: rgba(84, 104, 161, 0.07); }

.schedule-info h3 { color: var(--c5); font-size: 1.2rem; text-align: center;  margin-top: -1rem;}
.schedule-info p { text-align: center; color: var(--c4); font-size: 0.9rem;  }

.badge {
    padding: 0.18rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.b1 { background: rgba(82, 43, 144, 0.38); color: var(--c4); }
.b2 { background: rgba(84, 104, 161, 0.38); color: var(--c5); }
.b3 { background: rgba(145, 141, 195, 0.28); color: #fff; }


/* ── RULES ── */
.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.rule-card {
    padding: 2rem 1.4rem;
}
.rule-num-valo {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c8);
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: 1px;
}

.rule-card h3 { color: var(--c5); font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.6rem; padding-left: 1.2em; text-indent: -1.2em; }
.rule-card p { color: var(--c5); font-size: 1rem; margin-bottom: 1rem;}
.rule-info { color: var(--c5); font-size: 1rem; text-align: center; margin-bottom: 3rem; margin-top: -1rem;}
.rule-num-sf6 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c7);
    margin-bottom: 2rem;
    line-height: 1;
}
.sf6-zh { font-size: 1.9rem; }

/* ── REGISTRATION ── */
.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.reg-card {
    text-align: center;
    padding: 2rem 1.4rem;
}
.reg-num-valo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c8);
    margin-bottom: 1rem;
    line-height: 1;
    text-align: center;
}

.reg-card h3 { color: var(--c5); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 1rem; }
.reg-card p { display: table; margin: 0 auto 1.5rem; text-align: left; color: var(--c5); font-size: 1.05rem; font-weight: 500; }
.reg-info { color: var(--c5); font-size: 1rem; text-align: center; margin-bottom: 3rem; margin-top: -1rem;}
.reg-num-sf6 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--c7);
    margin-bottom: 1rem;
    line-height: 1;
    text-align: center;
}

/* ── SPONSOR ── */
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.sponsor-slot {
    width: 170px;
    height: 75px;
    background: rgba(84, 104, 161, 0.09);
    border: 1px dashed rgba(145, 141, 195, 0.28);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c3);
    font-size: 0.82rem;
}
.sponsor-note { text-align: center; color: var(--c4); font-size: 0.82rem; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
    background: rgba(73, 46, 116, 0.1);
    border: 1px solid rgba(145, 141, 195, 0.14);
    border-radius: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 1.1rem 1.4rem;
    color: var(--c5);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.93rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--c4); font-size: 1.2rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.1rem; color: var(--c4); font-size: 0.88rem; }

/* ── Goods Details ── */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
}

.image-item {
    text-align: center;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.image-item h3 {
    color: var(--c6); 
    font-size: 1.2rem; 
    font-weight: 600;
    margin-bottom: 0.6rem; 
    text-align: center;
}

.image-item p {
    color: var(--c6); 
    font-size: 1.1rem; 
    font-weight: 550;
    margin-bottom: 0.6rem; 
    text-align: center;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid rgba(145, 141, 195, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    background: var(--c1);
}
.footer-logo { font-size: 1.8rem; font-weight: 900; color: var(--c5); letter-spacing: 2px; margin-bottom: 0.4rem; }
.footer-logo span { color: var(--c4); }
.footer-copy { color: var(--c3); font-size: 0.78rem; }


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(40, 43, 66, 0.98);
        padding: 0.8rem;
        border-bottom: 1px solid rgba(145,141,195,0.1);
    }
    .nav-links.open a { flex-direction: row; gap: 0.5rem; font-size: 0.85rem; }
    .btn-nav { display: none; }
    .nav-toggle { display: block; }
    .org-card  { display: grid; grid-template-columns: min(90px, 26vw) 1fr; gap: 0.8rem 1.2rem; align-items: start; }
    .org-img   { grid-column: 1; grid-row: 1; max-width: 100%; align-self: center; }
    .org-info  { display: contents; }
    .org-info h3   { grid-column: 2; grid-row: 1; align-self: center; font-size: 1.4rem; }
    .org-desc  { grid-column: 1 / -1; grid-row: 2; text-align: left; }
    .section { padding: 4rem 1.2rem; }

    
    /* hero：給兩張疊起來的卡片足夠空間 */
    #hero         { height: 250vh; }
    .hero-content { top: 120vh; }
    .hero-bg      { background-position: 81% 15%; }
    .game-cards-grid { grid-template-columns: 1fr; gap: 1rem; }
    .game-card    { padding: 1.4rem 1.2rem; }
    .gc-game      { font-size: 1.4rem; letter-spacing: 1px; }
    .gc-format    { font-size: 0.95rem; }
    .gc-date      { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .gc-desc      { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.2rem; }
    .hero-title-img { max-width: min(280px, 85vw); margin-bottom: 1rem; }

    .image-grid {
        grid-template-columns: 1fr;
    }
}