@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Press+Start+2P&display=swap');

/* ==========================================================================
   GLOBAL RESET & ENVIRONMENT SETTINGS
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
    overflow-x: hidden;
    overflow-y: auto; 
    scroll-behavior: smooth;
}
/* Force default cursor everywhere */
* {
    cursor: default !important;
}

/* Ensure clickable items still show a pointer */
button, a, .clickable {
    cursor: pointer !important;
}
/* --- Starscape Canvas Background --- */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto; /* Crucial for hover vectors to reach mouse listeners */
}

/* ==========================================================================
   PRELOADER SCREEN TRANSITION ENGINE
   ========================================================================== */
#site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99999; /* Float completely over Cliffy (.clippy-wrapper is 9999) */
    opacity: 1;
    visibility: visible;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s linear;
}

#site-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================================
   FIXED ASSISTANT OVERLAY (CLIFFY)
   ========================================================================== */
.clippy-wrapper {
    position: fixed;
    /* CHANGED: Elevated from 20px to 50px to lift the skull sprite and text box */
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none; /* Allows canvas hover event tracking to bleed through empty space */
}

.clippy-wrapper * {
    pointer-events: auto; /* Restores clicks to the assistant character and text box */
}

#reopen-arrow {
    display: none;
    font-size: 30px;
    color: white;
    text-shadow: 2px 2px #000;
    line-height: 1;
    margin-bottom: 5px;
    text-align: center;
}

