* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: linear-gradient(145deg, #f5edff, #e3d5fc);
    min-height: 100vh;
    padding: 1rem 1rem 5.5rem;
}
.container {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    contain: layout style;
}
h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #2e1065, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 0.5rem;
}
.sub {
    text-align: center;
    color: #4c1d95;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.stats {
    background: #fff;
    border-radius: 1.5rem;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd0ff;
    min-height: 68px;
}
.guilty-badge {
    background: #f3eaff;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
}
.progress-bar {
    flex: 2;
    min-width: 150px;
}
.progress-bg {
    background: #e9ddfa;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    background: linear-gradient(90deg, #a78bfa, #6d28d9);
    width: 0%;
    height: 100%;
    transition: width 0.2s;
}

/* MIDDLE CALCULATE BUTTON */
.middle-calc-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1.2rem 0;
}
.middle-calc-wrapper .btn-calc {
    min-width: 200px;
    padding: 0.8rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 60px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.middle-calc-wrapper .btn-calc:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.middle-calc-wrapper .btn-calc:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.7rem;
    margin: 1rem 0;
    min-height: 75vh;
}
.question-card {
    background: #fff;
    border-radius: 1rem;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ede9fe;
}
.question-card:hover {
    background: #faf5ff;
    border-color: #c4b0fd;
}
.q-num {
    background: #e9defa;
    color: #4a2a7a;
    font-weight: bold;
    font-size: 0.7rem;
    min-width: 32px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    flex-shrink: 0;
}
.q-check {
    width: 24px;
    height: 24px;
    accent-color: #8b5cf6;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 6px;
}
.q-check:checked {
    filter: drop-shadow(0 0 4px #a855f7);
    accent-color: #a855f7;
}
.q-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1e1a2f;
    flex: 1;
    cursor: pointer;
}
.q-text:hover {
    color: #5b21b6;
}
.question-card:has(.q-check:checked) {
    background: #f9f5ff;
    border-left: 4px solid #a855f7;
}
.q-check:checked + .q-text {
    text-decoration: line-through;
    opacity: 0.75;
}

/* MODAL - updated with bold Innocence Score */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}
.modal.active {
    visibility: visible;
    opacity: 1;
}
.modal-card {
    background: #fff;
    max-width: 360px;
    width: 85%;
    border-radius: 2rem;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
}
.result-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    z-index: 10;
}
.result-modal-close:hover {
    color: #1e1a2f;
}
.score-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4a3b6e;
    margin-bottom: 0.2rem;
}
.score-label strong {
    font-weight: 700;
}
#modalScore {
    font-size: 5rem;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
    margin: 0.1em 0 0.15em;
}
#modalTitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d1b4e;
    margin-bottom: 0.3rem;
}
.guilty-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}
#modalDesc {
    font-size: 0.85rem;
    color: #4a3b6e;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    line-height: 1.4;
}
.modal-close {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 0.6em 2em;
    border-radius: 2em;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #d9caf0;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 1000;
}
.btn {
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    min-width: 130px;
}
.btn-reset {
    background: #f3e8ff;
    color: #4c1d95;
    border: 1px solid #cbb9ff;
}
.btn-calc {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}
.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.float-nav {
    position: fixed;
    right: 15px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1050;
}
.float-btn {
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #cbb9ff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #5b21b6;
}
.float-btn:hover {
    background: #f0e9ff;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}
.main-nav a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.main-nav a:hover {
    color: #a855f7;
    text-decoration: underline;
}
.main-nav a.active-link {
    color: #2e1065;
}
.site-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ddd0ff;
    text-align: center;
    font-size: 0.85rem;
    color: #3b2a5c;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
}
.footer-links a:hover {
    color: #a855f7;
    text-decoration: underline;
}
.footer-copy {
    font-size: 0.75rem;
    opacity: 0.75;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .btn {
        padding: 0.6rem 1rem;
        min-width: 110px;
    }
    .q-check {
        width: 22px;
        height: 22px;
    }
    .footer-links {
        gap: 1rem;
    }
    .main-nav {
        gap: 1rem;
    }
    .main-nav a {
        font-size: 0.8rem;
    }
    .questions-grid {
        min-height: 70vh;
    }
    #modalScore {
        font-size: 3.8rem;
    }
    .middle-calc-wrapper .btn-calc {
        min-width: 160px;
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}