/* ========================================
   ОСНОВНИ НАСТРОЙКИ
======================================== */

:root {
  --ink: #25211d;
  --dark-ink: #171411;
  --paper: #f7efd9;
  --paper-light: #fffaf0;
  --paper-dark: #e7d3a8;

  --board: #9a7455;
  --board-dark: #6c4f3a;

  --red: #9b2f2a;
  --red-dark: #6f1f1c;

  --green: #385d4b;
  --gold: #b98a36;

  --border: rgba(52, 39, 29, 0.2);
  --shadow:
    0 20px 50px
    rgba(40, 28, 20, 0.2);
}


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


html {
  scroll-behavior: smooth;
}


body {
  min-height: 100vh;

  color: var(--ink);

  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 255, 255, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 25%,
      rgba(255, 255, 255, 0.05),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      var(--board) 0%,
      var(--board-dark) 100%
    );

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


button,
input {
  font: inherit;
}


button {
  border: none;
}


button,
a {
  -webkit-tap-highlight-color: transparent;
}


[hidden] {
  display: none !important;
}


/* ========================================
   ЦЯЛО ПРИЛОЖЕНИЕ
======================================== */

.case-app {
  min-height: 100vh;
}


.case-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px;
}


/* ========================================
   ГОРНА ЛЕНТА
======================================== */

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  min-height: 76px;
  padding: 16px 34px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.14);

  background:
    rgba(30, 23, 18, 0.92);

  box-shadow:
    0 8px 25px
    rgba(0, 0, 0, 0.18);
}


.site-logo {
  color: #fff7e6;

  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.03em;
}


.case-header-info {
  display: flex;
  align-items: center;
  gap: 12px;

  color:
    rgba(255, 255, 255, 0.78);

  font-size: 14px;
}


.case-header-info strong {
  padding: 8px 13px;

  border:
    1px solid rgba(255, 255, 255, 0.18);

  border-radius: 999px;

  color: #fff7e6;

  background:
    rgba(255, 255, 255, 0.08);
}


/* ========================================
   ОБЩИ ЕКРАНИ
======================================== */

.case-screen {
  position: relative;

  width: 100%;

  border:
    1px solid rgba(69, 49, 32, 0.22);

  border-radius: 26px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 250, 238, 0.98),
      rgba(240, 222, 185, 0.98)
    );

  box-shadow: var(--shadow);

  overflow: hidden;
}


.case-label {
  margin-bottom: 12px;

  color: var(--red);

  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}


/* ========================================
   НАЧАЛЕН ЕКРАН
======================================== */

#intro-screen {
  padding: 48px;
}


#intro-screen::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0.2;

  background-image:
    linear-gradient(
      rgba(80, 60, 40, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(80, 60, 40, 0.04) 1px,
      transparent 1px
    );

  background-size:
    42px 42px;
}


.confidential-stamp {
  position: absolute;
  top: 28px;
  right: 36px;

  z-index: 2;

  padding: 12px 18px;

  border: 4px double var(--red);

  color: var(--red);

  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  transform: rotate(5deg);
}


.intro-layout {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(360px, 0.8fr);

  gap: 42px;
  align-items: stretch;
}


.intro-content {
  padding: 24px 8px 24px 4px;
}


.intro-content h1 {
  max-width: 780px;
  margin-bottom: 30px;

  color: var(--dark-ink);

  font-size:
    clamp(42px, 5vw, 72px);

  line-height: 1.02;
  letter-spacing: -0.055em;
}


.urgent-message {
  position: relative;

  max-width: 800px;
  padding: 30px;

  border:
    1px solid rgba(105, 69, 37, 0.25);

  border-radius: 8px;

  background: var(--paper-light);

  box-shadow:
    0 14px 30px
    rgba(65, 43, 28, 0.13);

  transform: rotate(-0.4deg);
}


.urgent-message::before {
  content: "";

  position: absolute;
  top: -9px;
  left: 50%;

  width: 130px;
  height: 24px;

  background:
    rgba(205, 184, 143, 0.68);

  transform:
    translateX(-50%)
    rotate(-2deg);
}


.urgent-label {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 5px;

  border-bottom:
    2px solid var(--red);

  color: var(--red);

  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.urgent-message p {
  margin-bottom: 14px;

  color: #44382e;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 18px;
  line-height: 1.7;
}


.urgent-message p:last-child {
  margin-bottom: 0;
}


/* ========================================
   ДОСИЕ С МИСИЯТА
======================================== */

.case-file-card {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 34px;

  border:
    2px solid rgba(67, 48, 33, 0.34);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #d9b985 0%,
      #c69c63 100%
    );

  box-shadow:
    0 18px 40px
    rgba(50, 32, 21, 0.2);
}


.case-file-card::before {
  content: "";

  position: absolute;
  top: 18px;
  left: -8px;

  width: 28px;
  height: 120px;

  border-radius:
    0 8px 8px 0;

  background:
    rgba(245, 236, 212, 0.85);
}


.file-number {
  display: inline-block;
  align-self: flex-start;

  margin-bottom: 24px;
  padding: 9px 13px;

  border:
    1px solid rgba(74, 48, 31, 0.3);

  border-radius: 5px;

  color: #493426;

  background:
    rgba(255, 249, 233, 0.66);

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.case-file-card h2 {
  margin-bottom: 20px;

  color: #2c2119;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 34px;
}


.mission-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-bottom: 26px;

  list-style: none;
}


.mission-list li {
  position: relative;

  padding-left: 30px;

  color: #3e3025;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}


.mission-list li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 20px;
  height: 20px;

  border-radius: 50%;

  color: #ffffff;
  background: var(--red);

  font-size: 11px;
  font-weight: 900;
}


.case-facts {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 28px;
}


.case-facts article {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-height: 88px;
  padding: 14px;

  border:
    1px solid rgba(83, 57, 37, 0.2);

  border-radius: 10px;

  background:
    rgba(255, 249, 232, 0.55);
}


.case-facts span {
  color: #715941;

  font-size: 12px;
  font-weight: 700;
}


.case-facts strong {
  color: #2e2118;

  font-size: 20px;
}


/* ========================================
   РЕГИСТРАЦИЯ НА ДЕТЕКТИВ
======================================== */

.detective-registration {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: auto;
  padding-top: 24px;

  border-top:
    1px dashed rgba(69, 46, 29, 0.35);
}


.detective-registration label {
  color: #3a2c22;

  font-size: 14px;
  font-weight: 900;
}


.detective-registration input {
  width: 100%;
  padding: 13px 15px;

  border:
    1px solid rgba(64, 45, 31, 0.3);

  border-radius: 9px;

  color: #30251d;
  background:
    rgba(255, 252, 241, 0.92);

  outline: none;
}


.detective-registration input:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 4px
    rgba(155, 47, 42, 0.12);
}


.primary-case-button {
  width: 100%;
  margin-top: 10px;
  padding: 15px 20px;

  border-radius: 10px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      var(--red),
      var(--red-dark)
    );

  box-shadow:
    0 12px 24px
    rgba(111, 31, 28, 0.23);

  font-weight: 900;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.primary-case-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 28px
    rgba(111, 31, 28, 0.3);
}


.registration-feedback {
  padding: 11px 13px;

  border:
    1px solid rgba(135, 45, 38, 0.25);

  border-radius: 8px;

  color: #812e28;
  background:
    rgba(255, 235, 228, 0.9);

  font-size: 13px;
  font-weight: 800;
}


/* ========================================
   ЦЕНТЪР НА РАЗСЛЕДВАНЕТО
======================================== */

#investigation-screen {
  padding: 42px;
}


.investigation-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;

  margin-bottom: 28px;
}


.investigation-heading h2 {
  margin-bottom: 10px;

  color: var(--dark-ink);

  font-size:
    clamp(34px, 4vw, 52px);

  letter-spacing: -0.04em;
}


.investigation-heading p {
  color: #645446;
  line-height: 1.65;
}


.investigation-status {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 150px;
  padding: 15px 18px;

  border:
    1px solid rgba(89, 62, 40, 0.2);

  border-radius: 12px;

  background:
    rgba(255, 250, 237, 0.82);
}


.investigation-status span {
  color: #776452;
  font-size: 12px;
  font-weight: 700;
}


.investigation-status strong {
  color: var(--red);
  font-size: 22px;
}


/* ========================================
   КОДОВ ЛИСТ
======================================== */

