/* ================================================
   GLOBAL STYLES & VARIABLES
   ================================================ */

:root {
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-dark-bg: #0a0e27;
    --color-dark-secondary: #151b3f;
    --color-neon-pink: #ff006e;
    --color-neon-mint: #00f5ff;
    --color-text-dark: #1a1a1a;
    --color-text-light: #ffffff;
    --color-accent-gray: #e0e0e0;
    
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.3s ease-out;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

body {
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* ================================================
   SECTION LAYOUT - SCROLL SNAP
   ================================================ */

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}

/* ================================================
   SECTION 1: THE AUTHORITY (신뢰 - Clean & Trust)
   ================================================ */

.section-authority {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
}

/* Authority Header Badge */
.authority-header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.authority-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
    backdrop-filter: blur(10px);
}

.authority-badge i {
    font-size: 1rem;
}

/* Authority Hero */
.authority-hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out;
}

.authority-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.authority-title .title-main {
    display: block;
    color: var(--color-text-dark);
}

.authority-title .title-sub {
    display: block;
    background: linear-gradient(120deg, var(--color-text-dark), #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.authority-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}


.authority-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.authority-hero-image img {
    width: 220px;
    height: auto;
}

@media (max-width:768px) {

    .authority-hero-inner {
        flex-direction: column;
        gap: 25px;
    }

    .authority-hero-image img {
        width: 140px;
    }

}



/* Authority Stats */
.authority-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.authority-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    animation: slideUp 1s ease-out 0.2s both;
}

.stat-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
    border: 5px solid var(--color-accent-gray);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Authority Documents */
.authority-documents {
    background: var(--color-white);
    padding: 20px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-accent-gray);
    animation: slideUp 1s ease-out 0.4s both;
   }

.authority-documents h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--color-text-dark);
    
}

.document-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    border: 5px solid #dad9ff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
        padding: 15px;

    }

.timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;

    
}

.timeline-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border-radius: 50%;
    font-weight: 700;
    color: var(--color-text-dark);
    flex-shrink: 0;
    border: 3px solid #03fb34;

    
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #999;
}

/* Authority Footer */
.authority-footer-text {
    text-align: center;
    margin-top: 60px;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* ================================================
   SECTION 2: THE BRIDGE (전환 - Gradient Transition)
   ================================================ */

.section-bridge {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%,
        rgba(240, 240, 245, 1) 25%,
        rgba(220, 220, 235, 1) 50%,
        rgba(15, 23, 42, 1) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.bridge-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: -30px;
}

.bridge-text-left,
.bridge-text-right {
    text-align: center;
}

.bridge-text-left h2,
.bridge-text-right h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.bridge-text-left p,
.bridge-text-right p {
    font-size: 1rem;
    line-height: 1.8;
    transition: var(--transition-smooth);
}

/* Top Part - White text */
.section-bridge .bridge-text-left {
    color: var(--color-text-dark);
}

.section-bridge .bridge-text-left p {
    color: #666;
}

/* Bottom Part - Light text (appears at scroll) */
.section-bridge.scrolled-to-bottom .bridge-text-right {
    color: rgb(255, 136, 0);
}

.section-bridge.scrolled-to-bottom .bridge-text-right p {
    color: #666;
}

/* Bridge Visual - Arrow */
.bridge-visual {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bridge-arrow {
    width: 3px;
    height: 60px;
    background: var(--color-text-dark);
    border-radius: 10px;
    animation: arrowFloat 2s ease-in-out infinite;
}

.bridge-arrow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--color-text-dark);
}

/* Bridge Scroll Hint */
.bridge-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.bridge-scroll-hint span {
    font-size: 0.95rem;
    color: #999;
    font-weight: 500;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #999;
    border-radius: 50%;
    animation: bounce 1.5s ease-in-out infinite;
}

.scroll-indicator i {
    color: #999;
    font-size: 0.8rem;
}

