@charset "utf-8";

/* Reset & Base - Dark Mode */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background-color: #000;
    /* Spotlight Effect */
    background: radial-gradient(circle at center top, #1c1c1c 0%, #000 100%);
    background-attachment: fixed;
    /* Keep spotlight centered */
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

ul,
ol,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    vertical-align: top;
}

/* Wrapper - Mobile App Feel */
.sk-wrapper {
    max-width: 480px;
    /* Slightly wider for modern feel */
    margin: 0 auto;
    /* background-color: rgba(18, 18, 18, 0.4); */
    background-color: transparent !important;
    /* Crystal Clear */
    /* backdrop-filter: blur(5px); */
    /* REMOVED BLUR */
    min-height: 100vh;
    z-index: 5;
    /* Sit above Space Canvas */

    /* PC View Boundary Polish - Glass Bezel Effect */
    border: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        /* Sharp Rim */
        0 0 30px rgba(0, 0, 0, 0.9),
        /* Deep Shadow */
        0 0 80px rgba(255, 255, 255, 0.05);
    /* Ambient Cosmic Glow */

    position: relative;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* Header - White Glassmorphism */
.sk-header {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    /* White Glass */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sk-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

/* Logo */
.sk-logo {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    /* Force full height for vertical centering */
}

.sk-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.sk-logo img {
    height: 28px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    /* Invert logo to dark if it was white-dependent. Assuming img is handled or we filter it */

    display: block;
}

.sk-logo span {
    font-size: 18px;
    font-weight: 700;
    margin-left: 8px;
    color: #333;
    /* Dark Text */
    line-height: 1;
    padding-top: 2px;
}

/* Hamburger Menu (Dynamic Blue) */
.sk-menu-btn {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 24px;
    padding: 0;
    transition: transform 0.3s;
}

.hamburger:active {
    transform: scale(0.9);
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #333;
    /* Dark Bars */
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-origin: center;
}

/* Dynamic Widths for Stylish Look */
.hamburger span:nth-child(1) {
    width: 100%;
}

.hamburger span:nth-child(2) {
    width: 70%;
    margin-left: auto;
    /* Aligned Right */
}

.hamburger span:nth-child(3) {
    width: 100%;
}

/* Active State (X shape - keep Blue for specific tone) */
.hamburger.active span {
    background-color: #408CFF;
    /* Logo Blue */
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

/* GNB Layer - Compact Dropdown Premium */
.sk-gnb-layer {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    /* Slimmer */
    max-width: calc(100vw - 20px);
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.98);
    /* White Background */
    backdrop-filter: blur(15px);
    z-index: 9999;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Dark Border */
    border-top: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Softer Shadow */

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sk-gnb-layer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu Header */
.gnb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.03);
    /* Light Gray */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gnb-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-auth-link {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #666;
    /* Dark Gray */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-auth-link:hover {
    color: #000;
}

.gnb-auth .divider {
    width: 1px;
    height: 10px;
    background: #ddd;
    display: block;
}

/* Close button removed from DOM, style removed */

/* Menu Content */
.gnb-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Slim Kakao Button */
.btn-kakao-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    /* Reduced height */
    background-color: #FEE500;
    color: #3c1e1e;
    /* Kakao dark brown text */
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 20px;
    /* Reduced margin */
    transition: filter 0.2s;
}

.btn-kakao-login:hover {
    filter: brightness(0.95);
}

.btn-kakao-login i {
    font-size: 16px;
    margin-right: 6px;
}

/* Menu List - Premium Hover */
.gnb-list {
    margin: 0;
    padding: 0;
}

.gnb-list li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Light Border */
}

.gnb-list li:last-child {
    border-bottom: none;
}

.gnb-list li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: #333;
    /* Dark Text */
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover Effect: Text slide + Gold color */
.gnb-list li a:hover {
    padding-left: 8px;
    /* Slide right */
    color: #d4af37;
    /* Gold */
}

/* Menu Footer */
.gnb-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: #555;
    font-size: 12px;
    text-align: center;
}

.gnb-footer p {
    margin-bottom: 5px;
}

/* Content */
.sk-content {
    width: 100%;
    overflow-x: hidden;
    background-color: #fff;
    /* Opaque White Background */
    min-height: 800px;
    /* Ensure usage of space */
    position: relative;
    z-index: 10;
    /* Above stars */
}

