:root {
  --color-primary: #b72c2c;
  --color-secundary: oklch(78.304% 0.11255 75.625);
  --color-third: #35425a;
  --color-fourth: #938c83;

  --fire: #b5121b;
  --fire-dark: #730b12;
  --fire-deep: #3c080c;
  --gold: #f4bd46;
  --paper: #fffaf5;
  --ink: #241a1a;
  --muted: #745f5f;
  --line: rgba(118, 20, 25, 0.2);
  --success: #2f8b52;
  --danger: #c8323d;
  --shadow: 0 18px 45px rgba(61, 7, 11, 0.18);
  --radius: 18px;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: 'Fustat', sans-serif;

  background: url(../images/educativo/missao-equipamento-certo/bg.jpg) center
    right no-repeat;
  background-size: cover;
}

body,
p,
span {
  font-family: 'Fustat', sans-serif;
}

p {
  font-size: 1.2rem;
  line-height: 2.2rem;
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

/** HEADER
======================================== **/
header {
  display: block;
  position: relative;
  padding-inline: 24px;
  width: calc(100% - 48px);
}

.header {
  position: relative;
  margin: 0 auto;
  display: block;
  background: linear-gradient(to right, var(--gold), var(--color-secundary));
  padding: 0 4px 4px 4px;
  border-radius: 0 0 24px 24px;
  /* box-shadow: 0 8px 24px rgba(61, 7, 11, 0.35); */
}

header .header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  border-radius: 0 0 20px 20px;

  background: linear-gradient(
    135deg,
    var(--fire-deep),
    var(--fire) 54%,
    var(--fire-dark)
  );
}

header .header-wrap .logo {
  padding-inline: 24px;
}

header .header-wrap .logo img {
  height: 70px;
  width: 70px;
}

header a.return {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

header .header-titulo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2rem;
  font-weight: 800;
  color: #fffaf5;
}

header .header-titulo span {
  color: var(--gold);
}

header .header-titulo .lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

header .header-titulo .lines span {
  display: block;
  height: 3px;
  width: 80px;
  border-radius: 4px;
  background: linear-gradient(to right, transparent, var(--gold));
}

header .header-titulo .lines-right span {
  background: linear-gradient(to right, var(--gold), transparent);
}

header .emergencia {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  position: relative;
  background: var(--ink);
  color: #fffaf5;

  height: 94px;
  padding-inline: 36px;
  border-radius: 0 0 24px 0;
}

header .emergencia::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 0;
  border-right: 1px solid transparent;
  border-left: 30px solid transparent;
  border-bottom: 94px solid var(--ink);
}

header .ligue {
  color: #fffaf560;
  font-size: 1.4rem;
  font-weight: 600;
}

header .ligue span {
  color: var(--gold);
}

@media (max-width: 1200px) {
  header {
    padding-inline: 2px;
    width: calc(100% - 4px);
  }

  header .header-titulo {
    font-size: 1.4rem;
    font-weight: 600;
  }
}

@media (max-width: 992px) {
  header .header-wrap {
    height: 64px;
  }

  header .header-wrap .logo img {
    height: 54px;
    width: 54px;
  }

  header .emergencia,
  header .header-titulo .lines {
    display: none;
  }

  header .header-titulo {
    padding-right: 36px;
    font-size: 1rem;
  }
}

/** TIME LINE
======================================== **/
.time-line {
  margin: 0 auto;
  padding: 16px 32px;
  width: fit-content;
  text-align: center;
}

.time-line strong {
  font-size: 1rem;
  font-weight: 700;
  color: #47280c;

  font-weight: 900;
  text-transform: uppercase;
}

.time-line ul {
  display: flex;
  align-items: center;
  margin: 16px auto;
  padding: 8px;
  border-radius: 32px;
  background: #48647960;
}

.time-line ul li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 120px;
}

.time-line ul li::before {
  content: '';
  position: absolute;
  top: calc(50% - 2px);
  width: 100%;
  height: 4px;
  background: var(--gold);

  z-index: 1;
}

.time-line ul li:first-child {
  width: 81px;
  justify-content: left;
}

.time-line ul li:last-child {
  width: 81px;
  justify-content: right;
}

.time-line ul li span {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #fffaf5;
  font-weight: 600;
  width: 36px;
  height: 36px;
  border-radius: 36px;

  border: 3px solid #486479;
  box-shadow: 0 0 0 5px #48647920;

  background: var(--color-third);
  z-index: 99;
}

.time-line ul li span.done {
  color: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px #f4bd4620;

  background: linear-gradient(
    135deg,
    var(--fire-deep),
    var(--fire) 54%,
    var(--fire-dark)
  );
}

.time-line ul li span.current {
  background: #fff;
  color: var(--gold);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px #f4bd4620;
}

/*
.time-line ul li.done::before {
  content: '✔';
}
  */

/** GAME
======================================== **/
.game {
  display: grid;
  grid-template-columns: 328px auto;
  gap: 24px;
  width: 100%;
  max-width: 80%;
  margin-inline: auto;
}

.game > div {
}

