@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Share+Tech+Mono&display=swap');

/* ========== VARIABLES ========== */
:root {
    --rust-orange: #B85C3F;
    --dark-rust: #8B4513;
    --steel-gray: #3C4043;
    --oil-black: #1A1A1D;
    --metal-shine: #C0C0C0;
    --warning-yellow: #FFB800;
    --grime-green: #556B2F;
    --success-green: #6B8E23;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: linear-gradient(135deg, #1A1A1D 0%, #2D2D30 100%);
    color: #C0C0C0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* ========== HEADER ========== */
.main-header {
    background: linear-gradient(180deg, #3C4043 0%, #2D2D30 100%);
    border: 3px solid var(--rust-orange);
    border-top: 6px solid var(--rust-orange);
    position: relative;
    box-shadow: 0 6px 0 rgba(0,0,0,0.5), inset 0 -2px 10px rgba(184,92,63,0.3);
    margin-bottom: 0;
    z-index: 700;
}

.header-content {
    padding: 25px;
    position: relative;
}

.header-decoration {
    position: absolute;
    top: 10px;
    font-size: 24px;
    color: var(--rust-orange);
}

.header-decoration:first-child {
    left: 10px;
}

.header-decoration:last-child {
    right: 10px;
}

h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5em;
    color: var(--rust-orange);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 rgba(255,255,255,0.1),
        0 0 20px rgba(184,92,63,0.5);
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9em;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(26,26,29,0.5);
    border-top: 2px solid var(--rust-orange);
    flex-wrap: wrap;
    gap: 15px;
}

.stats-bar .stat-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stats-bar .stat-label {
    color: #888;
    font-size: 0.9em;
}

.stats-bar .stat-value {
    color: var(--warning-yellow);
    font-weight: bold;
    font-size: 1.1em;
}

/* ========== NAVIGATION ========== */
.main-nav {
    background: var(--oil-black);
    border-bottom: 3px solid var(--rust-orange);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 0;
    position: relative;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    padding: 18px 35px;
    background: var(--steel-gray);
    border-right: 2px solid var(--oil-black);
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s;
    position: relative;
    z-index: 50;
}

.nav-link:first-child {
    border-left: none;
}

.nav-link:hover {
    background: #4A4D50;
    color: #AAA;
}

.nav-link.active {
    background: var(--rust-orange);
    color: #FFF;
    box-shadow: inset 0 -3px 0 var(--dark-rust);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--warning-yellow);
}

/* ========== NAVIGATION DROPDOWN ========== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .nav-link {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--oil-black);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.8);
    z-index: 200;
    border: 2px solid var(--rust-orange);
    margin-top: 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #C0C0C0;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    border-bottom: 1px solid var(--steel-gray);
    position: relative;
    z-index: 201;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--rust-orange);
    color: #FFF;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* ========== CONTAINER & PANELS ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
    position: relative;
    z-index: 1;
}

.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel {
    background: linear-gradient(135deg, #2D2D30 0%, #252528 100%);
    border: 2px solid var(--rust-orange);
    padding: 25px;
    position: relative;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.3);
    margin-bottom: 25px;
}

.panel::before,
.panel::after {
    content: '●';
    position: absolute;
    top: 8px;
    color: var(--rust-orange);
    font-size: 8px;
}

.panel::before {
    left: 8px;
}

.panel::after {
    right: 8px;
}

.panel-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2em;
    color: var(--warning-yellow);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--rust-orange);
    padding-bottom: 10px;
}

/* ========== STAT BARS ========== */
.stat-bar {
    margin-bottom: 15px;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.stat-value {
    color: var(--warning-yellow);
    font-weight: bold;
}

.bar-container {
    height: 24px;
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
    background: linear-gradient(90deg, var(--grime-green) 0%, var(--success-green) 100%);
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.3);
}

.bar-fill.food {
    background: linear-gradient(90deg, var(--dark-rust) 0%, var(--rust-orange) 100%);
}

