/* === Custom Scrollbar === */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--vibe-accent-rgb), 0.35) transparent;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: rgba(var(--vibe-accent-rgb), 0.3);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--vibe-accent-rgb), 0.55);
}
*::-webkit-scrollbar-corner {
    background: transparent;
}

/* === Vibe Theme Variables === */
:root {
    --vibe-bg-start: #1a1a1e;
    --vibe-bg-end: #252530;
    --vibe-surface: rgba(30, 30, 38, 0.95);
    --vibe-text: #ffffff;
    --vibe-text-muted: #b0aab8;
    --vibe-text-faint: #9a8e9e;
    --vibe-accent: rgb(25,118,210);
    --vibe-accent-rgb: 25, 118, 210;
    --vibe-accent2: rgb(67,160,71);
    --vibe-accent2-rgb: 67, 160, 71;
    --vibe-accent3: rgb(0,137,123);
    --vibe-accent3-rgb: 0, 137, 123;
    --vibe-accent-dark: rgb(21,101,192);
    --vibe-accent-light: rgb(66,165,245);
    --vibe-accent-soft: rgb(60,120,170);
}

/* === GameCube Animation (from Marc Malignan's CodePen) === */
html, body {
    margin: 0;
    min-height: 100%;
    background: #1a1a1e;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    color: var(--vibe-text, #fff);
}
body {
    background: linear-gradient(to bottom, var(--vibe-bg-start, #1a1a1e), var(--vibe-bg-end, #252530));
}

@keyframes cubeshake {
    0% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg); }
    50% { transform: translate3d(-75px,-150px,0) rotateX(45deg) rotateZ(45deg); top:55%; }
    100% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg); }
}
@keyframes cubeshakeStart {
    0% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg); }
    50% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateY(10deg) rotateZ(45deg); top:55%; }
    100% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg); }
}

@keyframes cubeglow {
    0% { box-shadow: none; }
    50% { box-shadow: inset 0 0 50px 5px rgba(255,255,255,.3); }
    100% { box-shadow: none; }
}
@keyframes cubeglowStart {
    0% { box-shadow: none; }
    50% { box-shadow: inset 0 0 50px 5px rgba(255,255,255,.3); }
    100% { box-shadow: none; }
}

@keyframes fall {
    0% { transform: translate3d(100px, 0, 500px); }
    100% { transform: translate3d(100px, 0, 0); }
}
@keyframes jump {
    0% { transform: translate3d(150px, 50px, -50px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    40% { transform: translate3d(100px, 50px, 300px) rotateX(0deg) rotateY(360deg) rotateZ(0deg); }
    70%, 100% { transform: translate3d(75px, 75px, -75px) rotateX(0deg) rotateY(360deg) rotateZ(0deg); }
}
@keyframes slamshake {
    0% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg); }
    20% { transform: translate3d(-75px,-140px,2px) rotateX(53deg) rotateZ(45deg); }
    40% { transform: translate3d(-75px,-155px,-1px) rotateX(57deg) rotateZ(45deg); }
    60% { transform: translate3d(-75px,-147px,1px) rotateX(54deg) rotateZ(44.5deg); }
    80% { transform: translate3d(-75px,-152px,0) rotateX(55.5deg) rotateZ(45.2deg); }
    100% { transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg); }
}
#cube.slam {
    animation: slamshake 0.4s ease-out !important;
}

#cvs {
    width: 100%;
    height: 100%;
    perspective: 999999999px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}
#cvs.done {
    animation: liquidSwipeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}
@keyframes liquidSwipeUp {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translateY(0) scaleY(1);
    }
    15% {
        clip-path: inset(0 0 0 0);
        transform: translateY(2%) scaleY(1.01);
    }
    40% {
        clip-path: inset(0 0 0 0);
        transform: translateY(-8%) scaleY(0.99);
    }
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-100%) scaleY(0.9);
    }
}

#cube-text {
    position: absolute;
    left: 50%;
    top: calc(60% + 60px);
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #e2e6e9;
    text-transform: lowercase;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 20px rgba(226, 230, 233, 0.3);
    user-select: none;
}
#cube-text.visible {
    opacity: 1;
}

#cube {
    position: absolute;
    height: 150px;
    width: 150px;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    transform: translate3d(-75px,-150px,0) rotateX(55deg) rotateZ(45deg);
    animation: cubeshakeStart 0.5s ease-out;
    animation-delay: 0.4s;
}
#cube.full {
    animation: cubeshake 0.5s ease-out;
    animation-delay: 0.7s;
}

.cubeface {
    position: absolute;
    height: 150px;
    width: 150px;
    transform-style: preserve-3d;
    animation: cubeglowStart 0.5s ease-out;
    animation-delay: 0.4s;
}
#cube.full .cubeface {
    animation: cubeglow 0.5s ease-out;
    animation-delay: 0.7s;
}

