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

html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #3f4144;
    color: white;
}

.floating-nav {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 9999;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    /* Kill decorative hover/active scaling (keeps layout transforms intact) */
    .avatar-spotlight img.popping,
    .library-link img.popping {
        transform: none !important;
    }
}

.glass-btn {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 13px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    transition: background 0.15s ease;
}

.glass-btn:hover {
    background: rgba(0,0,0,0.6);
}

main {
    display: flex;
    flex-direction: column;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 64px 60px;
    border-bottom: none;
}

section h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: 0.03em;
}

#about-me {
    background: linear-gradient(to bottom, #3f4144 0%, #1a1a1c 100%);
    justify-content: center;
}

#my-work {
    background: linear-gradient(to bottom, #1a1a1c 0%, #1a1a1c 100%);
}

#my-community {
    background: linear-gradient(to bottom, #1a1a1c 0%, #1a3a5c 100%);
}

#about-me h2 {
    margin-bottom: 0;
}

#hero {
    background: url('/public/banner.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 64px 60px;
    border-bottom: none;
}

#hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    white-space: nowrap;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(2deg);
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    width: 28px;
    height: 28px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.about-hero {
    display: flex;
    align-items: center;
    gap: 64px;
    overflow: visible;
    position: relative;
}

.about-hero::before,
.about-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    width: 500px;
    height: 700px;
    pointer-events: none;
    z-index: 0;
}

.about-hero::before,
.about-hero::after {
    display: none;
}

.bio-text {
    margin-top: 20px;
    font-size: 16px;
    color: rgba(255,255,255,1);
    line-height: 1.7;
    max-width: 460px;
}

.avatar-spotlight {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    z-index: 1;
}

.spotlight-beam {
    display: none;
}

.avatar-spotlight img {
    position: relative;
    width: 280px;
    z-index: 1;
    filter: drop-shadow(0 24px 32px rgba(0,0,0,0.7));
}

.avatar-spotlight::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 28px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    filter: blur(14px);
    z-index: 0;
}

.about-text {
    z-index: 1;
    flex: 1;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-width: 160px;
}

.social-link:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
}