/* ================================================
   SECTION 3: THE FEVER (축제 - Dynamic Festival)
   ================================================ */

.section-fever {
    background: linear-gradient(135deg, 
        var(--color-dark-bg) 0%,
        var(--color-dark-secondary) 100%);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

/* Fever Header */
.fever-header {
    text-align: center;
    margin-bottom: 80px;
    z-index: 10;
}

.fever-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #39ff14 10%, #00fffb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitchText 0.6s ease-out;
}

.fever-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Fever Showcase */
.fever-showcase {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    margin-bottom: 60px;
    z-index: 10;
}

.showcase-item {
    margin-bottom: 80px;
}


.showcase-label {
    display: flex;
    /* 내부 텍스트를 가로(주축) 기준으로 중앙 정렬 */
    justify-content: center;
    /* 내부 텍스트를 세로(교차축) 기준으로 중앙 정렬 */
    align-items: center;

    width: 300px;
    margin: 0 auto 30px auto;

    /* 기존 스타일 유지 */
    padding: 8px 16px;
    background: rgb(0, 103, 12);
    border: 1px solid var(--color-neon-mint);
    color: var(--color-neon-blue);
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}



/* Showcase Grid */
.showcase-grid {
    display: grid;
    /* 1fr(균등 비율)로 4열 배치 */
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    animation: cardSlideIn 0.6s ease-out backwards;
}

.showcase-card:nth-child(1) { animation-delay: 0s; }
.showcase-card:nth-child(2) { animation-delay: 0.1s; }
.showcase-card:nth-child(3) { animation-delay: 0.2s; }
.showcase-card:nth-child(4) { animation-delay: 0.3s; }

.showcase-card:hover {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--color-neon-pink);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.showcase-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.showcase-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}


/* Sports Carousel */ 

.showcase-carousel {
    /* 1. 상단과 똑같이 Grid 레이아웃으로 변경하여 4열 맞춤 */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.sport-card {
    /* 기존 그라데이션 스타일은 그대로 유지 */
    background: linear-gradient(135deg,
            rgba(0, 245, 255, 0.1) 0%,
            rgba(255, 0, 110, 0.1) 100%);
    border: 1px solid rgba(0, 245, 255, 0.5);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    animation: cardSlideIn 0.6s ease-out backwards;

    /* 2. 고정 width를 없애야 Grid 규격에 맞춰 유연하게 반응합니다 */
    width: auto;

}

.sport-card:nth-child(1) {
    animation-delay: 0.4s;
}

.sport-card:nth-child(2) {
    animation-delay: 0.5s;
}

.sport-card:nth-child(3) {
    animation-delay: 0.6s;
}

.sport-card:nth-child(4) {
    animation-delay: 0.7s;
}

.sport-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}

.sport-card:hover {
    border-color: var(--color-neon-pink);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
    transform: translateY(-8px);
}

.sport-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(120deg,
            var(--color-neon-mint),
            var(--color-neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.sport-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

.sport-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Countdown */
.fever-countdown {
    margin-bottom: 60px;
    z-index: 10;
}

.countdown-box {
    text-align: center;
}

.countdown-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-value {
    display: inline-block;
    min-width: 60px;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(0, 245, 255, 0.15),
        rgba(255, 0, 110, 0.15));
    border: 2px solid var(--color-neon-mint);
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-neon-mint);
    font-family: 'Courier New', monospace;
}