.cubeface.front {
    top: 150px;
    transform-origin: top;
    transform: rotateX(-90deg);
}
.cubeface.back {
    transform-origin: top;
    transform: rotateX(-90deg);
}
.cubeface.right {
    left: 150px;
    transform-origin: left;
    transform: rotateY(90deg);
}
.cubeface.left {
    transform-origin: left;
    transform: rotateY(90deg);
}
.cubeface.bottom {
    transform: translateZ(-150px);
}

.square {
    opacity: 0;
    position: absolute;
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, #7059e5 0%, #5e4cba 40%, #4a3a9e 100%);
    border: 3px solid #1a1a1e;
    box-sizing: border-box;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.2);
    transition: all 0.3s, opacity 0.1s;
}
.square.visible {
    opacity: 1;
}

#cube.metal .square {
    border: 0;
    box-shadow: none;
}
#cube.metal .top .square {
    background: #e2e6e9;
}
#cube.metal .front .square {
    background: #898fbf;
}
#cube.metal .right .square {
    background: #535e8b;
}

.top .square:nth-child(1) { top:0; left:50px; }
.top .square:nth-child(2) { top:0; left:0; }
.top .square:nth-child(3) { top:50px; left:0; }
.top .square:nth-child(4) { top:100px; left:0; }

.front .square:nth-child(1) { top:0; left:0; }
.front .square:nth-child(2) { top:50px; left:0; }
.front .square:nth-child(3) { top:100px; left:0; }
.front .square:nth-child(4) { top:100px; left:50px; }
.front .square:nth-child(5) { top:100px; left:100px; }

.right .square:nth-child(1) { top:100px; left:100px; }
.right .square:nth-child(2) { top:50px; left:100px; }
.right .square:nth-child(3) { top:0; left:100px; }
.right .square:nth-child(4) { top:0; left:50px; }
.right .square:nth-child(5) { top:0; left:0; }
.right .square:nth-child(6) { top:50px; left:0; }

#minicube {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: translate3d(100px, 0, 0);
    transform-style: preserve-3d;
    transform-origin: 0 0 0;
    animation: fall 0.5s ease-in;
}
#minicube.transition {
    transition: all 0.1s;
}

.minicubeface {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7059e5 0%, #5e4cba 40%, #4a3a9e 100%);
    border: 1px solid #4f3fa1;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.2);
    box-sizing: border-box;
    transition: all 0.8s ease-in, background 0.1s;
}
.minicubeface.top {
    transform: translate3d(0, 0, 50px);
}
.minicubeface.front {
    transform-origin: bottom;
    transform: rotateX(-90deg);
}
.minicubeface.left {
    transform-origin: left;
    transform: rotateY(-90deg);
}
.minicubeface.right {
    transform-origin: right;
    transform: rotateY(90deg);
}
.minicubeface.back {
    transform-origin: top;
    transform: rotateX(90deg);
}

#minicube.grow {
    animation: jump 1.2s ease-in-out forwards !important;
    transform-origin: 75% 75% 37.5px !important;
}
#minicube.grow .minicubeface {
    width: 75px;
    height: 75px;
}
#minicube.grow .minicubeface.top {
    transform: translate3d(0, 0, 75px);
}

#cube.metal .minicubeface {
    border: 0;
    box-shadow: none;
}
#cube.metal .minicubeface.top {
    background: #e2e6e9;
}
#cube.metal .minicubeface.front {
    background: #898fbf;
}
#cube.metal .minicubeface.right {
    background: #535e8b;
}

/* === Splash Screen === */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1e;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
#splashCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#splash.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
#splash .enter-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
}
#splash .or-dont {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #b395b6;
    margin-top: 20px;
    opacity: 0;
    animation: orDontFade 1s ease forwards;
    animation-delay: 1s;
}
@keyframes orDontFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Skip Text === */
#skip-text {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    pointer-events: none;
    user-select: none;
    display: none;
}

/* === Main Site Content === */
.main-content {
    min-height: 100vh;
    opacity: 0;
    padding: 40px 10px;
    transition: opacity 1s ease, margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    position: relative;
    z-index: 2;
}
.main-content.visible {
    opacity: 1;
}

.hero {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
    padding-top: 100px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--vibe-accent3), var(--vibe-accent), var(--vibe-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    animation: contactFadeIn 0.8s ease forwards;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--vibe-text-muted, #b0aab8);
    margin-bottom: 50px;
    line-height: 1.6;
    animation: contactFadeIn 0.8s ease 0.15s both;
}

.cta-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.cta-button {
    display: block;
    width: 280px;
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--vibe-accent-dark), var(--vibe-accent));
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(var(--vibe-accent-rgb), 0.5),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: contactFadeIn 0.8s ease 0.3s both;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(var(--vibe-accent-rgb), 0.7),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--vibe-accent-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--vibe-accent-rgb), 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
.grid-bg.visible {
    opacity: 1;
}

