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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #f4d03f;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
    margin-bottom: 5px;
}

.subtitle {
    color: #95a5a6;
    font-size: 1rem;
    letter-spacing: 2px;
}

.game-info {
    margin-bottom: 20px;
}

.info-panel {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.label {
    color: #95a5a6;
    font-size: 0.9rem;
}

.value {
    color: #f4d03f;
    font-size: 1.2rem;
    font-weight: bold;
}

.game-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.game-board {
    flex: 0 0 500px;
    height: 500px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 5px;
}

.cell {
    background: rgba(52, 73, 94, 0.8);
    border: 2px solid rgba(149, 165, 166, 0.3);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.cell:hover {
    border-color: rgba(244, 208, 63, 0.5);
    transform: scale(1.05);
}

.cell.player {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.cell.evidence {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
}

.cell.hint {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-color: #9b59b6;
}

.cell.suspect {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    border-color: #f39c12;
}

.cell.obstacle {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-color: #34495e;
    cursor: not-allowed;
}

.cell.visited {
    opacity: 0.6;
}

.side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.panel-section h3 {
    color: #f4d03f;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evidence-item {
    background: rgba(52, 152, 219, 0.2);
    padding: 8px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
    font-size: 0.9rem;
}

.empty-message {
    color: #95a5a6;
    font-size: 0.85rem;
    font-style: italic;
}

.suspect-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suspect {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(149, 165, 166, 0.2);
}

.suspect-name {
    font-weight: bold;
    color: #f4d03f;
    margin-bottom: 5px;
}

.suspect-info {
    font-size: 0.85rem;
    color: #95a5a6;
}

.deduce-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f4d03f 0%, #f39c12 100%);
    border: none;
    border-radius: 5px;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deduce-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.4);
}

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

.controls {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.controls p {
    color: #95a5a6;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.control-btn {
    padding: 10px 30px;
    background: rgba(52, 152, 219, 0.8);
    border: 2px solid #3498db;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #3498db;
    transform: translateY(-2px);
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: #f4d03f;
    margin-bottom: 20px;
    text-align: center;
}

#modal-body {
    margin-bottom: 20px;
    color: #e0e0e0;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

@media (max-width: 900px) {
    .game-container {
        flex-direction: column;
    }

    .game-board {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}