.code-sheet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  margin-bottom: 28px;
  padding: 22px 24px;

  border:
    2px dashed rgba(100, 67, 39, 0.35);

  border-radius: 14px;

  background:
    rgba(255, 249, 232, 0.84);
}


.code-sheet > span {
  color: #48372b;

  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.code-digits {
  display: flex;
  gap: 10px;
}


.code-digits strong {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 48px;
  height: 54px;

  border:
    2px solid rgba(54, 40, 29, 0.36);

  border-radius: 9px;

  color: var(--dark-ink);
  background: #fffdf5;

  font-size: 25px;
}


/* ========================================
   КАРТИ С ДОКАЗАТЕЛСТВА
======================================== */

.evidence-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 24px;
}


.evidence-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 210px;
  padding: 24px;

  border:
    1px solid rgba(74, 53, 37, 0.24);

  border-radius: 14px;

  text-align: left;

  background:
    linear-gradient(
      145deg,
      #fffaf0 0%,
      #ebd9b7 100%
    );

  box-shadow:
    0 12px 26px
    rgba(65, 43, 28, 0.1);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


.evidence-card::after {
  content: "";

  position: absolute;
  top: 16px;
  right: 18px;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 3px 6px
    rgba(67, 26, 22, 0.3);
}


.evidence-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(155, 47, 42, 0.55);

  box-shadow:
    0 18px 34px
    rgba(65, 43, 28, 0.16);
}


.evidence-number {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 5px;

  border-bottom:
    2px solid var(--red);

  color: var(--red);

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.evidence-card h3 {
  margin-bottom: 10px;

  color: #2b211a;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 25px;
}


.evidence-card p {
  max-width: 420px;
  margin-bottom: 22px;

  color: #655344;

  line-height: 1.55;
}


.evidence-status {
  margin-top: auto;
  padding: 8px 12px;

  border-radius: 999px;

  color: #735e4a;
  background:
    rgba(108, 81, 57, 0.1);

  font-size: 12px;
  font-weight: 900;
}


/* Бъдещ клас при решена задача */

.evidence-card.solved {
  border-color:
    rgba(56, 93, 75, 0.55);

  background:
    linear-gradient(
      145deg,
      #f5fbf7 0%,
      #dbe9df 100%
    );
}


.evidence-card.solved::after {
  background: var(--green);
}


.evidence-card.solved
.evidence-status {
  color: #2f5b46;
  background:
    rgba(56, 93, 75, 0.13);
}


/* ========================================
   ИНСТРУМЕНТИ
======================================== */

.investigation-tools {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 160px;
  padding: 24px;

  border:
    1px solid rgba(69, 49, 34, 0.24);

  border-radius: 14px;

  text-align: left;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}


.tool-card:hover:not(:disabled) {
  transform: translateY(-3px);
}


.tool-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}


.safe-card {
  color: #fff7e7;

  background:
    linear-gradient(
      135deg,
      #332a23,
      #181411
    );
}


.notebook-card {
  color: #33281f;

  background:
    linear-gradient(
      145deg,
      #efd9aa,
      #d0aa6f
    );
}


.tool-label {
  display: inline-block;
  margin-bottom: 16px;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}


.safe-card .tool-label {
  color: #d7b465;
}


.notebook-card .tool-label {
  color: var(--red);
}


.tool-card h3 {
  margin-bottom: 9px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 27px;
}


.tool-card p {
  line-height: 1.5;
}


.safe-card p {
  color:
    rgba(255, 247, 231, 0.7);
}


.notebook-card p {
  color: #66513f;
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1050px) {
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .case-file-card {
    max-width: 760px;
  }

  .confidential-stamp {
    position: static;

    display: inline-block;
    margin-bottom: 22px;
  }
}


@media (max-width: 760px) {
  .case-header {
    align-items: flex-start;
    flex-direction: column;

    padding: 16px 20px;
  }

  .case-main {
    padding: 18px;
  }

  #intro-screen,
  #investigation-screen {
    padding: 24px;
  }

  .intro-content h1 {
    font-size: 40px;
  }

  .case-file-card {
    padding: 24px;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .investigation-heading {
    flex-direction: column;
  }

  .investigation-status {
    width: 100%;
  }

  .code-sheet {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-grid,
  .investigation-tools {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {
  #intro-screen,
  #investigation-screen {
    padding: 18px;
  }

  .intro-content h1 {
    font-size: 34px;
  }

  .urgent-message {
    padding: 22px;
  }

  .code-digits strong {
    width: 42px;
    height: 48px;
  }
}
/* ========================================
   ДОКАЗАТЕЛСТВО №1 – ПЛАН НА МУЗЕЯ
======================================== */

.evidence-screen {
  padding: 40px;
}


/* Горна част */

.evidence-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 34px;
}

.back-to-investigation-button {
  padding: 11px 16px;

  border: 1px solid rgba(72, 50, 34, 0.24);
  border-radius: 9px;

  color: #49382b;
  background: rgba(255, 250, 237, 0.86);

  font-weight: 800;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.back-to-investigation-button:hover {
  transform: translateX(-3px);
  background: #fffaf0;
}

.evidence-case-number {
  padding: 10px 15px;

  border: 3px double var(--red);

  color: var(--red);
  background: rgba(255, 249, 232, 0.65);

  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  transform: rotate(2deg);
}


/* Заглавие */

.evidence-title-section {
  max-width: 850px;
  margin-bottom: 30px;
}

.evidence-title-section h2 {
  margin-bottom: 12px;

  color: var(--dark-ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(36px, 5vw, 58px);

  letter-spacing: -0.04em;
}

.evidence-title-section > p:last-child {
  color: #665546;

  font-size: 17px;
  line-height: 1.7;
}


/* Основна подредба */

.evidence-one-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(330px, 0.75fr);

  gap: 24px;
  align-items: start;
}


/* Карта на музея */

.museum-map-card,
.evidence-task-card {
  padding: 26px;

  border: 1px solid rgba(76, 54, 37, 0.25);
  border-radius: 16px;

  background: rgba(255, 250, 239, 0.92);

  box-shadow:
    0 14px 32px
    rgba(62, 42, 28, 0.12);
}

.museum-map-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;

  margin-bottom: 22px;
}

.document-label {
  display: inline-block;
  margin-bottom: 7px;

  color: var(--red);

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.museum-map-heading h3,
.evidence-task-card h3 {
  color: #2d221a;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 27px;
}

.map-status {
  padding: 8px 12px;

  border-radius: 999px;

  color: #725d49;
  background: rgba(108, 81, 57, 0.1);

  font-size: 12px;
  font-weight: 900;
}


/* Координатна мрежа */

.coordinate-map-wrapper {
  display: flex;
  justify-content: center;

  padding: 22px;

  border: 1px solid rgba(73, 52, 35, 0.2);
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #e8dcc4,
      #d8c5a3
    );
}

.coordinate-map {
  position: relative;

  width: min(100%, 620px);
  aspect-ratio: 1 / 1;

  border: 3px solid #44362a;

  background-color: #f9f0d9;

  background-image:
    linear-gradient(
      rgba(78, 60, 43, 0.24) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(78, 60, 43, 0.24) 1px,
      transparent 1px
    );

  background-size:
    calc(100% / 6)
    calc(100% / 6);

  box-shadow:
    inset 0 0 35px
    rgba(76, 51, 31, 0.12);

  overflow: hidden;
}


/* Крила на музея */

.museum-wing {
  position: absolute;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid rgba(73, 52, 35, 0.25);

  color: rgba(54, 40, 29, 0.72);
  background: rgba(255, 250, 237, 0.54);

  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  pointer-events: none;
}

.north-wing {
  top: 0;
  left: calc(100% / 6);

  width: calc(100% / 2);
  height: 25%;
}

.west-wing {
  top: 25%;
  left: 0;

  width: calc(100% / 3);
  height: 50%;
}

.central-wing {
  top: 25%;
  left: calc(100% / 3);

  width: calc(100% / 3);
  height: 50%;

  background:
    rgba(185, 138, 54, 0.16);
}

.east-wing {
  top: 25%;
  right: 0;

  width: calc(100% / 3);
  height: 50%;
}

.south-wing {
  left: calc(100% / 3);
  bottom: 0;

  width: calc(100% / 2);
  height: 25%;
}


/* Линии на маршрута */

.route-lines {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;
}


/* Бъдещите интерактивни точки */

.map-point {
  position: absolute;
  z-index: 5;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 31px;
  height: 31px;

  border: 3px solid #fff8e8;
  border-radius: 50%;

  color: #ffffff;
  background: var(--red);

  box-shadow:
    0 4px 10px
    rgba(77, 29, 25, 0.35);

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  transform: translate(-50%, 50%);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.map-point:hover {
  transform:
    translate(-50%, 50%)
    scale(1.14);
}

.map-point.selected {
  background: var(--green);
}

.map-point.incorrect {
  background: #b54b42;
  animation: pointShake 0.35s ease;
}

@keyframes pointShake {
  25% {
    transform:
      translate(-56%, 50%);
  }

  75% {
    transform:
      translate(-44%, 50%);
  }
}


/* Легенда */

.map-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  margin-top: 16px;
  padding: 13px 15px;

  border: 1px dashed rgba(74, 52, 35, 0.3);
  border-radius: 9px;

  color: #645142;
  background: rgba(239, 217, 170, 0.35);

  font-size: 14px;
}

.map-legend strong {
  color: var(--red);
}


/* Координати */

.coordinate-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-top: 20px;
  margin-bottom: 24px;
}

