: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/casa-segura/bg-1.png) 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;
  }
}

/** GAME
======================================== **/
.box {
  position: relative;
  padding: 24px 48px;
  width: 100%;
  max-width: 60%;
  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: var(--ink);
  font-size: 1rem;
  text-align: center;
  margin: 0 0 24px;
}

.comodos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.comodos .comodo {
  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;
}

.comodos .comodo .topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.comodos .comodo .topo span span {
  font-weight: 600;
  color: #fff;
  line-height: normal;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.comodos .comodo .topo span .risco {
  background: var(--fire);
}

.comodos .comodo .topo span .seguro {
  color: var(--success);
  background: #fff;
  display: none;
}

.comodos .comodo img.ambiente-risco,
.comodos .comodo img.ambiente-seguro {
  width: 100%;
  border-radius: 24px;
}

.comodos .comodo img.ambiente-seguro {
  display: none;
}

.comodos .comodo strong {
  line-height: 1.6rem;
}

.comodos .comodo strong.txt-seguro {
  display: none;
  color: #fff;
}

.comodos .comodo 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;
  box-shadow: 0 0 0 5px rgba(244, 189, 70, 0.12);
  transition:
    transform 0.18s,
    filter 0.18s;
}

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

.comodo.comodo-seguro {
  border: 3px solid var(--gold);
  background: #00800040;
}
.comodo.comodo-seguro .topo {
  color: #fff;
}

.comodo.comodo-seguro .topo span .risco {
  display: none;
}

.comodo.comodo-seguro .topo span .seguro {
  display: block;
}

.comodo.comodo-seguro strong.txt-em-risco {
  display: none;
}

.comodo.comodo-seguro strong.txt-seguro {
  display: block;
}

.comodo.comodo-seguro button {
  background: #00800040;
  color: #fff;
}

.new-game {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  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;
  }

  .comodos {
    grid-template-columns: 1fr;
    gap: 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 .autoria {
  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;
  }
}