.content-section {
    max-width: 1200px;
    margin: 24px auto;
    padding: 50px 60px;
    background: var(--vibe-surface, rgba(30, 30, 38, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(var(--vibe-accent-rgb), 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.content-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--vibe-accent);
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.project-year {
    margin-left: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--vibe-accent);
    white-space: nowrap;
}

.content-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--vibe-accent);
    margin: 28px 0 8px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.content-section h3:first-of-type {
    margin-top: 0;
}
.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--vibe-text-muted, #b0aab8);
    margin-top: 0;
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--vibe-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
}

/* === Nintendo Canvas (Mario + Coins) === */
#marioCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.3);
    background: var(--vibe-surface, rgba(30, 30, 38, 0.95));
    color: var(--vibe-accent);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background: rgba(var(--vibe-accent-rgb), 0.15);
}
.back-to-top.sidebar-open {
    left: calc(50% + 150px);
}

/* === Footer === */
.site-footer {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(var(--vibe-accent-rgb), 0.15);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}
.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--vibe-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--vibe-accent);
}
.footer-copy {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--vibe-text-faint);
    opacity: 0.5;
    letter-spacing: 3px;
}

/* === Konami Star Power === */
.star-power {
    animation: starPower 0.4s linear infinite !important;
}
@keyframes starPower {
    0% { filter: hue-rotate(0deg) brightness(1.15); }
    100% { filter: hue-rotate(360deg) brightness(1.15); }
}

/* === Cheat: Pipe === */
.cheat-pipe {
    animation: pipeDown 1.2s ease-in-out !important;
    overflow: hidden;
}
@keyframes pipeDown {
    0% { transform: translateY(0); }
    30% { transform: translateY(100vh); }
    60% { transform: translateY(100vh); }
    100% { transform: translateY(0); }
}

/* === Cheat: Coin === */
.cheat-coin-float {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 32px;
    margin-left: -12px;
    background: #f5c542;
    border: 2px solid #c8961e;
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    animation: coinBounce 0.8s ease-out forwards;
}
@keyframes coinBounce {
    0% { transform: translateY(0) scaleX(1); opacity: 1; }
    40% { transform: translateY(-120px) scaleX(0.3); }
    60% { transform: translateY(-100px) scaleX(1); }
    80% { transform: translateY(-130px) scaleX(0.3); opacity: 1; }
    100% { transform: translateY(-140px) scaleX(0); opacity: 0; }
}

/* === Cheat: 1UP === */
.cheat-1up-float {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', 'Space Mono', monospace;
    font-size: 1.5rem;
    color: #4cdf50;
    text-shadow: 0 0 8px rgba(76, 223, 80, 0.6);
    z-index: 99999;
    pointer-events: none;
    animation: oneUpFloat 1.5s ease-out forwards;
}
@keyframes oneUpFloat {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-200px); opacity: 0; }
}

/* === Cheat: Brady / Gold === */
.cheat-gold-float {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', 'Space Mono', monospace;
    font-size: 1.5rem;
    color: #f5c542;
    text-shadow: 0 0 8px rgba(245, 197, 66, 0.6);
    z-index: 99999;
    pointer-events: none;
    animation: oneUpFloat 1.5s ease-out forwards;
}

