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

html,
body {
  min-height: 100%;
}

:root {
  --larg: clamp(280px, 48.4vw, 430px);
}

body {
  min-height: 100vh;
  font-family: "Sniglet", "Fredoka", "Segoe UI", sans-serif;
  background: #4caf50;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.fundo-plantas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.planta-fundo {
  position: absolute;
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--v, 0) * 1.6deg));
}

.planta-fundo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.planta-fundo .f {
  transform: rotate(calc(var(--v, 0) * var(--amp, 6deg)));
}

.planta-fundo .t {
  animation: tremer-folha 1.7s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0s) + var(--p, 0s));
}

.planta-fundo .lf {
  fill: #45a54c;
}

@keyframes tremer-folha {
  from {
    transform: rotate(-1.4deg);
  }
  to {
    transform: rotate(1.4deg);
  }
}

.entrada {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--larg) * 0.082) 16px 32px;
}

.titulo {
  font-family: "Fredoka", "Segoe UI", sans-serif;
  font-size: calc(var(--larg) * 0.186);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  margin-bottom: calc(var(--larg) * 0.008);
  animation: descer 0.6s ease both;
}

.nuvem {
  position: relative;
  width: var(--larg);
  aspect-ratio: 305.8 / 217.8;
  animation: surgir 0.7s 0.1s ease both;
}

.nuvem-forma {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.nuvem-forma path {
  fill: #ffd54f;
}

.botao {
  position: absolute;
  left: 16.35%;
  width: 69%;
  height: 20.2%;
  display: flex;
  align-items: center;
  padding: 0 0 0 calc(var(--larg) * 0.036);
  border: none;
  border-radius: 999px;
  background: #4fc3f7;
  color: #ffffff;
  font-family: "Sniglet", "Fredoka", sans-serif;
  font-size: calc(var(--larg) * 0.082);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.botao.aluno {
  top: 24.8%;
}

.botao.professor {
  top: 57.85%;
}

.botao:hover {
  background: #62cbf9;
  transform: scale(1.03);
}

.botao:active {
  transform: scale(0.97);
}

.botao:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.botao.selecionado {
  background: #29a8e0;
  transform: scale(0.97);
}

.avatar {
  flex: 0 0 auto;
  width: calc(var(--larg) * 0.121);
  height: calc(var(--larg) * 0.121);
  display: block;
}

.rotulo {
  min-width: calc(var(--larg) * 0.3826);
  margin-left: calc(var(--larg) * 0.033);
  text-align: center;
  white-space: nowrap;
}

@keyframes descer {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .planta-fundo .t,
  .titulo,
  .nuvem {
    animation: none;
  }
  .botao {
    transition: none;
  }
}