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

body {
    margin: 0;
    overflow: hidden;
    background: #f0f4f8;
    font-family: 'Noto Sans KR', sans-serif;
    opacity: 0;
    transition: opacity 0.32s ease;
}


canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.scene {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    overflow-y: auto;
    padding: 0;
}

.scene-top {
    align-items: flex-start;
    padding: 4vh 0;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
}

.card {
    width: min(500px, 88vw);
    padding: 2.6rem 3rem;
    border-radius: 20px;
    position: relative;
    pointer-events: auto;
    background: transparent;
    border-top: 1.5px solid rgba(255, 255, 255, 0.95);
    border-left: 1.5px solid rgba(255, 255, 255, 0.75);
    border-right: 1.5px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 2px 0 rgba(255, 255, 255, 0.9) inset;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 45%;
    border-radius: 20px 0 80% 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: rgba(15, 25, 50, 0.9);
    text-align: center;
    letter-spacing: 0.06em;
    margin-bottom: 1.4rem;
    text-shadow:
        2px 3px 5px rgba(0, 0, 0, 0.15),
        -1px -1px 0 rgba(255, 255, 255, 0.9);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(180, 200, 220, 0.9) 25%,
            rgba(255, 255, 255, 1) 50%,
            rgba(180, 200, 220, 0.9) 75%,
            transparent);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
    margin: 0 0 1.6rem;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 400;
    color: rgba(15, 25, 50, 0.82);
    letter-spacing: 0.025em;
    text-shadow:
        1px 2px 4px rgba(0, 0, 0, 0.12),
        -0.5px -0.5px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    padding-bottom: 1.2rem;
}

.member-list {
    width: 100%;
}

.member-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(180, 200, 220, 0.8) 25%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(180, 200, 220, 0.8) 75%,
        transparent);
}

.member-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.member-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.member-id {
    font-weight: 700;
    font-size: 0.88rem;
    color: rgba(15, 25, 50, 0.9);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.label-icon {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.major-label {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.12rem 0.46rem;
    border-radius: 4px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.member-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(15, 25, 50, 0.75);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s;
}

.member-link:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.85);
}

.team-name {
    font-weight: 500;
    color: rgba(15, 25, 50, 0.85);
}

.discord-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-shadow: none;
    transition: opacity 0.2s;
}

.discord-link:hover {
    opacity: 0.75;
}

@keyframes shimmer {
    from { background-position: 0% center; }
    to { background-position: 200% center; }
}

.members-btn {
    display: block;
    width: fit-content;
    margin: 1.4rem auto 0;
    padding: 0.75rem 2.2rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(15, 25, 50, 0.82);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1), -0.5px -0.5px 0 rgba(255, 255, 255, 0.7);
}

.members-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-btn {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: rgba(15, 25, 50, 0.75);
    transition: background 0.18s, border-color 0.18s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.9);
}

.members-card {
    padding-top: 4rem;
}

.card-container {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-loader-center {
    position: absolute;
    top: 50%;
    left: 1.2rem;
    right: 1.2rem;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(180, 200, 220, 0.22);
    pointer-events: none;
    z-index: 100;
}

.card-loader-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg,
        #0ea5e9 0%,
        #38bdf8 25%,
        #bae6fd 50%,
        #38bdf8 75%,
        #0ea5e9 100%
    );
    background-size: 200% 100%;
}

.card-loader-center.active .card-loader-fill {
    animation:
        loader-fill 0.65s cubic-bezier(0.15, 0.5, 0.5, 1) forwards,
        loader-wave 0.8s linear infinite;
}

@keyframes loader-fill {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes loader-wave {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}