/* === Header Pipe Nav Animation === */
.nav-mario {
    position: absolute;
    top: -12px;
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    z-index: 15;
    pointer-events: none;
    transition: none;
}
.nav-mario.entering {
    animation: marioEnterPipe 0.18s ease-in forwards;
}
.nav-mario.exiting {
    animation: marioExitPipe 0.18s ease-out forwards;
}
@keyframes marioEnterPipe {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-12px); opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}
@keyframes marioExitPipe {
    0% { transform: translateY(18px); opacity: 0; }
    50% { transform: translateY(-10px); opacity: 1; }
    80% { transform: translateY(-3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
.nav-pipe {
    position: absolute;
    top: 10px;
    pointer-events: none;
    z-index: 12;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    transition: transform 0.15s cubic-bezier(0.6, 0, 0.4, 1), opacity 0.08s ease;
}
.nav-pipe.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.05s ease;
}
.nav-pipe-rim {
    width: 25px;
    height: 7px;
    background: linear-gradient(180deg, #66bb6a, #388e3c);
    border: 2px solid #1b5e20;
    border-radius: 5px 5px 0 0;
    box-shadow: inset 4px 0 0 rgba(255,255,255,0.15), inset -4px 0 0 rgba(0,0,0,0.2);
}
.nav-pipe-tube {
    width: 21px;
    height: 11px;
    margin: 0 auto;
    background: linear-gradient(90deg, #2e7d32, #4caf50 30%, #66bb6a 50%, #4caf50 70%, #2e7d32);
    border-left: 2px solid #1b5e20;
    border-right: 2px solid #1b5e20;
}

#dustCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% {
        transform: translate3d(100px, -100vh, 0);
        opacity: 0;
    }
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.shown {
    opacity: 1;
    transform: translateY(0);
}

/* === Section Headers === */
.section-header {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    color: var(--vibe-accent);
    text-align: center;
    max-width: 1200px;
    margin: 100px auto 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--vibe-accent3), var(--vibe-accent));
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* === Tag / Badge === */
.tag {
    font-size: 0.65rem;
    background: rgba(var(--vibe-accent-rgb), 0.15);
    color: var(--vibe-accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.25);
    white-space: nowrap;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

/* === Feature Lists === */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.feature-list li {
    color: var(--vibe-text-muted, #b0aab8);
    font-size: 1.05rem;
    line-height: 2;
    padding-left: 24px;
    position: relative;
}
.feature-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--vibe-accent);
    font-weight: bold;
    font-family: 'Space Mono', monospace;
}

/* === Stats Grid (Woodyrun) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 30px 0;
}
.stat-card {
    background: rgba(var(--vibe-accent-rgb), 0.12);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.25);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}
.stat-card:hover {
    border-color: rgba(var(--vibe-accent-rgb), 0.5);
    background: rgba(var(--vibe-accent-rgb), 0.2);
}
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--vibe-accent);
    font-weight: 700;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--vibe-text-faint);
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.stat-loading {
    color: #7c3a3a;
    font-size: 0.9rem;
}

/* === Leaderboard Table === */
.leaderboard-wrap {
    margin-top: 24px;
}
.leaderboard-wrap h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--vibe-accent);
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table th {
    font-family: 'Orbitron', sans-serif;
    color: var(--vibe-text-faint);
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(var(--vibe-accent-rgb), 0.25);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.leaderboard-table td {
    color: var(--vibe-text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(var(--vibe-accent-rgb), 0.1);
    font-size: 0.95rem;
}
.leaderboard-table tbody tr:first-child td {
    color: #ffd700;
}
.leaderboard-table tbody tr:nth-child(2) td {
    color: #c0c0c0;
}
.leaderboard-table tbody tr:nth-child(3) td {
    color: #cd7f32;
}
.leaderboard-table .rank-cell {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
}

/* === Woodyrun Link === */
.project-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--vibe-accent);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(var(--vibe-accent-rgb), 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s, color 0.3s;
}
.project-link:hover {
    color: var(--vibe-accent-light);
    border-color: var(--vibe-accent-light);
}

/* === Woodyrun Grid (card + activity sidebar) === */
.woodyrun-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-rows: 1fr;
    gap: 24px;
    max-width: 1600px;
    margin: 40px auto;
}
.woodyrun-grid .content-section {
    margin: 0;
}

/* === Activity Sidebar === */
.activity-sidebar-wrap {
    position: relative;
}
.activity-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--vibe-surface, rgba(30, 30, 38, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(var(--vibe-accent-rgb), 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.activity-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--vibe-accent);
    letter-spacing: 2px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(var(--vibe-accent-rgb), 0.15);
    text-transform: uppercase;
}
.activity-list {
    overflow-y: auto;
    flex: 1;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(var(--vibe-accent-rgb), 0.08);
    transition: background 0.2s;
}
.activity-item:hover {
    background: rgba(var(--vibe-accent-rgb), 0.05);
}
.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-icon.wr {
    background: rgba(255, 215, 0, 0.15);
}
.activity-icon.wr svg {
    fill: none;
    stroke: #ffd700;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.activity-icon.pb {
    background: rgba(var(--vibe-accent-rgb), 0.12);
}
.activity-icon.pb svg {
    fill: none;
    stroke: var(--vibe-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}
.activity-info {
    flex: 1;
    min-width: 0;
}
.activity-type {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vibe-text);
    margin-bottom: 2px;
}
.activity-detail {
    font-size: 0.75rem;
    color: var(--vibe-text-faint);
    line-height: 1.4;
}
.activity-detail .name {
    color: var(--vibe-text-muted);
    font-weight: 600;
}
.activity-detail .time-value {
    color: var(--vibe-accent);
    font-family: 'Space Mono', monospace;
}
.activity-ago {
    font-size: 0.7rem;
    color: #6a6270;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}
.activity-empty {
    padding: 30px 24px;
    text-align: center;
    color: var(--vibe-text-faint);
    font-size: 0.85rem;
}

/* === GitHub Sidebar (fixed site-wide) === */
.gh-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 300px;
    height: calc(100dvh - 60px);
    background: var(--vibe-surface, rgba(30, 30, 38, 0.98));
    border-right: 1px solid rgba(var(--vibe-accent-rgb), 0.2);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
    padding: 24px 10px;
    text-align: center;
    overflow-y: auto;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gh-sidebar.visible {
    transform: translateX(0);
}
.gh-sidebar-toggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 9998;
    width: 36px;
    height: 72px;
    background: var(--vibe-surface, rgba(30, 30, 38, 0.95));
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.25);
    border-left: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    opacity: 0;
}
.gh-sidebar-toggle.visible {
    opacity: 1;
}
.gh-sidebar-toggle:hover {
    background: rgba(var(--vibe-accent-rgb), 0.15);
}
.gh-sidebar-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--vibe-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
}
.gh-sidebar.visible ~ .gh-sidebar-toggle {
    left: 316px;
}
.gh-sidebar.visible ~ .gh-sidebar-toggle svg {
    transform: rotate(180deg);
}

