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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #ffffff;
    --text-secondary: #b8b8b8;
    --card-bg: #16213e;
    --border-color: #0f3460;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* 빠른 이동 리모컨 */
.quick-nav {
    position: fixed;
    top: 50%;
    right: 2.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0.8rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

.quick-nav-item {
    position: relative;
    border: none;
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-nav-item:hover,
.quick-nav-item:focus-visible {
    outline: none;
    background: rgba(88, 101, 242, 0.35);
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.45);
}

.quick-nav-item.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.85) 0%, rgba(99, 102, 241, 0.7) 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(88, 101, 242, 0.35);
}

.quick-nav-label {
    display: inline-block;
}

/* 헤더 섹션 */
.hero-section {
    position: relative;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    box-shadow: var(--shadow);
}

.hero-image-container {
    max-width: 1200px;
    height: 320px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.main-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f3f4f6;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    margin-top: 0.8rem;
}

/* 컨테이너 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 섹션 */
.section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-left: 4px solid var(--highlight-color);
    padding-left: 1rem;
}

/* 다운로드 박스 */
.download-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.download-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight {
    color: var(--highlight-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--highlight-color) 0%, #c73650 100%);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.download-link-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.download-link-text a {
    color: var(--highlight-color);
    text-decoration: underline;
    word-break: break-all;
}

/* 대규모 이벤트 */
.mega-event-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.countdown {
    margin-top: 1.2rem;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.6);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    text-align: center;
}

.countdown-label {
    font-size: 0.8rem;
    color: #fecaca;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 700;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
}

.countdown-value {
    font-size: 1.1rem;
}

.countdown-unit {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
}

.mega-event-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mega-event-callout {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.4);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.callout-title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--highlight-color);
}

.callout-text {
    font-size: 1rem;
}

.callout-text a {
    color: #ffd166;
    text-decoration: underline;
}

.mega-event-details,
.payback-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    background: rgba(15, 52, 96, 0.3);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

.detail-label {
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1rem;
}

.detail-value a {
    color: #ffe69a;
    text-decoration: underline;
    font-weight: 600;
}

.mega-event-footer {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 페이백 이벤트 */
.payback-box {
    background: linear-gradient(135deg, rgba(24, 24, 34, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 2px solid rgba(94, 234, 212, 0.4);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.payback-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.payback-warning {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.payback-warning a {
    color: #6ee7b7;
    text-decoration: underline;
}

.payback-note {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.3rem;
}

.payback-links {
    margin-top: 1rem;
}

.payback-links a {
    color: #ffd3b6;
    text-decoration: underline;
    font-weight: 600;
}

.event-note .cert-link {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.payback-footer {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 이벤트 박스 */
.event-box {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--accent-color) 100%);
    border: 2px solid var(--highlight-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow);
}

.event-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--highlight-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.5);
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.event-note {
    display: block;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(233, 69, 96, 0.12);
    border: 1px solid rgba(233, 69, 96, 0.35);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #f5dada;
}

.event-note a {
    color: #ffe69a;
    text-decoration: underline;
    font-weight: 600;
}

 

 

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tip-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.45) 0%, rgba(22, 33, 62, 0.7) 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 14px;
    padding: 1.6rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(88, 101, 242, 0.8);
}

.tip-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.5);
    box-shadow: inset 0 0 12px rgba(88, 101, 242, 0.35);
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.tip-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.tip-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9db4ff;
}

/* 동영상 섹션 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.official-event-box {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.official-event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.official-event-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--highlight-color) 0%, #c73650 100%);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.official-event-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.discord-box {
    position: relative;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18) 0%, rgba(64, 78, 214, 0.25) 100%);
    border: 2px solid rgba(88, 101, 242, 0.6);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.discord-status {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ad66b;
    box-shadow: 0 0 8px rgba(58, 214, 107, 0.7);
}

.discord-status-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.discord-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.discord-button {
    display: inline-block;
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    color: var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.discord-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* 연맹 정보 */
.alliance-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.info-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.info-text.notice {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: rgba(233, 69, 96, 0.12);
    border: 1px solid rgba(233, 69, 96, 0.35);
    color: #f5dada;
    font-size: 1rem;
}

.highlight-box {
    background: rgba(233, 69, 96, 0.2);
    color: var(--highlight-color);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
}

.guide-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.guide-steps {
    padding-left: 1.5rem;
    line-height: 2;
}

.guide-steps li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.warning-box {
    background: rgba(233, 69, 96, 0.1);
    border: 2px solid var(--highlight-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.warning-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* 코드 섹션 */
 

.tips-callout {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.12) 0%, rgba(88, 101, 242, 0.18) 100%);
    border: 1px solid rgba(233, 69, 96, 0.35);
    box-shadow: var(--shadow);
}

.tips-callout-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.tips-chat-bubble {
    position: relative;
    background: rgba(22, 33, 62, 0.75);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 12px;
    padding: 1.2rem 1.4rem 1.1rem;
    box-shadow: inset 0 0 18px rgba(88, 101, 242, 0.18);
}

.tips-chat-bubble + .tips-chat-bubble {
    margin-top: 1rem;
}

.tips-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.tips-user {
    font-weight: 700;
    color: #9db4ff;
}

.tips-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.tips-chat-message {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 푸터 */
.footer {
    background: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--highlight-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-credit {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .quick-nav {
        display: none;
    }

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

    .hero-image-container {
        height: 200px;
    }

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

    .download-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .code-text {
        font-size: 1rem;
    }

    .hero-image-container {
        margin-bottom: 1rem;
    }

    .tip-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tip-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

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

    .hero-image-container {
        height: 160px;
    }

    .container {
        padding: 1rem;
    }

    .download-box,
    .event-box,
    .code-section {
        padding: 1rem;
    }

    .tip-card {
        padding: 1.2rem;
    }
}

.alliance-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.alliance-image-box {
  margin-top: 1rem;
  text-align: center;
}

.alliance-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}