.bubble-container {
    width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.clippy-bubble {
    width: 600px;
    background-color: #000000;
    border: 4px solid #ffffff;
    padding: 40px;
    font-family: "Press Start 2P", system-ui;
    font-size: 10px;
    line-height: 2.2;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#bubble-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    color: #ffffff;
    font-family: monospace;
    line-height: 1;
}

#clippy-sprite {
    width: 100px;
    image-rendering: pixelated;
    animation: float 3s ease-in-out infinite;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bubble-actions {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bubble-actions button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background-color: #ffffff;
    border: 3px solid #ffffff;
    color: #000000;
    font-family: "Press Start 2P", system-ui;
    font-size: 10px;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px #333333;
}

.bubble-actions button:hover {
    background-color: #000000;
    color: #ffffff;
    border: 3px solid #ffffff;
}

.bubble-actions button:active {
    box-shadow: inset 4px 4px 0px #333333;
}

/* ==========================================================================
   HIGH-END PIXEL BRUTALIST SCROLL STREAM
   ========================================================================== */
.page-container {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    max-width: 600px;
    margin: 100px auto; 
    padding: 0 20px 450px 20px; 
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
    pointer-events: auto; /* Restores natural document scrolling and swipe mechanics */
}

.page-container.active {
    display: block;
    opacity: 1;
}

.page-container * {
    pointer-events: auto; /* Re-locks pointer mapping controls for explicit interactive boxes */
}

/* --- Modern Bio Intro Card --- */
.intro-bio-block {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    margin-bottom: 120px; 
    
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
}

.intro-bio-block h2 {
    font-family: "Press Start 2P", system-ui;
    font-size: 14px;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.intro-bio-block p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #a0a0a0;
    margin: 0;
}

/* --- Inline Pixel Skull Content Separator --- */
.stream-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 120px; 
    
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.inline-skull-icon {
    width: 45px;
    image-rendering: pixelated;
    opacity: 0.85;
}

/* --- Premium Brutalist Feed Blocks --- */
.tumblr-block {
    background: #ffffff;
    border: 4px solid #ffffff;
    padding: 35px;
    margin-bottom: 140px; 
    box-shadow: 14px 14px 0px #161616;
    color: #000000;
    box-sizing: border-box;
    
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 35%;
    
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tumblr-block:hover {
    transform: translate(-3px, -3px);
    box-shadow: 18px 18px 0px #111111;
}

/* Unique Muted Ochre & Earth Tone Borders & Shadow Profiles */
.card-variant-car   { border-color: #a0522d; box-shadow: 14px 14px 0px #4a2512; }
.card-variant-fish  { border-color: #6a7d85; box-shadow: 14px 14px 0px #2e3a3f; }
.card-variant-music { border-color: #7b855e; box-shadow: 14px 14px 0px #3a3f2d; }
.card-variant-tv    { border-color: #c69c5e; box-shadow: 14px 14px 0px #5c4728; }
.card-variant-games { border-color: #8b6d8b; box-shadow: 14px 14px 0px #3d2f3d; }

.tumblr-block .block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 3px solid #000000;
    padding-bottom: 12px;
}

.tumblr-block h1 {
    font-family: "Press Start 2P", system-ui;
    font-size: 12px;
    color: #000000;
    margin: 0;
}

/* --- Picture Frames --- */
.image-frame {
    position: relative;
    width: 100%;
    border: 3px solid #000000;
    margin-bottom: 25px;
    background-color: #e8e8e8;
    overflow: hidden;
    box-sizing: border-box;
}

.tumblr-block img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tumblr-block:hover img {
    transform: scale(1.02);
}

.frame-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    color: #ffffff;
    font-family: monospace;
    font-size: 11px;
    padding: 8px 12px;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.tumblr-block p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 25px;
}

.tumblr-block p strong {
    font-weight: 700;
    color: #000000;
    border-bottom: 2px solid #000000;
}

/* ==========================================================================
   CAR PERFORMANCE DATA EXTENSIONS
   ========================================================================== */
.metric-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 25px 0;
    font-family: 'Inter', sans-serif;
    border: 3px solid #000000;
}

.metric-table th {
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    background-color: #000000;
    color: #ffffff;
    text-align: left;
    padding: 14px 12px;
    text-transform: uppercase;
}

.metric-table td {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    border-bottom: 2px solid #000000;
    background-color: #fcfcfc;
}

.metric-table tr:last-child td {
    border-bottom: none;
}

.mods-container {
    border-top: 2px dashed #000000;
    padding-top: 20px;
    text-align: left;
}

.mods-container h3 {
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    color: #000000;
    margin: 0 0 15px 0;
}

.mods-list {
    margin: 0;
    padding-left: 20px;
}

.mods-list li {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #222222;
    list-style-type: square;
}

.mods-list li strong {
    font-weight: 700;
    color: #000000;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15);
}

/* ==========================================================================
   DYNAMIC FISH GALLERY GRID STYLES
   ========================================================================== */
.fish-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.fish-frame {
    position: relative;
    border: 3px solid #000000;
    background-color: #f0f0f0;
    overflow: hidden;
    box-sizing: border-box;
}

.fish-frame img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fish-frame:hover img {
    transform: scale(1.02);
}

.large-frame {
    height: 320px;
}
.large-frame img {
    height: 100%;
}

.fish-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.small-frame {
    height: 180px;
}
.small-frame img {
    height: 100%;
}

.fish-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    color: #ffffff;
    padding: 10px 14px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #000000;
}

.fish-name {
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    letter-spacing: 0.5px;
}

.fish-size {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    background: #ffffff;
    color: #000000;
    padding: 2px 6px;
    text-transform: uppercase;
}

/* ==========================================================================
   ROTATION DRIVEN MEDIA CHANNELS (GAMES & AUDIO)
   ========================================================================== */
.section-sub-label {
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    color: #777777;
    margin: 25px 0 15px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
}

.games-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fbfbfb;
    border: 3px solid #000000;
    padding: 14px;
    box-shadow: 4px 4px 0px #000000;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.game-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
    background: #ffffff;
}

.game-icon-frame {
    width: 46px;
    height: 46px;
    background: #000000;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.game-details {
    text-align: left;
}

.game-details h4 {
    font-family: "Press Start 2P", system-ui;
    font-size: 9px;
    color: #000000;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.game-details p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    margin: 0 !important;
}

/* ==========================================================================
   PIXEL AUDIO PLAYER DECK ENGINE
   ========================================================================== */
.audio-player-deck {
    background: #fbfbfb;
    border: 3px solid #000000;
    padding: 20px;
    box-shadow: 4px 4px 0px #000000;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.player-core {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.vinyl-wrapper {
    width: 54px;
    height: 54px;
    background: #000000;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vinyl-disk {
    color: #ffffff;
    font-size: 24px;
}

.vinyl-spinning {
    animation: media-spin 4s linear infinite;
}

.track-meta {
    text-align: left;
    overflow: hidden;
}

.track-meta h4 {
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    color: #000000;
    margin: 0 0 6px 0;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.track-meta p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    margin: 0 !important;
    text-transform: uppercase;
}

.brutalist-canvas-visualizer {
    width: 100%;
    height: 50%; 
    background: #000000;
    border: 2px solid #000000;
    display: block;
    margin-bottom: 15px;
}

.player-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.player-ctrl-btn {
    flex: 1;
    padding: 12px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    text-transform: uppercase;
    box-shadow: 3px 3px 0px #000000;
    box-sizing: border-box;
}

.player-ctrl-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.player-ctrl-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px #000000;
}

.built-in-playlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 2px dashed #000000;
    padding-top: 15px;
}