/* Shift main content when sidebar is open */
.main-content.sidebar-open {
    margin-left: 300px;
    padding-left: 30px;
    padding-right: 30px;
}

.gh-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(var(--vibe-accent-rgb), 0.3);
    margin-bottom: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.gh-avatar:hover {
    border-color: rgba(var(--vibe-accent-rgb), 0.6);
    box-shadow: 0 0 30px rgba(var(--vibe-accent-rgb), 0.2);
}
.gh-sidebar h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--vibe-accent);
    margin: 0 0 4px;
}
.gh-bio {
    font-size: 0.85rem;
    color: var(--vibe-text-muted);
    margin: 0 0 12px;
    line-height: 1.4;
}
.gh-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 0.73rem;
    color: #6a6270;
    margin-bottom: 18px;
}
.gh-meta svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #6a6270;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -2px;
    margin-right: 3px;
}
.gh-stats-row {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.gh-stat {
    text-align: center;
    background: rgba(var(--vibe-accent-rgb), 0.08);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.15);
    border-radius: 10px;
    padding: 8px 6px;
    flex: 1;
}
.gh-stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--vibe-accent);
}
.gh-stat-label {
    font-size: 0.55rem;
    color: var(--vibe-text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}
.gh-heatmap-wrap {
    margin-bottom: 16px;
}
.gh-heatmap-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--vibe-text-faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.gh-heatmap {
    overflow-x: auto;
    display: flex;
    justify-content: center;
}
.gh-heatmap svg {
    display: block;
}
.gh-heatmap svg rect {
    rx: 2;
    ry: 2;
}
.gh-private-note {
    font-size: 0.65rem;
    color: #6a6270;
    margin-top: 6px;
}
.gh-sidebar .project-link {
    margin-top: 6px;
    font-size: 0.8rem;
}
.gh-sidebar-divider {
    height: 1px;
    background: rgba(var(--vibe-accent-rgb), 0.12);
    margin: 16px 0;
}
.gh-sidebar-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--vibe-text-faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: left;
}
.gh-repos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.gh-repo-card {
    background: rgba(var(--vibe-accent-rgb), 0.06);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: left;
}
.gh-repo-card:hover {
    border-color: rgba(var(--vibe-accent-rgb), 0.4);
    background: rgba(var(--vibe-accent-rgb), 0.12);
}
.gh-repo-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--vibe-text);
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gh-repo-name svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #9a8e9e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.gh-repo-desc {
    font-size: 0.75rem;
    color: var(--vibe-text-faint);
    line-height: 1.4;
    margin-bottom: 8px;
}
.gh-repo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: #6a6270;
}
.gh-lang {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gh-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.gh-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}
.gh-stars svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #6a6270;
    stroke-width: 2;
}
.gh-activity-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--vibe-text-faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 10px;
    text-align: left;
}
.gh-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(var(--vibe-accent-rgb), 0.06);
}
.gh-event:last-child {
    border-bottom: none;
}
.gh-event-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--vibe-accent-rgb), 0.1);
}
.gh-event-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: var(--vibe-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gh-event-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.gh-event-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--vibe-text-muted);
}
.gh-event-repo {
    font-size: 0.68rem;
    color: var(--vibe-text-faint);
}
.gh-event-repo a {
    color: var(--vibe-accent);
    text-decoration: none;
}
.gh-event-repo a:hover {
    text-decoration: underline;
}
.gh-event-ago {
    font-size: 0.65rem;
    color: #6a6270;
    white-space: nowrap;
    flex-shrink: 0;
}

/* === Cheat Code Input === */
.gh-cheat-code {
    text-align: left;
    padding: 0 4px;
}
.gh-cheat-code label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--vibe-text-faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.gh-cheat-input-wrap {
    position: relative;
}
.gh-cheat-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--vibe-text);
    background: rgba(var(--vibe-accent-rgb), 0.06);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gh-cheat-input-wrap input::placeholder {
    color: var(--vibe-text-faint);
    opacity: 0.5;
}
.gh-cheat-input-wrap input:focus {
    border-color: rgba(var(--vibe-accent-rgb), 0.5);
    box-shadow: 0 0 12px rgba(var(--vibe-accent-rgb), 0.15);
}
.gh-cheat-msg {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 6px;
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.3s;
}
.gh-cheat-msg.visible {
    opacity: 1;
}

