.game {
      text-align: center;
      max-width: 420px;
      margin: 0 auto;
      padding: 10px;
    }

    #arena {
      position: relative;
      width: 100%;
      max-width: 400px;
      height: 400px;
      border: 2px solid #333;
      margin: 0 auto;
      background: #fff;
      overflow: hidden;
      box-shadow:2px 2px 7px 4px rgba(34,34,34,1);
    }
    
    .arena_pas {
    background: #ffffff;
    margin: 10px 0 0;
    padding: 0 0 10px;
    border-radius: 10px;
    box-shadow: 2px 2px 7px 4px rgba(34, 34, 34, 1);
}

    #karateka {
      position: absolute;
      bottom: 10px;
      left: 160px;
      width: 80px;
      height: 80px;
      transition: transform 0.2s;
    }

    .target {
      position: absolute;
      top: 0;
      width: 80px;
      height: 80px;
    }

    #score, #lives {
      font-size: 18px;
      margin: 5px;
      display: inline-block;
    }

    #controls {
      font-size: 16px;
      margin-top: 5px;
      display: inline-block;
    }

    #level {
      margin-top: 10px;
      font-size: 22px;
      font-weight: bold;
    }

    #endScreen {
      position: absolute;
      top: 10%;
      left: 50%;
      transform: translateX(-50%);
      background: #fff;
      border: 2px solid #333;
      padding: 20px;
      display: none;
      text-align: center;
      width: 80%;
      box-shadow: 2px 2px 7px 4px rgba(34, 34, 34, 1);
    }

    #endText {
      font-size: 22px;
      margin-bottom: 10px;
    }

    #endScreen button {
      margin-top: 10px;
      padding: 10px 20px;
      font-size: 18px;
      cursor: pointer;
      border: none;
      border-radius: 8px;
      background: #e33938;
      color: white;
      box-shadow: 2px 2px 7px 4px rgba(34, 34, 34, 1);
    }

    #endScreen button:hover {
      background: #cd3a39;
    }

    button#cta {
      padding: 10px 20px;
      font-size: 18px;
      cursor: pointer;
      border: none;
      border-radius: 8px;
      background: #ff5722;
      color: white;
      margin-top: 15px;
      display:none;
    }

    button#cta:hover {
      background: #e64a19;
    }

    /* мобильные кнопки */
    .mobile-controls {
      display: none;
      align-items: center;
      justify-content: center;
      margin-top: 10px;
      gap: 10px;
    }

    .mobile-btn {
      font-size: 20px;
      padding: 8px 14px;
      border-radius: 8px;
      border: none;
      background: rgba(0,0,0,0.7);
      color: white;
      cursor: pointer;
      user-select: none;
    }

    .tap-text {
      font-size: 14px;
      color: #444;
    }

    /* показываем мобильные кнопки только на маленьких экранах */
    @media (max-width: 767px) {
      #controls {
        display: none;
      }
      .mobile-controls {
        display: flex;
      }
    }