body {

    background: #fbfbf9;

    color: #111;

    font-family: "Special Elite", monospace;

    margin: 0;

    padding: 30px;

    max-width: 1600px;

    margin-left: auto;

    margin-right: auto;

    font-size: 18px;
}



h1 {

    color: #7b2135;

    font-size: 3rem;

    margin-top: 0;

    margin-bottom: 30px;

    text-transform: uppercase;

}

h2 {

    color: #7b2135;

    text-transform: uppercase;

    letter-spacing: 3px;

}

.main-layout {

    display: flex;

    gap: 40px;

    align-items: flex-start;

}

.sidebar {

    width: 40%;

    min-width: 380px;

}

.grid-area {

    width: 60%;

}

.case-section {

    background: #f6f2e8;

    border: 4px solid #111;

    border-radius: 18px;

    padding: 42px;

    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.35);

}

.case-section ul,
.case-section ol {

    line-height: 2;

}

.master-board {

    display: flex;

    flex-direction: column;

    gap: 0;

}

.board-row {

    display: flex;

    align-items: flex-start;

    gap: 0;

}

.matrix {

    display: flex;

    flex-direction: column;

}

.matrix-row {

    display: flex;

}

.header-spacer,
.header-cell,
.row-label,
.grid-cell {

    width: 64px;

    height: 64px;

    border: 1px solid black;

    display: flex;

    justify-content: center;

    align-items: center;

    box-sizing: border-box;

    font-weight: bold;

    text-align: center;

    overflow: hidden;

}

.header-spacer,
.header-cell,
.row-label {

    background: #f5f1e8;

}

.grid-cell {

    background: white;

    cursor: pointer;

    user-select: none;

    transition: background-color 0.15s ease;

}

.grid-cell:hover {

    background: #f2efe8;

}

.cell-yes {

    background: #d8ead3;

}

.cell-no {

    background: #f4cccc;

}

.cell-player {
    outline: 2px solid lime;
}

.cell-solver {
    outline: 2px solid orange;
}


@media (max-width: 1200px) {

    .main-layout {

        flex-direction: column;

    }

    .sidebar {

        width: 100%;

        min-width: auto;

    }

    .grid-area {

        width: 100%;

    }

}


#accusation {

    width: fit-content;

    margin: 45px auto 0;

    padding: 24px;

    background: #f7f3eb;

    border: 5px solid black;

    border-radius: 22px;

}


.accusation-panel {

    display: flex;

    flex-direction: column;

    gap: 18px;

    width: 430px;

    max-width: 100%;

    margin: 0 auto;

}


.dropdown {

    position: relative;

    width: 100%;

}



.dropdown-button {

    width: 100%;

    padding: 18px 22px;

    border: 3px solid black;

    border-radius: 12px;

    background: #f7f3eb;

    color: #222;

    font: inherit;

    display: flex;

    justify-content: space-between;

    align-items: center;

    cursor: pointer;

    transition:
        background .15s,
        transform .15s;

}

.dropdown-button:hover {

    background: #eee7d8;

}

.dropdown-button.open .dropdown-arrow {

    transform: rotate(180deg);

}



.dropdown-text {

    flex: 1;

    text-align: left;

    font-weight: bold;

}



.dropdown-arrow {

    margin-left: 16px;

    font-size: .9rem;

    transition: transform .2s;

}


.dropdown-menu {

    display: none;

    position: absolute;

    top: calc(100% + 6px);

    left: 0;

    right: 0;

    background: #f7f3eb;

    border: 3px solid black;

    border-radius: 12px;

    overflow: hidden;

    z-index: 100;

}

.dropdown-menu.open {

    display: flex;

    flex-direction: column;

}



.dropdown-item {

    padding: 14px 18px;

    border: none;

    border-top: 1px solid #d8d2c7;

    background: transparent;

    color: #222;

    font: inherit;

    text-align: left;

    cursor: pointer;

    transition: background .15s;

}

.dropdown-item:first-child {

    border-top: none;

}

.dropdown-item:hover {

    background: #e8dfcf;

}



.accusation-panel > button {

    width: 100%;

    margin-top: 6px;

    padding: 18px;

    border: 3px solid black;

    border-radius: 12px;

    background: #7b2135;

    color: white;

    font: inherit;

    font-size: 1.15rem;

    font-weight: bold;

    cursor: pointer;

    transition: background .15s;

}

.accusation-panel > button:hover {

    background: #63192a;

}

#accusation-message {

    min-height: 1.5rem;

    margin-top: 1rem;

    text-align: center;

    font-weight: bold;

    opacity: 1;

}



.success {

    color: #1b6e3c;

    animation:
        successPop .35s ease;

}

@keyframes successPop {

    0% {

        transform: scale(.9);

    }

    60% {

        transform: scale(1.08);

    }

    100% {

        transform: scale(1);

    }

}

.error {

    color: #8b1d1d;

    animation:
        errorShake .3s ease;

}

@keyframes errorShake {

    0%   { transform: translateX(0); }

    25%  { transform: translateX(-4px); }

    50%  { transform: translateX(4px); }

    75%  { transform: translateX(-4px); }

    100% { transform: translateX(0); }

}