.coordinate-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px;

  border: 1px solid rgba(74, 52, 35, 0.2);
  border-radius: 10px;

  background: #fffaf0;
}

.coordinate-list article span {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  color: #ffffff;
  background: var(--red);

  font-weight: 900;
}

.coordinate-list article strong {
  color: #36291f;
  font-size: 17px;
}


/* Избрани точки */

.selected-points-section {
  margin-bottom: 24px;
  padding: 18px;

  border: 1px dashed rgba(74, 52, 35, 0.3);
  border-radius: 11px;

  background: rgba(235, 217, 183, 0.35);
}

.selected-points-section > span {
  display: block;
  margin-bottom: 9px;

  color: #6d5948;

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.selected-points {
  min-height: 26px;
  margin-bottom: 13px;

  color: #32271f;

  font-weight: 800;
  line-height: 1.5;
}

.clear-route-button {
  padding: 9px 13px;

  border: 1px solid rgba(103, 67, 42, 0.3);
  border-radius: 8px;

  color: #6c4c38;
  background: #fffaf0;

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
}


/* Въпроси за маршрута */

.route-question-section {
  padding-top: 22px;

  border-top:
    1px dashed rgba(74, 52, 35, 0.3);
}

.route-question-section h4 {
  margin-bottom: 8px;

  color: #30231b;
  font-size: 18px;
}

.route-question-section > p {
  margin-bottom: 17px;

  color: #766251;
  font-size: 14px;
}

.wing-options {
  display: grid;
  gap: 10px;

  margin-bottom: 22px;
}

.wing-option {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 12px 14px;

  border: 1px solid rgba(74, 52, 35, 0.2);
  border-radius: 9px;

  color: #44352a;
  background: #fffaf0;

  font-weight: 700;

  cursor: pointer;
}

.wing-option:has(input:checked) {
  border-color: var(--green);
  background: #e7f0e9;
}

.wing-option input {
  width: 18px;
  height: 18px;

  accent-color: var(--green);
}

.evidence-answer-label {
  display: block;
  margin-bottom: 9px;

  color: #392b22;

  font-size: 14px;
  font-weight: 900;
}

.evidence-number-input {
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 15px;

  border: 1px solid rgba(72, 52, 37, 0.3);
  border-radius: 9px;

  color: #2e241c;
  background: #fffdf7;

  outline: none;
}

.evidence-number-input:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 4px
    rgba(155, 47, 42, 0.11);
}


/* Обратна връзка */

.evidence-feedback {
  margin-top: 14px;
  padding: 13px 15px;

  border-radius: 9px;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.evidence-feedback.success {
  border: 1px solid rgba(56, 93, 75, 0.3);

  color: #2e5945;
  background: #e5f1e9;
}

.evidence-feedback.error {
  border: 1px solid rgba(155, 47, 42, 0.28);

  color: #812f2a;
  background: #fae8e4;
}


/* Открита цифра */

.discovered-clue-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  margin-top: 24px;
  padding: 25px;

  border: 2px solid var(--green);
  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #edf6ef,
      #dcebdd
    );

  box-shadow:
    0 14px 30px
    rgba(56, 93, 75, 0.15);
}

.clue-stamp {
  padding: 10px 13px;

  border: 3px double var(--green);

  color: var(--green);

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;

  transform: rotate(-2deg);
}

.discovered-clue-card p {
  margin-bottom: 7px;

  color: #50685b;
}

.discovered-clue-card strong {
  color: #243f33;
  font-size: 19px;
}

.discovered-clue-card strong span {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 38px;
  height: 38px;
  margin-left: 6px;

  border-radius: 8px;

  color: #ffffff;
  background: var(--green);

  font-size: 23px;
}


/* Адаптивен дизайн */

@media (max-width: 1050px) {
  .evidence-one-layout {
    grid-template-columns: 1fr;
  }

  .museum-map-card {
    max-width: 850px;
  }
}

@media (max-width: 700px) {
  .evidence-screen {
    padding: 22px;
  }

  .evidence-screen-header,
  .museum-map-heading,
  .discovered-clue-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .coordinate-map-wrapper {
    padding: 10px;
  }

  .museum-wing {
    font-size: 9px;
  }

  .coordinate-list {
    grid-template-columns: 1fr;
  }

  .map-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .discovered-clue-card
  .primary-case-button {
    width: 100%;
  }
}
/* Числа по координатните оси */

.coordinate-axis-label {
  position: absolute;
  z-index: 4;

  color: #4b3b2e;

  font-size: 11px;
  font-weight: 900;

  pointer-events: none;
}

.coordinate-map .coordinate-axis-label {
  position: absolute;
  z-index: 4;

  display: block;

  color: #4b3b2e;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;

  pointer-events: none;
}

.coordinate-map .map-x-label {
  bottom: 5px;

  transform: translateX(-50%);
}

.coordinate-map .map-y-label {
  left: 6px;

  transform: translateY(50%);
}
/* ========================================
   ДОКАЗАТЕЛСТВО №2 – ЕЛЕКТРОННИ ПРОПУСКИ
======================================== */

.evidence-two-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(340px, 0.95fr);

  gap: 24px;
  align-items: start;
}


/* ========================================
   ОТЧЕТ ОТ СИСТЕМАТА
======================================== */

.access-report-card {
  padding: 27px;

  border: 1px solid rgba(76, 54, 37, 0.25);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 239, 0.97),
      rgba(232, 215, 182, 0.95)
    );

  box-shadow:
    0 14px 32px
    rgba(62, 42, 28, 0.12);
}


.access-report-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;

  margin-bottom: 24px;
}


.access-report-heading h3 {
  color: #2d221a;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 28px;
}


.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 13px;

  border-radius: 999px;

  color: #315d48;
  background: #e3efe7;

  font-size: 12px;
  font-weight: 900;
}


.system-status::before {
  content: "";

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #3e7a5d;

  box-shadow:
    0 0 0 4px
    rgba(62, 122, 93, 0.14);
}


/* ========================================
   ТАБЛИЦА С ПРЕМИНАВАНИЯ
======================================== */

.access-log-table {
  overflow: hidden;

  margin-bottom: 22px;

  border: 1px solid rgba(73, 52, 35, 0.25);
  border-radius: 12px;

  background: #fffaf0;
}


.access-log-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(140px, 0.65fr);

  align-items: center;

  min-height: 64px;

  border-bottom:
    1px solid rgba(73, 52, 35, 0.16);
}


.access-log-row:last-child {
  border-bottom: none;
}


.access-log-row > span,
.access-log-row > strong {
  padding: 15px 18px;
}


.access-log-row > span {
  color: #49392d;

  font-size: 15px;
  font-weight: 700;
}


.access-log-row > strong {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100%;

  border-left:
    1px solid rgba(73, 52, 35, 0.16);

  color: var(--red);

  font-size: 21px;
}


.access-log-header {
  min-height: 52px;

  color: #fff7e7;
  background:
    linear-gradient(
      135deg,
      #45372d,
      #2e251f
    );
}


.access-log-header > span {
  color: #fff7e7;

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.access-log-header > span:last-child {
  border-left:
    1px solid rgba(255, 255, 255, 0.14);

  text-align: center;
}


/* ========================================
   ДЕНЯТ НА ИНЦИДЕНТА
======================================== */

.incident-access-card {
  position: relative;

  padding: 24px;

  border: 2px solid rgba(155, 47, 42, 0.45);
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #fff0e9,
      #f3d8ca
    );
}