@media (max-width: 900px) {
    .gh-sidebar {
        width: 260px;
    }
    .gh-sidebar.visible ~ .gh-sidebar-toggle {
        left: 276px;
    }
    .main-content.sidebar-open {
        margin-left: 260px;
    }
}
@media (max-width: 768px) {
    .gh-sidebar {
        width: 280px;
    }
    .gh-sidebar.visible ~ .gh-sidebar-toggle {
        left: 296px;
    }
    .main-content.sidebar-open {
        margin-left: 0;
    }
}

/* === Section Banner Image === */
.section-banner {
    width: calc(100% + 120px);
    margin: -50px -60px 30px;
    border-radius: 18px 18px 0 0;
    display: block;
    object-fit: cover;
    max-height: 330px;
}

/* === Description Highlight === */
.desc-highlight {
    color: var(--vibe-accent-soft);
    font-weight: 700;
}

/* === Animated Site Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 0 40px;
    box-sizing: border-box;
    background: var(--vibe-surface, rgba(26, 26, 30, 0.95));
    border-bottom: 1px solid rgba(var(--vibe-accent-rgb), 0.2);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.site-header.visible {
    transform: translateY(0);
    opacity: 1;
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--vibe-accent3), var(--vibe-accent), var(--vibe-accent2), var(--vibe-accent), var(--vibe-accent3), transparent);
    background-size: 200% 100%;
    animation: headerGlow 3s linear infinite;
}
@keyframes headerGlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.goomba-btn-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, var(--vibe-accent3), var(--vibe-accent), var(--vibe-accent2), var(--vibe-accent), var(--vibe-accent3));
    background-size: 300% 300%;
    animation: goombaBorder 3s linear infinite;
    cursor: pointer;
    transition: transform 0.2s;
}
.goomba-btn-wrap:hover {
    transform: scale(1.1);
}
@keyframes goombaBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.goomba-btn {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background: var(--vibe-bg-start, #1a1a1e);
}
.header-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--vibe-text);
    cursor: pointer;
    transition: filter 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--vibe-accent-rgb), 0.4);
    -webkit-text-fill-color: initial;
}
.header-logo:hover {
    filter: brightness(1.3);
}
.header-nav {
    display: flex;
    gap: 8px;
    position: relative;
    flex: 1;
    justify-content: flex-end;
    margin-right: 16px;
}
.nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--vibe-text-muted, #b0aab8);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, background 0.3s, transform 0.15s ease, opacity 0.12s ease;
    cursor: pointer;
    letter-spacing: 1px;
    border: 1px solid transparent;
}
.nav-link.pipe-hide {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
}
.nav-link:hover {
    color: var(--vibe-accent);
    background: rgba(var(--vibe-accent-rgb), 0.08);
    border-color: rgba(var(--vibe-accent-rgb), 0.2);
}
.nav-link.active {
    color: var(--vibe-accent);
    background: rgba(var(--vibe-accent-rgb), 0.12);
    border-color: rgba(var(--vibe-accent-rgb), 0.3);
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vibe-accent3), var(--vibe-accent));
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
    left: 20%;
}

/* === Light/Dark Pull Cord === */
.pull-cord {
    position: fixed;
    top: 46px;
    right: 48px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.pull-cord.visible {
    opacity: 1;
}
.pull-cord-string {
    width: 2px;
    height: 46px;
    background: var(--vibe-text, #fff);
    opacity: 0.4;
    transition: background 0.3s;
}
.pull-cord-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--vibe-text, #fff);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s, border-color 0.3s;
}
.pull-cord:hover .pull-cord-knob {
    opacity: 0.8;
    transform: scale(1.1);
}
.pull-cord-icon {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--vibe-text, #fff);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}
.pull-cord-icon.moon-icon path {
    fill: var(--vibe-text, #fff);
    stroke: none;
}
/* Show moon by default (dark mode), hide sun */
.pull-cord .sun-icon { display: none; }
.pull-cord .moon-icon { display: block; }
/* In light mode, show sun, hide moon */
.pull-cord.light-mode .sun-icon { display: block; }
.pull-cord.light-mode .moon-icon { display: none; }

/* Pull animation */
@keyframes pullDown {
    0% { transform: translateY(0); }
    40% { transform: translateY(12px); }
    100% { transform: translateY(0); }
}
.pull-cord.pulling {
    animation: pullDown 0.35s ease-in-out;
}

@media (max-width: 768px) {
    .pull-cord {
        right: 16px;
    }
}

/* === Contact Page === */
.contact-page {
    display: none;
    min-height: 80vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 60px 20px 60px;
}
.contact-page.active {
    display: flex;
}
.contact-page h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--vibe-accent3), var(--vibe-accent), var(--vibe-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: contactFadeIn 0.8s ease forwards;
}
.contact-page p {
    font-size: 1.2rem;
    color: var(--vibe-text-faint);
    margin-bottom: 50px;
    animation: contactFadeIn 0.8s ease 0.15s both;
}
.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 22px 50px;
    background: linear-gradient(135deg, var(--vibe-accent-dark), var(--vibe-accent));
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(var(--vibe-accent-rgb), 0.4),
                0 0 80px rgba(var(--vibe-accent-rgb), 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: contactFadeIn 0.8s ease 0.3s both;
    position: relative;
    overflow: hidden;
}
.email-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.email-btn:hover::before {
    opacity: 1;
}
.email-btn:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 20px 60px rgba(var(--vibe-accent-rgb), 0.6),
                0 0 120px rgba(var(--vibe-accent-rgb), 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.email-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}
@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home page content wrapper */
.home-page {
    display: block;
}
.home-page.hidden {
    display: none;
}

@media (max-width: 768px) {
    .content-section {
        padding: 30px 20px;
        margin: 30px 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-header {
        margin-top: 60px;
    }
    .site-header {
        padding: 0 16px;
    }
    .section-banner {
        width: calc(100% + 40px);
        margin: -30px -20px 20px;
    }
    .woodyrun-grid {
        grid-template-columns: 1fr;
    }
    .activity-sidebar {
        max-height: 400px;
    }
    .email-btn {
        padding: 18px 36px;
        font-size: 1.1rem;
    }
    .header-logo {
        font-size: 0;
        gap: 0;
    }
    .content-section h2 {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }
    .project-year {
        font-size: 0.65rem;
    }
    .cta-button-group {
        gap: 10px;
    }
    .cta-button {
        width: 220px;
        padding: 14px 0;
        font-size: 0.9rem;
    }
    .back-to-top {
        bottom: 24px;
    }
    .back-to-top.sidebar-open {
        left: 50%;
    }
}

/* === Lofi Music Player === */
.lofi-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    flex-direction: column;
    align-items: flex-end;
}
.lofi-player.visible {
    display: flex;
}

/* --- Toggle button (always visible) --- */
.lofi-toggle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(var(--vibe-accent-rgb), 0.4);
    background: var(--vibe-surface, rgba(26, 26, 30, 0.95));
    color: var(--vibe-accent);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.lofi-toggle:hover {
    border-color: rgba(var(--vibe-accent-rgb), 0.7);
    background: rgba(var(--vibe-accent-rgb), 0.12);
    transform: scale(1.08);
}

/* Pulse ring when music is playing */
.lofi-toggle-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 2px solid rgba(var(--vibe-accent-rgb), 0.5);
    opacity: 0;
    pointer-events: none;
}
.lofi-player.playing .lofi-toggle-pulse {
    animation: lofiPulse 2s ease-in-out infinite;
}
@keyframes lofiPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* --- Collapsed state: hide body --- */
.lofi-player.collapsed .lofi-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    pointer-events: none;
}