.social-link--youtube { background: rgba(255,0,0,0.12); border-color: rgba(255,0,0,0.25); color: white; }
.social-link--youtube:hover { background: rgba(255,0,0,0.22); border-color: rgba(255,0,0,0.5); }
.social-link--youtube svg { color: #ff4444; fill: #ff4444; }

.social-link--discord { background: rgba(88,101,242,0.12); border-color: rgba(88,101,242,0.25); color: white; }
.social-link--discord:hover { background: rgba(88,101,242,0.22); border-color: rgba(88,101,242,0.5); }
.social-link--discord svg { color: #7983f5; fill: #7983f5; }

.social-link--roblox { background: #111; border-color: #222; color: white; }
.social-link--roblox:hover { background: #1a1a1a; border-color: #333; }
.social-link--roblox svg { color: white; fill: white; }

.social-link--x { background: #111; border-color: #222; color: white; }
.social-link--x:hover { background: #1a1a1a; border-color: #333; }

.social-link--github { background: #111; border-color: #222; color: white; }
.social-link--github:hover { background: #1a1a1a; border-color: #333; }

.social-link--paypal { background: rgba(30,140,255,0.25); border-color: rgba(30,140,255,0.5); color: white; }
.social-link--paypal:hover { background: rgba(30,140,255,0.38); border-color: rgba(30,140,255,0.75); }

.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.about-text h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

blockquote {
    margin-top: 20px;
    padding: 20px 24px;
    border-left: 3px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.75);
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 10px;
}

.subsection-header .subsection-label {
    margin: 0;
}

.see-all-btn {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s;
}

.see-all-btn:hover {
    color: white;
}

.github-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.github-stat-card {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.github-stat-card:hover {
    background: rgba(255,255,255,0.09);
}

.github-stat-card h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-stat-card h4 svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.github-stat-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.github-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.github-stat-row span:first-child {
    color: rgba(255,255,255,0.55);
}

.github-stat-row span:last-child {
    font-weight: 700;
    color: white;
}

.github-lang-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.github-lang-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.github-lang-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.github-lang-meta span:first-child { color: rgba(255,255,255,0.7); font-weight: 600; }
.github-lang-meta span:last-child  { color: rgba(255,255,255,0.4); }

.github-lang-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.github-lang-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: white;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0 40px;
}

.stat-card {
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #0d3320 0%, #1a5c38 100%);
    border: 1px solid rgba(87,242,135,0.25);
}

.stat-card:nth-child(1)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(87,242,135,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #2e2400 0%, #5a4800 100%);
    border: 1px solid rgba(255,220,50,0.25);
}

.stat-card:nth-child(2)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(255,220,50,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #0a1a35 0%, #153570 100%);
    border: 1px solid rgba(88,150,255,0.25);
}

.stat-card:nth-child(3)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(88,150,255,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.stat-value {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.subsection-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 32px 0 10px;
}

.group-category-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin: 18px 0 8px;
}

.group-row,
.games-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.games-row {
    margin-bottom: 8px;
}

.group-row::-webkit-scrollbar,
.games-row::-webkit-scrollbar {
    height: 6px;
}

.group-row::-webkit-scrollbar-thumb,
.games-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
}

.group-row .group-card {
    flex: 0 0 132px;
    width: 132px;
    scroll-snap-align: start;
}

.games-row .game-card {
    flex: 0 0 300px;
    width: 300px;
    scroll-snap-align: start;
}

.work-heading {
    margin-top: 56px;
}

.videos-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.videos-grid::-webkit-scrollbar {
    height: 6px;
}

.videos-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
}

.videos-grid .video-card {
    flex: 0 0 300px;
    width: 300px;
    scroll-snap-align: start;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
}

.game-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: background 0.15s ease;
    position: relative;
}

.game-card:hover {
    background: rgba(255,255,255,0.14);
}

.img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.game-card .play-btn {
    margin: 0 8px 8px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c6cf2;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    transition: background 0.15s ease;
}

.game-card .play-btn span {
    font-size: 16px;
    line-height: 1;
}

.game-card .play-btn:hover {
    background: #2a82ff;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card.in-dev {
    overflow: hidden;
}

.game-card.in-dev img {
    filter: blur(6px) saturate(0.2);
    transform: scale(1.05);
}

.game-card.in-dev .img-wrap {
    position: relative;
}

.game-card.in-dev .img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.game-info {
    padding: 7px 7px 9px;
}

.game-info h3 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
}

.game-info p {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.finished-tag {
    background: rgba(87, 242, 135, 0.15);
    color: #57f287;
    border-color: rgba(87, 242, 135, 0.35);
}

.games-sublabel {
    grid-column: 1 / -1;
    margin: 16px 0 4px;
}

.group-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: background 0.15s ease;
    position: relative;
}

.group-card:hover {
    background: rgba(255,255,255,0.14);
}

.group-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.group-info {
    padding: 7px 7px 9px;
}

.group-info h3 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
}

.group-info p {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-card.stolen {
    border: 1px solid rgba(224, 62, 62, 0.6);
}

.group-info h3 .stolen-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: #e03e3e;
    color: white;
    padding: 1px 5px;
    border-radius: 5px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    vertical-align: middle;
}

.embeds {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.community-layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.community-text {
    flex: 1;
}

.community-desc {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    max-width: 480px;
}

.discord-widget {
    background: rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 24px;
    width: 700px;
    flex-shrink: 0;
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.discord-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px;
}

.discord-header span {
    font-size: 12px;
    color: #57f287;
}

.discord-header div {
    flex: 1;
}

.discord-join {
    padding: 8px 16px;
    background: #5865F2;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.discord-join:hover {
    background: #4752c4;
}

.discord-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.discord-member {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

.discord-avatar {
    position: relative;
    width: 28px;
    height: 28px;
}

.discord-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.discord-ui {
    display: flex;
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    height: clamp(380px, 62vh, 720px);
    background: #2b2d31;
}

.discord-ui-sidebar {
    display: flex;
    width: 240px;
    flex-shrink: 0;
    background: #2b2d31;
    flex-direction: column;
}

.discord-server-icon {
    height: 48px;
    background: #1e1f22;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    gap: 8px;
    flex-shrink: 0;
}

.discord-server-icon img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
}

.discord-channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.discord-category {
    margin-bottom: 4px;
}

.discord-category-label {
    display: block;
    padding: 6px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    cursor: default;
}

.discord-channel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 16px;
    margin: 1px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.discord-channel span {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    line-height: 1;
}

.discord-channel:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.75);
}

.discord-channel.active {
    background: rgba(255,255,255,0.12);
    color: white;
}

.discord-channel.active span {
    color: rgba(255,255,255,0.7);
}

.discord-ui-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
    min-width: 0;
}

