:root {
    --primary: #ffbd2e;
    /* GenRocket Yellow/Orange */
    --secondary: #00d4ff;
    --bg-gradient-start: #1a2a22;
    /* Dark Forest Green */
    --bg-gradient-end: #0a0f0d;
    /* Almost Black */
    --card-bg: rgba(20, 30, 25, 0.95);
    /* Semi-transparent dark green */
    --text-white: #ffffff;
    --font-stack: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background: radial-gradient(circle at center, #1b2e25 0%, #000000 100%);
    color: var(--text-white);
    font-family: var(--font-stack);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Particle Background Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Background Pattern (Optional subtle overlay) */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnPjxwYXRoIGQ9Ik0yMCAyMGwyMCAyMEgwVjIwek0yMCAyMEwwIDBoNDB2MjB6IiBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz48L2c+PC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 450px;
    /* Narrower like mobile app/reference */
    padding: 20px;
    position: relative;
    z-index: 10;
    text-align: center;
}

/* --- LOGO & HEADER --- */
.logo-area {
    margin-bottom: 2rem;
    animation: bounceIn 1s;
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-area h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    margin: 0;
    padding: 0;
    line-height: 1;
    text-transform: uppercase;
}

.logo-area h2 {
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

/* --- RESOURCE IMAGES --- */
.resource-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resource-card:hover img {
    transform: scale(1.15) rotate(5deg);
}

.resource-title {
    color: #e0e0e0;
}

/* --- STEP CONTAINERS --- */
.step-container {
    display: none;
    animation: zoomIn 0.5s ease;
}

.step-container.active {
    display: block;
}

/* --- CARDS --- */
.card {
    background: var(--card-bg);
    border: 3px solid #000;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2);
    position: relative;
}

.card-header-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 3px solid #000;
    padding: 5px 20px;
    border-radius: 8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- INPUTS --- */
.input-wrapper {
    background: #1e2426;
    border: 2px solid #000;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: white;
    padding: 15px;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    outline: none;
}

.input-wrapper .icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* --- PLATFORM BUTTONS --- */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

.platform-btn {
    background: #1e2426;
    border: 2px solid #000;
    color: white;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    /* Emoji size */
    transition: 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.platform-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.platform-btn.active {
    background: var(--primary);
    color: black;
    border-color: #000;
}

/* --- ACTION BUTTON --- */
.action-btn {
    width: 100%;
    background: var(--primary);
    color: black;
    border: 2px solid #000;
    padding: 15px;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.action-btn:active {
    transform: translateY(6px);
    box-shadow: none;
}

.verify-btn {
    background: #ff5e57;
    color: white;
}

/* --- SEARCH ANIMATION --- */
.search-animation-container {
    text-align: center;
    margin: 2rem 0;
}

.search-box-dummy {
    background: #1e2426;
    border: 2px solid #000;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.magnifying-glass {
    position: absolute;
    font-size: 3rem;
    top: -10px;
    left: 10px;
    animation: searchMove 2s infinite ease-in-out;
}

@keyframes searchMove {
    0% {
        left: 10px;
        transform: rotate(0deg);
    }

    50% {
        left: 80%;
        transform: rotate(20deg);
    }

    100% {
        left: 10px;
        transform: rotate(0deg);
    }
}

.search-status-text {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}


/* --- RESOURCE GRID --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Styling */
.resources-grid::-webkit-scrollbar {
    width: 5px;
}

.resources-grid::-webkit-scrollbar-track {
    background: #1e2426;
}

.resources-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.resource-card {
    background: #0f1519;
    /* Darker blue/black */
    border: 1px solid #2c3e50;
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    min-height: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 189, 46, 0.3);
}

.resource-card.rare {
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.resource-icon-large {
    font-size: 3.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.resource-title {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.resource-amount {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.resource-btn {
    background: white;
    color: black;
    border: none;
    padding: 8px 0;
    width: 100%;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.2s;
}

.resource-btn:hover {
    background: var(--primary);
}


/* --- GENERATION CONSOLE (Simplified to overlay or modal style) --- */
.generation-overlay {
    text-align: center;
}

.item-showcase {
    margin: 2rem 0;
}

.item-showcase-icon {
    font-size: 6rem;
    animation: pulse 1s infinite;
}

.console-logs {
    background: black;
    color: #00ff88;
    font-family: monospace;
    padding: 10px;
    border-radius: 5px;
    height: 150px;
    overflow: hidden;
    text-align: left;
    font-size: 0.85rem;
    border: 2px solid #333;
}

.console-line {
    margin-bottom: 2px;
}

/* --- ANIMATIONS --- */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}