﻿* {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

::selection {
    color: var(--web-accent);
    background: rgb(0 149 255);
}

:root {
    --BackgroundColor: rgb(0 0 0);
    --MainColor: rgb(255 255 255);
    --web-accent: hsl(228 100% 50%);
    --web-accent-dark: hsl(0 0% 0%);
    --text-primary: hsl(0, 0%, 95%);
    --star-color: hsl(0 0% 100%);
    --RankedBlue: hsl(209 100% 50%);
}

@font-face {
    font-family: 'Magistral';
    src: url('fonts/Magistral-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MilkyCoffee';
    src: url('fonts/Milky-Coffee.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: var(--MainColor);
    border-radius: 50%;
    animation: twinkle 2s infinite;
    box-shadow:
            0 0 5px var(--MainColor),
            0 0 10px var(--MainColor),
            0 0 20px hsl(0, 0%, 45%);
}

.star:nth-child(odd) {
    animation-delay: 1s;
}

.star:nth-child(3n) {
    animation-duration: 3s;
}

.star:nth-child(4n) {
    animation-duration: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Magistral', sans-serif;
    font-weight: bold;
    background: black;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.socials {
    font-family: 'Magistral', sans-serif;
    font-weight: bold;
    background: var(--BackgroundColor);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.WelcomeText {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.WelcomeText h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--web-accent), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.SpectatorContainer {
    margin: 2rem 0;
    animation: float 3s ease-in-out infinite;
}

.SpectatorImage {
    width: clamp(250px, 40vw, 400px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgb(0 0 0 / 0.7));
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.SpectatorImage:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .WelcomeText {
        margin-bottom: 2rem;
    }

    .SpectatorContainer {
        margin: 1.5rem 0;
    }
}

.card {
    background: var(--BackgroundColor);
    border-radius: 16px;
    box-shadow: 0 2px 10px var(--MainColor);
    padding: 36px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}

img.avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    margin-bottom: 16px;
}

h1.socials {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--MainColor);
    text-shadow: 0 2px 10px var(--MainColor);
}

h1.ranked {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--RankedBlue);
    text-shadow: 0 2px 10px var(--RankedBlue);
}

p.ranked {
    font-size: 14px;
    color: var(--RankedBlue);
    margin-bottom: 24px;
    line-height: 1.5;
    text-shadow: 0 2px 10px var(--RankedBlue);
}

img.ranked {
    width: 96px;
    height: 96px;
    object-fit: cover;
    margin-bottom: 16px;
}

p.bio {
    font-size: 14px;
    color: var(--MainColor);
    margin-bottom: 24px;
    line-height: 1.5;
    text-shadow: 0 2px 10px var(--MainColor);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links a {
    display: block;
    text-decoration: none;
    background: rgb(238 238 238 / 0);
    box-shadow: 0 2px 10px var(--MainColor);
    text-shadow: 0 2px 10px var(--MainColor);
    color: var(--MainColor);
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.links a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.07);
}

.LanguagesHolder {
    margin-bottom: 28px;
}

.LanguagesHolderLabel {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #707070;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px #707070;
}

.LanguagesHolderGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.Language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: white;
    padding: 7px 12px;
    border-radius: 999px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 0.5px 5px var(--LanguageColor);
}

.Language:hover {
    transform: translateY(-2px);
    border-color: var(--LanguageColor);
    background: rgba(255,255,255,0.07);
}

.LanguageDot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--LanguageColor);
    box-shadow: 0 0 6px var(--LanguageColor);
}