.countdown-unit-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Section */
.fever-cta {
    text-align: center;
    z-index: 10;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(120deg, 
        var(--color-neon-pink),
        #ff1493);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 245, 255, 0.2);
    transition: left 0.3s ease-out;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(255, 0, 110, 0.6);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

.cta-description {
    margin-top: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    pointer-events: none;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes arrowFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glitchText {
    0% {
        transform: translate(-2px, -2px);
    }
    20% {
        transform: translate(2px, 2px);
    }
    40% {
        transform: translate(-2px, 2px);
    }
    60% {
        transform: translate(2px, -2px);
    }
    80% {
        transform: translate(-1px, 1px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    section {
        padding: 40px 20px;
    }

    .authority-header,
    .authority-badge {
        display: none;
    }

    .authority-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .bridge-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bridge-visual {
        display: none;
    }

    .fever-title {
        font-size: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .sports-carousel {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        gap: 10px;
    }

    .countdown-value {
        min-width: 50px;
        padding: 10px;
        font-size: 1.4rem;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .authority-title {
        font-size: 1.8rem;
    }

    .authority-stats {
        grid-template-columns: 1fr;
    }

    .fever-title {
        font-size: 1.5rem;
    }

    .showcase-card,
    .sport-card {
        padding: 20px;
    }

    .countdown-timer {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
}



#particlesContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    /* 기본 테두리 및 그림자 */
    border: 1px solid rgba(150, 150, 150, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 흰색 배경을 만났을 때 활성화되는 색상 스타일 */
.particle.colored-mode {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    #particlesContainer {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .showcase-carousel {
        grid-template-columns: 1fr;
        
    }
}


@media (max-width:768px) {

    .authority-title .title-sub {

        /* 기존 스타일 제거 */
        all: unset;

        /* 새 스타일 */
        display: block;
        color: #fff;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;

    }

}




.showcase-card input {
    width: 100%;
    padding: 12px 15px;
    margin-top: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
    font-weight: 700;
}

.showcase-card input:focus {
    outline: none;
    border-color: #666;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

#result {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}




/* 재생/정지 버튼이 들어가는 가로 정렬 박스 */
.control-panel {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

/* [공통] 재생 및 정지 버튼 스타일 */
.btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 버튼에 마우스를 올렸을 때 효과 */
.btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* 버튼을 클릭했을 때 효과 */
.btn:active {
    transform: translateY(0);
}

/* [커스텀] 정지 버튼 (배경을 톤다운하여 구분) */
.btn-stop {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: none;
}

.btn-stop:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 실시간 음성 재생 상태 표시 글자 */
.status-bar {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    min-height: 20px;
    font-weight: 500;
    text-align: center;
}

/* 롱버전 대본이 보여지는 스크롤 자막 창 */
.script-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* 자막 창 내부 스크롤바 디자인 */
.script-box::-webkit-scrollbar {
    width: 6px;
}

.script-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ==========================================
   5. 모바일 화면 (테블릿 및 스마트폰) 최적화
   ========================================== */
@media screen and (max-width: 768px) {

    /* 재생/정지 버튼을 세로로 배치하거나 여백을 좁힙니다 */
    .control-panel {
        flex-direction: row;
        /* 가로 배열 유지하되 폭에 맞춤 */
        gap: 12px;
        margin-bottom: 20px;
        width: 100%;
    }

    /* 손가락으로 터치하기 쉽도록 버튼 크기 및 폰트 조절 */
    .btn {
        flex: 1;
        /* 두 버튼이 화면 반반씩 공평하게 차지 */
        justify-content: center;
        padding: 16px 20px;
        /* 터치 영역 확대를 위해 상하 여백 늘림 */
        font-size: 15px;
        /* 작은 화면에 맞게 폰트 미세 조정 */
        border-radius: 10px;
    }

    /* 실시간 상태창 여백 조정 */
    .status-bar {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* 스마트폰 화면에서 자막창이 너무 길어지지 않도록 높이 제한 */
    .script-box {
        padding: 15px;
        max-height: 160px;
        /* 세로 스크롤 길이를 줄여 한눈에 보이게 함 */
        font-size: 14px;
        /* 가독성을 위한 최적의 모바일 텍스트 크기 */
        line-height: 1.6;
    }
}




.glp-roadmap-container {
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    max-width: 1800px;
    /* 요청하신 대로 가로폭을 1500px까지 최대한 활용 */
    text-align: center;
    color: #ffffff;
}

.roadmap-arrows {
    display: flex;
    width: 100%;
    /* 부모 컨테이너 가로폭 100% 활용 */
    height: 160px;
    /* 높이를 확보하여 내용물 시원하게 배치 */
    gap: 30px;
    /* 단계 사이 간격 최소화하여 화살표 느낌 강조 */
    margin: 40px 0;
}

.arrow-step {
    flex: 1;
    /* 모든 단계가 동일한 비율로 넓게 분할 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a3a5a;
    color: #a0b0d0;
    font-weight: bold;
    font-size: 1rem;
    padding: 0 15px;
    /* 내부 가로 여백 추가 */
    position: relative;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
    transition: background 0.3s ease;
    width: 200px;
}

/* 첫 번째 요소와 마지막 요소의 형태 정교화 */
.arrow-step:first-child {
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
}

.arrow-step.final {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 50%);
}

.arrow-step.active {
    background: #1e90ff;
    color: #ffffff;
}

/* 모바일 전용: 100% 너비 및 중앙 정렬 */
@media (max-width: 768px) {
    .roadmap-arrows {
        display: flex;
        flex-direction: column;
        /* 세로로 쌓기 */
        gap: 15px;
        height: auto;
        margin: 20px auto;
        width: 100%;
        /* 전체 너비 */
        align-items: center;
        /* 수평 중앙 정렬 */
    }

    .arrow-step {
        width: 100%;
        /* 너비 100% */
        max-width: 400px;
        /* 너무 넓어지지 않게 최대 폭 제한 */
        clip-path: none;
        /* 화살표 모양 제거 */
        padding: 20px 10px;
        border-radius: 12px;
        /* 둥근 모서리로 깔끔하게 */
        min-height: 70px;
        box-sizing: border-box;
        /* 패딩 포함 너비 계산 */
    }
}



.visitor-counter {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 2rem;
    z-index: 9999;
    color: #00fffb;
}

@media (max-width: 1024px) {
    .visitor-counter {
        display: none;
    }
}






/* =====================================================
   Floating Video Button
   ===================================================== */

.video-floating {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    z-index: 999999;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* 원형 버튼 */
.video-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;

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

    box-shadow:
        0 0 15px rgba(0, 180, 255, .35),
        0 0 35px rgba(0, 220, 255, .25);

    animation: pulse 3s ease-in-out infinite;
}

/* 회전하는 것은 점이 아니라 면 */
.video-circle::before {

    content: "";

    position: absolute;

    width: 170%;
    height: 170%;

    background: conic-gradient(#00d2ff,
            #007bff,
            #00c853,
            #00d2ff);

    animation: rotateBg 20s linear infinite;
}

/* 안쪽 원 */
.video-circle::after {

    content: "";

    position: absolute;

    inset: 10px;

    border-radius: 50%;

    background:
        radial-gradient(circle at top,
            #0d6efd,
            #063970);

}

/* 내용 */
.video-content {

    position: relative;

    z-index: 10;

    color: #fff;

    text-align: center;

    font-family: sans-serif;

}

.video-content .play {

    font-size: 24px;
    line-height: 1;

}

.video-content .title {

    font-size: 10px;
    margin-top: 3px;
    font-weight: bold;
    letter-spacing: .5px;

}

/* 터치 */
.video-floating:active .video-circle {
    transform: scale(.95);
}

/* 마우스 */
.video-floating:hover .video-circle {

    transform: scale(1.08);

    transition: .25s;

}

/* 은은한 숨쉬기 */
@keyframes pulse {

    0%,
    100% {

        box-shadow:
            0 0 15px rgba(0, 180, 255, .35),
            0 0 35px rgba(0, 220, 255, .25);

    }

    50% {

        box-shadow:
            0 0 25px rgba(0, 255, 255, .55),
            0 0 55px rgba(0, 255, 255, .35);

    }

}

/* 면만 아주 천천히 회전 */
@keyframes rotateBg {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