.discord-chat-header {
    height: 48px;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.discord-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discord-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.discord-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #5865f2;
}

.discord-msg-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.discord-msg-content p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.discord-msg-author {
    font-size: 14px;
    font-weight: 700;
}

.discord-msg-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-left: 6px;
}

.discord-chat-input {
    margin: 0 16px 16px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    cursor: text;
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}

.skeleton-line {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    display: block;
}

.skeleton-img, .skeleton-line {
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#my-dreams {
    background: linear-gradient(to bottom, #1a1a1c 0%, #1a1a1c 100%);
    justify-content: center;
}

.dreams-grid {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.dream-feature {
    border-radius: 24px;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.dream-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.dream-feature > * {
    position: relative;
    z-index: 1;
}

.dream-feature-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(130,195,255,0.95);
}

.dream-feature-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    line-height: 1;
}

.dream-feature-genre {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.01em;
}

.dream-feature-engine {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    width: fit-content;
}

.dream-site-link {
    position: absolute;
    top: 36px;
    right: 48px;
    z-index: 2;
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.15s;
}
.dream-site-link:hover {
    color: white;
}

.steam-btn-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1b6dc1, #66c0f4);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: filter 0.2s, transform 0.2s;
}

.steam-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.dream-feature-desc {
    margin-top: 8px;
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    max-width: 560px;
}

.dream-feature--mission {
    background: radial-gradient(ellipse at bottom right, rgba(255,160,50,0.12) 0%, transparent 65%),
                radial-gradient(ellipse at top left, rgba(255,100,30,0.08) 0%, transparent 60%),
                #111;
}

.dream-feature--mission .dream-feature-tag {
    color: rgba(255,180,80,0.95);
}

.mission-counter {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mission-count {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffaa3c;
    line-height: 1;
}

.mission-total {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,170,60,0.7);
}

.dream-feature--fatigue {
    background: radial-gradient(ellipse at top right, rgba(80,200,120,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(40,160,90,0.07) 0%, transparent 60%),
                #0a0f0b;
}

.dream-feature--fatigue .dream-feature-tag {
    color: rgba(90,225,145,0.95);
}

.fatigue-ai-tag {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    vertical-align: super;
    position: relative;
    top: -4px;
}

.dream-feature--fatigue .dream-feature-genre {
    color: rgba(255,255,255,0.8);
}

.fatigue-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fatigue-pill {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

#support-me {
    background: linear-gradient(to bottom, #1a3a5c 0%, #0d2040 50%, #1a3a5c 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.support-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 36px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #1a6fd4;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.15s;
}

.support-btn:hover {
    background: #2a84f0;
    transform: scale(1.03);
}

#contact {
    background: linear-gradient(to bottom, #1a3a5c 0%, #0d1f33 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.contact-heading {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: white;
    border: none;
    padding: 0;
    margin: 0;
}

.contact-sub {
    font-size: 20px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

.contact-email {
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    padding: 16px 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
    background: rgba(255,255,255,0.15);
}

.contact-email svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #57f287;
    border-radius: 50%;
    border: 2px solid #2b2b2b;
}

@keyframes avatar-pop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.18) translateY(-6px); }
    55%  { transform: scale(0.94) translateY(2px); }
    75%  { transform: scale(1.07) translateY(-2px); }
    100% { transform: scale(1); }
}