.warning {

    color: #c88b00;

    animation:
        warningPulse .35s ease;

}

@keyframes warningPulse {

    0% {

        transform: scale(.96);

    }

    50% {

        transform: scale(1.04);

    }

    100% {

        transform: scale(1);

    }

}





.hidden {

    display: none !important;

}


#end-screen {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(0,0,0,.45);

    z-index: 1000;

}


#case-file {

    width: 520px;

    max-width: 90vw;

    background: #f5f1e8;

    border: 5px solid black;

    border-radius: 18px;

    padding: 35px;

    text-align: center;

    box-shadow:
        0 18px 40px rgba(0,0,0,.35);

    animation:
        casePop .25s ease;

}


#case-file h2 {

    margin-top: 0;

    margin-bottom: 20px;

}


#end-message {

    margin-bottom: 25px;

    line-height: 1.8;

}


#end-details {

    margin-bottom: 30px;

    text-align: left;

    line-height: 2;

}


#end-button {

    width: 100%;

    padding: 16px;

    border: 3px solid black;

    border-radius: 12px;

    background: #7b2135;

    color: white;

    font: inherit;

    font-weight: bold;

    cursor: pointer;

}


#end-button:hover {

    background: #63192a;

}


@keyframes casePop {

    from {

        opacity: 0;

        transform:
            scale(.9);

    }

    to {

        opacity: 1;

        transform:
            scale(1);

    }

}



#case-file-panel {

    padding: 28px;

}

/* ---------- HEADER ---------- */

#case-file-header {

    text-align: center;

    padding-bottom: 34px;

    margin-bottom: 42px;

    border-bottom: 3px solid #111;

}

#case-file-header h2 {

    margin: 0;

    font-size: 3rem;

    color: #7b2135;

    letter-spacing: 10px;

}


#case-file-number {

    margin: 18px 0;

    font-size: 2.7rem;

    color: #7b2135;

    font-weight: bold;

    letter-spacing: 7px;

}

#case-title {

    margin: 0;

    font-size: 2.15rem;

    line-height: 1.25;

    text-transform: uppercase;

}

/* ---------- CASE META ---------- */

#case-meta {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 35px;

    margin-top: 34px;

    padding-top: 24px;

    border-top: 2px dashed rgba(0,0,0,.25);

}

#case-meta strong {

    display: block;

    margin-bottom: 8px;

    color: #7b2135;

    text-transform: uppercase;

    letter-spacing: 3px;

    font-size: .85rem;

}

#case-victim,
#case-status-line {

    font-size: 1.1rem;

    line-height: 1.8;

}

#case-status-line {

    text-align: right;

}

/* ---------- DOSSIER CONTENT ---------- */

#case-file-content {

    display: flex;

    flex-direction: column;

    gap: 42px;

}
.case-heading {

    display: flex;

    align-items: center;

    gap: 18px;

    margin: 0 0 24px;

    color: #7b2135;

    font-size: 1.3rem;

    letter-spacing: 5px;

    text-transform: uppercase;

}

.case-heading::after {

    content: "";

    flex: 1;

    height: 2px;

    background: rgba(0,0,0,.25);

}
#incident-section {

    line-height: 2;

    text-align: justify;

}

#incident-section p {

    margin: 0;

    text-indent: 2rem;

}
#interviews-section {

    line-height: 1.9;

}
#interviews-section strong {

    display: block;

    margin-top: 30px;

    margin-bottom: 6px;

    color: #7b2135;

    font-size: 1.05rem;

    letter-spacing: 2px;

}

#interviews-section strong::after {

    content: "";

    display: block;

    width: 70px;

    height: 2px;

    background: rgba(0,0,0,.25);

    margin-top: 6px;

}
#interviews-section p {

    margin: 0;

    padding-left: 20px;

    font-style: italic;

}

#case-file-content ol,
#case-file-content ul {

    margin: 0;

    padding-left: 26px;

    line-height: 2;

}

#categories {

    display: flex;

    flex-direction: column;

    gap: 28px;

}
#categories ul {

    margin: 0;

    padding-left: 24px;

    line-height: 1.9;

}
#categories li {

    margin-bottom: 8px;

}
#categories .case-heading {

    margin-top: 36px;

    border-top: 1px dashed rgba(0,0,0,.25);

}


#clues {
    counter-reset: item;

    margin: 0;

    padding-left: 0;

    list-style: none;

}


#clues li {

    position: relative;

    padding-left: 70px;

    margin-bottom: 22px;

    line-height: 1.9;

}

#clues li::before {

    content: "E-" counter(item, decimal-leading-zero);

    counter-increment: item;

    position: absolute;

    left: 0;

    top: 0;

    color: #7b2135;

    font-weight: bold;

    letter-spacing: 2px;

}

/* ---------- FUTURE STAMP ---------- */

#case-stamp {

    display: none;

}

.case-report {

    background: rgba(255,255,255,.35);

    border-left: 4px solid #7b2135;

    padding: 16px 20px;

    border-radius: 4px;

    line-height: 1.8;

}

.case-section {

    font-size: 1.05rem;

}