.incident-access-card::after {
  content: "НЕОБИЧАЙНА АКТИВНОСТ";

  position: absolute;
  top: 17px;
  right: 17px;

  padding: 7px 9px;

  border: 2px solid var(--red);

  color: var(--red);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;

  transform: rotate(3deg);
}


.incident-access-card > span {
  display: block;
  margin-bottom: 8px;

  color: #755345;

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.incident-access-card strong {
  display: block;
  margin-bottom: 9px;

  color: var(--red-dark);

  font-size: 30px;
}


.incident-access-card p {
  max-width: 420px;

  color: #6a5042;
  line-height: 1.6;
}


/* ========================================
   СЛЕДСТВЕН АНАЛИЗ
======================================== */

.access-analysis-card {
  position: relative;
}


.calculation-help-card {
  display: flex;
  flex-direction: column;
  gap: 7px;

  margin-top: 20px;
  margin-bottom: 23px;
  padding: 16px;

  border: 1px dashed rgba(74, 52, 35, 0.32);
  border-radius: 10px;

  background: rgba(239, 217, 170, 0.32);
}


.calculation-help-card span {
  color: var(--red);

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.calculation-help-card strong {
  color: #49382c;

  font-size: 15px;
  line-height: 1.5;
}


/* ========================================
   ЗАКЛЮЧЕНИЕ
======================================== */

.movement-conclusion-section {
  margin-bottom: 23px;
  padding-top: 7px;
}


.movement-conclusion-section h4 {
  margin-bottom: 7px;

  color: #30231b;

  font-size: 18px;
}


.movement-conclusion-section > p {
  margin-bottom: 15px;

  color: #746151;

  font-size: 14px;
  line-height: 1.5;
}


.conclusion-option {
  display: flex;
  align-items: center;
  gap: 11px;

  margin-bottom: 10px;
  padding: 13px 14px;

  border: 1px solid rgba(74, 52, 35, 0.2);
  border-radius: 9px;

  color: #44352a;
  background: #fffaf0;

  font-weight: 700;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}


.conclusion-option:last-child {
  margin-bottom: 0;
}


.conclusion-option:hover {
  border-color:
    rgba(155, 47, 42, 0.45);
}


.conclusion-option:has(input:checked) {
  border-color: var(--green);
  background: #e7f0e9;
}


.conclusion-option input {
  width: 18px;
  height: 18px;

  accent-color: var(--green);
}


/* ========================================
   ТЕКСТОВО ОБЯСНЕНИЕ
======================================== */

.evidence-textarea {
  width: 100%;
  min-height: 110px;
  margin-bottom: 15px;
  padding: 14px 15px;

  border: 1px solid rgba(72, 52, 37, 0.3);
  border-radius: 9px;

  color: #2e241c;
  background: #fffdf7;

  font: inherit;
  line-height: 1.6;

  resize: vertical;
  outline: none;
}


.evidence-textarea:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 4px
    rgba(155, 47, 42, 0.11);
}


/* ========================================
   ВИЗУАЛНО ОТБЕЛЯЗВАНЕ НА ОТГОВОРИ
======================================== */

.evidence-number-input.correct-answer,
.evidence-textarea.correct-answer {
  border-color: var(--green);
  background: #eff7f1;
}


.evidence-number-input.wrong-answer,
.evidence-textarea.wrong-answer {
  border-color: var(--red);
  background: #fff0ed;
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1050px) {
  .evidence-two-layout {
    grid-template-columns: 1fr;
  }

  .access-report-card {
    max-width: 850px;
  }
}


@media (max-width: 700px) {
  .access-report-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .access-log-row {
    grid-template-columns:
      minmax(0, 1fr)
      115px;
  }

  .access-log-row > span,
  .access-log-row > strong {
    padding: 13px;
  }

  .incident-access-card {
    padding-top: 75px;
  }

  .incident-access-card::after {
    top: 17px;
    left: 18px;
    right: auto;
  }
}


@media (max-width: 480px) {
  .access-log-row {
    grid-template-columns: 1fr 90px;
  }

  .access-log-row > span {
    font-size: 13px;
  }

  .access-log-row > strong {
    font-size: 18px;
  }
}
/* ========================================
   ДОКАЗАТЕЛСТВО №3 – ПОВРЕДЕН ЗАПИС
======================================== */

.evidence-three-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(350px, 0.95fr);

  gap: 24px;
  align-items: start;
}


/* ========================================
   ОХРАНИТЕЛЕН ТЕРМИНАЛ
======================================== */

.security-terminal-card {
  overflow: hidden;

  border: 2px solid #191715;
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #302c29,
      #151311
    );

  box-shadow:
    0 18px 40px
    rgba(20, 16, 13, 0.3);
}


.terminal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  padding: 15px 19px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.12);

  color:
    rgba(255, 255, 255, 0.72);

  background: #1b1917;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}


.terminal-top-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #ff6b5f;

  font-size: 12px;
}


.terminal-top-bar strong::before {
  content: "";

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #e8473b;

  box-shadow:
    0 0 0 5px
    rgba(232, 71, 59, 0.12);

  animation:
    recordingPulse 1.4s infinite;
}


@keyframes recordingPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}


/* ========================================
   ЕКРАН НА КАМЕРАТА
======================================== */

.camera-screen {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  min-height: 430px;
  padding: 40px;

  color: #d9f5df;

  text-align: center;

  background:
    radial-gradient(
      circle at center,
      rgba(80, 120, 93, 0.25),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      #27322c,
      #101713
    );

  overflow: hidden;
}


.camera-screen::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 2px,
      transparent 2px,
      transparent 5px
    );
}


.camera-screen::after {
  content: "";

  position: absolute;
  inset: 17px;

  border:
    1px solid rgba(187, 239, 203, 0.2);

  pointer-events: none;
}


.camera-noise {
  position: absolute;
  inset: 0;

  opacity: 0.16;

  pointer-events: none;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px
    );

  background-size: 7px 7px;

  animation:
    cameraNoise 0.45s steps(2) infinite;
}


@keyframes cameraNoise {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(2px, -1px);
  }

  50% {
    transform: translate(-1px, 2px);
  }

  75% {
    transform: translate(1px, 1px);
  }

  100% {
    transform: translate(0, 0);
  }
}


.camera-label {
  position: relative;
  z-index: 2;

  margin-bottom: 34px;
  padding: 9px 13px;

  border:
    1px solid rgba(204, 244, 214, 0.25);

  color:
    rgba(218, 247, 225, 0.8);

  background:
    rgba(6, 12, 8, 0.48);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.damaged-time {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;

  margin-bottom: 20px;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(66px, 10vw, 115px);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;

  text-shadow:
    0 0 20px
    rgba(152, 231, 174, 0.24);
}


.damaged-time strong {
  min-width: 135px;

  color: #ff776e;

  text-shadow:
    0 0 20px
    rgba(255, 80, 70, 0.28);

  animation:
    damagedTimeFlicker 1.2s infinite;
}


@keyframes damagedTimeFlicker {
  0%,
  90%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 0.25;
  }

  95% {
    opacity: 0.8;
  }
}


.camera-screen > p {
  position: relative;
  z-index: 2;

  color:
    rgba(218, 247, 225, 0.65);

  font-family:
    "Courier New",
    monospace;

  font-size: 13px;
}


/* ========================================
   УРАВНЕНИЕ ПОД КАМЕРАТА
======================================== */

.terminal-equation {
  padding: 23px;

  border-top:
    1px solid rgba(255, 255, 255, 0.1);

  background: #201d1a;
}


.terminal-equation span {
  display: block;
  margin-bottom: 10px;

  color:
    rgba(255, 255, 255, 0.48);

  font-family:
    "Courier New",
    monospace;

  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}


.terminal-equation strong {
  display: block;
  padding: 17px;

  border:
    1px solid rgba(222, 188, 113, 0.25);

  border-radius: 8px;

  color: #f0d596;
  background:
    rgba(0, 0, 0, 0.25);

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(18px, 2.5vw, 25px);

  text-align: center;
  line-height: 1.5;
}


/* ========================================
   РЕШАВАНЕ НА УРАВНЕНИЕТО
======================================== */

.equation-task-card {
  position: relative;
}


.equation-step {
  display: grid;
  grid-template-columns:
    42px minmax(0, 1fr);

  gap: 14px;
  align-items: start;

  margin-top: 20px;
  padding: 17px;

  border:
    1px solid rgba(74, 52, 35, 0.2);

  border-radius: 11px;

  background: #fffaf0;
}


