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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1400px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: linear-gradient(135deg, #0984e3 0%, #0652b8 100%);
    transform: scale(1.05);
}

.back-btn:active {
    transform: scale(0.95);
}

.header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.title-text {
    display: inline-block;
}

.byline {
    font-size: 0.45em;
    font-weight: normal;
    color: #636e72;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.4em;
    white-space: nowrap;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.3em;
    font-weight: bold;
    color: #2d3436;
    flex-wrap: wrap;
}

.vs-rate {
    font-size: 0.75em;
    color: #fdcb6e;
    font-weight: normal;
}

.game-info {
    text-align: center;
    margin-bottom: 20px;
    color: #636e72;
    font-size: 1.1em;
}

.tutorial-tips {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tip {
    font-size: 0.85em;
    color: #2d3436;
    background: #ffeaa7;
    padding: 5px 12px;
    border-radius: 15px;
    border: 2px solid #fdcb6e;
    font-weight: 500;
}

.game-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Businesses Section */
.businesses-section {
    background: #f8f9fa;
    border-radius: 15px;
    border: 4px solid #2d3436;
    padding: 20px;
}

.businesses-section h2 {
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
}

.business-card {
    background: white;
    border: 3px solid #2d3436;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.business-card:hover {
    transform: translateX(5px);
}

.business-card.void-business {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 4px solid #2d3436;
    box-shadow: 0 0 20px rgba(253, 203, 110, 0.5);
    animation: voidGlow 3s ease-in-out infinite;
}

@keyframes voidGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(253, 203, 110, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(253, 203, 110, 0.8);
    }
}

.business-card.void-business .business-name {
    color: #2d3436;
}

.business-card.void-business .business-desc {
    color: #636e72;
    font-weight: bold;
}

.void-stat {
    color: #fdcb6e !important;
    font-weight: bold;
}

.void-stat span {
    color: #ff9ff3 !important;
}

.void-hire-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%) !important;
    color: #2d3436 !important;
}

.void-hire-btn:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%) !important;
}

.business-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.business-icon {
    font-size: 3em;
    min-width: 60px;
    text-align: center;
}

.business-info {
    flex: 1;
}

.business-name {
    font-weight: bold;
    color: #2d3436;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.business-desc {
    font-size: 0.9em;
    color: #636e72;
}

.business-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.business-stats .stat {
    font-size: 0.9em;
    font-weight: bold;
    color: #2d3436;
}

.business-stats .stat span {
    color: #667eea;
}

.hire-btn {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    background: linear-gradient(135deg, #00b894 0%, #00a383 100%);
    color: white;
    border: 3px solid #2d3436;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hire-btn:hover {
    background: linear-gradient(135deg, #00a383 0%, #009874 100%);
    transform: scale(1.03);
}

.hire-btn:active {
    transform: scale(0.97);
}

.hire-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Upgrades Section */
.upgrades-section {
    background: #f8f9fa;
    border-radius: 15px;
    border: 4px solid #2d3436;
    padding: 20px;
}

.upgrades-section h2 {
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.upgrade-card {
    background: white;
    border: 3px solid #2d3436;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.upgrade-info {
    flex: 1;
    margin-bottom: 15px;
}

.upgrade-name {
    font-weight: bold;
    color: #2d3436;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.upgrade-desc {
    font-size: 0.85em;
    color: #636e72;
    margin-bottom: 8px;
    line-height: 1.4;
}

.upgrade-level {
    font-size: 0.9em;
    font-weight: bold;
    color: #667eea;
}

.upgrade-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid #2d3436;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.03);
}

.upgrade-btn:active {
    transform: scale(0.97);
}

.upgrade-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Void Science Section */
.void-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 10px;
    border: 3px solid #2d3436;
}

.void-section h3 {
    color: #2d3436;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-align: center;
}

.void-desc {
    font-size: 0.85em;
    color: #2d3436;
    margin-bottom: 15px;
    text-align: center;
}

.void-upgrade {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #2d3436;
    margin-bottom: 10px;
}

.void-upgrade-name {
    font-weight: bold;
    color: #2d3436;
    font-size: 1em;
    margin-bottom: 5px;
}

.void-upgrade-desc {
    font-size: 0.8em;
    color: #636e72;
    margin-bottom: 10px;
}

.void-btn {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.9em;
    background: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%);
    color: #2d3436;
    border: 2px solid #2d3436;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.void-btn:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    transform: scale(1.03);
}

.void-btn:active {
    transform: scale(0.97);
}

.void-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.void-btn.purchased {
    background: #dfe6e9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Stats Panel */
.stats-panel {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    border: 4px solid #2d3436;
    color: white;
    text-align: center;
}

.stats-panel h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.stat-item {
    display: inline-block;
    margin: 5px 20px;
    font-size: 1.1em;
    font-weight: bold;
}

.stat-item span {
    color: #ffeaa7;
}

.reset-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
    background: linear-gradient(135deg, #ee5a6f 0%, #d63031 100%);
    color: white;
    border: 3px solid #2d3436;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
    transform: scale(1.05);
}

.reset-btn:active {
    transform: scale(0.95);
}

/* Spacebar Indicator */
.spacebar-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #2d3436;
    padding: 15px 30px;
    border-radius: 30px;
    border: 3px solid #2d3436;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 1000;
    text-align: center;
}

.vs-goal {
    font-size: 0.7em;
    margin-top: 5px;
    color: #636e72;
    font-weight: normal;
}

.spacebar-indicator.pressed {
    animation: none;
    background: linear-gradient(135deg, #fdcb6e 0%, #ff9ff3 100%);
    transform: translateX(-50%) scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* Void Particle Effect */
.void-particle {
    position: fixed;
    font-size: 3em;
    pointer-events: none;
    animation: voidFloat 2s ease-out forwards;
    z-index: 999;
}

@keyframes voidFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(2) rotate(720deg);
    }
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .game-area {
        grid-template-columns: 1fr;
    }
    
    .upgrades-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .upgrades-section h2 {
        grid-column: 1 / -1;
    }
    
    .void-section {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .stats {
        gap: 20px;
        font-size: 1em;
    }
    
    .game-info {
        font-size: 0.9em;
    }
    
    .tutorial-tips {
        gap: 10px;
    }
    
    .tip {
        font-size: 0.75em;
        padding: 4px 10px;
    }
    
    .business-icon {
        font-size: 2.5em;
        min-width: 50px;
    }
    
    .business-name {
        font-size: 1.1em;
    }
    
    .upgrades-section {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        margin: 5px 10px;
        font-size: 0.9em;
    }
    
    .spacebar-indicator {
        font-size: 1em;
        padding: 12px 24px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .byline {
        display: none;
    }
    
    .stats {
        font-size: 0.9em;
        gap: 15px;
    }
    
    .business-header {
        flex-direction: column;
        text-align: center;
    }
    
    .business-icon {
        font-size: 3em;
    }
    
    .business-stats {
        grid-template-columns: 1fr;
    }
    
    .upgrade-icon {
        font-size: 2.5em;
    }
    
    .upgrade-name {
        font-size: 1.1em;
    }
    
    .spacebar-indicator {
        font-size: 0.9em;
        padding: 10px 20px;
        bottom: 20px;
    }
}