/* --- Expanded body --- */
.lofi-body {
    max-height: 300px;
    opacity: 1;
    margin-top: 10px;
    padding: 14px;
    background: var(--vibe-surface, rgba(26, 26, 30, 0.97));
    border: 2px solid rgba(var(--vibe-accent-rgb), 0.3);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 220px;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease,
                padding 0.3s ease;
    overflow: hidden;
}



/* --- Screen area --- */
.lofi-screen {
    background: rgba(var(--vibe-accent-rgb), 0.06);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.15);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
}
.lofi-track-name {
    font-size: 0.7rem;
    color: var(--vibe-text-muted);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}

/* --- Visualizer bars (CSS-only) --- */
.lofi-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 20px;
}
.lofi-visualizer span {
    width: 4px;
    height: 4px;
    background: rgba(var(--vibe-accent-rgb), 0.3);
    border-radius: 1px;
    transition: height 0.2s, background 0.2s;
}
.lofi-player.playing .lofi-visualizer span {
    background: var(--vibe-accent);
    animation: lofiBars 1.2s ease-in-out infinite alternate;
}
.lofi-player.playing .lofi-visualizer span:nth-child(1) { animation-delay: 0s; }
.lofi-player.playing .lofi-visualizer span:nth-child(2) { animation-delay: 0.15s; }
.lofi-player.playing .lofi-visualizer span:nth-child(3) { animation-delay: 0.3s; }
.lofi-player.playing .lofi-visualizer span:nth-child(4) { animation-delay: 0.45s; }
.lofi-player.playing .lofi-visualizer span:nth-child(5) { animation-delay: 0.6s; }

@keyframes lofiBars {
    0% { height: 4px; }
    100% { height: 18px; }
}

/* --- Transport controls --- */
.lofi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}
.lofi-btn {
    background: none;
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.2);
    color: var(--vibe-text-muted);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lofi-btn:hover {
    color: var(--vibe-accent);
    border-color: rgba(var(--vibe-accent-rgb), 0.5);
    background: rgba(var(--vibe-accent-rgb), 0.08);
}
.lofi-play-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 50%;
    border-width: 2px;
    border-color: rgba(var(--vibe-accent-rgb), 0.4);
}

