* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: #0a0a0a;
    background-image: radial-gradient(circle at 20% 30%, #1e1e1e 0%, #030303 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dossier-container {
    max-width: 800px;
    width: 100%;
    background: #141414;
    border: 2px solid #3e2e1f;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(100,60,20,0.2);
    padding: 30px;
    color: #c0b8a8;
    position: relative;
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px double #8b5a2b;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
    letter-spacing: 8px;
    color: #b88a4b;
    text-shadow: 0 0 5px #3a2a1a;
    font-weight: normal;
}

.stamp {
    background: #4a1e1e;
    color: #9e6b3e;
    border: 2px solid #9e6b3e;
    padding: 5px 15px;
    font-size: 20px;
    font-weight: bold;
    transform: rotate(3deg);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(180, 100, 30, 0.5);
}

.lead {
    font-size: 18px;
    margin-bottom: 30px;
    color: #a0927a;
    border-left: 4px solid #5e3a1c;
    padding-left: 15px;
    font-style: italic;
}

/* Подсказки */
.hints-container {
    margin-bottom: 40px;
}

.hint-item {
    margin-bottom: 15px;
    border: 1px solid #3e2e1f;
    background: #1f1a14;
    border-radius: 0;
    overflow: hidden;
}

.hint-header {
    background: #2b1f14;
    color: #c8a87c;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    border-left: 4px solid #7a4d2b;
}

.hint-header:hover {
    background: #3f2e1e;
    color: #e5c8a0;
}

.hint-header .icon {
    font-size: 22px;
    color: #b87c4b;
}

.hint-content {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background: #1c1712;
    color: #b8aa92;
    border-top: 0 solid #7a4d2b;
}

.hint-item.open .hint-content {
    max-height: 300px;
    padding: 15px 20px;
    border-top-width: 2px;
}

.hint-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

.answer-button {
    background: #3b281b;
    color: #b88a4b;
    border: 1px solid #7a4d2b;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-family: inherit;
}

.answer-button:hover {
    background: #5a3c26;
    color: #ffdaa0;
    border-color: #b88a4b;
}

/* Блок проверки */
.verdict-box {
    background: #1a130e;
    padding: 25px;
    border: 2px solid #4e3a28;
    box-shadow: inset 0 0 30px #000000;
}

.verdict-box h2 {
    color: #b88a4b;
    margin-bottom: 20px;
    font-size: 24px;
    letter-spacing: 2px;
    border-bottom: 1px dashed #6a4f38;
    padding-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#killer-input {
    flex: 1;
    padding: 12px 15px;
    background: #2a1f16;
    border: 2px solid #5e3a1c;
    color: #ddccb0;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    outline: none;
    transition: border-color 0.3s;
}

#killer-input:focus {
    border-color: #b88a4b;
}

#check-btn {
    background: #4e3a28;
    color: #efdbb0;
    border: 2px solid #8b5a2b;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

#check-btn:hover {
    background: #6d4f33;
    border-color: #c9a063;
    color: #ffffff;
}

.message {
    font-size: 16px;
    padding: 12px;
    margin: 20px 0 10px;
    border-left: 6px solid;
    display: none;
}

.message.error {
    background: #2e1a1a;
    color: #f5b5b5;
    border-left-color: #b33;
    display: block;
}

.message.success {
    background: #1e3a1e;
    color: #c0f0c0;
    border-left-color: #3a3;
    display: block;
}

.confession {
    background: #0f0f0f;
    border: 2px solid #8b5a2b;
    padding: 20px;
    margin-top: 25px;
    color: #b8a88c;
    border-radius: 0;
}

.confession h3 {
    color: #b88a4b;
    margin-bottom: 15px;
    font-size: 22px;
}

.hidden {
    display: none;
}
/* === Мобильная адаптация === */
@media (max-width: 600px) {
    .dossier-container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .stamp {
        font-size: 14px;
        padding: 3px 10px;
    }

    .lead {
        font-size: 16px;
    }

    .hint-header {
        font-size: 16px;
        padding: 12px 15px;
    }

    .input-group {
        flex-direction: column;
    }

    #check-btn {
        width: 100%;
    }

    .verdict-box h2 {
        font-size: 20px;
    }

    .confession {
        padding: 15px;
    }
}

/* Для совсем маленьких экранов (до 400px) */
@media (max-width: 400px) {
    .dossier-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .stamp {
        align-self: flex-end;
    }

    h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }
}
.confession {
    white-space: pre-line;  /* сохраняет переносы строк */
    text-align: justify;
}