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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.game-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 25px;
    background: #ecf0f1;
    border-radius: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
}

.game-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.garden {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.idea-plot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    min-height: 400px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #bdc3c7;
}

.idea {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
    word-break: break-word;
}

.idea.stage-1 {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    transform: scale(0.7);
}

.idea.stage-2 {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
    transform: scale(0.85);
}

.idea.stage-3 {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    transform: scale(1);
}

.idea.stage-4 {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.idea:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actions, .inventory {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.actions h3, .inventory h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.action-btn {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.4);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.automation-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background: #ecf0f1;
    color: #7f8c8d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.automation-btn:hover:not(:disabled) {
    border-color: #3498db;
    background: #e8f4ff;
}

.automation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.automation-btn.active {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border-color: #00b894;
}

.automation-btn.active:hover {
    background: linear-gradient(135deg, #00a085, #019875);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #555;
}

#modal-close {
    padding: 12px 30px;
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.4);
}

.harvested-idea {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 4px solid #00b894;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.notification.success {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.notification.warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.help-section {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.help-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
}

.help-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.help-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-content.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.help-content h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.help-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.help-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.help-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .game-main {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .idea-plot {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .idea {
        width: 100px;
        height: 100px;
        font-size: 0.75rem;
    }
    
    .help-content {
        width: 280px;
    }
    
    .notification {
        right: 10px;
        top: 10px;
        max-width: 250px;
    }
}