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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white; 
    min-height: 100vh;
    padding: 2rem;
    color: rgb(0, 0, 0);
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-title h1 {
    font-size: 3rem;
    font-weight: bold;
}

.scale-icon {
    width: 3rem;
    height: 3rem;
    color: #fbbf24;
}

.subtitle {
    font-size: 1.25rem;
    color: #737373;
    margin-bottom: 0.5rem;
}

.instruction {
    font-size: 1.1rem;
    color: #737373;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    align-items: start;
    
}

.case-card {
    display: flex;
    flex-direction: column;
    align-self: start;
    background: #cfd8e9;
    border-radius: 0.5rem;
    border: 2px solid #475569;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.case-card:hover {
    border-color: #fbbf24;
}

.case-button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #4a1486;
    flex-shrink: 0;
    min-height: 220px;
}

.case-button:hover:not(:disabled) {
    background: #cfd8e9;
}

.case-button:active:not(:disabled) {
    transform: scale(0.95);
}

.case-button:disabled {
    cursor: default;
}

.case-icon {
    height: 0.2rem;
    margin: 0 auto;
    transition: color 0.3s ease;
}


.case-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.case-counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a1486;
    margin-bottom: 0.5rem;
}

.case-label {
    font-size: 0.885remrem;
    color: #4a1486;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.375rem;
    background: #475569;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.click-hint {
    font-size: 0.885rem;
    color: #64748b;
}

.revelation {
    padding: 1rem;
    border-top: 2px solid;
    position: relative;
}

.revelation.jail {
    background: #01665e;   
}

.revelation.free {
    background: #4575b4;
}

.revelation-text {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.revelation.jail .revelation-text {
    color: #fecaca;
}

.revelation.free .revelation-text {
    color: #bbf7d0;
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.court-info {
    font-size: 0.888rem;
    color: #a7bdd9;
}

.pending-count {
    font-weight: bold;
    color: #fbbf24;
}

.reset-container {
    text-align: center;
    margin-top: 2rem;
}

.reset-button {
    background: #fbbf24;
    color: #1e293b;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.reset-button:hover {
    background: #f59e0b;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.know-more-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.know-more-btn:hover {
    background-color: #34495e;
}

.cnr-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.cnr-info {
    padding: 5px 20px;
    border-radius: 2px;
    font-size: 14px;
    flex: 1;
}

.cnr-info {
    color: #fdfdfd;
}

.legend {
    margin: 4px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}


.legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.legend-color.jail {
    background: #01665e;
}

.legend-color.free {
    background: #4575b4;
}



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

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}