:root {
  --encre: #173b4e;
  --accent: #ef5b28;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #aee3f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--encre);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
#jeu {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
}
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px calc(24px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 2;
}
.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.carte {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  max-width: 288px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(10, 26, 38, .5);
}
.avion-icone { width: 52px; height: 52px; margin: 0 auto; }
.carte h1 {
  margin: 10px 0 12px;
  font-size: 30px;
  letter-spacing: -.5px;
}
.consigne {
  margin: 0 0 8px;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 600;
}
.but {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: .72;
}
.carte button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 42px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 122, 61, .45);
  transition: transform .12s ease;
}
.carte button:active { transform: scale(.94); }
.raison {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  opacity: .75;
}
.score-final {
  margin: 6px 0 4px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}
.record {
  margin: 0 0 16px;
  font-size: 13px;
  opacity: .65;
}
.record .nouveau { color: #c2410c; font-weight: 700; }