.equation-step-number {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  color: #ffffff;
  background: var(--red);

  font-size: 16px;
  font-weight: 900;

  box-shadow:
    0 5px 12px
    rgba(111, 31, 28, 0.2);
}


.equation-step > div {
  min-width: 0;
}


.equation-step label {
  display: block;
  margin-bottom: 10px;

  color: #392b22;

  font-size: 14px;
  font-weight: 900;
}


/* ========================================
   ТЕКСТОВИ ПОЛЕТА
======================================== */

.evidence-text-input {
  width: 100%;
  padding: 13px 15px;

  border:
    1px solid rgba(72, 52, 37, 0.3);

  border-radius: 9px;

  color: #2e241c;
  background: #fffdf7;

  font: inherit;
  outline: none;
}


.evidence-text-input:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 4px
    rgba(155, 47, 42, 0.11);
}


.evidence-text-input.correct-answer {
  border-color: var(--green);
  background: #eff7f1;
}


.evidence-text-input.wrong-answer {
  border-color: var(--red);
  background: #fff0ed;
}


/* ========================================
   РЕШЕНИЕ x =
======================================== */

.solution-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}


.solution-input-row > span {
  color: var(--red);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 25px;
  font-weight: 900;
}


.solution-input-row
.evidence-number-input {
  margin-bottom: 0;
}


/* ========================================
   ВЪЗСТАНОВЕН ЧАС
======================================== */

.recovered-time-section {
  margin-top: 22px;
  margin-bottom: 20px;
  padding: 20px;

  border:
    2px dashed rgba(155, 47, 42, 0.32);

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #fff5ed,
      #f5e1d4
    );
}


.recovered-time-section > label {
  display: block;
  margin-bottom: 13px;

  color: #392b22;

  font-size: 15px;
  font-weight: 900;
}


.time-input-row {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 12px;
}


.time-input-row > span {
  color: var(--red-dark);

  font-family:
    "Courier New",
    monospace;

  font-size: 39px;
  font-weight: 900;
}


.time-input-row input {
  width: 110px;
  padding: 10px 12px;

  border:
    2px solid rgba(155, 47, 42, 0.35);

  border-radius: 9px;

  color: var(--red-dark);
  background: #fffdf8;

  font-family:
    "Courier New",
    monospace;

  font-size: 30px;
  font-weight: 900;
  text-align: center;

  outline: none;
}


.time-input-row input:focus {
  border-color: var(--red);

  box-shadow:
    0 0 0 4px
    rgba(155, 47, 42, 0.11);
}


.time-input-row input.correct-answer {
  border-color: var(--green);
  color: var(--green);
  background: #eff7f1;
}


.time-input-row input.wrong-answer {
  border-color: var(--red);
  background: #fff0ed;
}


.recovered-time-section p {
  color: #705b4b;

  font-size: 13px;
  line-height: 1.55;
}


/* ========================================
   ВЪЗСТАНОВЕН ТЕРМИНАЛ
======================================== */

.security-terminal-card.recovered
.damaged-time strong {
  color: #a4e7b5;

  animation: none;

  text-shadow:
    0 0 22px
    rgba(164, 231, 181, 0.32);
}


.security-terminal-card.recovered
.camera-noise {
  opacity: 0.05;
  animation: none;
}


.security-terminal-card.recovered
.camera-screen {
  background:
    radial-gradient(
      circle at center,
      rgba(72, 142, 92, 0.25),
      transparent 55%
    ),
    linear-gradient(
      145deg,
      #23372a,
      #101b14
    );
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1050px) {
  .evidence-three-layout {
    grid-template-columns: 1fr;
  }

  .security-terminal-card {
    max-width: 850px;
  }
}


@media (max-width: 700px) {
  .camera-screen {
    min-height: 330px;
    padding: 25px 15px;
  }

  .damaged-time {
    font-size: 70px;
  }

  .damaged-time strong {
    min-width: 90px;
  }

  .equation-step {
    grid-template-columns: 1fr;
  }

  .equation-step-number {
    width: 34px;
    height: 34px;
  }

  .terminal-equation {
    padding: 17px;
  }
}


@media (max-width: 450px) {
  .damaged-time {
    font-size: 57px;
  }

  .time-input-row > span {
    font-size: 31px;
  }

  .time-input-row input {
    width: 92px;
    font-size: 25px;
  }
}
/* ========================================
   ДОКАЗАТЕЛСТВО №4 – СИСТЕМА ЗА ДОСТЪП
======================================== */

.evidence-four-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(350px, 0.95fr);

  gap: 24px;
  align-items: start;
}


/* ========================================
   СИСТЕМЕН ТЕРМИНАЛ
======================================== */

.access-system-terminal {
  overflow: hidden;

  border: 2px solid #24211e;
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      #34302c,
      #181613
    );

  box-shadow:
    0 18px 40px
    rgba(27, 20, 15, 0.28);
}


.access-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  padding: 24px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.1);

  background:
    linear-gradient(
      135deg,
      #292623,
      #1c1917
    );
}


.access-terminal-header
.document-label {
  color: #d4ad60;
}


.access-terminal-header h3 {
  margin-top: 5px;

  color: #fff5de;

  font-family:
    "Courier New",
    monospace;

  font-size: 24px;
}


.live-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 13px;

  border:
    1px solid rgba(207, 177, 112, 0.3);

  border-radius: 999px;

  color: #dfc384;
  background:
    rgba(207, 177, 112, 0.1);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.live-system-badge::before {
  content: "";

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #d4ad60;

  box-shadow:
    0 0 0 4px
    rgba(212, 173, 96, 0.12);
}


/* ========================================
   СПИСЪК С КАРТИ И КЛЮЧОВЕ
======================================== */

.access-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 24px;

  background:
    linear-gradient(
      145deg,
      #26231f,
      #1a1815
    );
}


.access-card-row {
  display: grid;
  grid-template-columns:
    58px minmax(0, 1fr) 58px;

  gap: 15px;
  align-items: center;

  width: 100%;
  padding: 15px;

  border:
    1px solid rgba(255, 255, 255, 0.12);

  border-radius: 11px;

  color: #f8eed9;
  background:
    rgba(255, 255, 255, 0.045);

  text-align: left;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}


.access-card-row:hover {
  transform: translateX(4px);

  border-color:
    rgba(212, 173, 96, 0.48);

  background:
    rgba(212, 173, 96, 0.08);
}


.access-card-row.selected {
  border-color: #d4ad60;

  background:
    linear-gradient(
      135deg,
      rgba(212, 173, 96, 0.19),
      rgba(212, 173, 96, 0.08)
    );

  box-shadow:
    0 0 0 3px
    rgba(212, 173, 96, 0.08);
}


.access-card-row.correct-selection {
  border-color: #5e9b76;

  background:
    rgba(67, 123, 88, 0.2);
}


.access-card-row.wrong-selection {
  border-color: #bb4b43;

  background:
    rgba(155, 47, 42, 0.18);

  animation:
    accessRowShake 0.35s ease;
}


@keyframes accessRowShake {
  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}


/* ========================================
   ИКОНА НА КАРТАТА
======================================== */

.access-card-icon {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 52px;
  height: 42px;

  border:
    1px solid rgba(235, 213, 164, 0.34);

  border-radius: 7px;

  color: #231e17;
  background:
    linear-gradient(
      145deg,
      #d5b672,
      #ae8641
    );

  font-family:
    "Courier New",
    monospace;

  font-size: 15px;
  font-weight: 900;

  box-shadow:
    inset 0 0 0 2px
    rgba(255, 255, 255, 0.12);
}


.access-card-information {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-width: 0;
}


.access-card-information strong {
  color: #fff5df;

  font-size: 15px;
  line-height: 1.4;
}


.access-card-information span {
  color:
    rgba(255, 245, 223, 0.55);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
}


.access-count {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 48px;
  height: 48px;

  border:
    1px solid rgba(255, 255, 255, 0.16);

  border-radius: 50%;

  color: #f1cc7c;
  background:
    rgba(0, 0, 0, 0.22);

  font-family:
    "Courier New",
    monospace;

  font-size: 20px;
  font-weight: 900;
}


/* ========================================
   СИСТЕМНА БЕЛЕЖКА
======================================== */

.access-system-note {
  margin: 0 24px 24px;
  padding: 17px;

  border:
    1px dashed rgba(213, 182, 114, 0.32);

  border-radius: 10px;

  background:
    rgba(213, 182, 114, 0.07);
}


.access-system-note span {
  display: block;
  margin-bottom: 8px;

  color: #d4ad60;

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}


