: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: var(--paper);

  background: url(../images/educativo/guardioes-cerrado/bg.jpg) center no-repeat;
  background-size: cover;
}

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

body {
  overflow-x: hidden;
}

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;
  }
}

/** GAME
======================================== **/
.detetive-riscos {
  display: grid;
  grid-template-columns: auto 400px;
  gap: 16px;
  max-width: 70%;
  margin: auto;
}

.detetive-riscos > div {
  width: stretch;
}

.box {
  position: relative;
  padding: 24px;
  margin: 24px auto;
  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);
}

.box h2.titulo-acao {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  margin: 0 0 24px;
}

.riscos {
  position: relative;
  overflow: hidden;
}

.riscos img {
  width: 100%;
  border-radius: 24px;
}

.riscos > button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--fire);
  border: 3px solid #fff;
  color: #fff;
  cursor: pointer;
  height: 44px;
  width: 44px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.riscos > button:hover {
  transform: scale(1.15);
}

.riscos > button.found {
  background: var(--success);
}

.riscos #btn-r1 {
  top: 31%;
  left: 25%;
}

.riscos #btn-r2 {
  top: 48%;
  left: 12%;
}

.riscos #btn-r3 {
  top: 42%;
  left: 76%;
}

.riscos #btn-r4 {
  top: 57%;
  left: 71%;
}

.riscos #btn-r5 {
  top: 58%;
  left: 54%;
}

.riscos #btn-r6 {
  top: 26%;
  left: 76%;
}

.riscos #btn-r7 {
  top: 17%;
  left: 58%;
}

.riscos #btn-r8 {
  top: 50%;
  left: 91%;
}

.riscos #btn-r9 {
  top: 36%;
  left: 47%;
}

.riscos #btn-r10 {
  top: 68%;
  left: 67%;
}

/** RISCOS ENCONTRADOS
======================================== **/
.riscos-encontrados {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.riscos-encontrados > div {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  gap: 16px;
  height: 120px;
  background: #d3d3d380;
  cursor: pointer;
  border: 3px solid transparent;
  box-shadow: 0 0 0 5px #48647920;
  border-radius: 8px;

  transition: all 0.3s;
}

.riscos-encontrados img {
  max-width: 40px;
  max-height: 66px;
}

.riscos-encontrados > div span {
  font-size: small;
  text-align: center;
}

.riscos-encontrados > div.ativo {
  border: 3px solid var(--gold);
  background: #00800040;
  color: #fff;
}

/** NEW GAME
======================================== **/
.new-game {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  display: none;

  transition: all 0.3s;
}

.new-game #parabens {
  display: none;
}

.new-game #tempoEsgotado {
  display: none;
}

.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);
}

@media (max-width: 992px) {
  .box {
    padding: 16px;
  }
}

/** FOOTER
======================================== **/
footer {
  width: 100%;
  max-width: 80%;
  margin-inline: auto;
  margin-top: 48px;
  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 .tempo {
  gap: 8px;
  border: 2px solid #ffe1a0;
  background: linear-gradient(180deg, #f6c96b, #d99a36);
  color: #47280c;
  padding: 12px 22px;
  margin-left: 48px;
  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);
}

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 .dicas {
  position: relative;
  background: #ffffff99;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 600px;
  margin-left: auto;
  transition: all 0.3s;
}

footer .dicas strong {
  color: var(--color-primary);
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

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;
  }
}
