@import url('https://googleapis.com');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 50% 0%, #1b1448 0%, #090a1f 45%, #03040b 100%);
    background-attachment: fixed;
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 135px;
    line-height: 1.75;
    text-align: center;
    font-size: 16px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: -2;
    pointer-events: none;
    background: 
        radial-gradient(circle at 25% 25%, rgba(168, 85, 247, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 75% 30%, rgba(56, 189, 248, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 50% 65%, rgba(236, 72, 153, 0.24) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 45%);
    filter: blur(50px);
    animation: galaxyDrift 16s ease-in-out infinite alternate;
}

@keyframes galaxyDrift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 2.5px;
    height: 2.5px;
    z-index: -1;
    pointer-events: none;
    background: transparent;
    border-radius: 50%;
    box-shadow: 
        90px 65px #fff, 210px 145px #e0e7ff, 355px 85px #d8b4fe, 505px 205px #fff,
        655px 95px #fbcfe8, 805px 185px #fff, 955px 65px #bae6fd, 1105px 195px #fff,
        1255px 95px #fff, 1405px 175px #ddd6fe, 130px 300px #fff, 295px 370px #fff,
        455px 305px #a5b4fc, 625px 395px #fff, 795px 325px #bae6fd, 965px 415px #fff,
        1135px 345px #fff, 1305px 405px #fbcfe8, 1455px 320px #fff, 100px 505px #fff,
        260px 575px #c4b5fd, 430px 525px #fff, 600px 605px #fff, 770px 545px #fff,
        940px 625px #bae6fd, 1110px 555px #fff, 1280px 635px #fff, 1430px 565px #fff,
        170px 720px #fff, 380px 765px #fff, 610px 725px #ddd6fe, 850px 785px #fff,
        1080px 745px #fff, 1330px 795px #fff, 195px 890px #fff, 535px 900px #fff,
        905px 880px #fff, 1235px 905px #fff;
    animation: twinkleStars 3.8s ease-in-out infinite alternate;
}

@keyframes twinkleStars {
    0% { opacity: 0.35; }
    100% { opacity: 1; }
}

main::before,
main::after {
    content: "";
    position: fixed;
    top: -15px;
    right: 10%;
    width: 170px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(216, 180, 254, 0.6), transparent);
    z-index: -1;
    pointer-events: none;
    transform: rotate(-35deg);
    opacity: 0;
    animation: shootingStar 4.8s linear infinite;
}

main::before {
    box-shadow: 0 0 12px #ffffff;
}

main::after {
    top: 15%;
    right: 45%;
    width: 210px;
    animation-delay: 2.3s;
    animation-duration: 5.5s;
}

@keyframes shootingStar {
    0% {
        transform: rotate(-35deg) translateX(0);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(-35deg) translateX(-1250px);
        opacity: 0;
    }
}

header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 720px;
    z-index: 1000;
    background: rgba(12, 14, 38, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

header h1 {
    font-size: 1.45rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff 0%, #e879f9 45%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

header nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

header nav a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(56, 189, 248, 0.35));
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

main {
    max-width: 680px;
    margin: 20px auto 80px;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

section {
    width: 100%;
    scroll-margin-top: 135px;
    background: rgba(15, 18, 45, 0.25);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid rgba(216, 180, 254, 0.45);
    border-radius: 26px;
    padding: 32px 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.35s ease;
}

section:hover {
    transform: translateY(-4px);
    background: rgba(20, 24, 58, 0.38);
    border-color: rgba(216, 180, 254, 0.4);
    box-shadow: 0 16px 45px rgba(168, 85, 247, 0.2);
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ffffff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.4px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 2.5px;
    border-radius: 4px;
    background: linear-gradient(90deg, #a855f7, #38bdf8);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

section p {
    color: #e2e8f0;
    font-size: 0.98rem;
    max-width: 560px;
    margin: 0 auto 12px;
    font-weight: 400;
}

section p strong {
    color: #f0abfc;
    font-weight: 600;
}

#references p:nth-of-type(n+2) {
    font-size: 0.93rem;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid rgba(216, 180, 254, 0.14);
    width: 100%;
    transition: all 0.25s ease;
}

#references p:nth-of-type(n+2):hover {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(216, 180, 254, 0.35);
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.qr-image {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border-radius: 18px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), 0 0 45px rgba(56, 189, 248, 0.2);
    transition: transform 0.3s ease;
}

.qr-image:hover {
    transform: scale(1.06) rotate(1deg);
}

.game-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.game-link-btn {
    display: inline-block;
    padding: 11px 28px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #3b82f6 100%);
    background-size: 200% auto;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 5px 22px rgba(168, 85, 247, 0.45);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.game-link-btn:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.6);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(216, 180, 254, 0.2);
    border-radius: 30px;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-item:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(56, 189, 248, 0.28));
    border-color: #e879f9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

@media (max-width: 600px) {
    body {
        padding-top: 145px;
    }
    header {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 26px;
        padding: 10px 14px;
    }
    section {
        scroll-margin-top: 145px;
        padding: 24px 18px;
    }
    .social-item {
        width: 100%;
    }
}
