html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text, #fff);
  background-color: var(--bg, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wrapper {
  max-width: 480px;
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1.tracking-in-contract {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 18px 0;
  line-height: 1.2;
}

.score {
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 12px 0;
  color: #ccc;
}

#instructions {
  margin: 12px 0 20px;
  font-size: 14px;
  line-height: 1.4;
}

canvas#pong {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 16px;
  border: 4px solid #96ee2a;
  border-radius: 12px;
  background-color: black;
}

button {
  margin: 8px;
  padding: 12px 22px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #222;
  color: #fff;
  min-height: 44px;
}

button:hover {
  background-color: #4b4f4b;
}

.mobile-controls {
  display: none;
  margin: 12px 0;
  justify-content: center;
  gap: 20px;
}

.mobile-controls button {
  width: 70px;
  height: 70px;
  font-size: 28px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  background-size: 100%;
  background-position: center;
}

#leftBtn {
  background-image: url(../image/flèche_gauche.png);
}

#rightBtn {
  background-image: url(../image/flèche_droite.png);
}

.mobile-controls button:active {
  background: #96ee2a;
  background-size: 100%;
}

.hidden {
  visibility: hidden;
}

.mobile-controls button.active {
  background: #96ee2a;
  background-size: 100%;
}

.mobile-controls {
  display: flex;
}

@media (max-width: 420px) {
  button {
    padding: 10px 16px;
    font-size: 15px;
  }

  .score {
    font-size: 15px;
  }
}




/* ----------------------------------------------
 * Generated by Animista on 2025-9-16 20:57:24
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation tracking-in-contract
 * ----------------------------------------
 */
@-webkit-keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

.tracking-in-contract {
  -webkit-animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
  animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}