.avatar-spotlight img.popping,
.library-link img.popping {
    animation: avatar-pop 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    section {
        padding: 56px 20px 48px;
        min-height: 100svh;
    }

    section h2 {
        font-size: 36px;
        margin-bottom: 24px;
    }

    #hero {
        padding: 48px 20px 48px;
    }

    #hero h1 {
        font-size: 36px;
        white-space: normal;
        text-align: center;
        letter-spacing: 0.04em;
        top: 72%;
        width: 90%;
    }

    .about-hero {
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
    }

    .avatar-spotlight {
        width: 180px;
        align-self: center;
    }

    .avatar-spotlight img {
        width: 180px;
    }

    .about-text h2 {
        font-size: 40px;
    }

    blockquote {
        font-size: 16px;
        padding: 14px 16px;
        margin-top: 16px;
    }

    .bio-text {
        font-size: 15px;
        max-width: 100%;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-link {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
        padding: 10px 14px;
        font-size: 13px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-value {
        font-size: 40px;
    }

    .stat-label {
        font-size: 15px;
    }

    .github-stats {
        flex-direction: column;
    }

    .group-row .group-card {
        flex-basis: 116px;
        width: 116px;
    }

    .games-row .game-card {
        flex-basis: 260px;
        width: 260px;
    }

    .work-heading {
        margin-top: 40px;
    }

    .videos-grid {
        gap: 14px;
    }

    .videos-grid .video-card {
        flex-basis: 260px;
        width: 260px;
    }

    .community-layout {
        flex-direction: column;
        gap: 24px;
    }

    .community-desc {
        font-size: 15px;
        max-width: 100%;
    }

    .discord-widget {
        width: 100%;
        padding: 16px;
    }

    .discord-ui {
        flex-direction: column;
        height: auto;
    }

    .discord-ui-sidebar {
        display: none;
    }

    .discord-ui-chat {
        /* flex:none so height wins — as a column flex item, flex-basis:0 would override it */
        flex: none;
        height: clamp(320px, 60vh, 560px);
        min-height: 0;
    }

    .dream-feature {
        padding: 24px 20px;
    }

    .dream-site-link {
        top: 24px;
        right: 20px;
    }

    .dream-feature-desc {
        max-width: 100%;
        font-size: 14px;
    }

    .contact-heading {
        font-size: clamp(36px, 12vw, 72px);
    }

    .contact-email {
        font-size: 14px;
        padding: 14px 24px;
        word-break: break-all;
    }

    .contact-sub {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .social-link {
        min-width: 100%;
    }

    .group-row .group-card {
        flex-basis: 108px;
        width: 108px;
    }
}

/* --- My Library --- */
/* Nested inside #my-work, so it drops the outer section's horizontal padding
   and keeps only the vertical rhythm of the subsections around it. */
#my-library {
    background: linear-gradient(to bottom, #1a1a1c 0%, #1a1a1c 100%);
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    padding: 0;
    margin: 32px 0;
}

.library-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.library-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 5;
}

.library-header h2 {
    margin-bottom: 0;
}

.library-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.library-github-btn:hover {
    background: #1a1a1a;
    border-color: #333;
}

.library-github-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.library-desc {
    margin-top: 20px;
    max-width: 520px;
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}

.library-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    max-width: 520px;
}

.library-pick {
    padding: 9px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.library-pick:hover {
    background: rgba(38, 118, 232, 0.35);
    border-color: rgba(38, 118, 232, 0.7);
    color: #fff;
}

/* Anchored flush to the section's bottom-right so he reads while resting on the floor.
   Sized by HEIGHT, not width, so he can never outgrow the section and clip. */
.library-link {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    height: min(72%, 400px);
    max-width: 46%;
    line-height: 0;
    z-index: 2;
    animation: library-bob 5s ease-in-out infinite;
}

/* Bobs upward only — the resting point stays flush with the section floor */
@keyframes library-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.library-link img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    /* Pop grows up-and-left, away from the section's clipped bottom/right edges */
    transform-origin: bottom right;
}

/* Falling contents-of-the-library pills */
.library-stream {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    /* Above the image and copy so pills always win the click; only the header row outranks them */
    z-index: 4;
    /* Fade the pills out over the header on the left and the image on the right */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 64%, transparent 88%);
    mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 64%, transparent 88%);
}

.library-pill {
    position: absolute;
    top: 0;
    pointer-events: auto;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.75);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    text-decoration: none;
    opacity: 0;
    animation: library-pill-fall var(--dur, 12s) linear forwards;
}

.library-pill:hover {
    background: rgba(38, 118, 232, 0.35);
    border-color: rgba(38, 118, 232, 0.7);
    color: #fff;
}

/* Starts at translateY(0) — the pill sits fully inside the section before it fades in,
   and is fully faded by 88%, before it reaches the section's clipped bottom edge. */
@keyframes library-pill-fall {
    0%   { opacity: 0; transform: translateY(0); }
    14%  { opacity: 1; }
    55%  { opacity: 1; }
    88%  { opacity: 0; }
    100% { opacity: 0; transform: translateY(var(--fall, 800px)); }
}

@media (prefers-reduced-motion: reduce) {
    .library-stream { display: none; }
}

@media (max-width: 768px) {
    /* Taller than the desktop 40vh: the copy and picks need room to clear the image */
    #my-library { min-height: 72vh; }
    /* Height-based like desktop, but shorter so the copy and picks clear it */
    .library-link { height: min(36%, 200px); max-width: 50%; }
    .library-pill { font-size: 11px; padding: 5px 11px; }
}
