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

@font-face {
    font-family: 'BlitzMain';
    src: url('../fonts/BlitzMain.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FOT';
    src: url('../fonts/FOT-KurokaneStd-EB.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    background: #19102b;
}

body {
    min-height: 180vh;
    background: linear-gradient(180deg, #2b1e3a 0%, #4a3a6e 30%, #341d58 50%, #19102b 70%, #19102b 100%);
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    position: relative;
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.star {
    position: absolute;
    background: radial-gradient(circle, #fff, rgba(255,245,210,0.8));
    border-radius: 50%;
    opacity: 0;
    animation: starFade 4s infinite alternate;
}
@keyframes starFade {
    0% { opacity: 0.1; transform: scale(0.8); }
    100% { opacity: 0.9; transform: scale(1.2); }
}

.cloud {
    position: absolute;
    background: rgba(255, 248, 225, 0.45);
    border-radius: 80% 20% 70% 30% / 60% 50% 50% 40%;
    filter: blur(8px);
    z-index: 1;
    pointer-events: none;
    animation: driftCloud linear infinite;
}
@keyframes driftCloud {
    0% { transform: translateX(-20vw); }
    100% { transform: translateX(120vw); }
}

.mountain-scene {
    position: absolute;
    top: 420px;
    left: 0;
    width: 100%;
    height: 700px;
    z-index: 2;
    pointer-events: none;
}
.range-back {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background: linear-gradient(120deg, #5f5080, #3f2e5a);
    clip-path: polygon(0% 100%, 0% 65%, 12% 40%, 28% 62%, 42% 28%, 58% 55%, 74% 35%, 88% 58%, 100% 42%, 100% 100%);
    opacity: 0.7;
    transition: transform 0.1s ease-out;
    z-index: 1;
}
.front-range {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    transition: transform 0.1s ease-out;
    z-index: 3;
}
.peak-main {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e132f 0%, #2c1d44 60%, #19102b 100%);
    clip-path: polygon(0% 100%, 0% 72%, 8% 58%, 18% 68%, 28% 48%, 38% 62%, 50% 18%, 62% 52%, 72% 38%, 84% 56%, 92% 44%, 100% 62%, 100% 100%);
    box-shadow: inset 0 15px 20px rgba(0,0,0,0.3);
}
.peak-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inherit;
    background: radial-gradient(ellipse 70% 60% at 50% 18%, #ffffff 0%, #fff9f0 20%, #f2eaff 45%, rgba(210, 190, 230, 0.4) 70%, transparent 95%);
    pointer-events: none;
}
.peak-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inherit;
    background: linear-gradient(125deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 30%, transparent 70%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.flag-wrapper {
    position: absolute;
    left: 50%;
    top: 18%;
    transform: translate(-50%, -100%);
    width: 36px;
    height: 52px;
    z-index: 15;
    pointer-events: none;
}
.flag-pole {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2.5px;
    height: 100%;
    background: #e7cf9e;
    transform: translateX(-50%);
    box-shadow: 0 0 3px #ffefb0;
}
.flag-cloth {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 14px;
    background: #f2554c;
    transform: translateX(-2px);
    clip-path: polygon(0% 0%, 100% 0%, 85% 55%, 100% 100%, 0% 100%);
    animation: flagFlap 0.9s ease-in-out infinite alternate;
    transform-origin: left center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

body {
    padding-bottom: 70vh;
}

@keyframes flagFlap {
    0% { transform: translateX(-2px) skewY(-2deg) scaleX(0.98); }
    100% { transform: translateX(-2px) skewY(3deg) scaleX(1.02); }
}

.mist {
    position: absolute;
    top: 1000px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(0deg, rgba(30,20,50,0.5), transparent);
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .flag-wrapper { width: 28px; height: 42px; }
    .flag-cloth { width: 20px; height: 12px; }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 180vh;
    padding-top: 760px;
    padding-bottom: 0;
}

.morph-overlay {
    position: absolute !important;
    top: 50vh !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.social-bubble {
    position: absolute;
    top: 70vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem;
    z-index: 20;
    
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 6px 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    justify-content: center;
    align-items: center;
}
.en-name,
.mise-id,
.friend-name,
.profile-text,
.bio,
.bio-en,
.friend-desc,
.friend-bio,
.footer-quote,
.footer-contact {
    font-family:'BlitzMain', 'FOT', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.profile-card {
    width: min(100%, 840px);
    margin: 200px auto 0;
    padding: 70px 24px 40px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    position: relative;
    z-index: 15;
}

.profile-card:hover {
    transform: none;
}
.profile-row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.avatar-wrapper {
    flex-shrink: 0;
}
.avatar {
    width: 130px;
    height: 130px;
    border-radius: 100%;
    overflow: hidden;
    border: 4px solid #6fbfc9;
    background-size: cover;
    background-position: 50% 30%;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.avatar:hover {
    transform: scale(1.02);
    border-color: #ffd966;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.profile-text {
    flex: 1;
    color: #f3eee8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.name-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.en-name {
    background: linear-gradient(120deg, #ffe6b3, #ffd966);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
}
.mise-id {
    font-size: 1.2rem;
    font-weight: 400;
    color: #cfd9f0;
    letter-spacing: 0.5px;
}
.bio {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #e0daf0;
    border-left: 3px solid #6fbfc9;
    padding-left: 18px;
    background: rgba(255,255,245,0.05);
    border-radius: 0 12px 12px 0;
}
.bio-en {
    margin-top: 14px;
    font-size: 0.95rem;
    color: #cbd5f0;
    font-style: italic;
}
.footer-note {
    margin-top: 28px;
    text-align: center;
    font-size: 0.75rem;
    color: #bbaad0;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 16px;
    letter-spacing: 0.6px;
}

.friend-card {
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
}

.friend-card:hover {
    transform: none;
}

.friend-avatar {
    width: 80px;
    height: 80px;
    border-radius: 100%;
    overflow: hidden;
    border: 4px solid #6fbfc9;
    background-size: cover;
    background-position: 50% 30%;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.friend-card:hover .friend-avatar {
    transform: scale(1.02);
    border-color: #ffd966;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.friend-info {
    flex: 1;
    color: #f3eee8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.friend-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffd966;
}

.friend-desc {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0daf0;
    border-left: 3px solid #6fbfc9;
    padding-left: 18px;
    background: rgba(255,255,245,0.05);
    border-radius: 0 12px 12px 0;
}

.friend-bio{
    margin-top: 14px;
    font-size: 0.95rem;
    color: #cbd5f0;
    font-style: italic;
}

.friends-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-quote {
    font-size: 1rem;
    color: #ffd966;
    letter-spacing: 2px;
    font-style: italic;
}

.profile-footer {
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    border-top: 5px solid rgba(255, 255, 255, 0.15);
}

.footer-quote {
    font-size: 1.2rem;
    color: #ffd966;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-style: italic;
}

.footer-contact {
    font-size: 0.75rem;
    color: #46335e;
    letter-spacing: 1px;
}

@media (max-width: 650px) {
    .profile-row {
        flex-direction: column;
        text-align: center;
    }
    .avatar {
        width: 110px;
        height: 110px;
    }
    .profile-card {
        padding: 24px 20px;
    }
    .name-line {
        justify-content: center;
    }
    .bio {
        border-left: none;
        border-top: 2px solid #6fbfc9;
        padding-left: 8px;
        padding-top: 12px;
    }
}

@media (max-width: 600px) {
    .site-footer-area {
        padding: 30px 15px;
    }
}

@media (max-width: 1024px) {
    .mountain-scene {
        top: 300px;
        height: 600px;
    }
    .profile-card {
        margin: 150px auto 0;
        padding: 60px 20px;
    }
    .avatar {
        width: 120px;
        height: 120px;
    }
    .name-line {
        font-size: 1.8rem;
    }
    .friend-avatar {
        width: 75px;
        height: 75px;
    }
    .friend-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .mountain-scene {
        top: 250px;
        height: 550px;
    }
    .profile-card {
        margin: 120px auto 0;
        padding: 50px 18px;
    }
    .avatar {
        width: 110px;
        height: 110px;
    }
    .name-line {
        font-size: 1.6rem;
    }
    .bio {
        font-size: 0.95rem;
    }
    .friend-avatar {
        width: 70px;
        height: 70px;
    }
    .friend-name {
        font-size: 1.3rem;
    }
    .friends-list {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .mountain-scene {
        top: 200px;
        height: 600px;
    }
    .profile-card {
        margin: 100px auto 0;
        padding: 30px 15px;
    }
    .avatar {
        width: 100px;
        height: 100px;
    }
    .name-line {
        font-size: 1.4rem;
    }
    .bio {
        font-size: 0.9rem;
    }
    .friend-avatar {
        width: 60px;
        height: 60px;
    }
    .friend-name {
        font-size: 1.1rem;
    }
    .friend-desc {
        font-size: 0.85rem;
    }
    .friends-list {
        gap: 18px;
    }
    .social-bubble {
        padding: 4px 1rem;
        gap: 1rem;
        border-radius: 30px;
    }
}

html {
    overflow-x: hidden;
}