/* --- Progress bar --- */
.lofi-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.lofi-time {
    font-size: 0.6rem;
    color: var(--vibe-text-faint);
    min-width: 28px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.lofi-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(var(--vibe-accent-rgb), 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.lofi-progress-bar:hover {
    height: 6px;
}
.lofi-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--vibe-accent);
    border-radius: 2px;
    transition: background 0.3s;
    pointer-events: none;
}

/* --- Volume row --- */
.lofi-volume-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lofi-mute-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border: none;
}
.lofi-speaker-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--vibe-text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}
.lofi-mute-btn:hover .lofi-speaker-icon {
    stroke: var(--vibe-accent);
}
.lofi-volume {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(var(--vibe-accent-rgb), 0.2);
    border-radius: 2px;
    outline: none;
}
.lofi-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vibe-accent);
    cursor: pointer;
    border: 2px solid var(--vibe-bg-start, #1a1a1e);
}
.lofi-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vibe-accent);
    cursor: pointer;
    border: 2px solid var(--vibe-bg-start, #1a1a1e);
}

.lofi-tip {
    text-align: center;
    font-size: 0.65rem;
    color: var(--vibe-text-faint);
    margin-top: 6px;
    opacity: 0.7;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
    .lofi-player {
        bottom: 12px;
        right: 12px;
    }
    .lofi-body {
        width: 190px;
        padding: 10px;
    }
}

/* === Returning Visitor Message === */
.returning-visitor-msg {
    text-align: center;
    color: var(--vibe-text-faint);
    font-size: 0.78rem;
    font-style: italic;
    margin: 80px auto 0;
    padding: 10px 24px;
    max-width: fit-content;
    border-radius: 12px;
    background: rgba(var(--vibe-accent-rgb), 0.06);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.1);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.returning-visitor-msg:empty {
    display: none;
}
.returning-visitor-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Games Page === */
.games-page {
    display: none;
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: calc(100vh - 64px);
}
.games-page.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.games-page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--vibe-accent3), var(--vibe-accent), var(--vibe-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    animation: gamesFadeSlideIn 0.7s ease forwards;
}
.games-page-subtitle {
    font-size: 1rem;
    color: var(--vibe-text-faint);
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: gamesFadeSlideIn 0.7s ease 0.15s forwards;
}

@keyframes gamesFadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Game Cards Grid === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 900px;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

/* === Game Card === */
.game-card {
    position: relative;
    padding: 3px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--vibe-accent3), var(--vibe-accent), var(--vibe-accent2), var(--vibe-accent), var(--vibe-accent3));
    background-size: 300% 300%;
    animation: gameBoxBorderGlow 3s linear infinite;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.3s ease;
}
.game-card:nth-child(1) {
    animation: gameBoxBorderGlow 3s linear infinite, gameCardReveal 0.6s ease 0.3s forwards;
}
.game-card:nth-child(2) {
    animation: gameBoxBorderGlow 3s linear infinite, gameCardReveal 0.6s ease 0.45s forwards;
}
.game-card:nth-child(3) {
    animation: gameBoxBorderGlow 3s linear infinite, gameCardReveal 0.6s ease 0.6s forwards;
}

@keyframes gameCardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
}
.game-card:hover .game-card-inner {
    background: var(--vibe-bg-end);
}

@keyframes gameBoxBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-card-inner {
    background: var(--vibe-surface);
    border-radius: 14px;
    padding: 32px 28px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(var(--vibe-accent-rgb), 0.12);
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    image-rendering: pixelated;
    overflow: hidden;
}
.game-card-icon canvas {
    image-rendering: pixelated;
}

.game-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vibe-text);
}

.game-card-year {
    font-size: 0.75rem;
    color: var(--vibe-text-faint);
    margin-top: 2px;
}

.game-card-desc {
    font-size: 0.9rem;
    color: var(--vibe-text-muted);
    line-height: 1.6;
}

.game-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.game-tag {
    font-size: 0.7rem;
    background: rgba(var(--vibe-accent-rgb), 0.15);
    color: var(--vibe-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    border: 1px solid rgba(var(--vibe-accent-rgb), 0.2);
}

.game-card-play {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--vibe-accent);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
}
.game-card:hover .game-card-play {
    opacity: 1;
    transform: translateX(0);
}
.game-card-play svg {
    width: 16px;
    height: 16px;
    fill: var(--vibe-accent);
}

/* === Pipe Transition Animation === */
.game-card.transitioning {
    pointer-events: none;
    transform: none !important;
}
.game-card.transitioning .game-card-inner {
    position: relative;
    overflow: hidden;
}
.game-card.transitioning .game-card-content {
    transition: transform 0.4s cubic-bezier(0.4, 0, 1, 1), opacity 0.3s;
    transform: translateY(-120%);
    opacity: 0;
}
.game-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0, 0, 0.2, 1), opacity 0.3s;
}
.transition-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}
.game-card.transitioning .transition-canvas {
    opacity: 1;
}

/* Games responsive */
@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    .games-page {
        padding-top: 60px;
    }
}