.game .box,
.new-game .box {
  position: relative;
  padding: 24px;
  margin-bottom: 8px;
  border-radius: 24px;
  border: 2px solid #48647920;

  background: #48647980;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 18px 45px rgba(61, 7, 11, 0.18);
}

.game .box .box-tiutlo-suspenso {
  display: flex;
  width: max-content;
  padding: 1px;
  position: absolute;
  top: -20px;

  border-radius: 9px;
  background: linear-gradient(to right, var(--gold), var(--color-secundary));
}

.game .box .box-tiutlo-suspenso span {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #fffaf5;
  font-weight: 900;

  background: linear-gradient(
    135deg,
    var(--fire-deep),
    var(--fire) 54%,
    var(--fire-dark)
  );
}

.game .box .img-ocorrencia {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #48647920;
}

.game .box .descricao {
  color: #ffffff;
  line-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 16px 0;
}

.game .box .img-ocorrencia img {
  width: 100%;
  transition: all 0.4s;
}

.game .box .img-ocorrencia img:hover {
  transform: scale(1.1);
}

.game h2.titulo-acao {
  color: var(--ink);
  font-size: 1rem;
  text-align: center;
  margin: 0 0 24px;
}

.game .base-titulo {
  display: block;
  height: 2px;
  width: 100%;

  background: linear-gradient(to right, var(--gold), transparent 80%);
}

.game .equipamentos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.game .equipamentos .equipamento {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  margin-bottom: 8px;
  border-radius: 24px;
  text-align: center;
  border: 2px solid #48647920;

  background: #d3d3d380;
  cursor: pointer;

  border: 3px solid transparent;
  box-shadow: 0 0 0 5px #48647920;
  transition: all 0.3s;
}

.game .equipamentos .equipamento:hover {
  border: 3px solid #486479;
}

.game .equipamentos .equipamento.opcao-errada {
  border: 3px solid var(--color-primary);
  background: #ff000040;
}

.game .equipamentos .equipamento.opcao-certa {
  border: 3px solid var(--gold);
  background: #00800040;
}

.game .equipamentos .equipamento .icon-equipamento {
  /* background: #241a1a; */
}

.game .equipamento .icon-equipamento img {
  width: 120px;
  height: auto;
}

.game .equipamentos .equipamento h3 {
  text-align: center;
  color: #241a1a;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6rem;
  margin-top: 24px;
  margin-bottom: 0;
}

.game .equipamentos .equipamento.opcao-errada h3,
.game .equipamentos .equipamento.opcao-certa h3 {
  color: #d2d9d8;
}

.game .box .descricao strong {
  color: #d2d9d8;
}

.new-game {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;

  display: none;
}

.new-game .box {
  width: 60%;
  min-width: 400px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.new-game h2 {
  font-size: 2rem;
}

.new-game p {
  max-width: 640px;
  margin: 0 auto;
}

.new-game button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #ffe1a0;
  background: linear-gradient(180deg, #f6c96b, #d99a36);
  color: #47280c;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  margin: 48px auto;
  box-shadow: 0 0 0 5px rgba(244, 189, 70, 0.12);
  transition:
    transform 0.18s,
    filter 0.18s;
}

.new-game button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/** PONTUAÇÃO
======================================== **/
.new-game .pontuacao {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 600;
  color: var(--color-third);
  margin-inline: 48px;
  border-radius: 48px;
}

.new-game .pontuacao .pontos {
  font-size: 3rem;
  color: #fff;
}

/** FOOTER
======================================== **/
footer {
  width: 100%;
  max-width: 80%;
  margin-inline: auto;
  position: relative;
  padding: 4px 4px 0 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(to right, var(--gold), var(--color-secundary));
}

footer .footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
  border-radius: 20px 20px 0 0;

  background: linear-gradient(
    135deg,
    var(--fire-deep),
    var(--fire) 54%,
    var(--fire-dark)
  );
}

footer .pontuacao {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fffaf560;
  margin-inline: 48px;
  border: 3px solid #ffe1a030;
  border-radius: 48px;

  height: 80px;
  width: 80px;
}

footer .pontuacao .pontos {
  font-size: 2rem;
  color: #fffaf5;
}

footer .btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #ffe1a0;
  background: linear-gradient(180deg, #f6c96b, #d99a36);
  color: #47280c;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(244, 189, 70, 0.12);
  transition:
    transform 0.18s,
    filter 0.18s;
}

footer .btn-next:disabled {
  filter: grayscale(1);
  opacity: 0.45;
  cursor: not-allowed;
}

footer .btn-next span {
  font-size: 1.2rem;
}

footer .btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

footer .guarda {
  position: relative;
  height: 94px;
  width: 180px;
  margin-inline: 48px;
}

footer .guarda img {
  position: absolute;
  bottom: 0;
  width: 100%;
}

@media (max-width: 992px) {
  footer {
    max-width: calc(100% - 16px);
  }

  footer .pontuacao {
    margin-left: 16px;
    margin-right: 0;
  }

  footer .btn-next {
    padding-inline: 16px;
  }

  footer .guarda {
    height: 94px;
    width: 140px;
    margin: 0;
  }
}
