/* Le globe du jour (myrebond.app/globe) : plein écran, polices du site, aucune ressource externe. */
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  src: url('/fonts/Fredoka_700Bold.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  src: url('/fonts/Fredoka_600SemiBold.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  src: url('/fonts/Nunito_700Bold.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  src: url('/fonts/Nunito_800ExtraBold.woff2') format('woff2');
  font-display: swap;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  overflow: hidden;
  /* Ni rebond ni actualisation par tirage (navigateur de l'app). Pas de touch-action ici : les
     feuilles du résultat et du classement doivent pouvoir défiler sur un petit écran. */
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  background: radial-gradient(120% 80% at 50% 30%, #2a2366 0%, #100c2b 70%);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 700;
}
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.cache {
  display: none !important;
}
.sans-js {
  position: fixed;
  inset: auto 16px 24px;
  font-size: 16px;
}
.sans-js a {
  color: #ffb27a;
}
.haut {
  position: fixed;
  /* Au-dessus de l'accueil (plein écran, placé après dans la page), sinon « Classement du jour »
     ne reçoit pas le toucher (remarque de Patrick du 22/11). */
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  padding: 12px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font:
    700 22px Fredoka,
    sans-serif;
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.logo i {
  color: #ff8a3d;
  font-style: normal;
}
.pastille {
  min-height: 44px;
  border: 0;
  border-radius: 22px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font:
    800 14px Nunito,
    sans-serif;
}
.ecran {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 18px 22px;
  background: linear-gradient(180deg, rgba(16, 12, 43, 0) 22%, rgba(16, 12, 43, 0.94) 52%);
  overflow-y: auto;
}
.surtitre {
  font:
    800 12.5px Nunito,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb27a;
}
.surtitre.violet {
  color: #4a3ae0;
}
h1 {
  font:
    700 34px/1.05 Fredoka,
    sans-serif;
  margin-top: 4px;
}
.intro {
  font-size: 15.5px;
  line-height: 1.45;
  color: #cfc8ff;
  margin: 10px 0 14px;
}
.veille,
.deja {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 15px;
}
.classes {
  border: 0;
  margin-bottom: 14px;
}
.classes legend {
  font-size: 13px;
  color: #cfc8ff;
  margin-bottom: 8px;
}
.choix-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choix-classes button {
  min-width: 48px;
  min-height: 44px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font:
    800 15px Nunito,
    sans-serif;
}
.choix-classes button[aria-pressed='true'] {
  background: #fff;
  color: #1a1640;
  border-color: #fff;
}
.regle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.regle div {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  font-size: 12.5px;
  color: #cfc8ff;
}
.regle b {
  display: block;
  font:
    700 20px Fredoka,
    sans-serif;
  color: #fff;
}
.btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  font:
    600 19px Fredoka,
    sans-serif;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
}
/* Orange : texte foncé (jamais de blanc sur l'orange), contraste AA. */
.btn.orange,
.btn.pret {
  background: #ff8a3d;
  color: #1a1640;
  box-shadow: 0 4px 0 #d96a28;
}
.btn.clair {
  background: #efedfb;
  color: #1a1640;
  margin-top: 10px;
}
.pseudo-info {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #cfc8ff;
}
.question {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 64px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a1640;
  border-radius: 22px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.ligne1 {
  display: flex;
  justify-content: space-between;
  font:
    800 12px Nunito,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a3ae0;
}
.nom {
  font:
    700 26px/1.1 Fredoka,
    sans-serif;
  margin-top: 4px;
}
.aide {
  font-size: 13.5px;
  color: #5c5880;
  margin-top: 4px;
  min-height: 18px;
}
.correction {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid #eceaf5;
  padding-top: 10px;
}
.correction b {
  font:
    700 19px Fredoka,
    sans-serif;
}
.correction span {
  font:
    800 15px Nunito,
    sans-serif;
  color: #1e7a4c;
  white-space: nowrap;
}
.correction small {
  display: block;
  font-size: 12.5px;
  color: #5c5880;
  margin-top: 2px;
}
.correction small a {
  color: #4a3ae0;
}
.zoom {
  position: fixed;
  right: 16px;
  bottom: 98px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zoom button {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font:
    700 24px Fredoka,
    sans-serif;
}
.bas {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
}
.feuille {
  position: fixed;
  z-index: 3;
  inset: 0;
  background: rgba(16, 12, 43, 0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px 16px;
  overflow-y: auto;
}
.dedans {
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  color: #1a1640;
  border-radius: 26px;
  padding: 18px 18px 14px;
}
.score {
  font:
    700 44px Fredoka,
    sans-serif;
  line-height: 1;
  margin-top: 6px;
}
.score small {
  font:
    700 16px Fredoka,
    sans-serif;
  color: #5c5880;
}
.carres {
  font-size: 26px;
  letter-spacing: 2px;
  margin: 8px 0 4px;
}
.place {
  font:
    800 16px Nunito,
    sans-serif;
  color: #4a3ae0;
  margin: 4px 0;
}
.serie {
  display: inline-block;
  background: #fff0e3;
  color: #8f3a12;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 13.5px;
}
.detail {
  list-style: none;
  margin: 12px 0 14px;
  border-top: 1px solid #eceaf5;
}
.detail li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f1fa;
}
.detail a {
  color: #4a3ae0;
}
.detail b {
  color: #5c5880;
  white-space: nowrap;
}
.passerelle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  border-radius: 14px;
  background: #1a1640;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font:
    800 14.5px Nunito,
    sans-serif;
  text-decoration: none;
}
.demain {
  text-align: center;
  font-size: 13.5px;
  color: #5c5880;
  margin-top: 10px;
}
.lien {
  display: block;
  margin: 4px auto 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: #4a3ae0;
  font:
    800 14px Nunito,
    sans-serif;
  text-decoration: underline;
}
.entete-classement {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entete-classement h2 {
  font:
    700 24px Fredoka,
    sans-serif;
}
.fermer {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: #efedfb;
  color: #1a1640;
  font:
    700 24px Fredoka,
    sans-serif;
}
.filtres {
  display: flex;
  gap: 8px;
  margin: 10px 0 6px;
}
.filtres button {
  min-height: 44px;
  border-radius: 22px;
  border: 2px solid #dcd8f3;
  background: #fff;
  color: #1a1640;
  padding: 0 14px;
  font:
    800 14px Nunito,
    sans-serif;
}
.filtres button[aria-pressed='true'] {
  background: #4a3ae0;
  border-color: #4a3ae0;
  color: #fff;
}
.sur {
  font-size: 13px;
  color: #5c5880;
}
.top {
  list-style: none;
  margin: 8px 0;
}
.top li {
  display: grid;
  grid-template-columns: 2.2em 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid #f3f1fa;
  font-size: 14.5px;
}
.top li.moi {
  background: #fff0e3;
  border-radius: 10px;
}
.top .rang {
  font:
    700 16px Fredoka,
    sans-serif;
  color: #4a3ae0;
}
.top .pts {
  text-align: right;
  white-space: nowrap;
}
.top .pts small {
  display: block;
  color: #5c5880;
  font-size: 12px;
}
.note {
  font-size: 12.5px;
  color: #5c5880;
  line-height: 1.4;
}
@media (min-width: 900px) {
  .question {
    left: 50%;
    right: auto;
    width: 440px;
    transform: translateX(-50%);
  }
  .bas {
    left: 50%;
    right: auto;
    width: 440px;
    transform: translateX(-50%);
  }
  .ecran {
    align-items: center;
  }
  .ecran > * {
    width: 100%;
    max-width: 520px;
  }
}
