/* Logo Just Play Math — splash (index.html) et accueil partagent ce fichier. */

.mathgame-animation {
  font-size: min(calc(12 * var(--unit)), 10vw);
  font-family: Rammetto One, Arial, Helvetica, sans-serif;
  animation: 1.5s ease-in-out infinite alternate mathgameframes;
}

@keyframes mathgameframes {
  0% { transform: translateX(0%) translateY(0) scale(1); }
  100% { transform: translateX(0%) translateY(calc(0.3 * var(--unit))) scale(1.01); }
}

.superpose {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mathgame-just {
  font-size: min(calc(8 * var(--unit)), 6.67vw);
  font-family: Kaushan Script, Helvetica, sans-serif;
  position: absolute;
  bottom: 0.2em;
  left: -1.8em;
  color: rgb(51, 51, 51);
  /* max(px, em) : l’em seul disparaît sur mobile (font ~10vw). */
  text-shadow:
    max(1.5px, 0.035em) max(1.5px, 0.035em) max(1.5px, 0.035em) rgb(228, 227, 227),
    max(3px, 0.07em) max(3px, 0.07em) max(3px, 0.07em) rgb(150, 150, 150);
}

.mathgame-shadow {
  display: inline-block;
  color: rgb(255, 208, 0);
  text-shadow:
    max(1.5px, 0.025em) max(1.5px, 0.025em) max(1.5px, 0.025em) rgb(255, 145, 0),
    max(2.5px, 0.05em) max(2.5px, 0.05em) max(2.5px, 0.05em) rgb(255, 115, 0),
    max(3.5px, 0.07em) max(3.5px, 0.07em) max(3.5px, 0.07em) rgb(219, 99, 0),
    max(1.5px, 0.025em) max(1.5px, 0.025em) max(5px, 0.12em) rgb(110, 50, 0);
}

.mathgame-font-style {
  background: -webkit-linear-gradient(top, rgb(255, 238, 0) 20%, rgb(255, 187, 0) 50%, rgb(255, 238, 0) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
