/* Base & Reset */
:root {
    --bg-space: #4a3b32; /* Dirt */
    --box-bg: #7d7d7d;   /* Stone */
    --neon-blue: #000000;
    --box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Press Start 2P', cursive; 
    background-color: var(--bg-space);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    image-rendering: pixelated;
}

/* Texture Overlay */
.dirt-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-space);
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1)),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -2;
}

/* MC Text Styling */
.mc-text {
    color: #fff;
    text-shadow: 4px 4px 0 #333;
}

.marquee-container {
    position: fixed;
    top: 30%;
    left: 0;
    width: 200vw;
    transform: translateY(-50%) rotate(-5deg);
    overflow: hidden;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 8rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-blue);
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}



/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    font-family: 'Press Start 2P', cursive;
}

.nav-logo {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Removed nav-btn */

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 5rem;
    font-family: 'Press Start 2P', cursive;
    position: relative;
    z-index: 10;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--neon-blue));
    animation: pulseHeader 2s infinite alternate;
}

@keyframes pulseHeader {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.hero-title {
    font-size: 8rem;
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 20px var(--neon-blue);
}

.hero-subtitle {
    font-size: 2rem;
    color: #fff;
    margin: 1rem 0 0.5rem 0;
    text-shadow: 0 0 10px var(--neon-blue);
}

.hero-subtext {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-solid {
    background-color: #7d7d7d;
    color: #fff;
    border: 4px solid #000;
    border-top-color: #aaa;
    border-left-color: #aaa;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    text-shadow: 2px 2px 0 #333;
}

.btn-solid:hover {
    background-color: #999;
}

.btn-solid:active {
    border-color: #000;
    border-bottom-color: #aaa;
    border-right-color: #aaa;
}

.btn-outline {
    background-color: transparent;
    color: #eee;
    border: 2px solid #555;
    padding: 0.6rem 2rem;
    font-size: 1.2rem;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #eee;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    color: #555;
    font-size: 1rem;
    z-index: 10;
}

/* Floating Tweets */
.floating-tweet {
    position: absolute;
    background: #05050a;
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    padding: 1rem;
    width: 250px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    z-index: 5;
    animation: floatTweet 6s ease-in-out infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    pointer-events: none;
    text-align: left;
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--neon-blue);
}

.tweet-user {
    display: flex;
    flex-direction: column;
}

.name {
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified {
    color: #1d9bf0;
    font-size: 14px;
}

.handle {
    color: #71767b;
    font-size: 13px;
}

.tweet-content {
    font-size: 18px;
    font-weight: 500;
}

@keyframes floatTweet {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -15px; }
}

/* Specific Tweet Positions */
.tweet-1 {
    top: -10%;
    left: -20%;
    transform: rotate(-10deg);
    animation-delay: 0s;
}

.tweet-2 {
    top: 20%;
    right: -25%;
    transform: rotate(15deg);
    animation-delay: 1.5s;
}

.tweet-3 {
    bottom: -5%;
    left: -15%;
    transform: rotate(5deg);
    animation-delay: 3s;
}

.tweet-4 {
    bottom: 10%;
    right: -10%;
    transform: rotate(-8deg);
    animation-delay: 4.5s;
}

/* Retro Box Components */
.retro-box {
    background-color: var(--box-bg);
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    position: relative;
}

/* Info Section */
.info-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ca-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.ca-label {
    font-size: 2.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

#ca-text {
    font-family: 'Comic Neue', monospace;
    font-weight: 700;
    font-size: 2rem;
    background: #111;
    color: #fff; 
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--neon-blue);
    word-break: break-all;
    flex-grow: 1;
    text-align: center;
    user-select: all;
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.3);
}

#copy-btn {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--neon-blue);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-blue);
    transition: all 0.2s;
}

#copy-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 20px #fff;
}

#copy-btn:active {
    transform: scale(0.95);
}

/* Floating Balls */
.floating-balls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ball {
    position: absolute;
    height: auto;
    animation: floatAround infinite ease-in-out alternate;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(150px, -150px) rotate(120deg); }
    66% { transform: translate(-100px, 200px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Net Worth Counter */
.net-worth-display {
    font-size: 3rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 2rem;
    border: 2px solid #00ff00;
    border-radius: 12px;
    z-index: 20;
}

#main-logo {
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
    z-index: 20;
}

#main-logo:active {
    transform: scale(0.9);
}

/* CRT & Vintage Filters */
.crt-overlay {
/* Minecraft Loading Screen */
.mc-loading-container {
    position: fixed;
    inset: 0;
    background-color: #5c4033; /* Dirt */
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1)),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.mc-loading-content {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 0 #333;
}

.mc-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mc-subtitle {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.mc-progress-box {
    width: 400px;
    height: 30px;
    background: #000;
    border: 2px solid #555;
    margin: 0 auto 2rem auto;
    position: relative;
}

.mc-progress-fill {
    height: 100%;
    width: 0%;
    background: #55ff55;
    transition: width 2s linear;
}

.mc-btn {
    background: #7d7d7d;
    border: 4px solid #000;
    border-top-color: #aaa;
    border-left-color: #aaa;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    padding: 1rem 2rem;
    cursor: pointer;
    text-shadow: 2px 2px 0 #333;
    font-size: 1.2rem;
}

.mc-btn:hover {
    background: #999;
}

.mc-btn:active {
    border-color: #000;
    border-bottom-color: #aaa;
    border-right-color: #aaa;
}

.hidden {
    display: none;
}

/* Hover Effect for Bedrock Block */
.mc-hover {
    transition: transform 0.1s;
}
.mc-hover:hover {
    transform: scale(1.05);
}

/* Physics Coin */
.physics-coin {
    position: absolute;
    pointer-events: none;
    z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 5rem; }
    .subtitle { font-size: 1.8rem; }
    .intro-title { font-size: 4rem; }
    .pill-container { flex-direction: column; gap: 1.5rem; }
    .jumpscare-text { font-size: 6rem; }
    .ca-box { flex-direction: column; }
}

/* Unbreakable Floor Animation */
.unbreakable-floor-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 120px;
    margin-top: 3rem;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
}

.bedrock-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: url('./bedrock.png');
    background-size: 60px 60px;
    background-repeat: repeat-x;
    border: 4px solid #111;
    border-radius: 8px;
}

.pickaxe-animation {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
}

.pickaxe {
    position: absolute;
    font-size: 4rem;
    bottom: 0px;
    left: 20px;
    transform-origin: bottom left;
    animation: swingPickaxe 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(2px 2px 0 #000);
}

@keyframes swingPickaxe {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(45deg); } /* Wind up */
    20% { transform: rotate(-70deg); } /* STRIKE! */
    25% { transform: rotate(-30deg); } /* Bounce */
    35% { transform: rotate(-50deg); } /* Bounce 2 */
}

.spark {
    position: absolute;
    font-size: 2rem;
    bottom: -10px;
    left: -20px;
    opacity: 0;
    animation: sparkFlash 2s infinite linear;
}

@keyframes sparkFlash {
    0%, 19% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1.5); }
    25% { opacity: 0; transform: scale(2); }
    100% { opacity: 0; }
}
