.game-player {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
  }
  
  .game-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .game-frame canvas {
    display: block;
    width: 100%;
    height: 100%;
  }
  
  /* --- Play overlay --- */
  
  .game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 28, 0.85);
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 3;
  }
  
  .game-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .play-button-big {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: none;
    background: #22c55e;
    color: #0a0f1c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, background 0.15s ease;
  }
  
  .play-button-big:hover {
    background: #4ade80;
    transform: scale(1.06);
  }
  
  .play-button-big svg {
    margin-left: 6px;
  }
  
  /* --- Controls bar (générique) --- */
  
  .game-controls {
    position: absolute;
    display: flex;
    gap: 8px;
    z-index: 2;
  }
  
  .game-controls.is-hidden {
    display: none;
  }
  
  .game-controls-bottom {
    bottom: 10px;
    right: 10px;
  }
  
  .game-controls-top {
    top: 10px;
    left: 10px;
  }
  
  .control-btn {
    height: 38px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: none;
    background: rgba(15, 23, 42, 0.7);
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13px;
    font-weight: 600;
  }
  
  .control-btn:hover {
    background: rgba(34, 197, 94, 0.85);
    color: #0a0f1c;
  }
  
  .control-btn .icon-exit {
    display: none;
  }
  
  /* --- Bouton Exit : caché par défaut, affiché seulement en plein écran --- */
  
  .exit-btn {
    display: none;
  }
  
  .exit-label {
    display: none;
  }
  
  .game-frame:fullscreen .exit-btn,
  .game-frame.pseudo-fullscreen .exit-btn {
    display: flex;
  }
  
  .game-frame:fullscreen .exit-label,
  .game-frame.pseudo-fullscreen .exit-label {
    display: inline;
  }
  
  /* --- Fullscreen states --- */
  
  .game-frame:fullscreen {
    aspect-ratio: unset;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  
  .game-frame:fullscreen .control-btn .icon-enter {
    display: none;
  }
  
  .game-frame:fullscreen .control-btn .icon-exit {
    display: flex;
  }
  
  /* Fallback for browsers without Fullscreen API on arbitrary elements (older iOS Safari) */
  .game-frame.pseudo-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    aspect-ratio: unset;
    border-radius: 0;
    z-index: 9999;
  }
  
  .game-frame.pseudo-fullscreen .control-btn .icon-enter {
    display: none;
  }
  
  .game-frame.pseudo-fullscreen .control-btn .icon-exit {
    display: flex;
  }
  
  /* --- Mobile --- */
  
  @media (max-width: 640px) {
    .game-player {
      max-width: 100%;
    }
  
    .game-frame {
      border-radius: 0;
    }
  
    .play-button-big {
      width: 64px;
      height: 64px;
    }
  
    .control-btn {
      height: 42px;
      min-width: 42px;
    }
  
    .game-controls-bottom {
      display: none;
    }
  }