.bar-fill.fuel {
    background: linear-gradient(90deg, var(--warning-yellow) 0%, #FFA500 100%);
}

.bar-fill.stamina {
    background: linear-gradient(90deg, #4169E1 0%, #6495ED 100%);
}

.bar-fill.health {
    background: linear-gradient(90deg, #DC143C 0%, #FF6347 100%);
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
}

/* ========== CURRENCY & LEVEL ========== */
.currency-display {
    font-size: 2.5em;
    color: var(--warning-yellow);
    text-align: center;
    margin: 20px 0;
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 10px rgba(255,184,0,0.5);
}

.currency-symbol {
    color: var(--rust-orange);
}

.level-display {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8em;
    color: var(--warning-yellow);
    text-shadow: 0 0 10px rgba(255,184,0,0.3);
}

/* ========== BUTTONS ========== */
.action-btn,
.buy-btn,
.footer-btn,
.cta-button {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    padding: 15px 25px;
    background: linear-gradient(135deg, #3C4043 0%, #2D2D30 100%);
    border: 2px solid var(--rust-orange);
    color: #C0C0C0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.action-btn:hover,
.buy-btn:hover,
.footer-btn:hover,
.cta-button:hover {
    background: linear-gradient(135deg, #4A4D50 0%, #3A3A3D 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0,0,0,0.5), 0 0 20px rgba(184,92,63,0.3);
}

.action-btn:active,
.buy-btn:active,
.footer-btn:active,
.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.action-btn:disabled,
.buy-btn:disabled,
.buy-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.buy-btn {
    background: var(--rust-orange);
    color: #FFF;
    box-shadow: 0 3px 0 var(--dark-rust);
}

.buy-btn:hover {
    background: #C86D4F;
    box-shadow: 0 5px 0 var(--dark-rust);
}

.buy-btn:active {
    box-shadow: 0 2px 0 var(--dark-rust);
}

.footer-btn.danger {
    background: #8B0000;
    border-color: #660000;
}

.footer-btn.danger:hover {
    background: #A00000;
}

/* ========== MESSAGE LOG ========== */
.message-log {
    max-height: 200px;
    overflow-y: auto;
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    padding: 15px;
    font-size: 0.9em;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-left: 3px solid var(--rust-orange);
    padding-left: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.success { border-left-color: var(--success-green); color: #9ACD32; }
.message.warning { border-left-color: var(--warning-yellow); color: #FFA500; }
.message.error { border-left-color: var(--rust-orange); color: #FF6347; }
.message.info { border-left-color: var(--steel-gray); color: #888; }

/* ========== PROCESSING PAGE ========== */
.processing-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.processing-layout .full-width {
    grid-column: 1 / -1;
}

.processing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.processing-card {
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    padding: 20px;
    transition: all 0.2s;
}

.processing-card:hover {
    border-color: var(--rust-orange);
    background: #252528;
}

.processing-card.locked {
    opacity: 0.6;
}

.processing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.processing-header h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--warning-yellow);
    font-size: 1.4em;
}

.locked-badge {
    background: #555;
    padding: 4px 10px;
    font-size: 0.7em;
    border-radius: 3px;
    color: #AAA;
}

.processing-desc {
    font-size: 0.9em;
    color: #AAA;
    margin-bottom: 15px;
    line-height: 1.4;
}

.processing-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.85em;
}

.processing-stats .stat-item {
    display: flex;
    justify-content: space-between;
}

.processing-stats .label {
    color: #888;
}

.processing-stats .value {
    font-weight: bold;
}

.processing-stats .value.success {
    color: #9ACD32;
}

.processing-stats .value.warning {
    color: #FFA500;
}

.processing-card .action-btn {
    width: 100%;
}

.info-box {
    background: rgba(184,92,63,0.1);
    border: 1px solid var(--rust-orange);
    padding: 12px;
    margin-top: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

/* ========== SHOP PAGE ========== */
.shop-intro {
    background: var(--oil-black);
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid var(--steel-gray);
}

.money-display {
    text-align: center;
    font-size: 1.3em;
    margin-top: 15px;
    font-family: 'Rajdhani', sans-serif;
}

.money-amount {
    color: var(--warning-yellow);
    font-size: 1.5em;
    font-weight: bold;
}

.shop-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8em;
    color: var(--rust-orange);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-desc {
    color: #AAA;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.shop-item {
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    padding: 20px;
    transition: all 0.2s;
}

.shop-item:hover {
    border-color: var(--rust-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.shop-item.owned {
    border-color: var(--success-green);
    background: rgba(107,142,35,0.1);
}

.shop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.shop-item-header h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--warning-yellow);
    font-size: 1.3em;
}

.shop-item-cost {
    font-family: 'Rajdhani', sans-serif;
    color: var(--rust-orange);
    font-weight: bold;
    font-size: 1.2em;
}

.owned-badge {
    background: var(--success-green);
    color: #FFF;
    padding: 4px 12px;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-item-desc {
    font-size: 0.9em;
    color: #AAA;
    margin-bottom: 15px;
    line-height: 1.4;
}

.shop-item-effect {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.effect-badge {
    padding: 5px 12px;
    font-size: 0.8em;
    border-radius: 3px;
    font-weight: bold;
}

.effect-badge.food {
    background: rgba(184,92,63,0.3);
    border: 1px solid var(--rust-orange);
    color: #FF8C69;
}

.effect-badge.fuel {
    background: rgba(255,184,0,0.3);
    border: 1px solid var(--warning-yellow);
    color: #FFD700;
}

.effect-badge.stamina {
    background: rgba(65,105,225,0.3);
    border: 1px solid #4169E1;
    color: #6495ED;
}

.effect-badge.equipment {
    background: rgba(107,142,35,0.3);
    border: 1px solid var(--success-green);
    color: #9ACD32;
}

.shop-item .buy-btn {
    width: 100%;
}

.shop-teaser {
    background: rgba(184,92,63,0.1);
    border: 2px solid var(--rust-orange);
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #AAA;
}

/* ========== INVENTORY PAGE ========== */
.inventory-summary {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    margin-bottom: 25px;
}

.summary-stat {
    text-align: center;
}

.summary-label {
    display: block;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2em;
    color: var(--warning-yellow);
    font-weight: bold;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--rust-orange);
}

.tab {
    font-family: 'Rajdhani', sans-serif;
    padding: 12px 25px;
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    border-bottom: none;
    color: #888;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    font-size: 1.1em;
}

.tab.active {
    background: #2D2D30;
    border-color: var(--rust-orange);
    color: var(--warning-yellow);
}

.tab:hover:not(.active) {
    background: #252528;
    color: #AAA;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-header {
    margin-bottom: 20px;
}

.tab-header h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--warning-yellow);
    font-size: 1.5em;
    margin-bottom: 8px;
}

.tab-header p {
    color: #AAA;
    font-size: 0.95em;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.inventory-item:hover {
    border-color: var(--rust-orange);
    background: #252528;
}

.item-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.item-name {
    font-family: 'Rajdhani', sans-serif;
    color: var(--warning-yellow);
    margin-bottom: 8px;
    font-size: 1.2em;
}

.item-quantity,
.item-status {
    color: #888;
    font-size: 0.9em;
}

.item-status {
    color: var(--success-green);
}

.item-rarity {
    margin-top: 8px;
    padding: 4px 10px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.item-rarity.rarity-common { background: #555; }
.item-rarity.rarity-uncommon { background: var(--grime-green); }
.item-rarity.rarity-rare { background: #4169E1; }
.item-rarity.rarity-epic { background: #8B008B; }
.item-rarity.rarity-legendary { background: #FFD700; color: #000; }

.consume-btn {
    font-family: 'Rajdhani', sans-serif;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--success-green);
    border: 2px solid var(--grime-green);
    color: #FFF;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s;
    box-shadow: 0 3px 0 var(--grime-green);
    width: 100%;
}

.consume-btn:hover {
    background: #7BA428;
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--grime-green);
}

.consume-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--grime-green);
}

.consumable-item {
    display: flex;
    flex-direction: column;
}

.empty-inventory {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 5em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-inventory p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 0.95em;
    color: #888;
    margin-bottom: 20px;
}

.empty-link {
    display: inline-block;
    color: var(--rust-orange);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid var(--rust-orange);
    transition: all 0.2s;
}

.empty-link:hover {
    background: var(--rust-orange);
    color: #FFF;
}

.inventory-footer {
    margin-top: 30px;
    padding: 15px;
    background: rgba(184,92,63,0.1);
    border: 1px solid var(--rust-orange);
    font-size: 0.9em;
    line-height: 1.4;
}

/* ========== HOME PAGE ========== */
.splash-panel {
    max-width: 900px;
    margin: 0 auto;
}

.story-section {
    margin-bottom: 40px;
}

.story-section h2 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--rust-orange);
    font-size: 2em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.story-section p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #CCC;
    margin-bottom: 15px;
}

.note {
    background: rgba(255,184,0,0.1);
    border-left: 4px solid var(--warning-yellow);
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #E0E0E0;
    line-height: 1.6;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.instruction-card {
    background: var(--oil-black);
    border: 2px solid var(--steel-gray);
    padding: 25px;
    text-align: center;
    transition: all 0.2s;
}

.instruction-card:hover {
    border-color: var(--rust-orange);
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.instruction-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.instruction-card h3 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--warning-yellow);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.instruction-card p {
    font-size: 0.95em;
    color: #AAA;
    line-height: 1.5;
    margin: 0;
}

.feature-list {
    list-style: none;
    font-size: 1.1em;
    line-height: 2;
    color: #CCC;
}

.feature-list li {
    padding-left: 10px;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--rust-orange);
}

.cta-button {
    font-size: 1.5em;
    padding: 20px 50px;
    background: var(--rust-orange);
    border-color: var(--dark-rust);
    color: #FFF;
    box-shadow: 0 6px 0 var(--dark-rust);
}

.cta-button:hover {
    background: #C86D4F;
    box-shadow: 0 8px 0 var(--dark-rust), 0 0 30px rgba(184,92,63,0.5);
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--oil-black);
    border-top: 3px solid var(--rust-orange);
    padding: 25px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.footer-left {
    color: #888;
    flex: 1;
}

.footer-left p {
    margin-bottom: 5px;
}

.footer-quote {
    font-style: italic;
    font-size: 0.9em;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-legal-links {
    color: #888;
    font-size: 0.9em;
}

.footer-legal-links a {
    color: var(--rust-orange);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--warning-yellow);
}

.footer-legal-links .separator {
    margin: 0 10px;
    color: #666;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .processing-layout {
        grid-template-columns: 1fr;
    }
    
    .processing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-link {
        flex: 1 1 50%;
        text-align: center;
    }
    
    .stats-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
        align-items: center;
    }
    
    .footer-btn {
        width: 100%;
    }
}

    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

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

.feedback-popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: 4em;
    font-weight: bold;
    z-index: 600;
    animation: feedbackPop 1s ease-out forwards;
    pointer-events: none;
}

.feedback-popup.success {
    color: #9ACD32;
    text-shadow: 3px 3px 0 #000;
}

.feedback-popup.error {
    color: #FF6347;
    text-shadow: 3px 3px 0 #000;
}

@keyframes feedbackPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

.empty-progress {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0%;
    height: 8px;
    background: linear-gradient(90deg, var(--success-green), #9ACD32);
    border-radius: 4px;
    display: none;
    transition: width 0.05s linear;
}
/* JUNKPILE GAME - COMPLETE REWRITE WITH EXACT POSITIONS */

.game-area {
    position: relative;
    width: 1024px;
    height: 650px;
    overflow: hidden;
    border: 3px solid var(--rust-orange);
    background: #2D2D30;
    margin: 0 auto;
}

.game-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Conveyor - sits at the VERY BOTTOM */

/* ========================================
   JUNKPILE GAME STYLES
   ========================================
   All junkpile styles have been moved to:
   assets/css/junkpile.css
   
   DO NOT add junkpile styles here!
   Edit junkpile.css instead.
   ======================================== */

/* ========================================
   UNCLE JERRY IMAGE
   ======================================== */
.uncle-jerry-section {
    text-align: center;
    margin: 30px 0;
}

.uncle-jerry-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--rust-orange);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.jerry-caption {
    font-family: 'Rajdhani', sans-serif;
    color: #888;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9em;
}
