* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: #030005;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 15px;
    overflow-x: hidden;
    position: relative;
}

/* Canvas สำหรับวาดระบบดาวหมุนรอบโลกและการเร่งความเร็ว */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Speedlines สไตล์อนิเมะญี่ปุ่น */
.anime-speedlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        rgba(255, 0, 50, 0.15) 0deg 1.5deg,
        transparent 1.5deg 6deg
    );
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    animation: speedlineSpin 0.25s linear infinite;
}

@keyframes speedlineSpin {
    0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.08) rotate(180deg); opacity: 0.9; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.6; }
}

/* เอฟเฟกต์กระพริบแสงมิติเวลาเรืองแสงสีแดง */
.time-glitch-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 40, 0.18) 0%, rgba(0, 0, 0, 0.85) 85%);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 0.8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; filter: contrast(100%); }
    100% { opacity: 1; filter: contrast(180%) drop-shadow(0 0 30px #ff0022); }
}

/* Container หลัก */
.container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* กรอบรูปโปรไฟล์ทรงโลกพร้อมออร่าพลัง */
.profile-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.earth-frame {
    position: relative;
    width: 135px;
    height: 135px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #ff003c, #ff6a00, #ff0055, #400000);
    box-shadow: 
        0 0 30px #ff003c,
        0 0 60px rgba(255, 0, 60, 0.6),
        inset 0 0 20px #ff0000;
    animation: earthPulse 0.4s infinite alternate;
}

@keyframes earthPulse {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.03) rotate(3deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
    display: block;
    filter: saturate(140%) contrast(120%);
}

/* ตัวอักษรเสียงเอฟเฟกต์ JoJo (Menacing - ゴゴゴゴ) */
.jojo-menacing {
    position: absolute;
    font-family: 'Cinzel Decorative', cursive, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff003c;
    text-shadow: 3px 3px 0 #000, 0 0 15px #ff003c;
    opacity: 0.85;
    animation: menaceFloat 0.3s infinite alternate;
}

.menacing-1 { top: -15px; left: -25px; transform: rotate(-15deg); }
.menacing-2 { bottom: -10px; right: -30px; transform: rotate(12deg); font-size: 2.8rem; }

@keyframes menaceFloat {
    0% { transform: translateY(0) scale(1) rotate(-10deg); }
    100% { transform: translateY(-4px) scale(1.1) rotate(-5deg); }
}

/* หัวข้อสไตล์สแตนด์อนิเมะ */
.title-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.profile-name {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #ff4d6d 50%, #990011 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(3px 4px 0px #000) drop-shadow(0 0 20px #ff003c);
    animation: textFlicker 0.15s infinite alternate;
}

@keyframes textFlicker {
    0% { opacity: 0.95; transform: skewX(-1deg); }
    100% { opacity: 1; transform: skewX(1deg); }
}

.profile-bio {
    font-size: 1.05rem;
    color: #ff99a8;
    margin-bottom: 32px;
    line-height: 1.5;
    font-weight: 800;
    text-shadow: 2px 2px 0px #000, 0 0 12px rgba(255, 0, 60, 0.8);
    letter-spacing: 1px;
}

/* แถบความเร็วเร่งเวลา */
.time-speed-gauge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 60, 0.2);
    border: 1px solid #ff003c;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}

.speed-text {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.speed-value {
    color: #ffea00;
    font-weight: 900;
    text-shadow: 0 0 8px #ffea00;
}

/* ====================================================
   ดีไซน์รายการ UL / LI ลิงก์ใหม่ (Over-The-Top JoJo Style)
   ==================================================== */
.links-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.links-ul li {
    position: relative;
    width: 100%;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: linear-gradient(110deg, rgba(20, 0, 5, 0.92) 0%, rgba(60, 0, 15, 0.95) 100%);
    border: 2px solid #ff003c;
    /* ทรงตัดมุมเฉียงสไตล์การ์ตูนอนิเมะ */
    clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.15s cubic-bezier(0.1, 0.9, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: -8px 8px 0px #40000a, 0 0 20px rgba(255, 0, 60, 0.3);
}

/* เอฟเฟกต์ลำแสงวิ่งผ่าการ์ดตลอดเวลา */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 234, 0, 0.6), 
        rgba(255, 0, 60, 0.9), 
        #ffffff,
        transparent
    );
    transform: skewX(-30deg);
    animation: cardBeam 1.2s infinite linear;
}

@keyframes cardBeam {
    0% { left: -150%; }
    100% { left: 150%; }
}

.link-card:hover {
    background: linear-gradient(110deg, #ff003c 0%, #800014 100%);
    border-color: #ffea00;
    transform: scale(1.05) translateX(6px) skewX(-3deg);
    box-shadow: 
        -12px 12px 0px #000,
        0 0 35px rgba(255, 0, 60, 0.9),
        inset 0 0 15px rgba(255, 234, 0, 0.5);
}

.link-info {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 2;
}

.link-info i {
    font-size: 1.7rem;
    width: 32px;
    filter: drop-shadow(0 0 8px currentColor);
    transition: transform 0.15s ease;
}

.link-card:hover .link-info i {
    transform: scale(1.35) rotate(-12deg);
}

.link-info span {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 0 #000, 0 0 8px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.arrow-icon {
    font-size: 1.3rem;
    color: #ffea00;
    transition: transform 0.15s ease, color 0.15s ease;
    z-index: 2;
    text-shadow: 0 0 10px #ffea00;
}

.link-card:hover .arrow-icon {
    color: #ffffff;
    transform: translateX(10px) scale(1.5);
    text-shadow: 0 0 15px #ffffff;
}

/* สีไอคอนแบรนด์เรืองแสงเข้มข้น */
.fa-facebook { color: #3b82f6; }
.fa-instagram { color: #ff2a70; }
.fa-tiktok { color: #00f2fe; }
.fa-youtube { color: #ff003c; }
.fa-line { color: #00e676; }
.fa-globe { color: #ffea00; }

footer {
    margin-top: 45px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #ff4d6d;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 0, 60, 0.6);
}