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

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

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
}

/* Header */
.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.game-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    font-weight: bold;
    color: #495057;
}

.stat-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
}

.stress-container {
    flex: 1;
    max-width: 300px;
}

.stress-bar-bg {
    flex: 1;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.stress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 12px;
}

/* Game Area */
.game-area {
    min-height: 500px;
    position: relative;
}

.screen {
    padding: 40px;
    text-align: center;
}

.screen.hidden {
    display: none;
}

.screen h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.screen p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.instructions {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 30px 0;
}

.instructions li {
    font-size: 1.1em;
    padding: 10px 20px;
    margin: 10px 0;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Playing Screen */
.issues-container {
    min-height: 400px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.issue-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    animation: slideIn 0.3s ease;
}

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

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.issue-card.clicked {
    animation: popOut 0.3s ease;
}

@keyframes popOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.issue-dept {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.issue-text {
    color: #333;
    font-size: 1em;
    line-height: 1.4;
}

/* Department Colors */
.dept-dev {
    border-color: #007bff;
}
.dept-dev .issue-dept {
    color: #007bff;
}

.dept-sales {
    border-color: #28a745;
}
.dept-sales .issue-dept {
    color: #28a745;
}

.dept-hr {
    border-color: #dc3545;
}
.dept-hr .issue-dept {
    color: #dc3545;
}

.dept-marketing {
    border-color: #ffc107;
}
.dept-marketing .issue-dept {
    color: #e6a800;
}

.dept-cs {
    border-color: #6f42c1;
}
.dept-cs .issue-dept {
    color: #6f42c1;
}

/* Result Screens */
.result-message {
    font-size: 1.3em;
    margin: 20px 0;
}

.final-score {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin: 30px 0;
}

/* Footer */
.game-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-top: 2px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 1.8em;
    }

    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }

    .stress-container {
        max-width: 100%;
    }

    .issue-card {
        max-width: 100%;
    }
}
