/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf2 100%);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}
 
/* Layout */
.game-wrapper {
    display: flex;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    gap: 25px;
    padding: 20px;
}
 
.panel-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
 
.panel-section:hover {
    transform: translateY(-2px);
}
 
.left-panel, .right-panel {
    width: 320px;
    height: fit-content;
}
 
.center-panel {
    flex-grow: 1;
    text-align: center;
    max-width: 900px;
}
 
/* Typography */
.section-title {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8ecf2;
    position: relative;
}
 
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}
 
/* Game Container */
.game-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
 
canvas {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}
 
canvas:hover {
    transform: scale(1.01);
}
 
/* Shop Styles */
.shop-container {
    background: white;
}
 
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
 
.shop-item {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf2;
}
 
.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.1);
}
 
.upgrade-info {
    margin-top: 10px;
}
 
/* Buttons */
button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    width: 100%;
}
 
button:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
 
button:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
 
/* Money Display */
.money-display {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
 
/* Statistics */
.stats-grid {
    display: grid;
    gap: 15px;
}
 
.stat-item {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e8ecf2;
}
 
.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}
 
.stat-value {
    font-weight: bold;
    color: #2c3e50;
}
 
/* Achievements */
.achievements-grid {
    display: grid;
    gap: 15px;
}
 
.achievement {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf2;
}
 
.achievement:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
 
/* Instructions */
.instructions {
    max-width: 1000px;
    margin: 30px auto;
}
 
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}
 
.instruction-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
 
.instruction-section ul {
    list-style-type: none;
    padding: 0;
}
 
.instruction-section li {
    padding: 10px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
 
.instruction-section li:hover {
    transform: translateX(5px);
    background: #e8ecf2;
}
 
/* Animations */
@keyframes pointsFloat {
    0% { 
        transform: translateY(0);
        opacity: 1;
    }
    100% { 
        transform: translateY(-50px);
        opacity: 0;
    }
}
 
.points-animation {
    position: absolute;
    color: #f1c40f;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    animation: pointsFloat 1s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
 
/* Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}
 
/* Responsive Design */
@media (max-width: 1200px) {
    .game-wrapper {
        flex-direction: column;
        align-items: center;
    }
 
    .left-panel, .right-panel {
        width: 100%;
        max-width: 600px;
    }
}
 
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
 
    .shop-grid {
        grid-template-columns: 1fr;
    }
 
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}
