@font-face {
    font-family: "BoldPixels";
    src: url("BoldPixels.ttf") format("truetype");
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    font-family: "BoldPixels", system-ui, sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #139cec 0%, #1c6afa 100%);
    overflow-x: hidden;
}

.page {
    width: min(100%, 900px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 10;
}

.profile-card {
    width: min(100%, 760px);
    margin: 0;
    padding: 36px;
    background: rgba(26, 26, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    transform: none;
}

.avatar {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    object-fit: cover;
    border-radius: 30%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

h1,
h2,
p {
    margin-left: 0;
    margin-right: 0;
}

h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: clamp(42px, 5vw, 64px);
}

h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: clamp(30px, 3vw, 42px);
}

p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.65;
    font-size: 22px;
}

a {
    color: #ffffff;
    text-decoration: none;
}

.social-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-link {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    padding: 0;
    background: #333;
    border-radius: 10px;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    background: #444;
}

.social-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.page-buttons {
    width: 100%;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.page-button {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
        rgba(25, 25, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;

    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        transform 0.2s cubic-bezier(.2,.8,.2,1),
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Shiny diagonal sweep */
.page-button::before {
    content: "";
    position: absolute;
    inset: -80%;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255,255,255,0.18) 50%,
        transparent 60%
    );
    transform: translateX(-45%) rotate(8deg);
    transition: transform 0.55s ease;
}

/* Little glowing accent underneath */

.page-button:hover {
    transform: translateY(-6px) scale(1.025);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.055)),
        rgba(35, 35, 42, 0.96);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-button:hover::before {
    transform: translateX(45%) rotate(8deg);
}

.page-button:hover::after {
    opacity: 1;
}

.page-button:active {
    transform: translateY(-2px) scale(0.99);
}

.stream-card {
    width: min(100%, 760px);
    overflow: hidden;
}

.twitch-container {
    width: 100%;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.twitch-container iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: 0;
}

@media (max-width: 600px) {
    body {
        padding: 20px 12px;
    }

    .page {
        gap: 18px;
    }

    .profile-card {
        width: 100%;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .stream-card {
        width: 100%;
    }

    .twitch-container {
        min-height: 190px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .social-link img {
        width: 22px;
        height: 22px;
    }

    .page-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-button {
        min-height: 54px;
        font-size: 18px;
    }

    p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-link {
        transition: none;
    }
}