.playlist-track {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    border: 2px solid transparent;
}

.playlist-track:hover {
    background: #f0f0f0;
}

.playlist-track.active-track-row {
    border-color: #000000;
    background: #eaffee; 
}

.track-number {
    font-family: "Press Start 2P", system-ui;
    font-size: 8px;
    color: #999999;
}

.playlist-track.active-track-row .track-number {
    color: #00aa3a;
}

.track-info-strings h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0 0 2px 0;
    font-size: 13px;
    text-align: left;
}

.track-info-strings p {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #666666;
    margin: 0 !important;
    text-align: left;
}

/* --- Stream Sign-Off & Animations --- */
.stream-signoff {
    font-family: 'Georgia', 'New York', serif;
    font-style: italic;
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0.9;
    
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

.bubble-actions button.animate-pop-in {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    animation: elasticPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--stagger-index) * 120ms);
}

@keyframes elasticPopIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes media-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scrollReveal {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ==========================================================================
   STREAMLINED UN-CATEGORIZED SKILLS BLOCK
   ========================================================================== */
.tumblr-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tumblr-block ul li {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 14px;
    padding-left: 0;
    position: relative;
    text-align: left;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
}

.tumblr-block ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   MOBILE & RESPONSIVE RESTRUCTURE ENGINE
   ========================================================================== */
@media (max-width: 768px) {
    .page-container {
        margin: 40px auto;
        padding: 0 20px 380px 20px; 
    }

    .intro-bio-block,
    .stream-divider,
    .tumblr-block {
        margin-bottom: 60px; 
    }

    .clippy-wrapper {
        /* CHANGED: Adjusted baseline responsiveness floor to keep vertical uniform */
        bottom: 30px;
        flex-direction: column-reverse; 
        gap: 8px;
    }

    #reopen-arrow {
        margin-bottom: 0;
        order: 1; 
    }
    
    #clippy-sprite {
        order: 2;
    }

    .bubble-container {
        order: 3;
        width: calc(100vw - 40px); 
        max-width: 500px;
    }

    .clippy-bubble {
        width: 100%;
        height: 360px;
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .bubble-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tumblr-block {
        padding: 20px;
        box-shadow: 8px 8px 0px #161616 !important;
    }
    
    .tumblr-block .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tumblr-block ul li {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .metric-table th, 
    .metric-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .metric-table th {
        font-size: 7px;
    }

    .fish-gallery-grid {
        gap: 12px;
    }
    
    .large-frame {
        height: 220px;
    }
    
    .fish-subgrid {
        grid-template-columns: 1fr; 
        gap: 12px;
    }
    
    .small-frame {
        height: 180px;
    }

    .fish-label {
        padding: 8px 12px;
    }
    
    .fish-name {
        font-size: 7px;
    }

    .game-item {
        gap: 12px;
        padding: 10px;
    }

    .game-icon-frame {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .game-details h4 {
        font-size: 8px;
    }

    .game-details p {
        font-size: 12px;
    }
    
    .clippy-bubble {
        height: 310px;
        line-height: 1.9;
    }
    
    #clippy-sprite {
        width: 75px;
    }

    .audio-player-deck {
        padding: 12px;
    }

    .player-core {
        gap: 12px;
    }

    .player-controls {
        flex-direction: column;
        gap: 8px;
    }
}