.access-system-note p {
  color:
    rgba(255, 245, 223, 0.68);

  font-size: 13px;
  line-height: 1.6;
}


/* ========================================
   ФИНАЛЕН АНАЛИЗ
======================================== */

.access-final-analysis {
  position: relative;
}


.access-task-description {
  margin-top: 10px;
  margin-bottom: 20px;

  color: #725f4e;

  font-size: 14px;
  line-height: 1.6;
}


.selected-access-result {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 22px;
  padding: 17px;

  border:
    1px dashed rgba(74, 52, 35, 0.32);

  border-radius: 10px;

  background:
    rgba(239, 217, 170, 0.3);
}


.selected-access-result span {
  color: #775f4b;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.selected-access-result strong {
  color: #34271f;

  font-size: 17px;
  line-height: 1.45;
}


/* ========================================
   ЗАКЛЮЧЕНИЕ ЗА ДОСТЪПА
======================================== */

.access-conclusion-section {
  margin-top: 22px;
  margin-bottom: 22px;
}


.access-conclusion-section h4 {
  margin-bottom: 14px;

  color: #30231b;

  font-size: 18px;
}


/* ========================================
   ЗАКЛЮЧЕНИ ПОЛЕТА
======================================== */

.access-card-row:disabled {
  cursor: default;
}


.access-card-row:disabled:not(.selected) {
  opacity: 0.58;
}


.access-final-analysis
.evidence-number-input:disabled,
.access-final-analysis
.evidence-textarea:disabled {
  cursor: not-allowed;
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1050px) {
  .evidence-four-layout {
    grid-template-columns: 1fr;
  }

  .access-system-terminal {
    max-width: 850px;
  }
}


@media (max-width: 700px) {
  .access-terminal-header {
    flex-direction: column;
  }

  .access-card-row {
    grid-template-columns:
      52px minmax(0, 1fr) 48px;

    gap: 11px;
    padding: 12px;
  }

  .access-card-icon {
    width: 46px;
    height: 38px;

    font-size: 13px;
  }

  .access-count {
    width: 42px;
    height: 42px;

    font-size: 18px;
  }
}


@media (max-width: 480px) {
  .access-card-list {
    padding: 16px;
  }

  .access-system-note {
    margin:
      0 16px 16px;
  }

  .access-card-row {
    grid-template-columns:
      44px minmax(0, 1fr) 38px;
  }

  .access-card-icon {
    width: 40px;
    height: 34px;

    font-size: 11px;
  }

  .access-count {
    width: 36px;
    height: 36px;

    font-size: 16px;
  }

  .access-card-information strong {
    font-size: 13px;
  }

  .access-card-information span {
    font-size: 9px;
  }
}
/* ========================================
   СЕЙФЪТ
======================================== */

.safe-screen {
  padding: 40px;
}


/* Заглавие */

.safe-title-section {
  max-width: 850px;
  margin-bottom: 32px;
}

.safe-title-section h2 {
  margin-bottom: 12px;

  color: var(--dark-ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(40px, 5vw, 62px);

  letter-spacing: -0.04em;
}

.safe-title-section > p:last-child {
  color: #665546;

  font-size: 17px;
  line-height: 1.7;
}


/* Основна подредба */

.safe-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(340px, 0.95fr);

  gap: 26px;
  align-items: stretch;
}


/* ========================================
   МЕТАЛНА ВРАТА НА СЕЙФА
======================================== */

.safe-door {
  min-height: 610px;
  padding: 25px;

  border: 5px solid #171717;
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      #5c5c59,
      #292927
    );

  box-shadow:
    inset 0 0 0 3px #797975,
    inset 0 0 45px rgba(0, 0, 0, 0.65),
    0 22px 45px rgba(28, 22, 17, 0.3);

  transition:
    transform 0.65s ease,
    box-shadow 0.4s ease;
}

.safe-door.wrong-code {
  animation:
    safeDoorShake 0.42s ease;
}

@keyframes safeDoorShake {
  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

.safe-door.unlocked {
  transform:
    perspective(1200px)
    rotateY(-7deg);

  box-shadow:
    inset 0 0 0 3px #797975,
    inset 0 0 35px rgba(0, 0, 0, 0.4),
    18px 25px 55px rgba(28, 22, 17, 0.36);
}


/* Вътрешна рамка */

.safe-door-frame {
  position: relative;

  min-height: 550px;
  height: 100%;
  padding: 29px;

  border: 4px solid #20201e;
  border-radius: 16px;

  background:
    radial-gradient(
      circle at 25% 18%,
      rgba(255, 255, 255, 0.12),
      transparent 24%
    ),
    linear-gradient(
      145deg,
      #484846,
      #252523
    );

  box-shadow:
    inset 0 0 0 2px #696966,
    inset 0 0 35px rgba(0, 0, 0, 0.48);

  overflow: hidden;
}

.safe-door-frame::before,
.safe-door-frame::after {
  content: "";

  position: absolute;

  width: 22px;
  height: 22px;

  border: 4px solid #171715;
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #8a8a85 0%,
      #444440 45%,
      #191917 100%
    );

  box-shadow:
    0 3px 7px rgba(0, 0, 0, 0.5);
}

.safe-door-frame::before {
  top: 19px;
  left: 19px;
}

.safe-door-frame::after {
  right: 19px;
  bottom: 19px;
}


/* Марка */

.safe-brand {
  display: inline-block;
  padding: 9px 13px;

  border:
    1px solid rgba(235, 213, 164, 0.26);

  border-radius: 5px;

  color: #d6c28e;
  background:
    rgba(0, 0, 0, 0.22);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}


/* Индикатор */

.safe-lock-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  width: fit-content;
  margin: 56px auto 0;
  padding: 13px 18px;

  border:
    1px solid rgba(255, 255, 255, 0.15);

  border-radius: 999px;

  color: #e8e1cf;
  background:
    rgba(0, 0, 0, 0.28);

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.safe-lock-light {
  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: #c43e35;

  box-shadow:
    0 0 0 5px
    rgba(196, 62, 53, 0.12),
    0 0 15px
    rgba(196, 62, 53, 0.65);
}

.safe-lock-light.unlocked {
  background: #52a576;

  box-shadow:
    0 0 0 5px
    rgba(82, 165, 118, 0.14),
    0 0 17px
    rgba(82, 165, 118, 0.75);
}


/* ========================================
   ДРЪЖКА НА СЕЙФА
======================================== */

.safe-handle {
  position: relative;

  width: 250px;
  height: 250px;
  margin: 47px auto 0;

  transition:
    transform 0.9s ease;
}

.safe-door.unlocked .safe-handle {
  transform: rotate(120deg);
}

.safe-handle-center {
  position: absolute;
  top: 50%;
  left: 50%;

  z-index: 3;

  width: 92px;
  height: 92px;

  border: 9px solid #151513;
  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      #aaa9a4,
      #5d5c58 38%,
      #252522 72%
    );

  box-shadow:
    inset 0 0 0 4px #74736f,
    0 10px 18px rgba(0, 0, 0, 0.45);

  transform:
    translate(-50%, -50%);
}

.safe-handle-arm {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 115px;
  height: 24px;

  border: 5px solid #171715;
  border-radius: 999px;

  background:
    linear-gradient(
      to bottom,
      #94938e,
      #4d4d49
    );

  box-shadow:
    inset 0 2px 2px
    rgba(255, 255, 255, 0.22),
    0 5px 10px
    rgba(0, 0, 0, 0.4);

  transform-origin: left center;
}

.arm-one {
  transform:
    translateY(-50%)
    rotate(0deg);
}

.arm-two {
  transform:
    translateY(-50%)
    rotate(120deg);
}

.arm-three {
  transform:
    translateY(-50%)
    rotate(240deg);
}


/* Предупреждение */

.safe-warning {
  position: absolute;
  left: 29px;
  right: 29px;
  bottom: 26px;

  padding: 15px;

  border:
    1px dashed rgba(222, 194, 126, 0.35);

  border-radius: 8px;

  background:
    rgba(0, 0, 0, 0.21);
}

.safe-warning span {
  display: block;
  margin-bottom: 6px;

  color: #e1bc65;

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.safe-warning p {
  color:
    rgba(255, 248, 226, 0.65);

  font-size: 12px;
  line-height: 1.5;
}


/* ========================================
   ПАНЕЛ ЗА ВЪВЕЖДАНЕ НА КОДА
======================================== */

.safe-code-panel {
  align-self: stretch;

  padding: 30px;

  border:
    1px solid rgba(76, 54, 37, 0.25);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 239, 0.98),
      rgba(231, 211, 168, 0.97)
    );

  box-shadow:
    0 16px 35px
    rgba(62, 42, 28, 0.13);
}

