.case-game-container {
  padding-bottom: var(--section-padding);
}

.game-nav-section {
  padding: 40px 0 20px 0;
}

.game-nav-buttons {
  display: flex;
  justify-content: space-around;
  gap: 25px;
  flex-wrap: wrap;
}

.game-nav-buttons .btn-task {
  min-width: 240px;
  text-align: center;
  padding: 20px;
}



.task-card-paper {
  background-color: var(--color-beige);
  color: var(--color-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  max-width: 1000px;
  position: relative;
  padding: 25px;
    display: flex;
  flex-direction: column;
  gap: 25px;
}

.task-heading {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--color-dark);
  text-align: center;
  line-height: 1.2;
}

.task-heading span {
  font-size: 22px;
    line-height: 1.2;
  font-weight: 400;
  display: block;
  margin-top: 8px;
}

/* Двухколоночный список документов */
.docs-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}
.btn {
    min-width: 230px;
}
@media (max-width: 768px) {
  .docs-two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .game-nav-buttons {
  flex-direction: column;
  align-items: center;
}
}

.docs-column {
  display: flex;
  flex-direction: column;
}


.answer-label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.25;
  color: var(--color-dark);
}

.answer-label span {
  line-height: 1.2;
}

.answer-label input[type='radio'],
.answer-label input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  border: 1px solid var(--color-gold, #d4af37);
  background-color: transparent;
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* Выбранное состояние: золотая рамка и центрированная галочка */
.answer-label input[type='radio']:checked,
.answer-label input[type='checkbox']:checked {
  border-color: var(--color-gold, #d4af37);
  background-image: url('/include/images/galka-bl.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px 18px;
  background-color: transparent;
}

/* Состояния валидации */
.answer-label.is-incorrect {
  cursor: not-allowed;
  opacity: 0.65;
}

.answer-label.is-incorrect span {
  text-decoration: line-through;
}

.answer-label.is-incorrect input[type='radio'].is-incorrect,
.answer-label.is-incorrect input[type='checkbox'].is-incorrect {
  background-image: url('/include/images/krest.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 24px 24px !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: not-allowed !important;
}

.answer-label.is-correct input[type='radio'].is-correct,
.answer-label.is-correct input[type='checkbox'].is-correct {
  background-image: url('/include/images/sucsses.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 24px 24px !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: default !important;
}


.suspects-wrapper {
  background-color: var(--color-beige);
  padding: 40px 30px;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--color-dark);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.suspects-wrapper .task-heading {
  color: var(--color-dark);
}

.suspects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}


.tasks-screen,
.prompt-screen,
.fail-screen,
.true-screen {
  display: none;
}

.status-box {
  background-color: var(--color-beige);
  color: var(--color-dark);
  padding: 40px 30px;
  max-width: 650px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.status-box h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 30px;
  color: var(--color-dark);
}

.game-btn-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.true-message-card {
  background-color: var(--color-beige);
  color: var(--color-dark);
  padding: 40px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.true-message-card p{
  line-height: 1.5;

}

.font-bold {
  font-weight: 700;
}
.final-offer-title {
  font-weight: 700;
}
.final-steps-list {
  list-style: disc;
  padding-left: 20px;
}
.final-steps-list li {
  line-height: 1.5;
}

.submit-wrapper {
  display: flex;
  justify-content: center;
}


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

.modal-content {
  background-color: #eee8de;
  color: var(--color-dark);
  padding: 35px 30px;
  width: calc(100% - (2 * var(--container-padding, 20px)));
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  align-items: center;
  gap: 20px;
  text-align: center;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 16px;
}

.modal-close:hover {
  color: var(--color-red);
}

.modal-title {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  width: 100%;
  line-height: 1.4;
  margin: 0;
  color: var(--color-dark);
}
.modal-error, .modal-error .modal-title  {
  font-size: 30px;
}
.modal-error .modal-content{
  gap: 10px;
}

.modal-content p {
  line-height: 1.5;
  color: var(--color-dark);
  margin: 0;
}

/* Поле ввода кода в модалке */
.code-input {
  display: block;
  margin: 10px auto;
  background-color: #ffffff;
  border: none;
box-shadow: 1px 1px 1px 0px #2F232380 inset;

  text-align: center;
  font-size: 32px;
  width: 180px;
  padding: 10px;
  letter-spacing: 8px;
  font-weight: 700;
  color: var(--color-dark);
  font-family: var(--font-main);
  outline: none;
}

.code-input:focus {
  border-color: var(--color-red);
}

@media (max-width: 575px) {
  .modal-content p {
    font-size: 16px;
  }
}