/* Footer - Light Theme (User Request) */
.sk-footer {
    padding: 60px 20px 100px;
    background-color: #f9f9fb;
    text-align: center;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #e5e5e5;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}

.sk-footer .footer-logo {
    margin-bottom: 25px;
}

.sk-footer .footer-logo img {
    height: 22px;
    opacity: 0.8;
    filter: invert(1) grayscale(100%);
    /* Invert white logo to black for light bg */
    margin: 0 auto;
}

.footer-info p {
    margin-bottom: 6px;
    color: #888;
    word-break: keep-all;
    font-weight: 400;
}

.footer-info .divider {
    display: inline-block;
    margin: 0 10px;
    color: #ddd;
    font-size: 10px;
    vertical-align: 1px;
}

.footer-links {
    margin: 25px 0;
}

.footer-links a {
    display: inline-block;
    margin: 0 12px;
    color: #555;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: #000;
    text-decoration: underline;
}

.sk-footer .copyright {
    color: #999;
    margin-top: 5px;
    font-family: 'Poppins', 'Pretendard', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Sticky CTA */
.sk-sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    z-index: 2000;
}

/* Cosmic Badge Wrapper */
.cta-bubble-wrapper {
    position: absolute;
    bottom: 62px;
    /* Above button */
    right: 5px;
    /* Aligned right */
    left: auto;
    width: auto;
    z-index: 2001;
    animation: galaxyFloat 3s ease-in-out infinite;
}

/* Cosmic Badge Design */
.cta-counter-bubble {
    position: relative;
    /* Deep Galaxy Gradient */
    background: linear-gradient(135deg, #1a0b2e 0%, #311b92 100%);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;

    /* Cosmic Glow Border */
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(124, 77, 255, 0.4),
        /* Purple nebula glow */
        inset 0 0 10px rgba(255, 215, 0, 0.1);
    /* Inner gold wash */
}

/* Star Icon */
.cta-counter-bubble::before {
    content: '✦';
    color: #FFD700;
    font-size: 14px;
    text-shadow: 0 0 5px #FFD700;
    animation: starTwinkle 2s infinite alternate;
}

.cta-counter-bubble .count-num {
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.cta-counter-bubble .count-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* Remove old arrow */
.bubble-arrow {
    display: none;
}

/* Animations */
@keyframes galaxyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes starTwinkle {
    0% {
        opacity: 0.7;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Premium CTA Button */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: #fff;
    color: #000;
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
    transition: all 0.2s;
    letter-spacing: -0.5px;
}

.btn-cta:active {
    transform: scale(0.96);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Light Gathering Effect */
.gather-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow:
        0 0 4px #fff,
        0 0 10px #FFD700;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* Ease-in for accelerating feel */
}

/* Badge Absorb Flash */
.badge-absorb-flash .cta-bubble-wrapper {
    animation: absorbFlash 0.4s ease-out;
}

@keyframes absorbFlash {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 0px rgba(255, 215, 0, 0));
    }

    50% {
        transform: scale(1.2);
        filter: brightness(2) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Counter Burst Effect - Hyper Realistic Shooting Star */
.counter-burst {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    top: 0;
    right: -100px;
    /* Start slightly off-screen */
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.4),
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(200, 230, 255, 1),
        0 0 50px rgba(200, 230, 255, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1));
    animation: shoot 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1px;
    width: 400px;
    /* Ultra Long tail */
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.4), transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    border-radius: 0 4px 4px 0;
}

.shooting-star::after {
    /* Second tail for detail */
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1px;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, rgba(200, 230, 255, 1), transparent);
}

.burst-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    animation: flashWhite 1s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(35deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        transform: translate(-120vw, 120vh) rotate(35deg);
        opacity: 0;
    }
}

@keyframes flashWhite {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 0.9;
    }

    /* Bright Impact */
    100% {
        opacity: 0;
    }
}

/* Badge Punch */
.punch-effect {
    animation: punchScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes punchScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        background-color: #ffffff;
        color: #000;
        box-shadow: 0 0 20px #FFD700;
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media screen and (max-width: 480px) {
    .sk-wrapper {
        max-width: 100%;
        box-shadow: none;
        min-height: auto;
    }

    .sk-sticky-cta {
        width: calc(100% - 30px);
        bottom: 20px;
    }
}

/* =========================================
   SPACE BACKGROUND EFFECT (Restored)
   ================================********* */

/* Background Container - Fixed behind everything */
.sk-background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind App (App is z-index 5) */
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    /* Body has the base gradient */
}

/* Stars Layer 1 - Small & Slow */
.sk-stars-1 {
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        10vw 10vh #fff, 20vw 80vh #fff, 80vw 10vh #fff, 90vw 90vh #fff,
        40vw 30vh #fff, 60vw 60vh #fff, 10vw 90vh #fff, 50vw 10vh #fff,
        70vw 40vh #fff, 30vw 70vh #fff, 85vw 25vh #fff, 15vw 55vh #fff,
        55vw 85vh #fff, 25vw 15vh #fff, 95vw 45vh #fff, 45vw 95vh #fff,
        35vw 35vh #fff, 65vw 65vh #fff, 5vw 5vh #fff, 75vw 75vh #fff;
    animation: galaxyRotate 200s linear infinite;
    opacity: 0.3;
}

/* Stars Layer 2 - Medium & Twinkle */
.sk-stars-2 {
    position: absolute;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow:
        15vw 25vh #fff, 35vw 75vh #fff, 65vw 15vh #fff, 85vw 65vh #fff,
        25vw 55vh #fff, 55vw 95vh #fff, 75vw 35vh #fff, 45vw 85vh #fff,
        95vw 5vh #fff, 5vw 45vh #fff, 55vw 25vh #fff, 15vw 85vh #fff;
    animation: galaxyRotate 150s linear infinite, starTwinkleBase 4s ease-in-out infinite;
    opacity: 0.5;
}

/* Stars Layer 3 - Bright & Rare */
.sk-stars-3 {
    position: absolute;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow:
        30vw 20vh #fff, 70vw 80vh #fff, 50vw 50vh #fff, 90vw 10vh #fff,
        10vw 60vh #fff, 60vw 30vh #fff;
    animation: galaxyRotate 100s linear infinite, starTwinkleBase 3s ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes galaxyRotate {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100vh);
    }
}

@keyframes starTwinkleBase {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}