.safe-code-panel h3 {
  margin-bottom: 9px;

  color: #2d221a;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 31px;
}

.safe-code-panel > p {
  margin-bottom: 27px;

  color: #705d4d;

  line-height: 1.65;
}


/* Цифри */

.safe-code-inputs {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-bottom: 20px;
}

.safe-digit-input {
  width: 100%;
  min-width: 0;
  height: 82px;

  border:
    3px solid rgba(66, 48, 34, 0.35);

  border-radius: 12px;

  color: #30231a;
  background: #fffdf7;

  font-family:
    "Courier New",
    monospace;

  font-size: 37px;
  font-weight: 900;
  text-align: center;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.safe-digit-input:focus {
  border-color: var(--gold);

  box-shadow:
    0 0 0 5px
    rgba(185, 138, 54, 0.14);
}

.safe-digit-input.correct-digit {
  border-color: var(--green);
  color: var(--green);
  background: #edf6ef;
}

.safe-digit-input.wrong-digit {
  border-color: var(--red);
  color: var(--red-dark);
  background: #fff0ed;
}


/* Опити */

.safe-attempts {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;
  padding: 13px 15px;

  border:
    1px dashed rgba(73, 52, 35, 0.3);

  border-radius: 9px;

  color: #6a5544;
  background:
    rgba(255, 250, 237, 0.64);

  font-size: 14px;
  font-weight: 800;
}

.safe-attempts strong {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 35px;
  height: 35px;

  border-radius: 50%;

  color: #ffffff;
  background: var(--red);

  font-size: 17px;
}


/* Изчистване */

.clear-safe-code-button {
  width: 100%;
  margin-top: 11px;
  padding: 12px 16px;

  border:
    1px solid rgba(72, 52, 37, 0.28);

  border-radius: 9px;

  color: #665040;
  background:
    rgba(255, 250, 239, 0.78);

  font-weight: 800;

  cursor: pointer;
}

.clear-safe-code-button:hover {
  background: #fffaf0;
}


/* ========================================
   ОТКЛЮЧЕН СЕЙФ
======================================== */

.safe-unlocked-card {
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;

  gap: 24px;
  align-items: center;

  margin-top: 26px;
  padding: 27px;

  border:
    2px solid var(--green);

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #edf6ef,
      #d9eadf
    );

  box-shadow:
    0 16px 34px
    rgba(56, 93, 75, 0.16);
}

.safe-unlocked-card h3 {
  margin-bottom: 7px;

  color: #234434;

  font-size: 25px;
}

.safe-unlocked-card p {
  color: #50685b;
  line-height: 1.65;
}

.safe-unlocked-card
.primary-case-button {
  width: auto;
  min-width: 190px;
  margin-top: 0;
}


/* ========================================
   ЗАЩИТНА ПАУЗА
======================================== */

.safe-code-panel.locked-out {
  opacity: 0.72;
}

.safe-code-panel.locked-out
.safe-digit-input,
.safe-code-panel.locked-out
.primary-case-button,
.safe-code-panel.locked-out
.clear-safe-code-button {
  cursor: not-allowed;
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1050px) {
  .safe-layout {
    grid-template-columns: 1fr;
  }

  .safe-door {
    max-width: 850px;
  }
}

@media (max-width: 760px) {
  .safe-screen {
    padding: 23px;
  }

  .safe-door {
    min-height: 510px;
    padding: 17px;
  }

  .safe-door-frame {
    min-height: 465px;
    padding: 21px;
  }

  .safe-handle {
    width: 205px;
    height: 205px;
    margin-top: 40px;
  }

  .safe-handle-center {
    width: 78px;
    height: 78px;
  }

  .safe-handle-arm {
    width: 94px;
    height: 21px;
  }

  .safe-code-panel {
    padding: 22px;
  }

  .safe-digit-input {
    height: 68px;
    font-size: 30px;
  }

  .safe-unlocked-card {
    grid-template-columns: 1fr;
  }

  .safe-unlocked-card
  .primary-case-button {
    width: 100%;
  }
}

@media (max-width: 450px) {
  .safe-code-inputs {
    gap: 7px;
  }

  .safe-digit-input {
    height: 58px;
    border-width: 2px;

    font-size: 25px;
  }

  .safe-handle {
    width: 175px;
    height: 175px;
  }

  .safe-handle-arm {
    width: 80px;
    height: 19px;
  }

  .safe-warning {
    left: 18px;
    right: 18px;
  }
}
/* ========================================
   ДОСИЕТА НА ЗАПОДОЗРЕНИТЕ
======================================== */

.suspects-screen {
  padding: 40px;
}


/* ========================================
   ЗАГЛАВИЕ
======================================== */

.suspects-title-section {
  max-width: 900px;
  margin-bottom: 30px;
}

.suspects-title-section h2 {
  margin-bottom: 12px;

  color: var(--dark-ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(38px, 5vw, 61px);

  letter-spacing: -0.04em;
}

.suspects-title-section > p:last-child {
  color: #675547;

  font-size: 17px;
  line-height: 1.7;
}


/* ========================================
   ОБОБЩЕНИЕ НА ДОКАЗАТЕЛСТВАТА
======================================== */

.final-evidence-summary {
  margin-bottom: 30px;
  padding: 25px;

  border:
    1px solid rgba(68, 49, 34, 0.22);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 239, 0.98),
      rgba(229, 210, 168, 0.94)
    );

  box-shadow:
    0 15px 34px
    rgba(60, 41, 28, 0.12);
}

.final-summary-heading {
  margin-bottom: 20px;
}

.final-summary-heading h3 {
  margin-top: 6px;

  color: #30231b;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 28px;
}

.final-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.final-summary-item {
  min-height: 150px;
  padding: 17px;

  border:
    1px solid rgba(73, 51, 35, 0.2);

  border-radius: 11px;

  background:
    rgba(255, 253, 246, 0.72);
}

.final-summary-item > span {
  display: block;
  margin-bottom: 13px;

  color: #a2563b;

  font-family:
    "Courier New",
    monospace;

  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.final-summary-item strong {
  display: block;
  margin-bottom: 8px;

  color: #34271e;

  font-size: 16px;
}

.final-summary-item p {
  color: #6d5a4a;

  font-size: 13px;
  line-height: 1.55;
}


/* ========================================
   МРЕЖА С ДОСИЕТА
======================================== */

.suspect-files-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;
  margin-bottom: 30px;
}


/* ========================================
   КАРТА НА ЗАПОДОЗРЯН
======================================== */

.suspect-file-card {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 24px;

  border:
    2px solid rgba(72, 51, 36, 0.25);

  border-radius: 15px;

  color: inherit;

  background:
    linear-gradient(
      145deg,
      #fffaf0,
      #e6cf9e
    );

  text-align: left;

  box-shadow:
    0 14px 30px
    rgba(62, 43, 30, 0.13);

  cursor: pointer;

  overflow: hidden;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.suspect-file-card::before {
  content: "ПОВЕРИТЕЛНО";

  position: absolute;
  top: 50px;
  right: -34px;

  padding: 7px 41px;

  border:
    2px solid rgba(143, 51, 42, 0.28);

  color:
    rgba(143, 51, 42, 0.3);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;

  transform: rotate(35deg);

  pointer-events: none;
}

.suspect-file-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(169, 118, 49, 0.64);

  box-shadow:
    0 20px 39px
    rgba(62, 43, 30, 0.19);
}

.suspect-file-card.selected {
  border-color: #b38a42;

  background:
    linear-gradient(
      145deg,
      #fff8e8,
      #dcbf7e
    );

  box-shadow:
    0 0 0 5px
    rgba(179, 138, 66, 0.13),
    0 20px 40px
    rgba(62, 43, 30, 0.2);
}

.suspect-file-card.correct-suspect {
  border-color: var(--green);

  background:
    linear-gradient(
      145deg,
      #f2f8f2,
      #cee2d3
    );

  box-shadow:
    0 0 0 5px
    rgba(75, 129, 94, 0.12),
    0 19px 38px
    rgba(46, 89, 62, 0.2);
}

.suspect-file-card.wrong-suspect {
  border-color: var(--red);

  background:
    linear-gradient(
      145deg,
      #fff5f1,
      #efd1c8
    );

  animation:
    suspectCardShake 0.4s ease;
}

@keyframes suspectCardShake {
  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-3px);
  }
}


/* ========================================
   ГОРНА ЧАСТ НА ДОСИЕТО
======================================== */

.suspect-file-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  margin-bottom: 20px;
  padding-bottom: 14px;

  border-bottom:
    1px dashed rgba(71, 50, 34, 0.33);
}

.suspect-file-number {
  color: #8f3e31;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.suspect-status-badge {
  padding: 7px 10px;

  border:
    1px solid rgba(78, 57, 41, 0.23);

  border-radius: 999px;

  color: #66513e;
  background:
    rgba(255, 251, 238, 0.55);

  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ========================================
   ПОРТРЕТ
======================================== */

.suspect-portrait {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100px;
  height: 116px;
  margin-bottom: 17px;

  border:
    6px solid #f8f0dc;

  outline:
    1px solid rgba(67, 48, 34, 0.28);

  color: #f4e1b4;

  background:
    radial-gradient(
      circle at 50% 33%,
      #71685f 0 20%,
      transparent 21%
    ),
    radial-gradient(
      ellipse at 50% 82%,
      #5b534c 0 34%,
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #37332f,
      #171513
    );

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 24px;
  font-weight: 900;

  box-shadow:
    0 7px 15px
    rgba(42, 31, 23, 0.21);
}


/* ========================================
   ОСНОВНА ИНФОРМАЦИЯ
======================================== */

.suspect-main-information {
  margin-bottom: 18px;
}

.suspect-main-information h3 {
  margin-bottom: 4px;

  color: #2f221a;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 27px;
}

.suspect-profession {
  color: #95613f;

  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ========================================
   ДАННИ В ДОСИЕТО
======================================== */

.suspect-data-list {
  display: flex;
  flex-direction: column;

  margin-bottom: 18px;

  border-top:
    1px solid rgba(71, 51, 36, 0.2);

  border-bottom:
    1px solid rgba(71, 51, 36, 0.2);
}

.suspect-data-list > div {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.8fr)
    minmax(0, 1.2fr);

  gap: 14px;
  padding: 13px 0;

  border-bottom:
    1px dashed rgba(71, 51, 36, 0.2);
}

.suspect-data-list > div:last-child {
  border-bottom: 0;
}

.suspect-data-list span {
  color: #77604d;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.suspect-data-list strong {
  color: #382a21;

  font-size: 13px;
  line-height: 1.45;
}


/* ========================================
   ДЕТЕКТИВСКА БЕЛЕЖКА
======================================== */

.suspect-detective-note {
  flex-grow: 1;

  margin-bottom: 18px;
  padding: 15px;

  border:
    1px dashed rgba(121, 73, 42, 0.34);

  border-radius: 8px;

  background:
    rgba(255, 252, 239, 0.53);
}

.suspect-detective-note span {
  display: block;
  margin-bottom: 7px;

  color: #a34f37;

  font-family:
    "Courier New",
    monospace;

  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.suspect-detective-note p {
  color: #695343;

  font-size: 13px;
  line-height: 1.6;
}


/* ========================================
   ЕТИКЕТ ЗА ИЗБОР
======================================== */

.select-suspect-label {
  display: block;
  width: 100%;
  padding: 12px 15px;

  border:
    1px solid rgba(71, 51, 36, 0.26);

  border-radius: 8px;

  color: #4e3a2b;
  background:
    rgba(255, 250, 238, 0.63);

  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.suspect-file-card.selected
.select-suspect-label {
  color: #ffffff;
  background: #9b7135;
}


/* ========================================
   ФИНАЛЕН СЛЕДСТВЕН ДОКЛАД
======================================== */

.final-conclusion-panel {
  margin-bottom: 28px;
  padding: 28px;

  border:
    1px solid rgba(68, 49, 34, 0.24);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #fffaf0,
      #e8d4a8
    );

  box-shadow:
    0 16px 36px
    rgba(60, 41, 28, 0.13);
}

.final-conclusion-heading {
  margin-bottom: 22px;
}

.final-conclusion-heading h3 {
  margin-top: 6px;
  margin-bottom: 9px;

  color: #30231b;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 30px;
}

.final-conclusion-heading p {
  color: #6b5848;
  line-height: 1.6;
}


/* Избран заподозрян */

.selected-suspect-result {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 23px;
  padding: 18px;

  border:
    1px dashed rgba(76, 53, 36, 0.33);

  border-radius: 10px;

  background:
    rgba(255, 252, 242, 0.6);
}

.selected-suspect-result span {
  color: #8e543b;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.selected-suspect-result strong {
  color: #34261d;

  font-size: 20px;
}


/* ========================================
   ИЗБОР НА ДОКАЗАТЕЛСТВА
======================================== */

.final-evidence-fieldset {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin: 0 0 23px;
  padding: 19px;

  border:
    1px solid rgba(73, 52, 36, 0.24);

  border-radius: 11px;

  background:
    rgba(255, 252, 242, 0.5);
}

.final-evidence-fieldset legend {
  padding: 0 9px;

  color: #4c3729;

  font-size: 15px;
  font-weight: 900;
}

.final-evidence-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  padding: 13px;

  border:
    1px solid rgba(74, 53, 37, 0.19);

  border-radius: 9px;

  color: #5e4939;
  background:
    rgba(255, 251, 239, 0.68);

  cursor: pointer;
}

.final-evidence-option:hover {
  border-color:
    rgba(167, 115, 48, 0.56);
}

.final-evidence-option input {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;
  margin-top: 1px;

  accent-color: #a97939;
}

.final-evidence-option span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}


/* ========================================
   УСПЕШНО РЕШЕН СЛУЧАЙ
======================================== */

.case-solved-card {
  position: relative;

  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;

  gap: 25px;
  align-items: center;

  padding: 29px;

  border:
    2px solid var(--green);

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #edf7ef,
      #cee4d4
    );

  box-shadow:
    0 18px 39px
    rgba(45, 86, 59, 0.18);

  overflow: hidden;
}

.case-solved-card::after {
  content: "РАЗРЕШЕН";

  position: absolute;
  right: 24px;
  bottom: 14px;

  color:
    rgba(52, 112, 73, 0.11);

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(37px, 7vw, 78px);

  font-weight: 900;
  letter-spacing: 0.06em;

  pointer-events: none;
}

.case-solved-content {
  position: relative;
  z-index: 1;
}

.case-completed-label {
  margin-bottom: 7px;

  color: #3e7652;

  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.case-solved-content h3 {
  margin-bottom: 7px;

  color: #244833;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 29px;
}

.case-solved-content > p:last-child {
  color: #4d6858;
  line-height: 1.65;
}

.case-solved-card
.primary-case-button {
  position: relative;
  z-index: 2;

  width: auto;
  min-width: 225px;
  margin-top: 0;
}


/* ========================================
   ЗАКЛЮЧЕНИ ПОЛЕТА
======================================== */

.suspect-file-card:disabled {
  cursor: default;
}

.suspect-file-card:disabled:not(.selected) {
  opacity: 0.58;
}

.final-conclusion-panel
.evidence-textarea:disabled {
  cursor: not-allowed;
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1080px) {
  .final-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .suspect-files-grid {
    grid-template-columns: 1fr;
  }

  .case-solved-card {
    grid-template-columns: 1fr;
  }

  .case-solved-card
  .primary-case-button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .suspects-screen {
    padding: 23px;
  }

  .final-evidence-summary,
  .final-conclusion-panel {
    padding: 20px;
  }

  .final-evidence-fieldset {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .final-summary-grid {
    grid-template-columns: 1fr;
  }

  .suspect-file-card {
    padding: 18px;
  }

  .suspect-data-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .suspect-portrait {
    width: 88px;
    height: 103px;
  }

  .suspect-file-top {
    align-items: flex-start;
  }
}
/* БУТОН „ЗАПОЧНИ ОТНАЧАЛО“ */

.restart-investigation-button {
  grid-column: 1 / -1;

  justify-self: end;
  align-self: center;

  width: auto;
  min-height: 42px;
  padding: 0 17px;

  border: 1px solid rgba(120, 48, 39, 0.38);
  border-radius: 9px;

  color: #8d382f;
  background: #fff7f3;

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  box-shadow: none;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.restart-investigation-button:hover {
  transform: translateY(-2px);

  border-color: #a34438;
  background: #fbe9e4;
}

@media (max-width: 650px) {
  .restart-investigation-button {
    justify-self: stretch;
    width: 100%;
  }
}